pax_global_header00006660000000000000000000000064145530270720014517gustar00rootroot0000000000000052 comment=011fa18a4e55591fac6545a821921dd1d61c6984 sql-parser-5.9.0/000077500000000000000000000000001455302707200136235ustar00rootroot00000000000000sql-parser-5.9.0/CHANGELOG.md000066400000000000000000000455521455302707200154470ustar00rootroot00000000000000# Change Log ## [5.9.x] - YYYY-MM-DD - Fix keywords not being recognized as table alias (#496) - Add `bin/sql-parser` executable file (#517) - Fix bind parameter in LIMIT OFFSET (#498) - Fix using ? as a parameter (#515) ## [5.8.2] - 2023-09-19 - Fix a regression with the ALTER operation (#511) ## [5.8.1] - 2023-09-15 - Fix `:=` was not recognized as an operator just like `=` (#306) - Fix `ALTER TABLE … MODIFY … ENUM('')` is being wrongly parsed (#234) - Fix `ALTER TABLE … MODIFY … ENUM('')` is being wrongly parsed (#478) - Fix MariaDB window function with alias gives bad linting errors (#283) - Fix unrecognized keyword `COLLATE` in `WHERE` clauses (#491) - Fix invalid hexadecimal prefix 0X (#508) ## [5.8.0] - 2023-06-05 - Fix `ALTER EVENT RENAME TO` to use expression instead of var (#419) - Fix incorrect order of operations to parse table/db called `` (#422) - Fix ALTER EVENT statement with DEFINER=user modifier fails to be parsed (#418) - Fix GROUP BY modifier WITH ROLLUP is treated as a syntax error and prevents export of SQL query results - Fix `TokensList::getPrevious` was not able to reach very first token (#428) - Fix `TransactionStatement::build()` "Call to a member function build() on null" when the transaction has no end - Fix MySQL-specific commands parsing (#226) - Fix `ALTER TABLE … RENAME COLUMN … TO …` is not understood by the parser/linter (#430) - Fix `PARTITION` syntax errors (#377) - Fix `ALTER USER` when used with `IDENTIFIED WITH/VIA/BY` option (#431) - Fix `COALESCE PARTITION` in `ALTER TABLE`, rather than `COALESCE` (#323) - Support `ALGORITHM` and `LOCK` options in `ALTER TABLE` statements (#319) - Fix way end of functions, procedures and triggers' bodies is identified (#438) - Fix `enclosed by` is not recognized by the parser when `fields` is in lower case (#236) - Support `KEY` on `CreateDefinition` (#330) - Fix `CALL` statements parsing (#372) - Implement support for `LEFT JOIN`, `JOIN`, `INNER JOIN` on `UpdateStatement` (#260) - Implement support for `TABLE` and `REPLACE` statements on `DESCRIBE` statements - Fix `DESCRIBE` to allow a schema.table syntax (#445) - Fix parsing insert queries with functions trims commas (#450) ## [5.7.0] - 2023-01-25 * Performance improvement to use less the `nextToken()` function (#397) * Lexer - Solving ambiguity on function keywords (#385) * Implement `ALTER EVENT` (#404) * Add `ALTER EVENT` keywords (#404) * Drop PHP 7.1 support * Fix the alter operation table options `RENAME INDEX x TO y` (#405) * Fix `CreateStatement` function's options (#406) * Fix a PHP notice on Linter using `ANALYZE` (#413) ## [5.6.0] - 2023-01-02 * Add missing return types annotations * Improve the WITH statements parser (#363) * Add support for passing `Context::SQL_MODE*` constants to `Context::setMode` method * Fix additional body tokens issue with `CREATE VIEW` statements (#371) * Exclude from composer vendor bundle /tests and /phpunit.xml.dist * Support table structure with `COMPRESSED` columns (#351) * Add `#[\AllowDynamicProperties]` on `Statement` and `Expression` classes for PHP 8.2 support * Support `ALTER` queries of `PARTITIONS` (#329) * Fixed differentiating between `ANALYZE` and `EXPLAIN` statements (#386) * Added "NOT" to the select options (#374) * Implement the `EXPLAIN` Parser (#389) * Context: Updated contexts to contain `multipoint` and `multipolygon` data types (#393) * Support more keywords on `Expression` component (#399) * Fix PHP 8.3 failing tests (#400) ## [5.5.0] - 2021-12-08 * Add WITH support (#165, #331) * Fixed BufferedQuery when it has an odd number of backslashes in the end (#340) * Fixed the issue that ignored the body tokens when creating views with union (#343) * Fixed parser errors on "ALTER TABLE" statements to add columns with SET type (#168) * Fixed PHP 8.1 fatal errors on classes that "implements ArrayAccess" * Add new contexts for MariaDB 10.4, 10.5, 10.6 (#328) * Fixed parser errors for "ALTER USER" with options (#342) * Fixed handling of the procedures and functions's options where part of the body (#339) * Fix PHP notice "Undefined index: name in src/Components/Key.php#206" for table keys using expressions (#347) * Added support for MySQL 8.0 table structure KEY expressions (#347) * Added support for KEY order (ASC/DESC) (#296) * Added missing KEY options for MySQL and MariaDB (#348) * Added support for ENFORCED and NOT ENFORCED on table create queries (#341) * Performance improvement to use less the "ord()" function (#352) * Added support for OVER() with an alias (AS) (#197) ## [5.4.2] - 2021-02-05 * Added check for quoted symbol to avoid parser error in case of keyword (#317) * Allow PHP 8 ## [5.4.1] - 2020-10-15 * Fix array_key_exists warning when parsing a "DEFAULT FALSE" token (#299) ## [5.4.0] - 2020-10-08 * EXISTS is also a function. (#297) * Fix lexer to not allow numbers with letters (#300) * Add support for INVISIBLE keyword (#292) * Fix the "$" might be a character used in a name (#301) * Fix use stream_select instead of non-blocking STDIN (#309) * Add select validation to a create view statement (#310) ## [5.3.1] - 2020-03-20 * Revert some changes with the understanding of ANSI_QUOTES mode and identifiers * Suggest motranslator 5.0 in README ## [5.3.0] - 2020-03-20 * Stop instanciating an object to check its class name. (#290) * Replace sscanf by equivalent native PHP functions because sscanf can be disabled for security reasons. (#270) * Allow phpunit 9 * Allow phpmyadmin/motranslator 5.0 * Fix for php error when "INSERT INTO x SET a = 1" is "INSERT INTO x SET = 1" (#295) * Fixed lexer fails to detect "*" as a wildcard (#288) * Fixed ANSI_QUOTES support (#284) * Fixed parser mistakes with comments (#156) ## [5.2.0] - 2020-01-07 * Fix ALTER TABLE ... PRIMARY/UNIQUE KEY results in error (#267) * Prevent overwrite of offset in Limit clause by parenthesis (#275) * Allow SCHEMA to be used in CREATE Database statement (#231) * Add missing options in SET statement (#255) * Add support for DROP USER statement (#259) * Fix php error "undefined index" when replacing a non existing clause (#249) ## [5.1.0] - 2019-11-12 * Fix for PHP deprecations messages about implode for php 7.4+ (#258) * Parse CHECK keyword on table definition (#264) * Parse truncate statement (#221) * Fix wrong parsing of partitions (#265) ## [5.0.0] - 2019-05-09 * Drop support for PHP 5.3, PHP 5.4, PHP 5.5, PHP 5.6, PHP 7.0 and HHVM * Enable strict mode on PHP files * Fix redundant whitespaces in build() outputs (#228) * Fix incorrect error on DEFAULT keyword in ALTER operation (#229) * Fix incorrect outputs from Query::getClause (#233) * Add support for reading an SQL file from stdin * Fix for missing tokenize-query in Composer's vendor/bin/ directory * Fix for PHP warnings with an incomplete CASE expression (#241) * Fix for error message with multiple CALL statements (#223) * Recognize the question mark character as a parameter (#242) ## [4.7.4] - YYYY-MM-DD ## [4.7.3] - 2021-12-08 - Fixed BufferedQuery when it has an odd number of backslashes in the end (#340) - Fixed the issue that ignored the body tokens when creating views with union (#343) - Fixed parser errors on "ALTER TABLE" statements to add columns with SET type (#168) - Fixed parser errors for "ALTER USER" with options (#342) - Fixed handling of the procedures and functions's options where part of the body (#339) - Fix PHP notice "Undefined index: name in src/Components/Key.php#206" for table keys using functions (#347) - Fix MySQL 8.0 table structure KEY expression not recognized (#347) - Fix KEY order (ASC/DESC) not part of the KEY definition (#296) - Fix missing KEY options for MySQL and MariaDB (#348) - Fix validation error when using ENFORCED option (#341) ## [4.7.2] - 2021-02-05 - Added check for quoted symbol to avoid parser error in case of keyword (#317) - Adjust PHP version constraint to not support PHP 8.0 on the 4.7 series (5.x series supports it) ## [4.7.1] - 2020-10-15 * Fix array_key_exists warning when parsing a "DEFAULT FALSE" token (#299) ## [4.7.0] - 2020-10-08 * EXISTS is also a function. (#297) * Fix lexer to not allow numbers with letters (#300) * Add support for INVISIBLE keyword (#292) * Fix the "$" might be a character used in a name (#301) * Fix use stream_select instead of non-blocking STDIN (#309) * Add select validation to a create view statement (#310) ## [4.6.1] - 2020-03-20 * Revert some changes with the understanding of ANSI_QUOTES mode and identifiers * Suggest motranslator 4.0 in README ## [4.6.0] - 2020-03-20 * Stop instanciating an object to check its class name. (#290) * Replace sscanf by equivalent native PHP functions because sscanf can be disabled for security reasons. (#270) * Allow phpunit 7 * Fix for php error when "INSERT INTO x SET a = 1" is "INSERT INTO x SET = 1" (#295) * Fixed lexer fails to detect "*" as a wildcard (#288) * Fixed ANSI_QUOTES support (#284) * Fixed parser mistakes with comments (#156) ## [4.5.0] - 2020-01-07 * Fix ALTER TABLE ... PRIMARY/UNIQUE KEY results in error (#267) * Prevent overwrite of offset in Limit clause by parenthesis (#275) * Allow SCHEMA to be used in CREATE Database statement (#231) * Add missing options in SET statement (#255) * Add support for DROP USER statement (#259) * Fix php error "undefined index" when replacing a non existing clause (#249) ## [4.4.0] - 2019-11-12 * Fix for PHP deprecations messages about implode for php 7.4+ (#258) * Parse CHECK keyword on table definition (#264) * Parse truncate statement (#221) * Fix wrong parsing of partitions (#265) ## [4.3.2] - 2019-06-03 Backport fixes from 5.0.0 to QA branch: * Fix redundant whitespaces in build() outputs (#228) * Fix incorrect error on DEFAULT keyword in ALTER operation (#229) * Fix incorrect outputs from Query::getClause (#233) * Add support for reading an SQL file from stdin * Fix for missing tokenize-query in Composer's vendor/bin/ directory * Fix for PHP warnings with an incomplete CASE expression (#241) * Fix for error message with multiple CALL statements (#223) * Recognize the question mark character as a parameter (#242) ## [4.3.1] - 2019-01-05 * Fixed incorrect error thrown on DEFAULT keyword in ALTER statement (#218) ## [4.3.0] - 2018-12-25 * Add support for aliases on CASE expressions (#162 and #192) * Add support for INDEX hints in SELECT statement (#199) * Add support for LOCK and UNLOCK TABLES statement (#180) * Add detection of extraneous comma in UPDATE statement (#160) * Add detection of a missing comma between two ALTER operations (#189) * Add missing support for STRAIGHT_JOIN (#196) * Add support for end options in SET statement (#190) * Fix building of RENAME statements (#201) * Add support for PURGE statements (#207) * Add support for COLLATE keyword (#190) ## [4.2.5] - 2018-10-31 * Fix issue with CREATE OR REPLACE VIEW. ## [4.2.4] - 2017-12-06 * Fix parsing of CREATE TABLE with per field COLLATE. * Improved Context::loadClosest to better deal with corner cases. * Localization updates. ## [4.2.3] - 2017-10-10 * Make mbstring extension optional (though Symfony polyfill). * Fixed build CREATE TABLE query with PARTITIONS having ENGINE but not VALUES. ## [4.2.2] - 2017-09-28 * Added support for binding parameters. ## [4.2.1] - 2017-09-08 * Fixed minor bug in Query::getFlags. * Localization updates. ## [4.2.0] - 2017-08-30 * Initial support for MariaDB SQL contexts. * Add support for MariaDB 10.3 INTERSECT and EXCEPT. ## [4.1.10] - 2017-08-21 * Use custom LoaderException for context loading errors. ## [4.1.9] - 2017-07-12 * Various code cleanups. * Improved error handling of several invalid statements. ## [4.1.8] - 2017-07-09 * Fixed parsing SQL comment at the end of query. * Improved handing of non utf-8 strings. * Added query flag for SET queries. ## [4.1.7] - 2017-06-06 * Fixed setting combination SQL Modes. ## [4.1.6] - 2017-06-01 * Fixed building query with GROUP BY clause. ## [4.1.5] - 2017-05-15 * Fixed invalid lexing of queries with : in strings. * Properly handle maximal length of delimiter. ## [4.1.4] - 2017-05-05 * Fixed wrong extract of string tokens with escaped characters. * Properly handle lowercase begin statement. ## [4.1.3] - 2017-04-06 * Added support for DELETE ... JOIN clauses. * Changed BufferedQuery to include comments in output. * Fixed parsing of inline comments. ## [4.1.2] - 2017-02-20 * Coding style improvements. * Chinese localization. * Improved order validatin for JOIN clauses. * Improved pretty printing of JOIN clauses. * Added support for LOAD DATA statements. ## [4.1.1] - 2017-02-07 * Localization using phpmyadmin/motranslator is now optional. * Improved testsuite. * Better handling of non upper cased not reserved keywords. * Minor performance and coding style improvements. ## [4.1.0] - 2017-01-23 * Use phpmyadmin/motranslator to localize messages. ## [4.0.1] - 2017-01-23 * Fixed CLI wrappers for new API. * Fixed README for new API. ## [4.0.0] - 2017-01-23 * Added PhpMyAdmin namespace prefix to follow PSR-4. ## [3.4.17] - 2017-01-20 * Coding style fixes. * Fixed indentation in HTML formatting. * Fixed parsing of unterminated variables. * Improved comments lexing. ## [3.4.16] - 2017-01-06 * Coding style fixes. * Properly handle operators AND, NOT, OR, XOR, DIV, MOD ## [3.4.15] - 2017-01-02 * Fix return value of Formatter.toString() when type is text * Fix parsing of FIELDS and LINES options in SELECT..INTO * PHP 7.2 compatibility. * Better parameter passing to query formatter. ## [3.4.14] - 2016-11-30 * Improved parsing of UNION queries. * Recognize BINARY function. ## [3.4.13] - 2016-11-15 * Fix broken incorrect clause order detection for Joins. * Add parsing of end options in Select statements. ## [3.4.12] - 2016-11-09 * Added verification order of SELECT statement clauses. ## [3.4.11] - 2016-10-25 * Fixed parsing of ON UPDATE option in field definition of TIMESTAMP type with precision * Fixed parsing of NATURAL JOIN, CROSS JOIN and related joins. * Fixed parsing of BEGIN/END labels. ## [3.4.10] - 2016-10-03 * Fixed API regression on DELETE statement ## [3.4.9] - 2016-10-03 * Added support for CASE expressions * Support for parsing and building DELETE statement * Support for parsing subqueries in FROM clause ## [3.4.8] - 2016-09-22 * No change release to sync GitHub releases with Packagist ## [3.4.7] - 2016-09-20 * Fix parsing of DEFINER without backquotes * Fixed escaping HTML entities in HTML formatter * Fixed escaping of control chars in CLI formatter ## [3.4.6] - 2016-09-13 * Fix parsing of REPLACE INTO ... * Fix parsing of INSERT ... ON DUPLICATE KEY UPDATE ... * Extended testsuite * Re-enabled PHP 5.3 support ## [3.4.5] - 2016-09-13 * Fix parsing of INSERT...SELECT and INSERT...SET syntax * Fix parsing of CREATE TABLE ... PARTITION * Fix parsing of SET CHARACTER SET, CHARSET, NAMES * Add Support for 'CREATE TABLE `table_copy` LIKE `table` ## [3.4.4] - 2016-04-26 * Add support for FULL OUTER JOIN ## [3.4.3] - 2016-04-19 * Fix parsing of query with \ ## [3.4.2] - 2016-04-07 * Recognize UNION DISTINCT * Recognize REGEXP and RLIKE operators ## [3.4.1] - 2016-04-06 * Add FULLTEXT and SPATIAL keywords * Properly parse CREATE TABLE [AS] SELECT * Fix parsing of table with DEFAULT and COMMENT ## [3.4.0] - 2016-02-23 * Fix parsing DEFAULT value on CREATE * Fix parsing of ALTER VIEW ## [3.3.1] - 2016-02-12 * Condition: Allow keyword `INTERVAL`. ## [3.3.0] - 2016-02-12 * Expression: Refactored parsing options. ## [3.2.0] - 2016-02-11 * Context: Added custom mode that avoids escaping when possible. ## [3.1.0] - 2016-02-10 * ArrayObj: Handle more complex expressions in arrays. * BufferedQuery: Backslashes in comments escaped characters in comments. * Condition: Allow `IF` in conditions. * Context: Add `;` as operator. * Context: Updated contexts to contain `BIT` data type. * CreateStatement: The `DEFAULT` option may be an expression. * DescribeStatement: Added `DESC` as alias for `DESCRIBE`. * Expression: Rewrote expression parsing. * Misc: Added PHPUnit's Code Coverage 3.0 as a dependency. * Misc: Added support for PHP 5.4 back. * Misc: Removed dependency to Ctype. * Misc: Repository transferred from @udan11 to @phpMyAdmin. * Misc: Updated `.gitignore` to ignore `composer.lock`. * Misc: Updated Composer and Travis configuration for PHP 7 and PHPUnit 5. * Tools: Documented tags in `ContextGenerator`. ## [3.0.8] - 2015-12-18 * Allow `NULL` in expressions. * Downgraded PHPUnit to 4.8. Removed old PHP versions. * Updated PHPUnit to 5.1 and fixed some of the tests. * Added `UNION ALL` as a type of `UNION`. * Expressions are permitted in `SET` operations. * Added `STRAIGHT_JOIN` as a known type of join. * Added missing definitions for `MATCH` and `AGAINST`. * Added missing statement (`FLUSH` and `DEALLOCATE`). ## [3.0.7] - 2015-11-12 * Expressions may begin with a function that is also a reserved keyword (e.g. `IF`). ## [3.0.6] - 2015-11-12 * Fixed a bug where formatter split the function name and the parameters list. ## [3.0.5] - 2015-11-08 * Add GRANT as known statement. * Use JOIN expressions for flag detection. * Fix the order of clauses in SELECT statements involving UNIONs. * Added dummy parsers for CREATE USER and SET PASSWORD statements. * Accept NOT operator in conditions. * Fixed DELIMITER statements in BufferedQuery. * Added INSERT statement builder. ## [3.0.4] - 2015-10-21 * Fix error message in `SqlParser\Components\OptionsArray`. ## [3.0.3] - 2015-10-10 * Avoid building a field multiple times if clause has synonyms. ## [3.0.2] - 2015-10-10 * Add EXISTS as an acceptable keyword in conditions. ## [3.0.1] - 2015-10-06 * Handle backslashes separately for `SqlParser\Utils\BufferedQuery`. Fixes a bug where backslashes in combination with strings weren't handled properly. ## [3.0.0] - 2015-10-02 __Breaking changes:__ * `SqlParser\Components\Reference::$table` is now an instance of `SqlParser\Components\Expression` to support references from other tables. ## [2.1.3] - 2015-10-02 * Add definitions for all JOIN clauses. ## [2.1.2] - 2015-10-02 * Properly parse options when the value of the option is '='. ## [2.1.1] - 2015-09-30 * Only RANGE and LIST type partitions support VALUES. ## [2.1.0] - 2015-09-30 * Added utilities for handling tokens and tokens list. ## [2.0.3] - 2015-09-30 * Added missing NOT IN operator. This caused troubles when parsing conditions that contained the `NOT IN` operator. ## [2.0.2] - 2015-09-30 * Added support for `OUTER` as an optional keyword in joins. ## [2.0.1] - 2015-09-30 * Fixed a bug related to (sub)partitions options not being included in the built component. Also, the option `ENGINE` was unrecognized. ## [2.0.0] - 2015-09-25 * Better parsing for CREATE TABLE statements (related to breaking change 1). * Added support for JSON data type. * Refactoring and minor documentation improvements. __Breaking changes:__ * `SqlParser\Components\Key::$columns` is now an array of arrays. Each array must contain a `name` key which represents the name of the column and an optional `length` key which represents the length of the column. ## [1.0.0] - 2015-08-20 * First release of this library. sql-parser-5.9.0/LICENSE.txt000066400000000000000000000432541455302707200154560ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. sql-parser-5.9.0/README.md000066400000000000000000000100421455302707200150770ustar00rootroot00000000000000# SQL Parser A validating SQL lexer and parser with a focus on MySQL dialect. ## Code status ![Tests](https://github.com/phpmyadmin/sql-parser/workflows/Run%20tests/badge.svg?branch=master) [![Code Coverage](https://scrutinizer-ci.com/g/phpmyadmin/sql-parser/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/phpmyadmin/sql-parser/?branch=master) [![codecov.io](https://codecov.io/github/phpmyadmin/sql-parser/coverage.svg?branch=master)](https://codecov.io/github/phpmyadmin/sql-parser?branch=master) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/phpmyadmin/sql-parser/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/phpmyadmin/sql-parser/?branch=master) [![Translation status](https://hosted.weblate.org/widgets/phpmyadmin/-/svg-badge.svg)](https://hosted.weblate.org/engage/phpmyadmin/?utm_source=widget) [![Packagist](https://img.shields.io/packagist/dt/phpmyadmin/sql-parser.svg)](https://packagist.org/packages/phpmyadmin/sql-parser) [![Open Source Helpers](https://www.codetriage.com/phpmyadmin/sql-parser/badges/users.svg)](https://www.codetriage.com/phpmyadmin/sql-parser) [![Type coverage](https://shepherd.dev/github/phpmyadmin/sql-parser/coverage.svg)](https://shepherd.dev/github/phpmyadmin/sql-parser) [![Infection MSI](https://badge.stryker-mutator.io/github.com/phpmyadmin/sql-parser/master)](https://infection.github.io) ## Installation Please use [Composer][1] to install: ```sh composer require phpmyadmin/sql-parser ``` ## Documentation The API documentation is available at . ## Usage ### Command line utilities Command line utility to syntax highlight SQL query: ```sh ./vendor/bin/highlight-query --query "SELECT 1" ``` Command line utility to lint SQL query: ```sh ./vendor/bin/lint-query --query "SELECT 1" ``` Command line utility to tokenize SQL query: ```sh ./vendor/bin/tokenize-query --query "SELECT 1" ``` All commands are able to parse input from stdin (standard in), such as: ```sh echo "SELECT 1" | ./vendor/bin/highlight-query cat example.sql | ./vendor/bin/lint-query ``` ### Formatting SQL query ```php echo PhpMyAdmin\SqlParser\Utils\Formatter::format($query, ['type' => 'html']); ``` ### Discoverying query type ```php use PhpMyAdmin\SqlParser\Parser; use PhpMyAdmin\SqlParser\Utils\Query; $query = 'OPTIMIZE TABLE tbl'; $parser = new Parser($query); $flags = Query::getFlags($parser->statements[0]); echo $flags['querytype']; ``` ### Parsing and building SQL query ```php require __DIR__ . '/vendor/autoload.php'; $query1 = 'select * from a'; $parser = new PhpMyAdmin\SqlParser\Parser($query1); // inspect query var_dump($parser->statements[0]); // outputs object(PhpMyAdmin\SqlParser\Statements\SelectStatement) // modify query by replacing table a with table b $table2 = new \PhpMyAdmin\SqlParser\Components\Expression('', 'b', '', ''); $parser->statements[0]->from[0] = $table2; // build query again from an array of object(PhpMyAdmin\SqlParser\Statements\SelectStatement) to a string $statement = $parser->statements[0]; $query2 = $statement->build(); var_dump($query2); // outputs string(19) 'SELECT * FROM `b` ' // Change SQL mode PhpMyAdmin\SqlParser\Context::setMode(PhpMyAdmin\SqlParser\Context::SQL_MODE_ANSI_QUOTES); // build the query again using different quotes $query2 = $statement->build(); var_dump($query2); // outputs string(19) 'SELECT * FROM "b" ' ``` ## Localization You can localize error messages installing `phpmyadmin/motranslator` version `5.0` or newer: ```sh composer require phpmyadmin/motranslator:^5.0 ``` The locale is automatically detected from your environment, you can also set a different locale **From cli**: ```sh LC_ALL=pl ./vendor/bin/lint-query --query "SELECT 1" ``` **From php**: ```php require __DIR__ . '/vendor/autoload.php'; $GLOBALS['lang'] = 'pl'; $query1 = 'select * from a'; $parser = new PhpMyAdmin\SqlParser\Parser($query1); ``` ## More information This library was originally created during the Google Summer of Code 2015 and has been used by phpMyAdmin since version 4.5. [1]:https://getcomposer.org/ sql-parser-5.9.0/bin/000077500000000000000000000000001455302707200143735ustar00rootroot00000000000000sql-parser-5.9.0/bin/highlight-query000077500000000000000000000012561455302707200174370ustar00rootroot00000000000000#!/usr/bin/env php runHighlight()); sql-parser-5.9.0/bin/lint-query000077500000000000000000000012511455302707200164310ustar00rootroot00000000000000#!/usr/bin/env php runLint()); sql-parser-5.9.0/bin/sql-parser000077500000000000000000000012471455302707200164160ustar00rootroot00000000000000#!/usr/bin/env php run()); sql-parser-5.9.0/bin/tokenize-query000077500000000000000000000012551455302707200173170ustar00rootroot00000000000000#!/usr/bin/env php runTokenize()); sql-parser-5.9.0/composer.json000066400000000000000000000057031455302707200163520ustar00rootroot00000000000000{ "name": "phpmyadmin/sql-parser", "description": "A validating SQL lexer and parser with a focus on MySQL dialect.", "license": "GPL-2.0-or-later", "keywords": ["sql", "lexer", "parser", "analysis", "sql syntax highlighter", "sql lexer", "sql tokenizer", "sql parser", "sql linter", "query linter"], "homepage": "https://github.com/phpmyadmin/sql-parser", "authors": [ { "name": "The phpMyAdmin Team", "email": "developers@phpmyadmin.net", "homepage": "https://www.phpmyadmin.net/team/" } ], "support": { "issues": "https://github.com/phpmyadmin/sql-parser/issues", "source": "https://github.com/phpmyadmin/sql-parser" }, "funding": [ { "type": "other", "url": "https://www.phpmyadmin.net/donate/" } ], "require": { "php": "^7.2 || ^8.0", "symfony/polyfill-mbstring": "^1.3", "symfony/polyfill-php80": "^1.16" }, "require-dev": { "phpbench/phpbench": "^1.1", "phpmyadmin/coding-standard": "^3.0", "phpmyadmin/motranslator": "^4.0 || ^5.0", "phpstan/extension-installer": "^1.1", "phpstan/phpstan": "^1.9.12", "phpstan/phpstan-phpunit": "^1.3.3", "phpunit/php-code-coverage": "*", "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", "psalm/plugin-phpunit": "^0.16.1", "vimeo/psalm": "^4.11", "zumba/json-serializer": "~3.0.2" }, "conflict": { "phpmyadmin/motranslator": "<3.0" }, "suggest": { "ext-mbstring": "For best performance", "phpmyadmin/motranslator": "Translate messages to your favorite locale" }, "bin": [ "bin/highlight-query", "bin/lint-query", "bin/sql-parser", "bin/tokenize-query" ], "autoload": { "psr-4": { "PhpMyAdmin\\SqlParser\\": "src" } }, "autoload-dev": { "psr-4": { "PhpMyAdmin\\SqlParser\\Tests\\": "tests" } }, "scripts": { "phpcbf": "@php phpcbf", "phpcs": "@php phpcs", "phpstan": "@php phpstan analyse", "psalm": "@php psalm --no-diff", "phpunit": "@php phpunit --color=always", "phpbench": "@php phpbench run tests/benchmarks --report=aggregate", "test": [ "@phpcs", "@phpstan", "@psalm", "@phpunit" ], "update:baselines": [ "@php phpstan analyse --generate-baseline", "@php psalm --set-baseline=psalm-baseline.xml" ] }, "config": { "sort-packages": true, "allow-plugins": { "composer/package-versions-deprecated": true, "dealerdirect/phpcodesniffer-composer-installer": true, "phpstan/extension-installer": true } }, "archive": { "exclude": [ "/tests", "/phpunit.xml.dist" ] } } sql-parser-5.9.0/locale/000077500000000000000000000000001455302707200150625ustar00rootroot00000000000000sql-parser-5.9.0/locale/af/000077500000000000000000000000001455302707200154505ustar00rootroot00000000000000sql-parser-5.9.0/locale/af/LC_MESSAGES/000077500000000000000000000000001455302707200172355ustar00rootroot00000000000000sql-parser-5.9.0/locale/af/LC_MESSAGES/sqlparser.mo000066400000000000000000000123711455302707200216120ustar00rootroot000000000000006I|*!*L9 c'B#[<  F,g( 4)^&r-!!$ 'E 'm " 8 * " ? U !e " !     3 E c {    ) &  # Vqx#;/Q78(T}*(B"e&~1!$5'Z%>*1Pe%{&#!&"?b t,)'  .%53 0*2 $ (-&4+1!/#6"%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.AS keyword was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.Subquery of the CTE was expected.The name of the CTE was expected.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected end of the WITH CTE.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Afrikaans Language: af MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 4.16-dev %1$d waardes is verwag, maar gevind %2$d.'n "TERUGKEER"-sleutelwoord is verwag.’n Sluitingshakie is verwag.'n Komma of 'n slothakie is verwag.’n Nuwe verklaring is gevind, maar geen afbakening tussen dit en die vorige een nie.'n Hernoembewerking is verwag.'n Simboolnaam is verwag!'n Simboolnaam is verwag! 'n Gereserveerde sleutelwoord kan nie as 'n kolomnaam gebruik word sonder agteraanhalings nie.'n Tabelnaam is verwag.AS navraag is verwag.'n Alias wat na AS verwag word, maar gekry het 'n Alias is na AS verwag.'n Alias is verwag.'n Alias is voorheen gevind.'n Uitdrukking is verwag.'n Verrekening is verwag.'n Openingshakie gevolg deur 'n stel waardes is verwag.'n Opening-hakie is verwag.Ten minste een kolomdefinisie is verwag.Eindkwotasie %1$s is verwag.Verwagte afbakening.Verwagte witspasie(s) voor skeidingsteken.Sleutelwoord "AAN" was verwag.Sleutelwoord aan die einde van stelling.Ontbrekende komma voor die aanvang van 'n nuwe wysigingsbewerking.Ontbrekende uitdrukking.Geen transaksie is voorheen begin nie.Nog nie geimplimenteer nie.Potensiële duplikaat-alias van CASE-uitdrukking.Subnavraag van die CTE is verwag.Die naam van die CTE is verwag.Die naam van die entiteit is verwag.Die nuwe naam van die tafel was verwag.Die ou naam van die tafel was verwag.Hierdie opsie bots met "%1$s".Hierdie tipe klousule is nie geldig in Multi-table-navrae nie.Hierdie tipe klousule is voorheen ontleed.Onverwagte begin van stelling.Onverwagte karakter.Onverwagte kolletjie.Onverwagte einde van CASE-uitdrukkingOnverwagte einde van LOCK-uitdrukking.Onverwagte einde van LOCK-stelling.Onverwagte einde van die MET CTE.Onverwagte sleutelwoordOnverwagte sleutelwoord.Onverwagte ordening van klousules.Onverwagte teken.Onherkenbare wysigingsbewerking.Onherkende datatipe.Onherkende sleutelwoord.Onherkende stellingtipe.Veranderlike naam is verwag.sql-parser-5.9.0/locale/af/LC_MESSAGES/sqlparser.po000066400000000000000000000223031455302707200216110ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Afrikaans \n" "Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Nog nie geimplimenteer nie." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "’n Nuwe verklaring is gevind, maar geen afbakening tussen dit en die vorige " "een nie." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Ontbrekende komma voor die aanvang van 'n nuwe wysigingsbewerking." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Onherkenbare wysigingsbewerking." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "%1$d waardes is verwag, maar gevind %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "'n Openingshakie gevolg deur 'n stel waardes is verwag." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "'n Opening-hakie is verwag." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Onverwagte sleutelwoord." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Onverwagte einde van CASE-uitdrukking" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Potensiële duplikaat-alias van CASE-uitdrukking." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "'n Alias wat na AS verwag word, maar gekry het " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "'n Alias is voorheen gevind." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "'n Alias is na AS verwag." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "'n Simboolnaam is verwag! 'n Gereserveerde sleutelwoord kan nie as 'n " "kolomnaam gebruik word sonder agteraanhalings nie." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "'n Simboolnaam is verwag!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "'n Komma of 'n slothakie is verwag." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "’n Sluitingshakie is verwag." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Onherkende datatipe." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "'n Uitdrukking is verwag." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "'n Alias is verwag." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Onverwagte kolletjie." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Onverwagte teken." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "'n Verrekening is verwag." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Onverwagte einde van LOCK-uitdrukking." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Hierdie opsie bots met \"%1$s\"." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Die ou naam van die tafel was verwag." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Sleutelwoord \"AAN\" was verwag." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Die nuwe naam van die tafel was verwag." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "'n Hernoembewerking is verwag." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Ontbrekende uitdrukking." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Onverwagte karakter." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Verwagte witspasie(s) voor skeidingsteken." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Verwagte afbakening." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Eindkwotasie %1$s is verwag." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Veranderlike naam is verwag." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Onverwagte begin van stelling." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Onherkende stellingtipe." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Geen transaksie is voorheen begin nie." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Hierdie tipe klousule is voorheen ontleed." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Onherkende sleutelwoord." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Sleutelwoord aan die einde van stelling." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Onverwagte ordening van klousules." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Die naam van die entiteit is verwag." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "'n Tabelnaam is verwag." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Ten minste een kolomdefinisie is verwag." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "'n \"TERUGKEER\"-sleutelwoord is verwag." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Hierdie tipe klousule is nie geldig in Multi-table-navrae nie." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Onverwagte einde van LOCK-stelling." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Onverwagte sleutelwoord" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "Die naam van die CTE is verwag." #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "AS navraag is verwag." #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "Subnavraag van die CTE is verwag." #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "Onverwagte einde van die MET CTE." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Onverwagte einde van LOCK-uitdrukking." #, fuzzy #~| msgid "Error" #~ msgid "error #1" #~ msgstr "Fout" #, fuzzy #~| msgid "Query" #~ msgid "strict error" #~ msgstr "Navraag dmv Voorbeeld" sql-parser-5.9.0/locale/ar/000077500000000000000000000000001455302707200154645ustar00rootroot00000000000000sql-parser-5.9.0/locale/ar/LC_MESSAGES/000077500000000000000000000000001455302707200172515ustar00rootroot00000000000000sql-parser-5.9.0/locale/ar/LC_MESSAGES/sqlparser.mo000066400000000000000000000135161455302707200216300ustar00rootroot000000000000002C<H*I!t*L .Ock#.Ed< ,#C(W4&(-=$k''"8 *< "g   ! " !  * > ^ p      D ?; -{ ? k )U)$RKw98+6 b W/9,-fE7=/Gm1V2l:61jCC,:2X2/)**Cn*&*"%(12 !  &"$(*#0',/ %+) -. %1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Arabic Language: ar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 ? 4 : 5; X-Generator: Weblate 4.16-dev تم توقع قيم %1$d ، ولكن تم العثور على %2$d.كانت الكلمة الرئيسية "رجوع" متوقعة.من المتوقع وجود قوس مغلق.من المتوقع وجود فاصلة أو قوس إغلاق.تم العثور على بيان جديد، ولكن لا يوجد محدد بينه وبين سابقه .نتوقع منك اعادة تسمية .كان من المتوقع اسم رمز!كان من المتوقع وجود اسم رمز! لا يمكن استخدام كلمة رئيسية محجوزة كاسم عمود بدون علامات اقتباس.نتوقع تسمية الجدول .يتوقع وضع مُسَمَّى إضافي بعد AS لكن تم وضع كان من المتوقع اسم مستعار بعد AS.كان من المتوقع وجود اسم مستعار.اسم مستعار موجود مسبقا .متوقع وجود تعبير .متوقع حدوث تعويض .من المتوقع وجود قوس فتح متبوعا بمجموعة من القيم.من المتوقع وجود قوس مفتوح.نتوقع منك تعريف عمود علي الاقل .نتوقع إنهاء الاقتباس %1$s .المحدد المتوقع.المسافات البيضاء المتوقعة قبل المحدد.متوقع وجود الكلمة الرئيسية "TO".الكلمة المفتاحية في نهاية البيان.فاصلة مفقودة قبل بدء عملية تغيير جديدة.تعبير مفقود .لم يتم بدء أي معاملة من قبل.لم تنفذ بعد.من المحتمل وجود مُسَمَّى إضافي متكرر لعبارة CASE.نتوفع منك ادراج اسم الكيان .متوقع وجود الاسم الجديد للجدول .متوفع وجود اسم الجدول القديم .يتعارض هذا الخيار مع“%1$s“ .هذا النوع من الشرط غير صالح في الاستعلامات متعددة الجداول.تم تحليل هذا النوع من العبارات سابقا.بداية غير متوقعة للبيان.حرف غير متوقع .نقطة غير متوقعة.نهاية غير متوقعة من التعبيرنهاية غير متوقعة لعبارة LOCK .نهاية غير متوقعة لبيان LOCK.كلمة أساسية غير متوقعةكلمة رئيسية غير متوقعة.ترتيب غير متوقع للبنود.رمز غير متوقع.عملية تغيير غير معروفة.نوع بيانات غير معروف.كلمة محجوزة غير معروفة.نوع بيان غير معروف.متوقع منك اسم متغير .sql-parser-5.9.0/locale/ar/LC_MESSAGES/sqlparser.po000066400000000000000000000245761455302707200216430ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Arabic \n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "لم تنفذ بعد." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "تم العثور على بيان جديد، ولكن لا يوجد محدد بينه وبين سابقه ." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "فاصلة مفقودة قبل بدء عملية تغيير جديدة." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "عملية تغيير غير معروفة." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "تم توقع قيم %1$d ، ولكن تم العثور على %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "من المتوقع وجود قوس فتح متبوعا بمجموعة من القيم." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "من المتوقع وجود قوس مفتوح." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "كلمة رئيسية غير متوقعة." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "نهاية غير متوقعة من التعبير" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "من المحتمل وجود مُسَمَّى إضافي متكرر لعبارة CASE." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "يتوقع وضع مُسَمَّى إضافي بعد AS لكن تم وضع " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "اسم مستعار موجود مسبقا ." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "كان من المتوقع اسم مستعار بعد AS." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "كان من المتوقع وجود اسم رمز! لا يمكن استخدام كلمة رئيسية محجوزة كاسم عمود " "بدون علامات اقتباس." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "كان من المتوقع اسم رمز!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "من المتوقع وجود فاصلة أو قوس إغلاق." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "من المتوقع وجود قوس مغلق." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "نوع بيانات غير معروف." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "متوقع وجود تعبير ." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "كان من المتوقع وجود اسم مستعار." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "نقطة غير متوقعة." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "رمز غير متوقع." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "متوقع حدوث تعويض ." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "نهاية غير متوقعة لعبارة LOCK ." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "يتعارض هذا الخيار مع“%1$s“ ." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "متوفع وجود اسم الجدول القديم ." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "متوقع وجود الكلمة الرئيسية \"TO\"." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "متوقع وجود الاسم الجديد للجدول ." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "نتوقع منك اعادة تسمية ." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "تعبير مفقود ." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "حرف غير متوقع ." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "المسافات البيضاء المتوقعة قبل المحدد." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "المحدد المتوقع." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "نتوقع إنهاء الاقتباس %1$s ." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "متوقع منك اسم متغير ." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "بداية غير متوقعة للبيان." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "نوع بيان غير معروف." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "لم يتم بدء أي معاملة من قبل." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "تم تحليل هذا النوع من العبارات سابقا." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "كلمة محجوزة غير معروفة." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "الكلمة المفتاحية في نهاية البيان." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "ترتيب غير متوقع للبنود." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "نتوفع منك ادراج اسم الكيان ." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "نتوقع تسمية الجدول ." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "نتوقع منك تعريف عمود علي الاقل ." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "كانت الكلمة الرئيسية \"رجوع\" متوقعة." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "هذا النوع من الشرط غير صالح في الاستعلامات متعددة الجداول." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "نهاية غير متوقعة لبيان LOCK." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "كلمة أساسية غير متوقعة" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The name of the entity was expected." msgid "The name of the CTE was expected." msgstr "نتوفع منك ادراج اسم الكيان ." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "A \"RETURNS\" keyword was expected." msgid "AS keyword was expected." msgstr "كانت الكلمة الرئيسية \"رجوع\" متوقعة." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The name of the entity was expected." msgid "Subquery of the CTE was expected." msgstr "نتوفع منك ادراج اسم الكيان ." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected end of LOCK statement." msgid "Unexpected end of the WITH CTE." msgstr "نهاية غير متوقعة لبيان LOCK." #~ msgid "Unexpected end of Lock expression." #~ msgstr "نهاية غير متوقعة لتعبير LOCK." #~ msgid "error #1" #~ msgstr "الخطأ رقم 1" #~ msgid "strict error" #~ msgstr "خطأ صارم" sql-parser-5.9.0/locale/ast/000077500000000000000000000000001455302707200156515ustar00rootroot00000000000000sql-parser-5.9.0/locale/ast/LC_MESSAGES/000077500000000000000000000000001455302707200174365ustar00rootroot00000000000000sql-parser-5.9.0/locale/ast/LC_MESSAGES/sqlparser.mo000066400000000000000000000066501455302707200220160ustar00rootroot00000000000000!$/,**4L_ cMd< 5(Ir''")?!O"q!/3!,! TN -  h Z %r   F # '> f 7 "   % (1 &Z   " # #  - %G m   !   %1$d values were expected, but found %2$d.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Missing expression.Not implemented yet.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected keywordUnexpected keyword.Unrecognized alter operation.Unrecognized data type.Variable name was expected.Project-Id-Version: Asturian (phpMyAdmin) Report-Msgid-Bugs-To: PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE Last-Translator: FULL NAME Language-Team: Asturian Language: ast MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 4.16-rc Esperábense %1$d valores, pero s'alcontraron %2$d.Esperábase un corchete de zarru.Esperábase una coma o un corchete de zarru.Alcontróse una nueva declaración, pero nun hai llendador ente ésta y la anterior.Esperábase una operación de cambiu de nome.Esperábase un nome de símboluEsperábase un nome de símbolu. Una palabra acutada nun puede usase como nome de columna ensin comines.Esperábase un alcuñu.Alcontróse anteriormente un alcuñu.Esperábase una espresión.Esperábase un desplazamientu.Esperábase un corchete d'apertura siguíu por un conxuntu de valores.Esperábase un corchete d'apertura.Esperábense les comines de final %1$s.Esperábase un llendador.Esperábase espaciu(os) en blancu antes d'un llendador.Esperábase la palabra clave "TO".Falta una espresión.Entá nun se desendolcó.Esperábase'l nome nuevu de la tabla.Esperábase'l nome anterior de la tabla.Esta opción fai conflictu con "%1$s".Carácter inesperáu.Puntu inesperáu.Final inesperáu d'espresión CASEFinal inesperáu d'espresión LOCK.Final inesperáu d'espresión LOCK.Palabra clave inesperadaPalabra clave inesperada.Operación d'alteración desconocida.Tipu de datu desconocíu.Esperábase un nome de variable.sql-parser-5.9.0/locale/ast/LC_MESSAGES/sqlparser.po000066400000000000000000000221551455302707200220170ustar00rootroot00000000000000# phpMyAdmin SQL parser translation. # Copyright (C) 2015 - 2017 phpMyAdmin devel team # This file is distributed under the same license as the SQL parser package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-03-01 15:39+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Asturian \n" "Language: ast\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.16-rc\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Entá nun se desendolcó." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "Alcontróse una nueva declaración, pero nun hai llendador ente ésta y la " "anterior." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Operación d'alteración desconocida." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "Esperábense %1$d valores, pero s'alcontraron %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Esperábase un corchete d'apertura siguíu por un conxuntu de valores." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Esperábase un corchete d'apertura." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Palabra clave inesperada." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Final inesperáu d'espresión CASE" #: src/Components/CaseExpression.php:212 #, fuzzy #| msgid "Unexpected end of CASE expression" msgid "Potential duplicate alias of CASE expression." msgstr "Final inesperáu d'espresión CASE" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Alcontróse anteriormente un alcuñu." #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "An alias was expected." msgid "An alias was expected after AS." msgstr "Esperábase un alcuñu." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Esperábase un nome de símbolu. Una palabra acutada nun puede usase como nome " "de columna ensin comines." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Esperábase un nome de símbolu" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Esperábase una coma o un corchete de zarru." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Esperábase un corchete de zarru." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Tipu de datu desconocíu." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Esperábase una espresión." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Esperábase un alcuñu." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Puntu inesperáu." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Esperábase un desplazamientu." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Final inesperáu d'espresión LOCK." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Esta opción fai conflictu con \"%1$s\"." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Esperábase'l nome anterior de la tabla." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Esperábase la palabra clave \"TO\"." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Esperábase'l nome nuevu de la tabla." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Esperábase una operación de cambiu de nome." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Falta una espresión." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Carácter inesperáu." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Esperábase espaciu(os) en blancu antes d'un llendador." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Esperábase un llendador." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Esperábense les comines de final %1$s." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Esperábase un nome de variable." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "" #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "" #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Final inesperáu d'espresión LOCK." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Palabra clave inesperada" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The new name of the table was expected." msgid "The name of the CTE was expected." msgstr "Esperábase'l nome nuevu de la tabla." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "Keyword \"TO\" was expected." msgid "AS keyword was expected." msgstr "Esperábase la palabra clave \"TO\"." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "Keyword \"TO\" was expected." msgid "Subquery of the CTE was expected." msgstr "Esperábase la palabra clave \"TO\"." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected end of CASE expression" msgid "Unexpected end of the WITH CTE." msgstr "Final inesperáu d'espresión CASE" #~ msgid "Unexpected end of Lock expression." #~ msgstr "Final inesperáu d'espresión LOCK." sql-parser-5.9.0/locale/az/000077500000000000000000000000001455302707200154745ustar00rootroot00000000000000sql-parser-5.9.0/locale/az/LC_MESSAGES/000077500000000000000000000000001455302707200172615ustar00rootroot00000000000000sql-parser-5.9.0/locale/az/LC_MESSAGES/sqlparser.mo000066400000000000000000000065341455302707200216420ustar00rootroot00000000000000!$/,*!6*V c"=Ts<,1&El''""-!=_s )% *4 2_  i  6 L i 9 0 !  0 (? h $ ' / ) , F /^   +   # <   !   %1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.An alias was expected.An alias was previously found.An expression was expected.An opening bracket followed by a set of values was expected.At least one column definition was expected.Keyword "TO" was expected.Keyword at end of statement.Missing expression.No transaction was previously started.Not implemented yet.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected keyword.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2017-11-25 14:44+0000 Last-Translator: Sevdimali İsa Language-Team: Azerbaijani Language: az MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 2.18-dev %1$d gözlənilirdi, amma %2$d tapıldı."RETURNS" açarsözü gözlənilirdi.Mötərizə gözlənilirdi.Vergül və ya mötərizə gözlənilirdi.Yenidən adlandırma əməliyyatı gözlənilirdi.Simvol adı gözlənilirdi!Bir simvol adı gözlənilirdi! Dırnaqsız reserv sözlər sütün adı olaraq istifadə edilə bilməz.Cədvəl adı gözlənilirdi.Alias gözlənilirdi.Daha öncə alias tapıldı.İfadə gözlənilməkdə.Mötərizə ardından bir qrup dəyər gözlənilməkdə.Ən az bir sütün açıqlaması gözlənilirdi."TO" açar sözü gözlənilirdi.İfadənin sonunda açar söz.Əksik ifadə.Daha öncə tranzaksiya başladılmadı.Hələki tətbiq edilməyib.Cədvəlin yeni adı gözlənilirdi.Cədvəlin köhnə adı gözlənilirdi.Bu seçim %1$s bununla zidiyyət təşkil edir.İfadənin gözlənilməz başlanğıcı.Gözlənilməyən simvol.Gözlənilməz nöqtə.Gözlənməz Böyük/Kiçik hərf ifadəsi sonuGözlənilməyən açar söz.Gözlənilməyən token.Kateqoriya olunmamış alter əməliyyatı.Tanınmayan verilən tipi.Tanınmayan açarsöz.Tanınmayan ifadə tipi.Dəyişən adı gözlənilirdi.sql-parser-5.9.0/locale/az/LC_MESSAGES/sqlparser.po000066400000000000000000000230121455302707200216330ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2017-11-25 14:44+0000\n" "Last-Translator: Sevdimali İsa \n" "Language-Team: Azerbaijani \n" "Language: az\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 2.18-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Hələki tətbiq edilməyib." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Kateqoriya olunmamış alter əməliyyatı." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "%1$d gözlənilirdi, amma %2$d tapıldı." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Mötərizə ardından bir qrup dəyər gözlənilməkdə." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Gözlənilməyən açar söz." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Gözlənməz Böyük/Kiçik hərf ifadəsi sonu" #: src/Components/CaseExpression.php:212 #, fuzzy #| msgid "Unexpected end of CASE expression" msgid "Potential duplicate alias of CASE expression." msgstr "Gözlənməz Böyük/Kiçik hərf ifadəsi sonu" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Daha öncə alias tapıldı." #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "An alias was expected." msgid "An alias was expected after AS." msgstr "Alias gözlənilirdi." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Bir simvol adı gözlənilirdi! Dırnaqsız reserv sözlər sütün adı olaraq " "istifadə edilə bilməz." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Simvol adı gözlənilirdi!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Vergül və ya mötərizə gözlənilirdi." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Mötərizə gözlənilirdi." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Tanınmayan verilən tipi." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "İfadə gözlənilməkdə." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Alias gözlənilirdi." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Gözlənilməz nöqtə." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Gözlənilməyən token." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "Unexpected end of CASE expression" msgid "Unexpected end of LOCK expression." msgstr "Gözlənməz Böyük/Kiçik hərf ifadəsi sonu" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Bu seçim %1$s bununla zidiyyət təşkil edir." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Cədvəlin köhnə adı gözlənilirdi." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "\"TO\" açar sözü gözlənilirdi." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Cədvəlin yeni adı gözlənilirdi." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Yenidən adlandırma əməliyyatı gözlənilirdi." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Əksik ifadə." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Gözlənilməyən simvol." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format #| msgid "Event %1$s has been created." msgid "Ending quote %1$s was expected." msgstr "%1$s hadisəsi yaradıldı." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Dəyişən adı gözlənilirdi." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "İfadənin gözlənilməz başlanğıcı." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Tanınmayan ifadə tipi." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Daha öncə tranzaksiya başladılmadı." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Tanınmayan açarsöz." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "İfadənin sonunda açar söz." #: src/Statement.php:555 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected ordering of clauses." msgstr "Cədvəlin başına" #: src/Statements/CreateStatement.php:549 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the entity was expected." msgstr "Açıq olan cədvəl sayı." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Cədvəl adı gözlənilirdi." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Ən az bir sütün açıqlaması gözlənilirdi." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "\"RETURNS\" açarsözü gözlənilirdi." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of LOCK statement." msgstr "İfadənin gözlənilməz başlanğıcı." #: src/Statements/PurgeStatement.php:138 #, fuzzy #| msgid "Unexpected keyword." msgid "Unexpected keyword" msgstr "Gözlənilməyən açar söz." #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the CTE was expected." msgstr "Açıq olan cədvəl sayı." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "A \"RETURNS\" keyword was expected." msgid "AS keyword was expected." msgstr "\"RETURNS\" açarsözü gözlənilirdi." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The number of tables that are open." msgid "Subquery of the CTE was expected." msgstr "Açıq olan cədvəl sayı." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of the WITH CTE." msgstr "İfadənin gözlənilməz başlanğıcı." #, fuzzy #~| msgid "Unexpected end of CASE expression" #~ msgid "Unexpected end of Lock expression." #~ msgstr "Gözlənməz Böyük/Kiçik hərf ifadəsi sonu" #~ msgid "error #1" #~ msgstr "xəta #1" #, fuzzy #~| msgid "Query error" #~ msgid "strict error" #~ msgstr "Sorğu xətası" sql-parser-5.9.0/locale/be/000077500000000000000000000000001455302707200154505ustar00rootroot00000000000000sql-parser-5.9.0/locale/be/LC_MESSAGES/000077500000000000000000000000001455302707200172355ustar00rootroot00000000000000sql-parser-5.9.0/locale/be/LC_MESSAGES/sqlparser.mo000066400000000000000000000134561455302707200216170ustar00rootroot00000000000000/C *!Df*L c; <$ a,( '4Dy&-$''D"l8*" , !< "^        & C _ Ef 9 5 G d ? +,X+"K8nT54Oj8,J 3kA^ @Fa%P-6M8;jJd7 -'.U.//7.+f77+./  $ "&'!-%),#( *+ %1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Belarusian Language: be MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2; X-Generator: Weblate 4.16-dev Чакалася %1$d значэнняў, а знойдзена %2$d.Чакалася ключавое слова «RETURNS».Чакалася закрывальная дужка.Чакалася коска або закрывальная дужка.Знойдзена новае сцвярджэнне, але між ім і папярэднім няма раздзяляльніка.Чакалася аперацыя перайменавання.Чакалася назва сімвала!Чакалася назва сімвала! Зарэзерваваныя ключавыя словы нельга выкарыстоўваць як назву слупка без двукоссяў.Чакалася назва табліцы.Чакаўся псеўданім.Псеўданім быў знайдзены раней.Чакаўся выраз.Чакаўся соступ.Чакаліся адкрывальная дужка і спіс значэнняў.Чакалася адкрывальная дужка.Чакалася азначэнне прынамсі аднаго слупка.Чакалася канцавое двукоссе %1$s.Чакаецца раздзяляльнік.Чакаўся прагал(ы) перад раздзяляльнікам.Чакалаcя ключавое слова «TO».Ключавое слова ў канцы сцвярджэння.Адсутнічае коска перад пачаткам новай аперацыі alter.Адсутнічае выраз.Няма папярэдне запушчанай транзакцыі.Яшчэ не рэалізавана.Патэнцыйны дублікат псеўданіма ў CASE-выразе.Чакалася назва сутнасці.Чакалася новая назва табліцы.Чакалася старая назва табліцы.Гэты параметр канфліктуе з «%1$s».Гэты тып выразу не правільны для мультытаблічных запытаў.Гэты тып выразу быў папярэдне разабраны.Нечаканы пачатак сцвярджэння.Нечаканы сімвал.Нечаканая кропка.Нечаканы канец CASE-выразуНечаканы канец LOCK-выразу.Нечаканае ключавое словаНечаканае ключавое слова.Нечаканы парадак выразаў.Нечаканы знак.Нераспазнаная аперацыя змены.Нераспазнаны тып даных.Нераспазнанае ключавое слова.Нераспазнаны тып сцвярджэння.Чакалася назва зменнай.sql-parser-5.9.0/locale/be/LC_MESSAGES/sqlparser.po000066400000000000000000000252771455302707200216260ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Belarusian \n" "Language: be\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Яшчэ не рэалізавана." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "Знойдзена новае сцвярджэнне, але між ім і папярэднім няма раздзяляльніка." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Адсутнічае коска перад пачаткам новай аперацыі alter." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Нераспазнаная аперацыя змены." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "Чакалася %1$d значэнняў, а знойдзена %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Чакаліся адкрывальная дужка і спіс значэнняў." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Чакалася адкрывальная дужка." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Нечаканае ключавое слова." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Нечаканы канец CASE-выразу" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Патэнцыйны дублікат псеўданіма ў CASE-выразе." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Псеўданім быў знайдзены раней." #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "An alias was expected." msgid "An alias was expected after AS." msgstr "Чакаўся псеўданім." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Чакалася назва сімвала! Зарэзерваваныя ключавыя словы нельга выкарыстоўваць " "як назву слупка без двукоссяў." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Чакалася назва сімвала!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Чакалася коска або закрывальная дужка." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Чакалася закрывальная дужка." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Нераспазнаны тып даных." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Чакаўся выраз." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Чакаўся псеўданім." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Нечаканая кропка." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Нечаканы знак." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Чакаўся соступ." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Нечаканы канец LOCK-выразу." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Гэты параметр канфліктуе з «%1$s»." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Чакалася старая назва табліцы." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Чакалаcя ключавое слова «TO»." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Чакалася новая назва табліцы." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Чакалася аперацыя перайменавання." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Адсутнічае выраз." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Нечаканы сімвал." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Чакаўся прагал(ы) перад раздзяляльнікам." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Чакаецца раздзяляльнік." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Чакалася канцавое двукоссе %1$s." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Чакалася назва зменнай." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Нечаканы пачатак сцвярджэння." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Нераспазнаны тып сцвярджэння." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Няма папярэдне запушчанай транзакцыі." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Гэты тып выразу быў папярэдне разабраны." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Нераспазнанае ключавое слова." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Ключавое слова ў канцы сцвярджэння." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Нечаканы парадак выразаў." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Чакалася назва сутнасці." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Чакалася назва табліцы." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Чакалася азначэнне прынамсі аднаго слупка." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Чакалася ключавое слова «RETURNS»." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Гэты тып выразу не правільны для мультытаблічных запытаў." #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of LOCK statement." msgstr "Нечаканы пачатак сцвярджэння." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Нечаканае ключавое слова" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The name of the entity was expected." msgid "The name of the CTE was expected." msgstr "Чакалася назва сутнасці." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "A \"RETURNS\" keyword was expected." msgid "AS keyword was expected." msgstr "Чакалася ключавое слова «RETURNS»." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The name of the entity was expected." msgid "Subquery of the CTE was expected." msgstr "Чакалася назва сутнасці." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of the WITH CTE." msgstr "Нечаканы пачатак сцвярджэння." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Нечаканы канец LOCK-выразу." #~ msgid "error #1" #~ msgstr "памылка #1" #~ msgid "strict error" #~ msgstr "недапушчальная памылка" sql-parser-5.9.0/locale/be@latin/000077500000000000000000000000001455302707200166005ustar00rootroot00000000000000sql-parser-5.9.0/locale/be@latin/LC_MESSAGES/000077500000000000000000000000001455302707200203655ustar00rootroot00000000000000sql-parser-5.9.0/locale/be@latin/LC_MESSAGES/sqlparser.mo000066400000000000000000000110601455302707200227340ustar00rootroot00000000000000-=*! .*NLy cg< ),Jw( & G$\''"8*-"X{!" - ? ] u    0 ) 9 *Z T (  w   #   4 E.f$.$**U*i !& >2+q#&Ee""!+*)"'# %  &- ! $ ,(%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing expression.No transaction was previously started.Not implemented yet.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Belarusian (latin) Language: be@latin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2; X-Generator: Weblate 4.16-dev Čakalasia %1$d značenniaŭ, a znojdziena %2$d.Čakalasia kliučavoje slova «RETURNS».Čakalasia zakryvaĺnaja dužka.Čakalasia koska abo zakryvaĺnaja dužka.Znojdziena novaje scviardžennie, alie miž im i papiarednim niama razdzialiaĺnika.Čakalasia apieracyja pierajmienavannia.Čakalasia nazva simvala!Čakalasia nazva simvala! Zareziervavanyja kliučavyja slovy nieĺha vykarystoŭvać jak nazvu slupka biez dvukossiaŭ.Čakalasia nazva tablicy.Čakaŭsia psieŭdanim.Psieŭdanim byŭ znajdzieny raniej.Čakaŭsia vyraz.Čakaŭsia sostup.Čakalisia adkryvaĺnaja dužka i spis značenniaŭ.Čakalasia adkryvaĺnaja dužka.Čakalasia aznačennie prynamsi adnaho slupka.Čakalasia kancavoje dvukossie %1$s.Čakajecca razdzialiaĺnik.Čakaŭsia prahal(y) pierad razdzialiaĺnikam.Čakalacja kliučavoje slova «TO».Kliučavoje slova ŭ kancy scviardžennia.Adsutničaje vyraz.Niama papiarednie zapuščanaj tranzakcyi.Jašče nie realizavana.Čakalasia nazva sutnasci.Čakalasia novaja nazva tablicy.Čakalasia staraja nazva tablicy.Hety paramietr kanfliktuje z «%1$s».Hety typ vyrazu nie praviĺny dlia muĺtytabličnych zapytaŭ.Hety typ vyrazu byŭ papiarednie razabrany.Niečakany pačatak scviardžennia.Niečakany simval.Niečakanaja kropka.Niečakany kaniec CASE-vyrazuNiečakany kaniec LOCK-vyrazu.Niečakanaje kliučavoje slovaNiečakanaje kliučavoje slova.Niečakany paradak vyrazaŭ.Niečakany znak.Nieraspaznanaja apieracyja zmieny.Nieraspaznany typ danych.Nieraspaznanaje kliučavoje slova.Nieraspaznany typ scviardžennia.Čakalasia nazva zmiennaj.sql-parser-5.9.0/locale/be@latin/LC_MESSAGES/sqlparser.po000066400000000000000000000230431455302707200227430ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Belarusian (latin) \n" "Language: be@latin\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Jašče nie realizavana." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "Znojdziena novaje scviardžennie, alie miž im i papiarednim niama " "razdzialiaĺnika." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Nieraspaznanaja apieracyja zmieny." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "Čakalasia %1$d značenniaŭ, a znojdziena %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Čakalisia adkryvaĺnaja dužka i spis značenniaŭ." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Čakalasia adkryvaĺnaja dužka." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Niečakanaje kliučavoje slova." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Niečakany kaniec CASE-vyrazu" #: src/Components/CaseExpression.php:212 #, fuzzy #| msgid "Unexpected end of CASE expression" msgid "Potential duplicate alias of CASE expression." msgstr "Niečakany kaniec CASE-vyrazu" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Psieŭdanim byŭ znajdzieny raniej." #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "An alias was expected." msgid "An alias was expected after AS." msgstr "Čakaŭsia psieŭdanim." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Čakalasia nazva simvala! Zareziervavanyja kliučavyja slovy nieĺha " "vykarystoŭvać jak nazvu slupka biez dvukossiaŭ." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Čakalasia nazva simvala!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Čakalasia koska abo zakryvaĺnaja dužka." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Čakalasia zakryvaĺnaja dužka." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Nieraspaznany typ danych." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Čakaŭsia vyraz." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Čakaŭsia psieŭdanim." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Niečakanaja kropka." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Niečakany znak." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Čakaŭsia sostup." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Niečakany kaniec LOCK-vyrazu." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Hety paramietr kanfliktuje z «%1$s»." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Čakalasia staraja nazva tablicy." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Čakalacja kliučavoje slova «TO»." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Čakalasia novaja nazva tablicy." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Čakalasia apieracyja pierajmienavannia." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Adsutničaje vyraz." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Niečakany simval." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Čakaŭsia prahal(y) pierad razdzialiaĺnikam." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Čakajecca razdzialiaĺnik." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Čakalasia kancavoje dvukossie %1$s." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Čakalasia nazva zmiennaj." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Niečakany pačatak scviardžennia." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Nieraspaznany typ scviardžennia." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Niama papiarednie zapuščanaj tranzakcyi." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Hety typ vyrazu byŭ papiarednie razabrany." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Nieraspaznanaje kliučavoje slova." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Kliučavoje slova ŭ kancy scviardžennia." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Niečakany paradak vyrazaŭ." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Čakalasia nazva sutnasci." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Čakalasia nazva tablicy." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Čakalasia aznačennie prynamsi adnaho slupka." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Čakalasia kliučavoje slova «RETURNS»." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Hety typ vyrazu nie praviĺny dlia muĺtytabličnych zapytaŭ." #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of LOCK statement." msgstr "Niečakany pačatak scviardžennia." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Niečakanaje kliučavoje slova" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The name of the entity was expected." msgid "The name of the CTE was expected." msgstr "Čakalasia nazva sutnasci." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "A \"RETURNS\" keyword was expected." msgid "AS keyword was expected." msgstr "Čakalasia kliučavoje slova «RETURNS»." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The name of the entity was expected." msgid "Subquery of the CTE was expected." msgstr "Čakalasia nazva sutnasci." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of the WITH CTE." msgstr "Niečakany pačatak scviardžennia." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Niečakany kaniec LOCK-vyrazu." #~ msgid "error #1" #~ msgstr "pamylka #1" #~ msgid "strict error" #~ msgstr "niedapuščaĺnaja pamylka" sql-parser-5.9.0/locale/bg/000077500000000000000000000000001455302707200154525ustar00rootroot00000000000000sql-parser-5.9.0/locale/bg/LC_MESSAGES/000077500000000000000000000000001455302707200172375ustar00rootroot00000000000000sql-parser-5.9.0/locale/bg/LC_MESSAGES/sqlparser.mo000066400000000000000000000053401455302707200216120ustar00rootroot00000000000000,**L,cH#< L4m-!9WJG+FB5W7h.. [] ' ^ 2@ -s >     %1$d values were expected, but found %2$d.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.An alias expected after AS but got An alias was expected after AS.An alias was previously found.An opening bracket followed by a set of values was expected.An opening bracket was expected.Missing comma before start of a new alter operation.Not implemented yet.Potential duplicate alias of CASE expression.Unexpected end of CASE expressionUnexpected keyword.Unrecognized alter operation.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2020-10-14 10:02+0000 Last-Translator: Пламен Language-Team: Bulgarian Language: bg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 4.3-dev %1$d стойности бяха очаквани, но бяха намерени %2$d.Очакваше се запетая или затваряща скоба.Беше открито ново изявление, но не и разграничител между него и предишния.Очаква се име на символ!Очакваше се име на символ! Запазената ключова дума не може да се използва като име на колона без обратни кавички.Псевдоним, очакван след AS, но получи Псевдоним се очакваше след AS.Преди това е открит псевдоним.Очаква се отваряща скоба последвана от списък стойности.Очаква се отваряща скоба.Липсва запетая пред началото на нова операция alter.Все още не е внедрена.Потенциален дублиращ се псевдоним на изявата на CASE.Неочакван край на израза CASEНеочаквана ключова дума.Неизвестна промяна на операцията.sql-parser-5.9.0/locale/bg/LC_MESSAGES/sqlparser.po000066400000000000000000000252331455302707200216200ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2020-10-14 10:02+0000\n" "Last-Translator: Пламен \n" "Language-Team: Bulgarian \n" "Language: bg\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.3-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Все още не е внедрена." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "Беше открито ново изявление, но не и разграничител между него и предишния." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Липсва запетая пред началото на нова операция alter." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Неизвестна промяна на операцията." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "%1$d стойности бяха очаквани, но бяха намерени %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Очаква се отваряща скоба последвана от списък стойности." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Очаква се отваряща скоба." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Неочаквана ключова дума." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Неочакван край на израза CASE" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Потенциален дублиращ се псевдоним на изявата на CASE." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "Псевдоним, очакван след AS, но получи " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Преди това е открит псевдоним." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "Псевдоним се очакваше след AS." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Очакваше се име на символ! Запазената ключова дума не може да се използва " "като име на колона без обратни кавички." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Очаква се име на символ!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Очакваше се запетая или затваряща скоба." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "No rows selected" msgid "An expression was expected." msgstr "Няма върнати редове" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "No tables selected." msgid "An alias was expected." msgstr "Няма избрани таблици." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 #, fuzzy #| msgid "Unexpected characters on line %s." msgid "Unexpected token." msgstr "Неочаквани знаци на ред %s." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK expression." msgstr "В началото на таблицата" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 #, fuzzy #| msgid "The number of tables that are open." msgid "The old name of the table was expected." msgstr "Броят отворени таблици." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 #, fuzzy #| msgid "The number of tables that are open." msgid "The new name of the table was expected." msgstr "Броят отворени таблици." #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "Редът беше изтрит" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "като регулярен израз" #: src/Lexer.php:274 #, fuzzy #| msgid "Unexpected characters on line %s." msgid "Unexpected character." msgstr "Неочаквани знаци на ред %s." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format #| msgid "Event %1$s has been created." msgid "Ending quote %1$s was expected." msgstr "Събитието %1$s беше създадено." #: src/Lexer.php:1056 #, fuzzy #| msgid "Table name template" msgid "Variable name was expected." msgstr "Шаблон за име на таблица" #: src/Parser.php:456 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected beginning of statement." msgstr "В началото на таблицата" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "At Beginning of Table" msgid "Keyword at end of statement." msgstr "В началото на таблицата" #: src/Statement.php:555 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected ordering of clauses." msgstr "В началото на таблицата" #: src/Statements/CreateStatement.php:549 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the entity was expected." msgstr "Броят отворени таблици." #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Table name template" msgid "A table name was expected." msgstr "Шаблон за име на таблица" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "Редът беше изтрит" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK statement." msgstr "В началото на таблицата" #: src/Statements/PurgeStatement.php:138 #, fuzzy #| msgid "Unexpected characters on line %s." msgid "Unexpected keyword" msgstr "Неочаквани знаци на ред %s." #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the CTE was expected." msgstr "Броят отворени таблици." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No rows selected" msgid "AS keyword was expected." msgstr "Няма върнати редове" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The number of tables that are open." msgid "Subquery of the CTE was expected." msgstr "Броят отворени таблици." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of the WITH CTE." msgstr "В началото на таблицата" #, fuzzy #~| msgid "At Beginning of Table" #~ msgid "Unexpected end of Lock expression." #~ msgstr "В началото на таблицата" #, fuzzy #~| msgid "errors." #~ msgid "error #1" #~ msgstr "грешки." #, fuzzy #~| msgid "Gather errors" #~ msgid "strict error" #~ msgstr "Събиране на грешки" sql-parser-5.9.0/locale/bn/000077500000000000000000000000001455302707200154615ustar00rootroot00000000000000sql-parser-5.9.0/locale/bn/LC_MESSAGES/000077500000000000000000000000001455302707200172465ustar00rootroot00000000000000sql-parser-5.9.0/locale/bn/LC_MESSAGES/sqlparser.mo000066400000000000000000000021421455302707200216160ustar00rootroot00000000000000<\pLq4A A new statement was found, but no delimiter between it and the previous one.Missing comma before start of a new alter operation.Not implemented yet.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2021-03-02 18:02+0000 Last-Translator: Nokib Sarkar Language-Team: Bengali Language: bn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); X-Generator: Weblate 4.5 একটি নতুন বিবৃতি পাওয়া গেছে, তবে এটি এবং পূর্ববর্তীটির মধ্যে কোনও বিভাজক নেই।নতুন অল্টার অপারেশন শুরুর আগে কমা খুঁজে পাওয়া যায় নি।এখনো বাস্তবায়িত হয়নি।sql-parser-5.9.0/locale/bn/LC_MESSAGES/sqlparser.po000066400000000000000000000250631455302707200216300ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2021-03-02 18:02+0000\n" "Last-Translator: Nokib Sarkar \n" "Language-Team: Bengali \n" "Language: bn\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Weblate 4.5\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "এখনো বাস্তবায়িত হয়নি।" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "একটি নতুন বিবৃতি পাওয়া গেছে, তবে এটি এবং পূর্ববর্তীটির মধ্যে কোনও বিভাজক নেই।" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "নতুন অল্টার অপারেশন শুরুর আগে কমা খুঁজে পাওয়া যায় নি।" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 #, fuzzy #| msgid "Unexpected characters on line %s." msgid "Unexpected keyword." msgstr "%s লাইনে অপ্রত্যাশিত চিহ্ন।" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected after AS." msgstr "ডাটাবেইজ নিবার্চন করা হয়নি।" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "Table name template" msgid "A symbol name was expected!" msgstr "টেবলের নামের নকশা" #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "No databases selected." msgid "A comma or a closing bracket was expected." msgstr "ডাটাবেইজ নিবার্চন করা হয়নি।" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "No rows selected" msgid "An expression was expected." msgstr "কোন রো নির্বাচন করা হয় নাই" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected." msgstr "ডাটাবেইজ নিবার্চন করা হয়নি।" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 #, fuzzy #| msgid "Unexpected characters on line %s." msgid "Unexpected token." msgstr "%s লাইনে অপ্রত্যাশিত চিহ্ন।" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK expression." msgstr "টেবিলের শুরুতে" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 #, fuzzy #| msgid "The number of tables that are open." msgid "The old name of the table was expected." msgstr "খোলা টেবিলের সংখ্যা।" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 #, fuzzy #| msgid "The number of tables that are open." msgid "The new name of the table was expected." msgstr "খোলা টেবিলের সংখ্যা।" #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "রো টি মুছা হয়েছে।" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "রেগুলার এক্সপ্রেশনের মত" #: src/Lexer.php:274 #, fuzzy #| msgid "Unexpected characters on line %s." msgid "Unexpected character." msgstr "%s লাইনে অপ্রত্যাশিত চিহ্ন।" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format #| msgid "Event %1$s has been created." msgid "Ending quote %1$s was expected." msgstr "ইভেন্ট %1$s তৈরী হয়েছে।" #: src/Lexer.php:1056 #, fuzzy #| msgid "Table name template" msgid "Variable name was expected." msgstr "টেবলের নামের নকশা" #: src/Parser.php:456 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected beginning of statement." msgstr "টেবিলের শুরুতে" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "At Beginning of Table" msgid "Keyword at end of statement." msgstr "টেবিলের শুরুতে" #: src/Statement.php:555 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected ordering of clauses." msgstr "টেবিলের শুরুতে" #: src/Statements/CreateStatement.php:549 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the entity was expected." msgstr "খোলা টেবিলের সংখ্যা।" #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Table name template" msgid "A table name was expected." msgstr "টেবলের নামের নকশা" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "রো টি মুছা হয়েছে।" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK statement." msgstr "টেবিলের শুরুতে" #: src/Statements/PurgeStatement.php:138 #, fuzzy #| msgid "Unexpected characters on line %s." msgid "Unexpected keyword" msgstr "%s লাইনে অপ্রত্যাশিত চিহ্ন।" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the CTE was expected." msgstr "খোলা টেবিলের সংখ্যা।" #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No rows selected" msgid "AS keyword was expected." msgstr "কোন রো নির্বাচন করা হয় নাই" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The number of tables that are open." msgid "Subquery of the CTE was expected." msgstr "খোলা টেবিলের সংখ্যা।" #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of the WITH CTE." msgstr "টেবিলের শুরুতে" #, fuzzy #~| msgid "At Beginning of Table" #~ msgid "Unexpected end of Lock expression." #~ msgstr "টেবিলের শুরুতে" #, fuzzy #~| msgid "errors." #~ msgid "error #1" #~ msgstr "ভুলসমূহ" #, fuzzy #~| msgid "Gather errors" #~ msgid "strict error" #~ msgstr "ভুলসমূহ জড়ো" sql-parser-5.9.0/locale/br/000077500000000000000000000000001455302707200154655ustar00rootroot00000000000000sql-parser-5.9.0/locale/br/LC_MESSAGES/000077500000000000000000000000001455302707200172525ustar00rootroot00000000000000sql-parser-5.9.0/locale/br/LC_MESSAGES/sqlparser.mo000066400000000000000000000007451455302707200216310ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2014-03-28 11:07+0200 Last-Translator: Michal Čihař Language-Team: Breton Language: br MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n > 1; X-Generator: Weblate 1.9-dev sql-parser-5.9.0/locale/br/LC_MESSAGES/sqlparser.po000066400000000000000000000216621455302707200216350ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2011 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2014-03-28 11:07+0200\n" "Last-Translator: Michal Čihař \n" "Language-Team: Breton \n" "Language: br\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n > 1;\n" "X-Generator: Weblate 1.9-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "No rows selected" msgid "An alias was expected after AS." msgstr "N'eus bet diuzet linenn ebet" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "Table name template" msgid "A symbol name was expected!" msgstr "Patrom anv taolenn" #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "No rows selected" msgid "A comma or a closing bracket was expected." msgstr "N'eus bet diuzet linenn ebet" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "No rows selected" msgid "An expression was expected." msgstr "N'eus bet diuzet linenn ebet" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "No rows selected" msgid "An alias was expected." msgstr "N'eus bet diuzet linenn ebet" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "Number of inserted rows" msgid "Unexpected end of LOCK expression." msgstr "Niver a linennoù da ensoc'hañ" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The bookmark has been deleted." msgid "A rename operation was expected." msgstr "Diverket eo bet ar sined." #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "evel un droienn reoliek" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format #| msgid "Routine %1$s has been created." msgid "Ending quote %1$s was expected." msgstr "Krouet eo bet an argerzh %1s." #: src/Lexer.php:1056 #, fuzzy #| msgid "Table name template" msgid "Variable name was expected." msgstr "Patrom anv taolenn" #: src/Parser.php:456 #, fuzzy #| msgid "Number of inserted rows" msgid "Unexpected beginning of statement." msgstr "Niver a linennoù da ensoc'hañ" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "Number of inserted rows" msgid "Keyword at end of statement." msgstr "Niver a linennoù da ensoc'hañ" #: src/Statement.php:555 #, fuzzy #| msgid "Number of inserted rows" msgid "Unexpected ordering of clauses." msgstr "Niver a linennoù da ensoc'hañ" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Table name template" msgid "A table name was expected." msgstr "Patrom anv taolenn" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The bookmark has been deleted." msgid "At least one column definition was expected." msgstr "Diverket eo bet ar sined." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Number of inserted rows" msgid "Unexpected end of LOCK statement." msgstr "Niver a linennoù da ensoc'hañ" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "Table name template" msgid "The name of the CTE was expected." msgstr "Patrom anv taolenn" #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No rows selected" msgid "AS keyword was expected." msgstr "N'eus bet diuzet linenn ebet" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "Routine %1$s has been created." msgid "Subquery of the CTE was expected." msgstr "Krouet eo bet an argerzh %1s." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Number of inserted rows" msgid "Unexpected end of the WITH CTE." msgstr "Niver a linennoù da ensoc'hañ" #, fuzzy #~| msgid "Number of inserted rows" #~ msgid "Unexpected end of Lock expression." #~ msgstr "Niver a linennoù da ensoc'hañ" #, fuzzy #~| msgid "Error" #~ msgid "error #1" #~ msgstr "Fazi" #, fuzzy #~| msgid "Gather errors" #~ msgid "strict error" #~ msgstr "Dastum ar fazioù" sql-parser-5.9.0/locale/brx/000077500000000000000000000000001455302707200156555ustar00rootroot00000000000000sql-parser-5.9.0/locale/brx/LC_MESSAGES/000077500000000000000000000000001455302707200174425ustar00rootroot00000000000000sql-parser-5.9.0/locale/brx/LC_MESSAGES/sqlparser.mo000066400000000000000000000007501455302707200220150ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2015-09-04 09:33+0200 Last-Translator: Michal Čihař Language-Team: Bodo Language: brx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); X-Generator: Weblate 2.4-dev sql-parser-5.9.0/locale/brx/LC_MESSAGES/sqlparser.po000066400000000000000000000164471455302707200220320ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2015 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # Automatically generated, 2015. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2015-09-04 09:33+0200\n" "Last-Translator: Michal Čihař \n" "Language-Team: Bodo \n" "Language: brx\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Weblate 2.4-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "" #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "" #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "" #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "" #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "" #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "" #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "" #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "" sql-parser-5.9.0/locale/bs/000077500000000000000000000000001455302707200154665ustar00rootroot00000000000000sql-parser-5.9.0/locale/bs/LC_MESSAGES/000077500000000000000000000000001455302707200172535ustar00rootroot00000000000000sql-parser-5.9.0/locale/bs/LC_MESSAGES/sqlparser.mo000066400000000000000000000010611455302707200216220ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2015-10-15 11:31+0200 Last-Translator: Michal Čihař Language-Team: Bosnian Language: bs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2; X-Generator: Weblate 2.5-dev sql-parser-5.9.0/locale/bs/LC_MESSAGES/sqlparser.po000066400000000000000000000207771455302707200216440ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2015-10-15 11:31+0200\n" "Last-Translator: Michal Čihař \n" "Language-Team: Bosnian \n" "Language: bs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Generator: Weblate 2.5-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected after AS." msgstr "Nije izabrana ni jedna baza." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy msgid "A symbol name was expected!" msgstr "Šablon imena datoteke" #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "No databases selected." msgid "A comma or a closing bracket was expected." msgstr "Nije izabrana ni jedna baza." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "No databases selected." msgid "An expression was expected." msgstr "Nije izabrana ni jedna baza." #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected." msgstr "Nije izabrana ni jedna baza." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK expression." msgstr "Na početku tabele" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "Red je obrisan" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "kao regularni izraz" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format msgid "Ending quote %1$s was expected." msgstr "Tabela %s je odbačena" #: src/Lexer.php:1056 #, fuzzy msgid "Variable name was expected." msgstr "Šablon imena datoteke" #: src/Parser.php:456 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected beginning of statement." msgstr "Na početku tabele" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "At Beginning of Table" msgid "Keyword at end of statement." msgstr "Na početku tabele" #: src/Statement.php:555 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected ordering of clauses." msgstr "Na početku tabele" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy msgid "A table name was expected." msgstr "Šablon imena datoteke" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "Red je obrisan" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK statement." msgstr "Na početku tabele" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy msgid "The name of the CTE was expected." msgstr "Šablon imena datoteke" #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No databases selected." msgid "AS keyword was expected." msgstr "Nije izabrana ni jedna baza." #: src/Statements/WithStatement.php:149 #, fuzzy msgid "Subquery of the CTE was expected." msgstr "Tabela %s je odbačena" #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of the WITH CTE." msgstr "Na početku tabele" #, fuzzy #~| msgid "At Beginning of Table" #~ msgid "Unexpected end of Lock expression." #~ msgstr "Na početku tabele" #, fuzzy #~| msgid "Error" #~ msgid "error #1" #~ msgstr "Greška" #, fuzzy #~| msgid "Query type" #~ msgid "strict error" #~ msgstr "Vrsta upita" sql-parser-5.9.0/locale/ca/000077500000000000000000000000001455302707200154455ustar00rootroot00000000000000sql-parser-5.9.0/locale/ca/LC_MESSAGES/000077500000000000000000000000001455302707200172325ustar00rootroot00000000000000sql-parser-5.9.0/locale/ca/LC_MESSAGES/sqlparser.mo000066400000000000000000000111131455302707200216000ustar00rootroot00000000000000-=*! .*NLy cg< ),Jw( & G$\''"8*-"X{!" - ? ] u    1~ & & 1 [0 )   T p #   D $'0L(}2 '=-T"$-H/6x&!"AZt(! ,+*)"'# %  &- ! $ ,(%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing expression.No transaction was previously started.Not implemented yet.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Catalan Language: ca MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 4.16-dev S'esperaven %1$d valors, però s'han trobat %2$d.S'esperava una paraula clau "RETURNS".S'esperava un claudàtor de tancament.S'esperava una coma o un claudàtor de tancament.S'ha trobat una sentència nova, però no hi ha cap delimitador entre aquesta i l'anterior.S'esperava una operació de canvi de nom.S'esperava un nom de símbol!S'esperava un nom de símbol! No es pot utilitzar una paraula clau reservada com a nom de columna sense les cometes invertides.S'esperava un nom de taula.S'esperava un àlies.S'ha trobat un àlies anteriorment.S'esperava una expressió.S'esperava un desplaçament.S'esperava un claudàtor d'obertura seguit per un conjunt de valors.S'esperava un claudàtor d'obertura.S'esperava al menys la definició d'una columna.S'esperava una cometa de tancament %1$s.S'esperava un delimitador.S'esperaven espais en blanc abans del delimitador.S'esperava la paraula clau "TO".Paraula clau al final de la sentència.Expressió no trobada.No s'ha iniciat cap transacció anteriorment.Encara no implementat.S'esperava el nom de l'entitat.S'esperava el nom nou de la taula.S'esperava el nom antic de la taula.Aquesta opció està en conflicte amb "%1$s".Aquest tipus de clàusula no és vàlid en consultes de diverses taules.Aquest tipus de clàusula s'ha analitzat anteriorment.Començament no esperat de sentència.Caràcter no esperat.Punt inesperat.Final inesperat d'expressió CASEFinal inesperat d'expressió LOCK.Paraula clau no esperadaParaula clau no esperada.Ordre de condicions no esperat.Testimoni no esperat.Operació de modificació no reconeguda.Tipus de dades desconegut.Paraula clau no reconeguda.Tipus de sentència no reconegut.S'esperava un nom de variable.sql-parser-5.9.0/locale/ca/LC_MESSAGES/sqlparser.po000066400000000000000000000231521455302707200216110ustar00rootroot00000000000000# Automatically generated <>, 2010. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Catalan \n" "Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Encara no implementat." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "S'ha trobat una sentència nova, però no hi ha cap delimitador entre aquesta " "i l'anterior." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Operació de modificació no reconeguda." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "S'esperaven %1$d valors, però s'han trobat %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "S'esperava un claudàtor d'obertura seguit per un conjunt de valors." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "S'esperava un claudàtor d'obertura." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Paraula clau no esperada." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Final inesperat d'expressió CASE" #: src/Components/CaseExpression.php:212 #, fuzzy #| msgid "Unexpected end of CASE expression" msgid "Potential duplicate alias of CASE expression." msgstr "Final inesperat d'expressió CASE" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "S'ha trobat un àlies anteriorment." #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "An alias was expected." msgid "An alias was expected after AS." msgstr "S'esperava un àlies." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "S'esperava un nom de símbol! No es pot utilitzar una paraula clau reservada " "com a nom de columna sense les cometes invertides." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "S'esperava un nom de símbol!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "S'esperava una coma o un claudàtor de tancament." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "S'esperava un claudàtor de tancament." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Tipus de dades desconegut." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "S'esperava una expressió." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "S'esperava un àlies." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Punt inesperat." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Testimoni no esperat." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "S'esperava un desplaçament." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Final inesperat d'expressió LOCK." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Aquesta opció està en conflicte amb \"%1$s\"." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "S'esperava el nom antic de la taula." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "S'esperava la paraula clau \"TO\"." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "S'esperava el nom nou de la taula." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "S'esperava una operació de canvi de nom." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Expressió no trobada." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Caràcter no esperat." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "S'esperaven espais en blanc abans del delimitador." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "S'esperava un delimitador." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "S'esperava una cometa de tancament %1$s." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "S'esperava un nom de variable." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Començament no esperat de sentència." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Tipus de sentència no reconegut." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "No s'ha iniciat cap transacció anteriorment." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Aquest tipus de clàusula s'ha analitzat anteriorment." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Paraula clau no reconeguda." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Paraula clau al final de la sentència." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Ordre de condicions no esperat." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "S'esperava el nom de l'entitat." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "S'esperava un nom de taula." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "S'esperava al menys la definició d'una columna." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "S'esperava una paraula clau \"RETURNS\"." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Aquest tipus de clàusula no és vàlid en consultes de diverses taules." #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of LOCK statement." msgstr "Començament no esperat de sentència." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Paraula clau no esperada" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The name of the entity was expected." msgid "The name of the CTE was expected." msgstr "S'esperava el nom de l'entitat." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "A \"RETURNS\" keyword was expected." msgid "AS keyword was expected." msgstr "S'esperava una paraula clau \"RETURNS\"." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The name of the entity was expected." msgid "Subquery of the CTE was expected." msgstr "S'esperava el nom de l'entitat." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of the WITH CTE." msgstr "Començament no esperat de sentència." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Final inesperat d'expressió LOCK." #~ msgid "error #1" #~ msgstr "error #1" #~ msgid "strict error" #~ msgstr "Error estricte" sql-parser-5.9.0/locale/ckb/000077500000000000000000000000001455302707200156215ustar00rootroot00000000000000sql-parser-5.9.0/locale/ckb/LC_MESSAGES/000077500000000000000000000000001455302707200174065ustar00rootroot00000000000000sql-parser-5.9.0/locale/ckb/LC_MESSAGES/sqlparser.mo000066400000000000000000000007541455302707200217650ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2015-11-20 15:47+0000 Last-Translator: Dana Akram Language-Team: Kurdish Sorani Language: ckb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 2.5-dev sql-parser-5.9.0/locale/ckb/LC_MESSAGES/sqlparser.po000066400000000000000000000214731455302707200217710ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2012 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # Automatically generated, 2012. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2015-11-20 15:47+0000\n" "Last-Translator: Dana Akram \n" "Language-Team: Kurdish Sorani \n" "Language: ckb\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 2.5-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "No tables selected." msgid "An alias was expected after AS." msgstr "هیچ خشتەیەک هەڵنەبژێردراوە." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "No tables selected." msgid "A symbol name was expected!" msgstr "هیچ خشتەیەک هەڵنەبژێردراوە." #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "No tables selected." msgid "A comma or a closing bracket was expected." msgstr "هیچ خشتەیەک هەڵنەبژێردراوە." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "No rows selected" msgid "An expression was expected." msgstr "هیچ ڕیزێک هەڵنەبژێراوە" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "No tables selected." msgid "An alias was expected." msgstr "هیچ خشتەیەک هەڵنەبژێردراوە." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "Number of rows" msgid "Unexpected end of LOCK expression." msgstr "ژمارەی ڕیزەکان" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "ڕیزەکە سڕایەوە" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "Versions" msgid "Missing expression." msgstr "وەشانەکان" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 #, fuzzy #| msgid "Number of rows" msgid "Unexpected beginning of statement." msgstr "ژمارەی ڕیزەکان" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "Number of rows" msgid "Keyword at end of statement." msgstr "ژمارەی ڕیزەکان" #: src/Statement.php:555 #, fuzzy #| msgid "Number of rows" msgid "Unexpected ordering of clauses." msgstr "ژمارەی ڕیزەکان" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "No tables selected." msgid "A table name was expected." msgstr "هیچ خشتەیەک هەڵنەبژێردراوە." #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "ڕیزەکە سڕایەوە" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Number of rows" msgid "Unexpected end of LOCK statement." msgstr "ژمارەی ڕیزەکان" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "No tables selected." msgid "The name of the CTE was expected." msgstr "هیچ خشتەیەک هەڵنەبژێردراوە." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No rows selected" msgid "AS keyword was expected." msgstr "هیچ ڕیزێک هەڵنەبژێراوە" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "No tables selected." msgid "Subquery of the CTE was expected." msgstr "هیچ خشتەیەک هەڵنەبژێردراوە." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Number of rows" msgid "Unexpected end of the WITH CTE." msgstr "ژمارەی ڕیزەکان" #, fuzzy #~| msgid "Number of rows" #~ msgid "Unexpected end of Lock expression." #~ msgstr "ژمارەی ڕیزەکان" #, fuzzy #~| msgid "Error" #~ msgid "error #1" #~ msgstr "هەڵە" sql-parser-5.9.0/locale/cs/000077500000000000000000000000001455302707200154675ustar00rootroot00000000000000sql-parser-5.9.0/locale/cs/LC_MESSAGES/000077500000000000000000000000001455302707200172545ustar00rootroot00000000000000sql-parser-5.9.0/locale/cs/LC_MESSAGES/sqlparser.mo000066400000000000000000000126251455302707200216330ustar00rootroot000000000000006I|*!*L9 c'B#[<  F,g( 4)^&r-!!$ 'E 'm " 8 * " ? U !e " !     3 E c {    9 - $ 1 CR*y[&{B/,?W?o$2)1-N(|"5$ 2'P#x%&$>B-!!""Be "7W"r,)'  .%53 0*2 $ (-&4+1!/#6"%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.AS keyword was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.Subquery of the CTE was expected.The name of the CTE was expected.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected end of the WITH CTE.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2022-10-25 08:02+0000 Last-Translator: mixeros Language-Team: Czech Language: cs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2; X-Generator: Weblate 4.14.2-dev Byly nalezeny %2$d hodnoty, namísto očekávaných %1$d.Bylo očekáváno klíčové slovo "RETURNS".Byla očekávána koncová závorka.Byla očekávána čárka nebo koncová závorka.Byl nalezen nový výraz bez oddělovače od předchozího výrazu.Byla očekávána operace přejmenování.Byl očekáván název symbolu!Byl očekáván název symbolu! Vyhrazené klíčové slovo nelze použít jako název sloupce bez zpětných apostrofů.Byl očekáván název tabulky.Bylo očekáváno klíčové slovo AS.Za klíčovým slovem AS byl očekáván alias, ale bylo nalezeno Za klíčovým slovem AS byl očekáván alias.Byl očekáván alias.Byl nalezen alias.Byl očekáván výraz.Byl očekáván offset.Byla očekávána úvodní závorka následovaná sadou hodnot.Byla očekávána úvodní závorka.Byla očekávána alespoň jedna definice sloupce.Byly očekávány koncové uvozovky %1$s.Byl očekáván oddělovač.Před oddělovačem byla očekávána mezera.Bylo očekáváno klíčové slovo "TO".Klíčové slovo na konci výrazu.Chybí čárka před začátkem nové operace změny.Chybí výraz.Nebyla zahájena žádná transakce.Zatím není implementováno.Možný duplicitní alias CASE výrazu.Byl očekáván dílčí dotaz CTE.Byl očekáván název CTE.Byl očekáván název entity.Byl očekáván nový název tabulky.Byl očekáván starý název tabulky.Tato volba koliduje s "%1$s".Tento typ klauzule je ve vícetabulkových dotazech neplatný.Pro tento typ klauzule proběhlo parsování.Neočekávaný začátek výrazu.Neočekávaný znak.Neočekávaná tečka.Neočekávaný konec CASE výrazuNeočekávaný konec LOCK výrazu.Neočekávaný konec LOCK výrazu.Neočekávaný konec WITH CTE.Neočekávané klíčové slovoNeočekávané klíčové slovo.Neočekávané pořadí klauzulí.Neočekávaný token.Nerozpoznaná operace změny.Nerozpoznaný datový typ.Nerozpoznané klíčové slovo.Nerozpoznaný typ výrazu.Byl očekáván název proměnné.sql-parser-5.9.0/locale/cs/LC_MESSAGES/sqlparser.po000066400000000000000000000225671455302707200216440ustar00rootroot00000000000000# # Michal Čihař , 2010, 2011, 2012. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2022-10-25 08:02+0000\n" "Last-Translator: mixeros \n" "Language-Team: Czech \n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" "X-Generator: Weblate 4.14.2-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Zatím není implementováno." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "Byl nalezen nový výraz bez oddělovače od předchozího výrazu." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Chybí čárka před začátkem nové operace změny." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Nerozpoznaná operace změny." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "Byly nalezeny %2$d hodnoty, namísto očekávaných %1$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Byla očekávána úvodní závorka následovaná sadou hodnot." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Byla očekávána úvodní závorka." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Neočekávané klíčové slovo." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Neočekávaný konec CASE výrazu" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Možný duplicitní alias CASE výrazu." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "Za klíčovým slovem AS byl očekáván alias, ale bylo nalezeno " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Byl nalezen alias." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "Za klíčovým slovem AS byl očekáván alias." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Byl očekáván název symbolu! Vyhrazené klíčové slovo nelze použít jako název " "sloupce bez zpětných apostrofů." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Byl očekáván název symbolu!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Byla očekávána čárka nebo koncová závorka." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Byla očekávána koncová závorka." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Nerozpoznaný datový typ." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Byl očekáván výraz." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Byl očekáván alias." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Neočekávaná tečka." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Neočekávaný token." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Byl očekáván offset." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Neočekávaný konec LOCK výrazu." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Tato volba koliduje s \"%1$s\"." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Byl očekáván starý název tabulky." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Bylo očekáváno klíčové slovo \"TO\"." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Byl očekáván nový název tabulky." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Byla očekávána operace přejmenování." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Chybí výraz." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Neočekávaný znak." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Před oddělovačem byla očekávána mezera." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Byl očekáván oddělovač." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Byly očekávány koncové uvozovky %1$s." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Byl očekáván název proměnné." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Neočekávaný začátek výrazu." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Nerozpoznaný typ výrazu." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Nebyla zahájena žádná transakce." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Pro tento typ klauzule proběhlo parsování." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Nerozpoznané klíčové slovo." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Klíčové slovo na konci výrazu." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Neočekávané pořadí klauzulí." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Byl očekáván název entity." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Byl očekáván název tabulky." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Byla očekávána alespoň jedna definice sloupce." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Bylo očekáváno klíčové slovo \"RETURNS\"." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Tento typ klauzule je ve vícetabulkových dotazech neplatný." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Neočekávaný konec LOCK výrazu." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Neočekávané klíčové slovo" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "Byl očekáván název CTE." #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "Bylo očekáváno klíčové slovo AS." #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "Byl očekáván dílčí dotaz CTE." #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "Neočekávaný konec WITH CTE." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Neočekávaný konec LOCK výrazu." #~ msgid "error #1" #~ msgstr "chyba #1" #, fuzzy #~| msgid "Gather errors" #~ msgid "strict error" #~ msgstr "Sbírat chyby" sql-parser-5.9.0/locale/cy/000077500000000000000000000000001455302707200154755ustar00rootroot00000000000000sql-parser-5.9.0/locale/cy/LC_MESSAGES/000077500000000000000000000000001455302707200172625ustar00rootroot00000000000000sql-parser-5.9.0/locale/cy/LC_MESSAGES/sqlparser.mo000066400000000000000000000010401455302707200216260ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2015-10-15 11:04+0200 Last-Translator: Michal Čihař Language-Team: Welsh Language: cy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=6; plural=(n==0) ? 0 : (n==1) ? 1 : (n==2) ? 2 : (n==3) ? 3 :(n==6) ? 4 : 5; X-Generator: Weblate 2.5-dev sql-parser-5.9.0/locale/cy/LC_MESSAGES/sqlparser.po000066400000000000000000000217671455302707200216530ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2010 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # FIRST AUTHOR , YEAR. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2015-10-15 11:04+0200\n" "Last-Translator: Michal Čihař \n" "Language-Team: Welsh \n" "Language: cy\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=6; plural=(n==0) ? 0 : (n==1) ? 1 : (n==2) ? 2 : " "(n==3) ? 3 :(n==6) ? 4 : 5;\n" "X-Generator: Weblate 2.5-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected after AS." msgstr "Dim cronfeydd data wedi'u dewis." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "Table name template" msgid "A symbol name was expected!" msgstr "Templed enw tabl" #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "No databases selected." msgid "A comma or a closing bracket was expected." msgstr "Dim cronfeydd data wedi'u dewis." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "No databases selected." msgid "An expression was expected." msgstr "Dim cronfeydd data wedi'u dewis." #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected." msgstr "Dim cronfeydd data wedi'u dewis." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "Show dimension of tables" msgid "Unexpected end of LOCK expression." msgstr "Dangos dimensiynau'r tabl" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "Cafodd y rhes ei dileu" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "fel mynegiad arferol (regular expression)" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format #| msgid "Database %1$s has been created." msgid "Ending quote %1$s was expected." msgstr "Cafodd y gronfa ddata %1$s ei chreu." #: src/Lexer.php:1056 #, fuzzy #| msgid "Table name template" msgid "Variable name was expected." msgstr "Templed enw tabl" #: src/Parser.php:456 #, fuzzy #| msgid "Show dimension of tables" msgid "Unexpected beginning of statement." msgstr "Dangos dimensiynau'r tabl" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "Show dimension of tables" msgid "Keyword at end of statement." msgstr "Dangos dimensiynau'r tabl" #: src/Statement.php:555 #, fuzzy #| msgid "Show dimension of tables" msgid "Unexpected ordering of clauses." msgstr "Dangos dimensiynau'r tabl" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Table name template" msgid "A table name was expected." msgstr "Templed enw tabl" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "Cafodd y rhes ei dileu" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Show dimension of tables" msgid "Unexpected end of LOCK statement." msgstr "Dangos dimensiynau'r tabl" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "Table name template" msgid "The name of the CTE was expected." msgstr "Templed enw tabl" #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No databases selected." msgid "AS keyword was expected." msgstr "Dim cronfeydd data wedi'u dewis." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "Database %1$s has been created." msgid "Subquery of the CTE was expected." msgstr "Cafodd y gronfa ddata %1$s ei chreu." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Show dimension of tables" msgid "Unexpected end of the WITH CTE." msgstr "Dangos dimensiynau'r tabl" #, fuzzy #~| msgid "Show dimension of tables" #~ msgid "Unexpected end of Lock expression." #~ msgstr "Dangos dimensiynau'r tabl" #, fuzzy #~| msgid "Error" #~ msgid "error #1" #~ msgstr "Gwall" #, fuzzy #~| msgid "Query" #~ msgid "strict error" #~ msgstr "Ymholiad" sql-parser-5.9.0/locale/da/000077500000000000000000000000001455302707200154465ustar00rootroot00000000000000sql-parser-5.9.0/locale/da/LC_MESSAGES/000077500000000000000000000000001455302707200172335ustar00rootroot00000000000000sql-parser-5.9.0/locale/da/LC_MESSAGES/sqlparser.mo000066400000000000000000000106071455302707200216100ustar00rootroot00000000000000-=*! .*NLy cg< ),Jw( & G$\''"8*-"X{!" - ? ] u    )} % $ ) _ |  b  + A _ u H ( (+G/d!.1K j+N?Fcu!" 1BTn+*)"'# %  &- ! $ ,(%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing expression.No transaction was previously started.Not implemented yet.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Danish Language: da MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 4.16-dev %1$d værdier var ventet, men fandt %2$d.Et "RETURNS" nøgleord var forventet.En kantet højreparantes var ventet.Et komma eller lukke parentes var ventet.Et nyt statement blev fundet, men der var ingen adskillelsestegn mellem det og det foregående.En omdøbsopgave var ventet.Et symbol var ventet!Et symbolnavn var ventet! Et reserveret nøgleord kan ikke bruges som et feltnavn uden backquotes.Et tabelnavn var ventet.Et alias var verntet.Et alias er fundet tidligere.Et udtryk var ventet.En forskydning var ventet.En kantet venstreparentes efterfulgt af et sæt værdier blev forventet.En kantet venstreparantes var forventet.Mindst en kolonne definition var ventet.Slut quote %1$s var ventet.Forventede adskillelsestegn.Forventede whitespace(s) før adskillelsestegn.Nøgleordet "TO" var forventet.Nøgleord i slutningen af udtryk.Manglende udtryk.Ingen transaktion er blevet startet tidligere.Endnu ikke implementeret.Enhedens navn var ventet.Tabellens nye navn var ventet.Tabellens gamle navn var ventet.Denne indstilling er i konflikt med "%1$s".Denn type af sætningskonstruktion er ikke gyldig i multitabel forespørgsler.Denne type af sætningskonstruktion er tidligere blevet parset.Uventet start på statement.Uventet karakter.Uventet punktum.Uventet afslutning af CASE udtrykUventet afslutning af LOCK udtryk.Uventet nøgleordUventet nøgleord.Uventet clause rækkefølge.Uventet token.Ukendt alter opgave.Ukendt datatype.Ukendt nøgleord.Ukendt type af statement.Variabelnavn var ventet.sql-parser-5.9.0/locale/da/LC_MESSAGES/sqlparser.po000066400000000000000000000225451455302707200216170ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Danish \n" "Language: da\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Endnu ikke implementeret." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "Et nyt statement blev fundet, men der var ingen adskillelsestegn mellem det " "og det foregående." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Ukendt alter opgave." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "%1$d værdier var ventet, men fandt %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "En kantet venstreparentes efterfulgt af et sæt værdier blev forventet." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "En kantet venstreparantes var forventet." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Uventet nøgleord." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Uventet afslutning af CASE udtryk" #: src/Components/CaseExpression.php:212 #, fuzzy #| msgid "Unexpected end of CASE expression" msgid "Potential duplicate alias of CASE expression." msgstr "Uventet afslutning af CASE udtryk" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Et alias er fundet tidligere." #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "An alias was expected." msgid "An alias was expected after AS." msgstr "Et alias var verntet." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Et symbolnavn var ventet! Et reserveret nøgleord kan ikke bruges som et " "feltnavn uden backquotes." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Et symbol var ventet!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Et komma eller lukke parentes var ventet." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "En kantet højreparantes var ventet." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Ukendt datatype." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Et udtryk var ventet." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Et alias var verntet." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Uventet punktum." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Uventet token." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "En forskydning var ventet." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Uventet afslutning af LOCK udtryk." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Denne indstilling er i konflikt med \"%1$s\"." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Tabellens gamle navn var ventet." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Nøgleordet \"TO\" var forventet." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Tabellens nye navn var ventet." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "En omdøbsopgave var ventet." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Manglende udtryk." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Uventet karakter." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Forventede whitespace(s) før adskillelsestegn." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Forventede adskillelsestegn." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Slut quote %1$s var ventet." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Variabelnavn var ventet." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Uventet start på statement." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Ukendt type af statement." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Ingen transaktion er blevet startet tidligere." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Denne type af sætningskonstruktion er tidligere blevet parset." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Ukendt nøgleord." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Nøgleord i slutningen af udtryk." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Uventet clause rækkefølge." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Enhedens navn var ventet." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Et tabelnavn var ventet." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Mindst en kolonne definition var ventet." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Et \"RETURNS\" nøgleord var forventet." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" "Denn type af sætningskonstruktion er ikke gyldig i multitabel forespørgsler." #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of LOCK statement." msgstr "Uventet start på statement." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Uventet nøgleord" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The name of the entity was expected." msgid "The name of the CTE was expected." msgstr "Enhedens navn var ventet." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "A \"RETURNS\" keyword was expected." msgid "AS keyword was expected." msgstr "Et \"RETURNS\" nøgleord var forventet." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The name of the entity was expected." msgid "Subquery of the CTE was expected." msgstr "Enhedens navn var ventet." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of the WITH CTE." msgstr "Uventet start på statement." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Uventet afslutning af LOCK udtryk." #~ msgid "error #1" #~ msgstr "fejl #1" #~ msgid "strict error" #~ msgstr "stringent fejl" sql-parser-5.9.0/locale/de/000077500000000000000000000000001455302707200154525ustar00rootroot00000000000000sql-parser-5.9.0/locale/de/LC_MESSAGES/000077500000000000000000000000001455302707200172375ustar00rootroot00000000000000sql-parser-5.9.0/locale/de/LC_MESSAGES/sqlparser.mo000066400000000000000000000127401455302707200216140ustar00rootroot000000000000006I|*!*L9 c'B#[<  F,g( 4)^&r-!!$ 'E 'm " 8 * " ? U !e " !     3 E c {    ( 0 ) 8_R*|y%3!,LiK&.4&[*s'%0)1[0u, %%/@%pD- (>&R'y'!"DZv,)'  .%53 0*2 $ (-&4+1!/#6"%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.AS keyword was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.Subquery of the CTE was expected.The name of the CTE was expected.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected end of the WITH CTE.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: phpMyAdmin-docs 4.0.0-dev Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2022-03-19 21:46+0000 Last-Translator: Justin Nogossek Language-Team: German Language: de MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 4.12-dev %1$d Werte erwartet, aber %2$d gefunden.Ein „RETURNS“-Schlüsselwort wurde erwartet.Eine schließende Klammer wurde erwartet.Ein Komma oder eine schließende Klammer wurde erwartet.Eine neue Anweisung wurde gefunden, aber kein Trennzeichen zwischen ihm und dem vorhergehenden.Eine Umbenennungsoperation wurde erwartet.Ein Symbolname wurde erwartet!Ein Symbolname wurde erwartet! Ein reserviertes Schlüsselwort kann nicht ohne Backquotes als Tabellenname verwendet werden.Tabellenname wurde erwartet.Das Schlüsselwort AS wurde erwartet.Ein Alias wurde nach AS erwartet, aber stattdessen Ein Alias wurde nach AS erwartet.Ein Alias wurde erwartet.Ein Alias wurde zuvor gefunden.Ein Ausdruck wurde erwartet.Ein Offset wurde erwartet.Eine öffnende Klammer, gefolgt von einer Liste von Werten, wurde erwartet.Eine öffnende Klammer wurde erwartet.Mindestens eine Felddefinition wurde erwartet.Schließendes Anführungszeichen %1$s wurde erzeugt.Erwartete Trennzeichen.Erwartete Whitespace vor dem Trennzeichen.Schlüsselwort „TO“ wurde erwartet.Schlüsselwort am Ende der Anweisung.Fehlendes Komma vor einer neuen ALTER-Operation.Fehlender Ausdruck.Bisher wurde keine Transaktion gestartet.Noch nicht implementiert.Möglicher doppelter Alias eines CASE Ausdrucks.Es wurde eine Unterabfrage des CTE erwartet.Der Name des CTE wurde erwartet.Der Name der Entität wurde erwartet.Der neue Tabellenname wurde erwartet.Der ursprüngliche Tabellenname wurde erwartet.Diese Option widerspricht „%1$s“.Diese Art von Klausel ist in Mehr-Tabellen-Anfragen nicht zulässig.Diese Art von Klausel wurde zuvor analysiert.Unerwarteter Statement-Anfang.Unerwartetes Zeichen.Unerwarteter Punkt.Unerwartetes Ende eines CASE AusdrucksUnerwartetes Ende eines LOCK-Ausdrucks.Unerwartetes Ende einer LOCK-Anweisung.Unerwartetes Ende des WITH CTE.Unerwartetes SchlüsselwortUnerwartetes Schlüsselwort.Unerwartete Datensatzanforderung.Unerwartetes Zeichen.Unerkannte ALTER-Operation.Unerkannter Datentyp.Unerkanntes Schlüsselwort.Unerkannte Statement-Typ.Variablenname wurde erwartet.sql-parser-5.9.0/locale/de/LC_MESSAGES/sqlparser.po000066400000000000000000000226231455302707200216200ustar00rootroot00000000000000# Automatically generated <>, 2010. msgid "" msgstr "" "Project-Id-Version: phpMyAdmin-docs 4.0.0-dev\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2022-03-19 21:46+0000\n" "Last-Translator: Justin Nogossek \n" "Language-Team: German \n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.12-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Noch nicht implementiert." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "Eine neue Anweisung wurde gefunden, aber kein Trennzeichen zwischen ihm und " "dem vorhergehenden." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Fehlendes Komma vor einer neuen ALTER-Operation." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Unerkannte ALTER-Operation." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "%1$d Werte erwartet, aber %2$d gefunden." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" "Eine öffnende Klammer, gefolgt von einer Liste von Werten, wurde erwartet." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Eine öffnende Klammer wurde erwartet." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Unerwartetes Schlüsselwort." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Unerwartetes Ende eines CASE Ausdrucks" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Möglicher doppelter Alias eines CASE Ausdrucks." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "Ein Alias wurde nach AS erwartet, aber stattdessen " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Ein Alias wurde zuvor gefunden." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "Ein Alias wurde nach AS erwartet." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Ein Symbolname wurde erwartet! Ein reserviertes Schlüsselwort kann nicht " "ohne Backquotes als Tabellenname verwendet werden." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Ein Symbolname wurde erwartet!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Ein Komma oder eine schließende Klammer wurde erwartet." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Eine schließende Klammer wurde erwartet." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Unerkannter Datentyp." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Ein Ausdruck wurde erwartet." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Ein Alias wurde erwartet." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Unerwarteter Punkt." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Unerwartetes Zeichen." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Ein Offset wurde erwartet." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Unerwartetes Ende eines LOCK-Ausdrucks." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Diese Option widerspricht „%1$s“." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Der ursprüngliche Tabellenname wurde erwartet." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Schlüsselwort „TO“ wurde erwartet." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Der neue Tabellenname wurde erwartet." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Eine Umbenennungsoperation wurde erwartet." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Fehlender Ausdruck." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Unerwartetes Zeichen." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Erwartete Whitespace vor dem Trennzeichen." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Erwartete Trennzeichen." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Schließendes Anführungszeichen %1$s wurde erzeugt." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Variablenname wurde erwartet." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Unerwarteter Statement-Anfang." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Unerkannte Statement-Typ." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Bisher wurde keine Transaktion gestartet." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Diese Art von Klausel wurde zuvor analysiert." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Unerkanntes Schlüsselwort." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Schlüsselwort am Ende der Anweisung." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Unerwartete Datensatzanforderung." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Der Name der Entität wurde erwartet." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Tabellenname wurde erwartet." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Mindestens eine Felddefinition wurde erwartet." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Ein „RETURNS“-Schlüsselwort wurde erwartet." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Diese Art von Klausel ist in Mehr-Tabellen-Anfragen nicht zulässig." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Unerwartetes Ende einer LOCK-Anweisung." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Unerwartetes Schlüsselwort" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "Der Name des CTE wurde erwartet." #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "Das Schlüsselwort AS wurde erwartet." #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "Es wurde eine Unterabfrage des CTE erwartet." #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "Unerwartetes Ende des WITH CTE." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Unerwartetes Ende eines LOCK-Ausdrucks." #~ msgid "error #1" #~ msgstr "Fehler #1" #~ msgid "strict error" #~ msgstr "strikter Fehler" sql-parser-5.9.0/locale/el/000077500000000000000000000000001455302707200154625ustar00rootroot00000000000000sql-parser-5.9.0/locale/el/LC_MESSAGES/000077500000000000000000000000001455302707200172475ustar00rootroot00000000000000sql-parser-5.9.0/locale/el/LC_MESSAGES/sqlparser.mo000066400000000000000000000150531455302707200216240ustar00rootroot000000000000002C<H*I!t*L .Ock#.Ed< ,#C(W4&(-=$k''"8 *< "g   ! " !  * > ^ p      E > 52 Mh JJ1-R@'+h>+5y58Q<:,w`5>;tz&O)fD?@FVHYh83)/CYDB1%2WB-D@@6<512 !  &"$(*#0',/ %+) -. %1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Greek Language: el MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 4.16-dev Αναμενόταν %1$d τιμές, αλλά βρέθηκαν %2$d.Αναμενόταν μια λέξη-κλειδί «RETURNS».Αναμενόταν κλείσιμο αγκύλης.Αναμενόταν ένα κόμμα ή μια κλειστή αγκύλη.Βρέθηκε μια νέα δήλωση, αλλά χωρίς διαχωριστικό μεταξύ της και της προηγούμενης.Αναμενόταν μια λειτουργία μετονομασίας.Αναμενόταν όνομα συμβόλου!Αναμενόταν ένα όνομα συμβόλου! Μια δεσμευμένη λέξη-κλειδί δεν μπορεί να χρησιμοποιηθεί ως όνομα στήλης χωρίς εισαγωγικά.Αναμενόταν όνομα πίνακα.Ένα ψευδώνυμο αναμενόταν μετά το AS αλλά πήρε Ένα ψευδώνυμο αναμενόταν μετά το AS.Αναμενόταν μια ετικέτα.Βρέθηκε μια ετικέτα προηγουμένως.Αναμενόταν μια έκφραση.Αναμενόταν μια αντιστάθμιση.Αναμενόταν μια ανοιχτή αγκύλη ακολουθούμενη από ένα σύνολο τιμών.Αναμενόταν μια ανοιχτή αγκύλη.Αναμενόταν τουλάχιστον ένας ορισμός πεδίου.Αναμενόταν τελικό εισαγωγικό %1$s.Αναμενόταν διαχωριστής.Αναμενόταν λευκό(ά) διάστημα(τα) πριν τον διαχωριστή.Αναμενόταν η λέξη-κλειδί «TO».Λέξη-κλειδί στο τέλος της δήλωσης.Λείπει κόμμα πριν από την έναρξη μιας νέας λειτουργίας αλλαγής.Απολεσθείσα έκφραση.Καμιά συναλλαγή δεν ξεκίνησε προηγουμένως.Δεν εφαρμόστηκε ακόμα.Μη αναμενόμενο τέλος της έκφρασης CASE.Αναμενόταν το όνομα της οντότητας.Αναμενόταν το νέο όνομα του πίνακα.Αναμενόταν το παλαιό όνομα του πίνακα.Αυτή η επιλογή έχει διαίνεξη με το «%1$s».Αυτός ο τύπος ρύτρας δεν είναι έγκυρος σε ερωτήματα πολλαπλών πινάκων.Αυτός ο τύπος ρύτρας έχει αναλυθεί προηγουμένως.Μη αναμενόμενη έναρξη δήλωσης.Μη αναμενόμενος χαρακτήρας.Μη αναμενόμενη τελεία.Μη αναμενόμενο τέλος της έκφρασης CASEΜη αναμενόμενο τέλος της έκφρασης LOCK.Μη αναμενόμενο τέλος της δήλωσης LOCK.Μη αναμενόμενη λέξη-κλειδίΜη αναμενόμενη λέξη-κλειδί.Μη αναμενόμενη ταξινόμηση δηλώσεων.Μη αναμενόμενο τεκμήριο.Μη αναγνωρισμένη λειτουργία αλλαγής.Μη αναγνωρισμένος τύπος δεδομένων.Μη αναγνωρισμένη λέξη κλειδί.Μη αναγνωρισμένος τύπος δήλωσης.Αναμενόταν όνομα μεταβλητής.sql-parser-5.9.0/locale/el/LC_MESSAGES/sqlparser.po000066400000000000000000000263131455302707200216300ustar00rootroot00000000000000# Automatically generated <>, 2010. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Greek \n" "Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Δεν εφαρμόστηκε ακόμα." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "Βρέθηκε μια νέα δήλωση, αλλά χωρίς διαχωριστικό μεταξύ της και της " "προηγούμενης." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Λείπει κόμμα πριν από την έναρξη μιας νέας λειτουργίας αλλαγής." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Μη αναγνωρισμένη λειτουργία αλλαγής." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "Αναμενόταν %1$d τιμές, αλλά βρέθηκαν %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Αναμενόταν μια ανοιχτή αγκύλη ακολουθούμενη από ένα σύνολο τιμών." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Αναμενόταν μια ανοιχτή αγκύλη." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Μη αναμενόμενη λέξη-κλειδί." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Μη αναμενόμενο τέλος της έκφρασης CASE" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Μη αναμενόμενο τέλος της έκφρασης CASE." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "Ένα ψευδώνυμο αναμενόταν μετά το AS αλλά πήρε " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Βρέθηκε μια ετικέτα προηγουμένως." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "Ένα ψευδώνυμο αναμενόταν μετά το AS." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Αναμενόταν ένα όνομα συμβόλου! Μια δεσμευμένη λέξη-κλειδί δεν μπορεί να " "χρησιμοποιηθεί ως όνομα στήλης χωρίς εισαγωγικά." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Αναμενόταν όνομα συμβόλου!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Αναμενόταν ένα κόμμα ή μια κλειστή αγκύλη." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Αναμενόταν κλείσιμο αγκύλης." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Μη αναγνωρισμένος τύπος δεδομένων." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Αναμενόταν μια έκφραση." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Αναμενόταν μια ετικέτα." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Μη αναμενόμενη τελεία." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Μη αναμενόμενο τεκμήριο." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Αναμενόταν μια αντιστάθμιση." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Μη αναμενόμενο τέλος της έκφρασης LOCK." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Αυτή η επιλογή έχει διαίνεξη με το «%1$s»." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Αναμενόταν το παλαιό όνομα του πίνακα." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Αναμενόταν η λέξη-κλειδί «TO»." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Αναμενόταν το νέο όνομα του πίνακα." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Αναμενόταν μια λειτουργία μετονομασίας." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Απολεσθείσα έκφραση." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Μη αναμενόμενος χαρακτήρας." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Αναμενόταν λευκό(ά) διάστημα(τα) πριν τον διαχωριστή." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Αναμενόταν διαχωριστής." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Αναμενόταν τελικό εισαγωγικό %1$s." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Αναμενόταν όνομα μεταβλητής." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Μη αναμενόμενη έναρξη δήλωσης." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Μη αναγνωρισμένος τύπος δήλωσης." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Καμιά συναλλαγή δεν ξεκίνησε προηγουμένως." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Αυτός ο τύπος ρύτρας έχει αναλυθεί προηγουμένως." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Μη αναγνωρισμένη λέξη κλειδί." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Λέξη-κλειδί στο τέλος της δήλωσης." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Μη αναμενόμενη ταξινόμηση δηλώσεων." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Αναμενόταν το όνομα της οντότητας." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Αναμενόταν όνομα πίνακα." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Αναμενόταν τουλάχιστον ένας ορισμός πεδίου." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Αναμενόταν μια λέξη-κλειδί «RETURNS»." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Αυτός ο τύπος ρύτρας δεν είναι έγκυρος σε ερωτήματα πολλαπλών πινάκων." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Μη αναμενόμενο τέλος της δήλωσης LOCK." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Μη αναμενόμενη λέξη-κλειδί" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The name of the entity was expected." msgid "The name of the CTE was expected." msgstr "Αναμενόταν το όνομα της οντότητας." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "A \"RETURNS\" keyword was expected." msgid "AS keyword was expected." msgstr "Αναμενόταν μια λέξη-κλειδί «RETURNS»." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The name of the entity was expected." msgid "Subquery of the CTE was expected." msgstr "Αναμενόταν το όνομα της οντότητας." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected end of LOCK statement." msgid "Unexpected end of the WITH CTE." msgstr "Μη αναμενόμενο τέλος της δήλωσης LOCK." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Μη αναμενόμενο τέλος της έκφρασης LOCK." #~ msgid "error #1" #~ msgstr "σφάλμα #1" #~ msgid "strict error" #~ msgstr "περιορισμένο σφάλμα" sql-parser-5.9.0/locale/en_GB/000077500000000000000000000000001455302707200160345ustar00rootroot00000000000000sql-parser-5.9.0/locale/en_GB/LC_MESSAGES/000077500000000000000000000000001455302707200176215ustar00rootroot00000000000000sql-parser-5.9.0/locale/en_GB/LC_MESSAGES/sqlparser.mo000066400000000000000000000123031455302707200221710ustar00rootroot000000000000006I|*!*L9 c'B#[<  F,g( 4)^&r-!!$ 'E 'm " 8 * " ? U !e " !     3 E c {    * !  *L3 b ;#Tx< ?,`(4"W&k-!!$'>'f"8*"8N!^"! ,>\t,)'  .%53 0*2 $ (-&4+1!/#6"%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.AS keyword was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.Subquery of the CTE was expected.The name of the CTE was expected.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected end of the WITH CTE.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: English (United Kingdom) Language: en_GB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 4.16-dev %1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword cannot be used as a column name without backquotes.A table name was expected.AS keyword was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.Subquery of the CTE was expected.The name of the CTE was expected.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected end of the WITH CTE.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognised alter operation.Unrecognised data type.Unrecognised keyword.Unrecognised statement type.Variable name was expected.sql-parser-5.9.0/locale/en_GB/LC_MESSAGES/sqlparser.po000066400000000000000000000222441455302707200222010ustar00rootroot00000000000000# Automatically generated <>, 2010. # Robert Readman , 2012. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: English (United Kingdom) \n" "Language: en_GB\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Not implemented yet." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "A new statement was found, but no delimiter between it and the previous one." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Missing comma before start of a new alter operation." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Unrecognised alter operation." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "%1$d values were expected, but found %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "An opening bracket followed by a set of values was expected." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "An opening bracket was expected." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Unexpected keyword." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Unexpected end of CASE expression" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Potential duplicate alias of CASE expression." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "An alias expected after AS but got " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "An alias was previously found." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "An alias was expected after AS." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "A symbol name was expected! A reserved keyword cannot be used as a column " "name without backquotes." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "A symbol name was expected!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "A comma or a closing bracket was expected." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "A closing bracket was expected." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Unrecognised data type." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "An expression was expected." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "An alias was expected." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Unexpected dot." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Unexpected token." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "An offset was expected." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Unexpected end of LOCK expression." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "This option conflicts with \"%1$s\"." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "The old name of the table was expected." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Keyword \"TO\" was expected." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "The new name of the table was expected." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "A rename operation was expected." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Missing expression." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Unexpected character." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Expected whitespace(s) before delimiter." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Expected delimiter." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Ending quote %1$s was expected." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Variable name was expected." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Unexpected beginning of statement." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Unrecognised statement type." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "No transaction was previously started." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "This type of clause was previously parsed." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Unrecognised keyword." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Keyword at end of statement." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Unexpected ordering of clauses." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "The name of the entity was expected." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "A table name was expected." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "At least one column definition was expected." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "A \"RETURNS\" keyword was expected." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "This type of clause is not valid in Multi-table queries." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Unexpected end of LOCK statement." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Unexpected keyword" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "The name of the CTE was expected." #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "AS keyword was expected." #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "Subquery of the CTE was expected." #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "Unexpected end of the WITH CTE." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Unexpected end of LOCK expression." #~ msgid "error #1" #~ msgstr "error #1" #~ msgid "strict error" #~ msgstr "strict error" sql-parser-5.9.0/locale/eo/000077500000000000000000000000001455302707200154655ustar00rootroot00000000000000sql-parser-5.9.0/locale/eo/LC_MESSAGES/000077500000000000000000000000001455302707200172525ustar00rootroot00000000000000sql-parser-5.9.0/locale/eo/LC_MESSAGES/sqlparser.mo000066400000000000000000000007521455302707200216270ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2016-12-21 15:58+0000 Last-Translator: Michal Čihař Language-Team: Esperanto Language: eo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 2.10 sql-parser-5.9.0/locale/eo/LC_MESSAGES/sqlparser.po000066400000000000000000000165211455302707200216330ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2014 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # Automatically generated, 2014. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2016-12-21 15:58+0000\n" "Last-Translator: Michal Čihař \n" "Language-Team: Esperanto \n" "Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 2.10\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "" #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "" #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "" #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "" #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "" #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "" #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "" #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "" #~ msgid "error #1" #~ msgstr "eraro #1" sql-parser-5.9.0/locale/es/000077500000000000000000000000001455302707200154715ustar00rootroot00000000000000sql-parser-5.9.0/locale/es/LC_MESSAGES/000077500000000000000000000000001455302707200172565ustar00rootroot00000000000000sql-parser-5.9.0/locale/es/LC_MESSAGES/sqlparser.mo000066400000000000000000000126761455302707200216430ustar00rootroot000000000000006I|*!*L9 c'B#[<  F,g( 4)^&r-!!$ 'E 'm " 8 * " ? U !e " !     3 E c {    / " " - W7 $oE e-$$0GM$3"6'"^'?,/.E t$(+).>X/$#'7'_ (?Y!v%,)'  .%53 0*2 $ (-&4+1!/#6"%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.AS keyword was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.Subquery of the CTE was expected.The name of the CTE was expected.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected end of the WITH CTE.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2022-04-19 18:11+0000 Last-Translator: Cristian Alexander Avila González Language-Team: Spanish Language: es MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 4.12-dev Se esperaban %1$d valores, pero encontró %2$d.Se esperaba una palabra "RETURNS".Se esperaba un corchete de cierre.Se esperaba una coma o un corchete de cierre.Se encontró una nueva declaración, pero no hay delimitador entre éste y el anterior.Se esperaba un cambio de nombre.¡Se esperaba un nombre de símbolo!¡Se esperaba un nombre de símbolo! Una palabra reservada no puede usarse como nombre de columna sin comillas.Se esperaba un nombre de tabla.Se esperaba la palabra clave AS.Un alias se esperaba tras AS pero se obtiene Se esperaba un alias después de AS.Se esperaba un alias.Se encontró anteriormente un alias.Se esperaba una expresión.Se espera un desplazamiento.Se esperaba un corchete de apertura seguido por un conjunto de valores.Se esperaba un corchete de apertura.Se esperaba la definición de al menos una columna.Se esperaba terminar la cita %1$s.Delimitador esperado.Espacio(s) en blanco esperado(s) antes de delimitador.Se esperaba la palabra clave "TO".Palabra clave al final de la sentencia.Falta la coma antes de comenzar la operación de modificación.Expresión desaparecida.Ninguna operación se inició anteriormente.Aún no implementado.Posible alias duplicado de la expresión CASE.Se esperaba subconsulta del CTE.Se esperaba el nombre del CTE.Se esperaba el nombre de la entidad.Se esperaba el nuevo nombre de la tabla.Se esperaba el nombre anterior de la tabla.Esta opción tiene conflictos con "%1$s".Este tipo de cláusula no es válida en consultas multi-tabla.Este tipo de cláusula se analizó previamente.Comienzo inesperado de declaración.Caracter inesperado.Punto inesperado.Final inesperado de expresión CASEFinal inesperado de la expresión LOCK.Fin inesperado de la instrucción LOCK.Final inesperado del CON CTE.Palabra clave inesperadaPalabra clave inesperada.Orden inesperado de condiciones.Símbolo (token) inesperado.Operación de modificación desconocida.Tipo de dato desconocido.Palabra clave no reconocida.Tipo de declaración desconocida.Se esperaba el nombre de la variable.sql-parser-5.9.0/locale/es/LC_MESSAGES/sqlparser.po000066400000000000000000000225731455302707200216430ustar00rootroot00000000000000# Automatically generated <>, 2010. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2022-04-19 18:11+0000\n" "Last-Translator: Cristian Alexander Avila González \n" "Language-Team: Spanish \n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.12-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Aún no implementado." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "Se encontró una nueva declaración, pero no hay delimitador entre éste y el " "anterior." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Falta la coma antes de comenzar la operación de modificación." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Operación de modificación desconocida." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "Se esperaban %1$d valores, pero encontró %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" "Se esperaba un corchete de apertura seguido por un conjunto de valores." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Se esperaba un corchete de apertura." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Palabra clave inesperada." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Final inesperado de expresión CASE" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Posible alias duplicado de la expresión CASE." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "Un alias se esperaba tras AS pero se obtiene " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Se encontró anteriormente un alias." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "Se esperaba un alias después de AS." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "¡Se esperaba un nombre de símbolo! Una palabra reservada no puede usarse " "como nombre de columna sin comillas." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "¡Se esperaba un nombre de símbolo!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Se esperaba una coma o un corchete de cierre." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Se esperaba un corchete de cierre." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Tipo de dato desconocido." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Se esperaba una expresión." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Se esperaba un alias." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Punto inesperado." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Símbolo (token) inesperado." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Se espera un desplazamiento." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Final inesperado de la expresión LOCK." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Esta opción tiene conflictos con \"%1$s\"." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Se esperaba el nombre anterior de la tabla." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Se esperaba la palabra clave \"TO\"." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Se esperaba el nuevo nombre de la tabla." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Se esperaba un cambio de nombre." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Expresión desaparecida." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Caracter inesperado." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Espacio(s) en blanco esperado(s) antes de delimitador." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Delimitador esperado." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Se esperaba terminar la cita %1$s." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Se esperaba el nombre de la variable." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Comienzo inesperado de declaración." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Tipo de declaración desconocida." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Ninguna operación se inició anteriormente." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Este tipo de cláusula se analizó previamente." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Palabra clave no reconocida." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Palabra clave al final de la sentencia." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Orden inesperado de condiciones." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Se esperaba el nombre de la entidad." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Se esperaba un nombre de tabla." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Se esperaba la definición de al menos una columna." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Se esperaba una palabra \"RETURNS\"." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Este tipo de cláusula no es válida en consultas multi-tabla." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Fin inesperado de la instrucción LOCK." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Palabra clave inesperada" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "Se esperaba el nombre del CTE." #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "Se esperaba la palabra clave AS." #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "Se esperaba subconsulta del CTE." #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "Final inesperado del CON CTE." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Final inesperado de la expresión de bloqueo." #~ msgid "error #1" #~ msgstr "error #1" #~ msgid "strict error" #~ msgstr "error estricto" sql-parser-5.9.0/locale/et/000077500000000000000000000000001455302707200154725ustar00rootroot00000000000000sql-parser-5.9.0/locale/et/LC_MESSAGES/000077500000000000000000000000001455302707200172575ustar00rootroot00000000000000sql-parser-5.9.0/locale/et/LC_MESSAGES/sqlparser.mo000066400000000000000000000117471455302707200216420ustar00rootroot000000000000006I|*!*L9 c'B#[<  F,g( 4)^&r-!!$ 'E 'm " 8 * " ? U !e " !     3 E c {    (   " F Pi  +9e 6'!>`&r(,2#Ko/=*Lw-C`q,)'  .%53 0*2 $ (-&4+1!/#6"%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.AS keyword was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.Subquery of the CTE was expected.The name of the CTE was expected.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected end of the WITH CTE.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2022-10-20 10:05+0000 Last-Translator: Kristjan Räts Language-Team: Estonian Language: et MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 4.14.2-dev Oodati %1$d väärtust, kuid leiti %2$d.Oodati võtmesõna "RETURNS".Oodati lõpetavat sulgu.Oodati koma või lõpetavat sulgu.Leiti uus lause, kuid selle ja talle järgneva vahelt puudub eraldaja.Oodati ümbernimetamist.Oodati sümboli nime!Oodati sümboli nime! Reserveeritud võtmesõna saab kasutada veeru nimena ainult siis, kui ta on ühekordsete tagurpidi jutumärkide vahel.Oodati tabeli nime.Oodati võtmesõna "AS".Fraasi AS järel oodati aliast, kuid leiti Fraasi AS taha oodati aliast.Oodati aliast.Eelnevalt leiti alias.Oodati avaldist.Oodati nihet.Oodati avanevat sulgu, millele järgnevad väärtused.Oodati avanevat sulgu.Oodati vähemalt ühe veeru kirjeldust.Oodati lõpetavat sümbolit %1$s.Oodati eraldajat.Oodati eraldajale eelnevat tühemikku.Oodati võtmesõna "TO".Võtmesõna lause lõpus.Uue ALTER operatsiooni eest puudub koma.Avaldis puudub.Transaktsiooni ei olnud eelnevalt alustatud.Hetkel veel rakendamata.Võimalik topelt alias CASE lauses.Oodati CTE alampäringut.Oodati CTE nime.Oodati olemi nime.Oodati tabeli uut nime.Oodati tabeli vana nime.See säte põhjustab konflikti sättega "%1$s".Sellist tüüpi klausel ei ole mitme tabeli päringus kehtiv.Sellist tüüpi klausel parsiti eelnevalt.Ootamatu lause algus.Ootamatu sümbol.Ootamatu punkt.Ootamatu CASE lause lõppOotamatu LOCK lause lõpp.Ootamatu LOCK lause lõpp.Ootamatu WITH CTE lõpp.Ootamatu võtmesõnaOotamatu võtmesõna.Ootamatu lausete järjestus.Ootamatud märk.Tundmatu ALTER operatsioon.Tundmatu andmetüüp.Tundmatu võtmesõna.Tundmatut tüüpi lause.Oodati muutuja nime.sql-parser-5.9.0/locale/et/LC_MESSAGES/sqlparser.po000066400000000000000000000215501455302707200216360ustar00rootroot00000000000000# # # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2022-10-20 10:05+0000\n" "Last-Translator: Kristjan Räts \n" "Language-Team: Estonian \n" "Language: et\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.14.2-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Hetkel veel rakendamata." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "Leiti uus lause, kuid selle ja talle järgneva vahelt puudub eraldaja." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Uue ALTER operatsiooni eest puudub koma." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Tundmatu ALTER operatsioon." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "Oodati %1$d väärtust, kuid leiti %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Oodati avanevat sulgu, millele järgnevad väärtused." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Oodati avanevat sulgu." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Ootamatu võtmesõna." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Ootamatu CASE lause lõpp" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Võimalik topelt alias CASE lauses." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "Fraasi AS järel oodati aliast, kuid leiti " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Eelnevalt leiti alias." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "Fraasi AS taha oodati aliast." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Oodati sümboli nime! Reserveeritud võtmesõna saab kasutada veeru nimena " "ainult siis, kui ta on ühekordsete tagurpidi jutumärkide vahel." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Oodati sümboli nime!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Oodati koma või lõpetavat sulgu." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Oodati lõpetavat sulgu." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Tundmatu andmetüüp." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Oodati avaldist." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Oodati aliast." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Ootamatu punkt." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Ootamatud märk." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Oodati nihet." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Ootamatu LOCK lause lõpp." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "See säte põhjustab konflikti sättega \"%1$s\"." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Oodati tabeli vana nime." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Oodati võtmesõna \"TO\"." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Oodati tabeli uut nime." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Oodati ümbernimetamist." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Avaldis puudub." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Ootamatu sümbol." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Oodati eraldajale eelnevat tühemikku." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Oodati eraldajat." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Oodati lõpetavat sümbolit %1$s." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Oodati muutuja nime." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Ootamatu lause algus." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Tundmatut tüüpi lause." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Transaktsiooni ei olnud eelnevalt alustatud." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Sellist tüüpi klausel parsiti eelnevalt." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Tundmatu võtmesõna." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Võtmesõna lause lõpus." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Ootamatu lausete järjestus." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Oodati olemi nime." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Oodati tabeli nime." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Oodati vähemalt ühe veeru kirjeldust." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Oodati võtmesõna \"RETURNS\"." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Sellist tüüpi klausel ei ole mitme tabeli päringus kehtiv." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Ootamatu LOCK lause lõpp." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Ootamatu võtmesõna" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "Oodati CTE nime." #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "Oodati võtmesõna \"AS\"." #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "Oodati CTE alampäringut." #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "Ootamatu WITH CTE lõpp." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Ootamatu LOCK lause lõpp." #~ msgid "error #1" #~ msgstr "viga #1" #~ msgid "strict error" #~ msgstr "otsene viga" sql-parser-5.9.0/locale/eu/000077500000000000000000000000001455302707200154735ustar00rootroot00000000000000sql-parser-5.9.0/locale/eu/LC_MESSAGES/000077500000000000000000000000001455302707200172605ustar00rootroot00000000000000sql-parser-5.9.0/locale/eu/LC_MESSAGES/sqlparser.mo000066400000000000000000000007461455302707200216400ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2015-10-15 11:26+0200 Last-Translator: Michal Čihař Language-Team: Basque Language: eu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 2.5-dev sql-parser-5.9.0/locale/eu/LC_MESSAGES/sqlparser.po000066400000000000000000000210011455302707200216260ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2015-10-15 11:26+0200\n" "Last-Translator: Michal Čihař \n" "Language-Team: Basque \n" "Language: eu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 2.5-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected after AS." msgstr "Ez dago datu-baserik aukeratuta." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy msgid "A symbol name was expected!" msgstr "Txantiloi-fitxategiaren izena" #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "No databases selected." msgid "A comma or a closing bracket was expected." msgstr "Ez dago datu-baserik aukeratuta." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "No databases selected." msgid "An expression was expected." msgstr "Ez dago datu-baserik aukeratuta." #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected." msgstr "Ez dago datu-baserik aukeratuta." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK expression." msgstr "Taularen hasieran" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "Errenkada ezabatua izan da" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "adierazpen erregular moduan" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format msgid "Ending quote %1$s was expected." msgstr "%s taula ezabatu egin da" #: src/Lexer.php:1056 #, fuzzy msgid "Variable name was expected." msgstr "Txantiloi-fitxategiaren izena" #: src/Parser.php:456 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected beginning of statement." msgstr "Taularen hasieran" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "At Beginning of Table" msgid "Keyword at end of statement." msgstr "Taularen hasieran" #: src/Statement.php:555 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected ordering of clauses." msgstr "Taularen hasieran" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy msgid "A table name was expected." msgstr "Txantiloi-fitxategiaren izena" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "Errenkada ezabatua izan da" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK statement." msgstr "Taularen hasieran" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy msgid "The name of the CTE was expected." msgstr "Txantiloi-fitxategiaren izena" #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No databases selected." msgid "AS keyword was expected." msgstr "Ez dago datu-baserik aukeratuta." #: src/Statements/WithStatement.php:149 #, fuzzy msgid "Subquery of the CTE was expected." msgstr "%s taula ezabatu egin da" #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of the WITH CTE." msgstr "Taularen hasieran" #, fuzzy #~| msgid "At Beginning of Table" #~ msgid "Unexpected end of Lock expression." #~ msgstr "Taularen hasieran" #, fuzzy #~| msgid "Error" #~ msgid "error #1" #~ msgstr "Errorea" #, fuzzy #~| msgid "Query type" #~ msgid "strict error" #~ msgstr "Kontsulta mota" sql-parser-5.9.0/locale/fa/000077500000000000000000000000001455302707200154505ustar00rootroot00000000000000sql-parser-5.9.0/locale/fa/LC_MESSAGES/000077500000000000000000000000001455302707200172355ustar00rootroot00000000000000sql-parser-5.9.0/locale/fa/LC_MESSAGES/sqlparser.mo000066400000000000000000000031561455302707200216130ustar00rootroot00000000000000 l *L<i -! ,@^Gv_iC@&)6) 76  %1$d values were expected, but found %2$d.A new statement was found, but no delimiter between it and the previous one.An opening bracket followed by a set of values was expected.An opening bracket was expected.Not implemented yet.Potential duplicate alias of CASE expression.Unexpected end of CASE expressionUnexpected keyword.Unrecognized alter operation.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Persian Language: fa MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n > 1; X-Generator: Weblate 4.16-dev مقادیر %1$d انتظار می رود، اما %2$d یافت شد.بیانیه‌ی جدیدی یافت شد،اما هیچ محدودیتی قبل و بعد از آن یافت نشد.باید یک براکت آغازین و بعد از آن چند مقدار وجود داشته باشد.یک براکت آغازین باید وجود داشته باشد.هنوز پیاده سازی نشده.پایان ناشناخته عبارات.پایان غیرمنتظره برای عبارت CASEکلمات کلیدی غیرمنتظره.عملیاتِ تغییرِ غیر قابل تشخیص.sql-parser-5.9.0/locale/fa/LC_MESSAGES/sqlparser.po000066400000000000000000000227051455302707200216170ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Persian \n" "Language: fa\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n > 1;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "هنوز پیاده سازی نشده." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "بیانیه‌ی جدیدی یافت شد،اما هیچ محدودیتی قبل و بعد از آن یافت نشد." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "عملیاتِ تغییرِ غیر قابل تشخیص." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "مقادیر %1$d انتظار می رود، اما %2$d یافت شد." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "باید یک براکت آغازین و بعد از آن چند مقدار وجود داشته باشد." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "یک براکت آغازین باید وجود داشته باشد." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "کلمات کلیدی غیرمنتظره." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "پایان غیرمنتظره برای عبارت CASE" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "پایان ناشناخته عبارات." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected after AS." msgstr "هیچ پایگاه داده ای انتخاب نشده است." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "No databases selected." msgid "A symbol name was expected!" msgstr "هیچ پایگاه داده ای انتخاب نشده است." #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "No databases selected." msgid "A comma or a closing bracket was expected." msgstr "هیچ پایگاه داده ای انتخاب نشده است." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "No rows selected" msgid "An expression was expected." msgstr "هیچ سطری انتخاب نشده است" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected." msgstr "هیچ پایگاه داده ای انتخاب نشده است." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy msgid "Unexpected end of LOCK expression." msgstr "پایان ناشناخته عبارات" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "سطر حذف گرديد" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "بعنوان مبين منظم(as regular expression)" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format msgid "Ending quote %1$s was expected." msgstr "جدول %s حذف گرديد" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected beginning of statement." msgstr "در ابتداي جدول" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "At Beginning of Table" msgid "Keyword at end of statement." msgstr "در ابتداي جدول" #: src/Statement.php:555 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected ordering of clauses." msgstr "در ابتداي جدول" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "No databases selected." msgid "A table name was expected." msgstr "هیچ پایگاه داده ای انتخاب نشده است." #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "سطر حذف گرديد" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK statement." msgstr "در ابتداي جدول" #: src/Statements/PurgeStatement.php:138 #, fuzzy msgid "Unexpected keyword" msgstr "کلمه کلیدی ناشناس" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "No databases selected." msgid "The name of the CTE was expected." msgstr "هیچ پایگاه داده ای انتخاب نشده است." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No rows selected" msgid "AS keyword was expected." msgstr "هیچ سطری انتخاب نشده است" #: src/Statements/WithStatement.php:149 #, fuzzy msgid "Subquery of the CTE was expected." msgstr "جدول %s حذف گرديد" #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of the WITH CTE." msgstr "در ابتداي جدول" #, fuzzy #~ msgid "Unexpected end of Lock expression." #~ msgstr "پایان ناشناخته عبارات" #, fuzzy #~| msgid "Error" #~ msgid "error #1" #~ msgstr "خطا" #, fuzzy #~| msgid "Query" #~ msgid "strict error" #~ msgstr "پرس و جو" sql-parser-5.9.0/locale/fi/000077500000000000000000000000001455302707200154605ustar00rootroot00000000000000sql-parser-5.9.0/locale/fi/LC_MESSAGES/000077500000000000000000000000001455302707200172455ustar00rootroot00000000000000sql-parser-5.9.0/locale/fi/LC_MESSAGES/sqlparser.mo000066400000000000000000000046731455302707200216300ustar00rootroot00000000000000%@*Al*L %AX t''"=S!c"3/%7M]'0Oe!" * @ W k        %1$d values were expected, but found %2$d.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!An alias was expected.An expression was expected.An opening bracket was expected.Ending quote %1$s was expected.Not implemented yet.The new name of the table was expected.The old name of the table was expected.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected keywordUnexpected keyword.Unexpected token.Unrecognized alter operation.Unrecognized data type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Finnish Language: fi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 4.16-dev Odotettiin arvoa %1$d , mutta löydettiin %2$d.Odotettiin sulkumerkkiä.Odotettiin pilkkua tai sulkumerkkiä.Löydettiin uusi lauseke, muttei erotinta sen ja sitä edeltäneen välillä.Odotettiin uudelleennimeämistoimintoa.Odotettiin symbolinimeä!Odotettiin aliasta.Odotettiin ilmaisua.Odotettiin avausmerkkiä.Odotettiin loppumerkkiä %1$s.Ei vielä toteutettu.Odotettiin uutta taulunimeä.Odotettiin vanhaa taulunimeä.Odottamaton ilmaisun alku.Odottamatton merkki.Odottamaton piste.Odottamaton loppu CASE-ilmaisulleOdottamaton loppu LOCK-ilmaisulle.Odottamaton avainsanaOdottamaton avainsana.Odottamaton merkki.Tunnistamaton "alter"-toiminto.Tunnistamaton datatyyppi.Odotettiin muuttujaa.sql-parser-5.9.0/locale/fi/LC_MESSAGES/sqlparser.po000066400000000000000000000223251455302707200216250ustar00rootroot00000000000000# Automatically generated <>, 2010. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Finnish \n" "Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Ei vielä toteutettu." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "Löydettiin uusi lauseke, muttei erotinta sen ja sitä edeltäneen välillä." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Tunnistamaton \"alter\"-toiminto." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "Odotettiin arvoa %1$d , mutta löydettiin %2$d." #: src/Components/Array2d.php:108 #, fuzzy msgid "An opening bracket followed by a set of values was expected." msgstr "Odotettiin avausmerkki ja sitä odotettiin seuraavan arvoja." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Odotettiin avausmerkkiä." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Odottamaton avainsana." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Odottamaton loppu CASE-ilmaisulle" #: src/Components/CaseExpression.php:212 #, fuzzy #| msgid "Unexpected end of CASE expression" msgid "Potential duplicate alias of CASE expression." msgstr "Odottamaton loppu CASE-ilmaisulle" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "An alias was expected." msgid "An alias was expected after AS." msgstr "Odotettiin aliasta." #: src/Components/CreateDefinition.php:255 #, fuzzy msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Odotettiin symbolin nimeä! Varattua avainsanaa ei voida käyttää palstan " "nimenä ilman lainausmerkkejä." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Odotettiin symbolinimeä!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Odotettiin pilkkua tai sulkumerkkiä." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Odotettiin sulkumerkkiä." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Tunnistamaton datatyyppi." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Odotettiin ilmaisua." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Odotettiin aliasta." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Odottamaton piste." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Odottamaton merkki." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Odottamaton loppu LOCK-ilmaisulle." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Odotettiin vanhaa taulunimeä." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Odotettiin uutta taulunimeä." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Odotettiin uudelleennimeämistoimintoa." #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "regexp-haku" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Odottamatton merkki." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Odotettiin loppumerkkiä %1$s." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Odotettiin muuttujaa." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Odottamaton ilmaisun alku." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Keyword at end of statement." msgstr "Odottamaton ilmaisun alku." #: src/Statement.php:555 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected ordering of clauses." msgstr "Taulun alkuun" #: src/Statements/CreateStatement.php:549 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the entity was expected." msgstr "Avoinna olevien taulujen määrä." #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Table name template" msgid "A table name was expected." msgstr "Taulunimen pohja" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "Rivi on nyt poistettu." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of LOCK statement." msgstr "Odottamaton ilmaisun alku." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Odottamaton avainsana" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the CTE was expected." msgstr "Avoinna olevien taulujen määrä." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "An expression was expected." msgid "AS keyword was expected." msgstr "Odotettiin ilmaisua." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The number of tables that are open." msgid "Subquery of the CTE was expected." msgstr "Avoinna olevien taulujen määrä." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of the WITH CTE." msgstr "Odottamaton ilmaisun alku." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Odottamaton loppu LOCK-ilmaisulle." #, fuzzy #~| msgid "errors." #~ msgid "error #1" #~ msgstr "virhettä." #, fuzzy #~| msgid "Gather errors" #~ msgid "strict error" #~ msgstr "Kerää virheet" sql-parser-5.9.0/locale/fr/000077500000000000000000000000001455302707200154715ustar00rootroot00000000000000sql-parser-5.9.0/locale/fr/LC_MESSAGES/000077500000000000000000000000001455302707200172565ustar00rootroot00000000000000sql-parser-5.9.0/locale/fr/LC_MESSAGES/sqlparser.mo000066400000000000000000000130121455302707200216240ustar00rootroot000000000000006I|*!*L9 c'B#[<  F,g( 4)^&r-!!$ 'E 'm " 8 * " ? U !e " !     3 E c {    ? ) ' 6!eX,#2"%*>iI'6!NpB$!D^7t1)"#@*d(.22Mj$$%0!Dfw",)'  .%53 0*2 $ (-&4+1!/#6"%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.AS keyword was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.Subquery of the CTE was expected.The name of the CTE was expected.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected end of the WITH CTE.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: phpMyAdmin-docs 4.0.0-dev Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: French Language: fr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n > 1; X-Generator: Weblate 4.16-dev %1$d valeurs étaient attendues, mais %2$d ont été trouvées.Le mot clé « RETURNS » était attendu.Une parenthèse droite était attendue.Une virgule ou une parenthèse droite était attendus.Un nouvel énoncé a été trouvé, mais il n'y a aucun délimiteur entre celui-ci et le précédent.Une opération de renommage était attendue.Un nom de variable était attendu !Un nom de symbole était attendu ! Un mot clé réservé ne peut pas servir comme nom de colonne sans les apostrophes inverses.Un nom de table était attendu.Le mot clé AS était attendu.Un alias était attendu après AS mais obtenu : Un alias était attendu après AS.Un alias était attendu.Un alias a été constaté précédemment.Une expression était attendue.Un décalage était prévu.Une parenthèse gauche suivie d'un ensemble de valeurs étaient attendus.Une parenthèse gauche était attendue.La définition d'au moins une colonne était attendue.Un guillemet %1$s était attendu.Un délimiteur était attendu.Des espaces ou tabulations étaient attendus avant le délimiteur.Le mot clé « TO » était attendu.Mot clé à la fin de l'énoncé.Virgule manquante avant le début d’une nouvelle opération ALTER.Expression manquante.Aucune transaction n'a été précédemment démarrée.Pas encore mis en œuvre.Potentiel duplicata de l'alias d'expression CASE.Une sous-requête du CTE était attendue.Le nom du CTE était attendu.Le nom de l'entité était attendu.Le nouveau nom de la table était attendu.L'ancien nom de la table était attendu.Cette option entre en conflit avec « %1$s ».Ce type de clause a été analysé précédemment.Ce type de clause a été analysé précédemment.Début d'énoncé inattendu.Caractère inattendu.Point inattendu.Fin inattendue d'une expression CASEFin inattendue de l'expression LOCK.Fin inattendue de l'instruction LOCK.Fin inattendue du WITH CTE.Mot clef inattenduMot clef inattendu.Classement inattendu des clauses.Jeton inattendu.Opération ALTER non reconnue.Type de données non reconnu.Mot clé non reconnu.Type d'énoncé non reconnu.Un nom de variable était attendu.sql-parser-5.9.0/locale/fr/LC_MESSAGES/sqlparser.po000066400000000000000000000226711455302707200216420ustar00rootroot00000000000000# Automatically generated <>, 2010. msgid "" msgstr "" "Project-Id-Version: phpMyAdmin-docs 4.0.0-dev\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: French \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n > 1;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Pas encore mis en œuvre." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "Un nouvel énoncé a été trouvé, mais il n'y a aucun délimiteur entre celui-ci " "et le précédent." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Virgule manquante avant le début d’une nouvelle opération ALTER." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Opération ALTER non reconnue." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "%1$d valeurs étaient attendues, mais %2$d ont été trouvées." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" "Une parenthèse gauche suivie d'un ensemble de valeurs étaient attendus." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Une parenthèse gauche était attendue." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Mot clef inattendu." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Fin inattendue d'une expression CASE" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Potentiel duplicata de l'alias d'expression CASE." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "Un alias était attendu après AS mais obtenu : " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Un alias a été constaté précédemment." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "Un alias était attendu après AS." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Un nom de symbole était attendu ! Un mot clé réservé ne peut pas servir " "comme nom de colonne sans les apostrophes inverses." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Un nom de variable était attendu !" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Une virgule ou une parenthèse droite était attendus." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Une parenthèse droite était attendue." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Type de données non reconnu." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Une expression était attendue." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Un alias était attendu." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Point inattendu." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Jeton inattendu." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Un décalage était prévu." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Fin inattendue de l'expression LOCK." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Cette option entre en conflit avec « %1$s »." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "L'ancien nom de la table était attendu." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Le mot clé « TO » était attendu." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Le nouveau nom de la table était attendu." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Une opération de renommage était attendue." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Expression manquante." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Caractère inattendu." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Des espaces ou tabulations étaient attendus avant le délimiteur." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Un délimiteur était attendu." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Un guillemet %1$s était attendu." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Un nom de variable était attendu." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Début d'énoncé inattendu." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Type d'énoncé non reconnu." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Aucune transaction n'a été précédemment démarrée." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Ce type de clause a été analysé précédemment." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Mot clé non reconnu." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Mot clé à la fin de l'énoncé." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Classement inattendu des clauses." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Le nom de l'entité était attendu." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Un nom de table était attendu." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "La définition d'au moins une colonne était attendue." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Le mot clé « RETURNS » était attendu." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Ce type de clause a été analysé précédemment." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Fin inattendue de l'instruction LOCK." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Mot clef inattendu" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "Le nom du CTE était attendu." #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "Le mot clé AS était attendu." #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "Une sous-requête du CTE était attendue." #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "Fin inattendue du WITH CTE." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Fin inattendue de l'expression LOCK." #~ msgid "error #1" #~ msgstr "erreur #1" #~ msgid "strict error" #~ msgstr "erreur stricte" sql-parser-5.9.0/locale/fy/000077500000000000000000000000001455302707200155005ustar00rootroot00000000000000sql-parser-5.9.0/locale/fy/LC_MESSAGES/000077500000000000000000000000001455302707200172655ustar00rootroot00000000000000sql-parser-5.9.0/locale/fy/LC_MESSAGES/sqlparser.mo000066400000000000000000000007641455302707200216450ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2015-12-24 23:02+0000 Last-Translator: Robin van der Vliet Language-Team: Frisian Language: fy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 2.5-dev sql-parser-5.9.0/locale/fy/LC_MESSAGES/sqlparser.po000066400000000000000000000176501455302707200216520ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2014 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # Automatically generated, 2014. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2015-12-24 23:02+0000\n" "Last-Translator: Robin van der Vliet \n" "Language-Team: Frisian \n" "Language: fy\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 2.5-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "" #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "Number of tables:" msgid "Unexpected end of LOCK expression." msgstr "Oantal tabellen:" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "Compression" msgid "Missing expression." msgstr "Kompresje" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 #, fuzzy #| msgid "Number of tables:" msgid "Unexpected beginning of statement." msgstr "Oantal tabellen:" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "Number of tables:" msgid "Keyword at end of statement." msgstr "Oantal tabellen:" #: src/Statement.php:555 #, fuzzy #| msgid "Number of tables:" msgid "Unexpected ordering of clauses." msgstr "Oantal tabellen:" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "" #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Number of tables:" msgid "Unexpected end of LOCK statement." msgstr "Oantal tabellen:" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "" #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "" #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "" #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Number of tables:" msgid "Unexpected end of the WITH CTE." msgstr "Oantal tabellen:" #, fuzzy #~| msgid "Number of tables:" #~ msgid "Unexpected end of Lock expression." #~ msgstr "Oantal tabellen:" #, fuzzy #~| msgid "Error" #~ msgid "error #1" #~ msgstr "Flater" #, fuzzy #~| msgid "Query error" #~ msgid "strict error" #~ msgstr "Queryflater" sql-parser-5.9.0/locale/gl/000077500000000000000000000000001455302707200154645ustar00rootroot00000000000000sql-parser-5.9.0/locale/gl/LC_MESSAGES/000077500000000000000000000000001455302707200172515ustar00rootroot00000000000000sql-parser-5.9.0/locale/gl/LC_MESSAGES/sqlparser.mo000066400000000000000000000007501455302707200216240ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2016-01-17 22:02+0000 Last-Translator: Xosé Calvo Language-Team: Galician Language: gl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 2.5-dev sql-parser-5.9.0/locale/gl/LC_MESSAGES/sqlparser.po000066400000000000000000000227601455302707200216340ustar00rootroot00000000000000# Automatically generated <>, 2010. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2016-01-17 22:02+0000\n" "Last-Translator: Xosé Calvo \n" "Language-Team: Galician \n" "Language: gl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 2.5-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 #, fuzzy #| msgid "Iconic table operations" msgid "Unrecognized alter operation." msgstr "Operacións de táboas con iconas" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 #, fuzzy #| msgid "Unexpected characters on line %s." msgid "Unexpected keyword." msgstr "Hai caracteres inesperados na liña %s." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected after AS." msgstr "Non hai ningunha base de datos escollida." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "Table name template" msgid "A symbol name was expected!" msgstr "Modelo de nome dos ficheiros" #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "No databases selected." msgid "A comma or a closing bracket was expected." msgstr "Non hai ningunha base de datos escollida." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "No rows selected" msgid "An expression was expected." msgstr "Non hai ningunha fileira seleccionada" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected." msgstr "Non hai ningunha base de datos escollida." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 #, fuzzy #| msgid "Unexpected characters on line %s." msgid "Unexpected token." msgstr "Hai caracteres inesperados na liña %s." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK expression." msgstr "No comezo da táboa" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 #, fuzzy #| msgid "The number of tables that are open." msgid "The old name of the table was expected." msgstr "O número de táboas abertas." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 #, fuzzy #| msgid "The number of tables that are open." msgid "The new name of the table was expected." msgstr "O número de táboas abertas." #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "Eliminouse a fileira" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "como expresión regular" #: src/Lexer.php:274 #, fuzzy #| msgid "Unexpected characters on line %s." msgid "Unexpected character." msgstr "Hai caracteres inesperados na liña %s." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format #| msgid "Event %1$s has been created." msgid "Ending quote %1$s was expected." msgstr "O acontecemento %1$s foi creado." #: src/Lexer.php:1056 #, fuzzy #| msgid "Table name template" msgid "Variable name was expected." msgstr "Modelo de nome dos ficheiros" #: src/Parser.php:456 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected beginning of statement." msgstr "No comezo da táboa" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "At Beginning of Table" msgid "Keyword at end of statement." msgstr "No comezo da táboa" #: src/Statement.php:555 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected ordering of clauses." msgstr "No comezo da táboa" #: src/Statements/CreateStatement.php:549 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the entity was expected." msgstr "O número de táboas abertas." #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Table name template" msgid "A table name was expected." msgstr "Modelo de nome dos ficheiros" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "Eliminouse a fileira" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK statement." msgstr "No comezo da táboa" #: src/Statements/PurgeStatement.php:138 #, fuzzy #| msgid "Unexpected characters on line %s." msgid "Unexpected keyword" msgstr "Hai caracteres inesperados na liña %s." #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the CTE was expected." msgstr "O número de táboas abertas." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No rows selected" msgid "AS keyword was expected." msgstr "Non hai ningunha fileira seleccionada" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The number of tables that are open." msgid "Subquery of the CTE was expected." msgstr "O número de táboas abertas." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of the WITH CTE." msgstr "No comezo da táboa" #, fuzzy #~| msgid "At Beginning of Table" #~ msgid "Unexpected end of Lock expression." #~ msgstr "No comezo da táboa" #, fuzzy #~| msgid "errors." #~ msgid "error #1" #~ msgstr "erros." #, fuzzy #~| msgid "Gather errors" #~ msgid "strict error" #~ msgstr "Recoller os erros" sql-parser-5.9.0/locale/gu/000077500000000000000000000000001455302707200154755ustar00rootroot00000000000000sql-parser-5.9.0/locale/gu/LC_MESSAGES/000077500000000000000000000000001455302707200172625ustar00rootroot00000000000000sql-parser-5.9.0/locale/gu/LC_MESSAGES/sqlparser.mo000066400000000000000000000051211455302707200216320ustar00rootroot00000000000000,**LLh '! "+NbmRR{9W3O;GQP<D' El / 1 <     %1$d values were expected, but found %2$d.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.An expression was expected.An offset was expected.An opening bracket was expected.Keyword "TO" was expected.Not implemented yet.The old name of the table was expected.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected keyword.Unrecognized alter operation.Unrecognized data type.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Gujarati Language: gu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n > 1; X-Generator: Weblate 4.16-dev %1$d આ પ્રકાર ની values અપેક્ષિત હતી, પણ મળ્યું %2$d.કલોસિંગ બ્રેકેટની અપેક્ષા હતી.અલ્પવિરામ અથવા કલોસિંગ બ્રેકેટની અપેક્ષા હતી.નવો નિવેદન મળ્યો હતો, પરંતુ તે અને પાછલા એક વચ્ચે કોઈ વિભાજક અક્ષરો નથી મળયા.નિવેદનની અપેક્ષા હતી.ઓફસેટ અપેક્ષિત હતી.ઓપનિંગ બ્રેકેટ અપેક્ષિત હતું.કીવર્ડ "TO" અપેક્ષિત હતો.હજુ સુધી અમલમાં નથી મુકાયુ.ટેબલનુ જૂનું નામ અપેક્ષિત હતુ.અનપેક્ષિત પૂર્ણ વિરામ.અનપેક્ષિત અંત CASE નિવેદન નોઅનપેક્ષિત અંત LOCK નિવેદન નો.અનપેક્ષિત કીવર્ડ.આ ફેરફાર માન્ય નથી.અનપેક્ષિત ડેટા પ્રકાર.sql-parser-5.9.0/locale/gu/LC_MESSAGES/sqlparser.po000066400000000000000000000230601455302707200216370ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2015 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # Automatically generated, 2016. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Gujarati \n" "Language: gu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n > 1;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "હજુ સુધી અમલમાં નથી મુકાયુ." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "નવો નિવેદન મળ્યો હતો, પરંતુ તે અને પાછલા એક વચ્ચે કોઈ વિભાજક અક્ષરો નથી મળયા." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "આ ફેરફાર માન્ય નથી." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "%1$d આ પ્રકાર ની values અપેક્ષિત હતી, પણ મળ્યું %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "ઓપનિંગ બ્રેકેટ અપેક્ષિત હતું." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "અનપેક્ષિત કીવર્ડ." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "અનપેક્ષિત અંત CASE નિવેદન નો" #: src/Components/CaseExpression.php:212 #, fuzzy #| msgid "Unexpected end of CASE expression" msgid "Potential duplicate alias of CASE expression." msgstr "અનપેક્ષિત અંત CASE નિવેદન નો" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "An offset was expected." msgid "An alias was expected after AS." msgstr "ઓફસેટ અપેક્ષિત હતી." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "અલ્પવિરામ અથવા કલોસિંગ બ્રેકેટની અપેક્ષા હતી." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "કલોસિંગ બ્રેકેટની અપેક્ષા હતી." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "અનપેક્ષિત ડેટા પ્રકાર." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "નિવેદનની અપેક્ષા હતી." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "અનપેક્ષિત પૂર્ણ વિરામ." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "ઓફસેટ અપેક્ષિત હતી." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "અનપેક્ષિત અંત LOCK નિવેદન નો." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "ટેબલનુ જૂનું નામ અપેક્ષિત હતુ." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "કીવર્ડ \"TO\" અપેક્ષિત હતો." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "" #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "" #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "" #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Unexpected end of CASE expression" msgid "Unexpected end of LOCK statement." msgstr "અનપેક્ષિત અંત CASE નિવેદન નો" #: src/Statements/PurgeStatement.php:138 #, fuzzy #| msgid "Unexpected keyword." msgid "Unexpected keyword" msgstr "અનપેક્ષિત કીવર્ડ." #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The old name of the table was expected." msgid "The name of the CTE was expected." msgstr "ટેબલનુ જૂનું નામ અપેક્ષિત હતુ." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "Keyword \"TO\" was expected." msgid "AS keyword was expected." msgstr "કીવર્ડ \"TO\" અપેક્ષિત હતો." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "Keyword \"TO\" was expected." msgid "Subquery of the CTE was expected." msgstr "કીવર્ડ \"TO\" અપેક્ષિત હતો." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected end of CASE expression" msgid "Unexpected end of the WITH CTE." msgstr "અનપેક્ષિત અંત CASE નિવેદન નો" #~ msgid "Unexpected end of Lock expression." #~ msgstr "અનપેક્ષિત અંત LOCK નિવેદન નો." sql-parser-5.9.0/locale/he/000077500000000000000000000000001455302707200154565ustar00rootroot00000000000000sql-parser-5.9.0/locale/he/LC_MESSAGES/000077500000000000000000000000001455302707200172435ustar00rootroot00000000000000sql-parser-5.9.0/locale/he/LC_MESSAGES/sqlparser.mo000066400000000000000000000145551455302707200216260ustar00rootroot000000000000006I|*!*L9 c'B#[<  F,g( 4)^&r-!!$ 'E 'm " 8 * " ? U !e " !     3 E c {    E P;RId<='z)=AgV?&@g&$rJDI@&BAE$C3"Fi>\M!-o;;-PC2* 9*:d:(%&),P}**&&+A,)'  .%53 0*2 $ (-&4+1!/#6"%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.AS keyword was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.Subquery of the CTE was expected.The name of the CTE was expected.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected end of the WITH CTE.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-28 03:41+0000 Last-Translator: Yaron Shahrabani Language-Team: Hebrew Language: he MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=4; plural=(n == 1) ? 0 : ((n == 2) ? 1 : ((n > 10 && n % 10 == 0) ? 2 : 3)); X-Generator: Weblate 4.16-dev היו אמורים להיות %1$d ערכים, אך נמצאו %2$d.אמורה הייתה להיות מילת מפתח „RETURNS” (מחזירה).אמורים היו להיות סוגריים סוגרים.אמורים היו להיות פסיק או סוגריים סוגרים.נמצא ביטוי חדש, אך לא נמצא מפריד בינו לבין הביטוי הקודם.אמורה הייתה להיות פעולת שינוי שם.אמור היה להיות שם סמל!אמור היה להיות שם של סמל! אסור להשתמש במילה שמורה בתור שם עמודה ללא סימן הטעמה משני (`).אמור היה להיות שם טבלה.אמורה הייתה להיות מילת המפתח AS (בשם).אמור היה להיות כינוי אחרי AS (בשם) אבל במקום נמצא אמור היה להיות כינוי אחרי ה־AS (בשם).אמור היה להיות כינוי.נמצא כינוי בעבר.אמור היה להיות ביטוי.אמור היה להיות היסט.היו אמורים להיות סוגריים מרובעים פותחים ואחריהם סדרה של ערכים.היו אמורים להיות סוגריים מרובעים פותחים.אמורה הייתה להיות לפחות הגדרת עמודה אחת.אמורות היו להיות מירכאות סוגרות %1$s.אמור היה להיות מפריד.אמורים היו להיות רווחים לפני המפריד.אמורה הייתה להיות מילת המפתח „TO” (אל).מילת מפתח בסוף משפט.חסר פסיק לפני תחילת פעולת שינוי חדשה.ביטוי חסר.לא החלה העברה בעבר.לא מוטמע עדיין.כנראה כינוי כפול לביטוי התניה (CASE).אמור היה להיות תת־שאילתה של ביטוי טבלה שיתופית (CTE).אמור היה להיות שם ביטוי הטבלה השיתופית (CTE).אמור היה להיות שם היישות.אמור היה להיות השם החדש של הטבלה.אמור היה להיות השם הישן של הטבלה.אפשרות זו סותרת את „%1$s”.סוג סעיף זה אינו תקף בשאילתות מרובות טבלאות.סוג הסעיף הזה כבר נותח בעבר.תחילת הביטוי אינו צפוי.תו בלתי צפוי.נקודה בלתי צפויה.סיום בלתי צפוי לביטוי התניה (CASE)סיום בלתי צפוי לביטוי נעילה (LOCK).סיום בלתי צפוי להכרזת נעילה (LOCK).סיום בלתי צפוי ל־WITH CTE.מילת מפתח בלתי צפויהמילת מפתח בלתי צפויה.סידור הסעיפים בלתי צפוי.אסימון בלתי צפוי.פעולת שינוי בלתי מזוהה.סוג הנתונים אינו מזוהה.מילת מפתח בלתי מזוהה.סוג המשפט בלתי מזוהה.אמור היה להיות שם משתנה.sql-parser-5.9.0/locale/he/LC_MESSAGES/sqlparser.po000066400000000000000000000244161455302707200216260ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-28 03:41+0000\n" "Last-Translator: Yaron Shahrabani \n" "Language-Team: Hebrew \n" "Language: he\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural=(n == 1) ? 0 : ((n == 2) ? 1 : ((n > 10 && " "n % 10 == 0) ? 2 : 3));\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "לא מוטמע עדיין." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "נמצא ביטוי חדש, אך לא נמצא מפריד בינו לבין הביטוי הקודם." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "חסר פסיק לפני תחילת פעולת שינוי חדשה." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "פעולת שינוי בלתי מזוהה." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "היו אמורים להיות %1$d ערכים, אך נמצאו %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "היו אמורים להיות סוגריים מרובעים פותחים ואחריהם סדרה של ערכים." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "היו אמורים להיות סוגריים מרובעים פותחים." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "מילת מפתח בלתי צפויה." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "סיום בלתי צפוי לביטוי התניה (CASE)" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "כנראה כינוי כפול לביטוי התניה (CASE)." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "אמור היה להיות כינוי אחרי AS (בשם) אבל במקום נמצא " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "נמצא כינוי בעבר." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "אמור היה להיות כינוי אחרי ה־AS (בשם)." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "אמור היה להיות שם של סמל! אסור להשתמש במילה שמורה בתור שם עמודה ללא סימן " "הטעמה משני (`)." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "אמור היה להיות שם סמל!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "אמורים היו להיות פסיק או סוגריים סוגרים." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "אמורים היו להיות סוגריים סוגרים." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "סוג הנתונים אינו מזוהה." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "אמור היה להיות ביטוי." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "אמור היה להיות כינוי." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "נקודה בלתי צפויה." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "אסימון בלתי צפוי." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "אמור היה להיות היסט." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "סיום בלתי צפוי לביטוי נעילה (LOCK)." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "אפשרות זו סותרת את „%1$s”." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "אמור היה להיות השם הישן של הטבלה." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "אמורה הייתה להיות מילת המפתח „TO” (אל)." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "אמור היה להיות השם החדש של הטבלה." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "אמורה הייתה להיות פעולת שינוי שם." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "ביטוי חסר." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "תו בלתי צפוי." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "אמורים היו להיות רווחים לפני המפריד." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "אמור היה להיות מפריד." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "אמורות היו להיות מירכאות סוגרות %1$s." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "אמור היה להיות שם משתנה." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "תחילת הביטוי אינו צפוי." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "סוג המשפט בלתי מזוהה." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "לא החלה העברה בעבר." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "סוג הסעיף הזה כבר נותח בעבר." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "מילת מפתח בלתי מזוהה." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "מילת מפתח בסוף משפט." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "סידור הסעיפים בלתי צפוי." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "אמור היה להיות שם היישות." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "אמור היה להיות שם טבלה." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "אמורה הייתה להיות לפחות הגדרת עמודה אחת." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "אמורה הייתה להיות מילת מפתח „RETURNS” (מחזירה)." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "סוג סעיף זה אינו תקף בשאילתות מרובות טבלאות." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "סיום בלתי צפוי להכרזת נעילה (LOCK)." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "מילת מפתח בלתי צפויה" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "אמור היה להיות שם ביטוי הטבלה השיתופית (CTE)." #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "אמורה הייתה להיות מילת המפתח AS (בשם)." #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "אמור היה להיות תת־שאילתה של ביטוי טבלה שיתופית (CTE)." #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "סיום בלתי צפוי ל־WITH CTE." #~ msgid "Unexpected end of Lock expression." #~ msgstr "סיום בלתי צפוי לביטוי נעילה." #~ msgid "error #1" #~ msgstr "שגיאה #1" #~ msgid "strict error" #~ msgstr "שגיאת הקפדה" sql-parser-5.9.0/locale/hi/000077500000000000000000000000001455302707200154625ustar00rootroot00000000000000sql-parser-5.9.0/locale/hi/LC_MESSAGES/000077500000000000000000000000001455302707200172475ustar00rootroot00000000000000sql-parser-5.9.0/locale/hi/LC_MESSAGES/sqlparser.mo000066400000000000000000000062721455302707200216270ustar00rootroot00000000000000|**<Lg 4%&Z"!""4RjL[LvlD%Bj<I~4 n =" ?` 1 M P 7q . > B 2Z ,     %1$d values were expected, but found %2$d.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A symbol name was expected!An expression was expected.An offset was expected.An opening bracket was expected.Missing comma before start of a new alter operation.No transaction was previously started.Not implemented yet.Unexpected beginning of statement.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected keyword.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Hindi Language: hi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 4.16-dev %1$d आपेक्षित था परन्तु %2$d मिला।एक समापन कोष्ठक अपेक्षित था।एक अल्पविराम या एक समापन कोष्ठक अपेक्षित था।एक नया कथन मिला, परंतु पूर्व कथन और नए कथन के बीच कोई सीमांकक नहीं मिला।एक प्रतीक नाम आपेक्षित था!एक वाक्यांश अपेक्षित था।एक सीमांक अपेक्षित था।एक खुला कोष्ठक आपेक्षित था।नए बदलाव संक्रिया के आरंभ में अल्प विराम नही है।पूर्व में कोई अंतरण आरंभ नहीं किया गया था।अभी लागू नहीं किया गया।कथन का अनापेक्षित आरंभ।अनापेक्षित बिंदु।CASE वाक्यांश का अनापेक्षित अंतLOCK वाक्यांश का अनापेक्षित अंत।अनापेक्षित बीजशब्द।अनापेक्षित टोकन।अमान्य बदलाव संक्रिया।आंकड़े का अमान्य प्रकार।अमान्य कथन प्रकार।चर नाम अपेक्षित।sql-parser-5.9.0/locale/hi/LC_MESSAGES/sqlparser.po000066400000000000000000000254121455302707200216270ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Hindi \n" "Language: hi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "अभी लागू नहीं किया गया।" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "एक नया कथन मिला, परंतु पूर्व कथन और नए कथन के बीच कोई सीमांकक नहीं मिला।" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "नए बदलाव संक्रिया के आरंभ में अल्प विराम नही है।" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "अमान्य बदलाव संक्रिया।" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "%1$d आपेक्षित था परन्तु %2$d मिला।" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "एक खुला कोष्ठक आपेक्षित था।" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "अनापेक्षित बीजशब्द।" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "CASE वाक्यांश का अनापेक्षित अंत" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected after AS." msgstr "कोइ डाटाबेस नहीं चुना गया है।" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "एक प्रतीक नाम आपेक्षित था!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "एक अल्पविराम या एक समापन कोष्ठक अपेक्षित था।" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "एक समापन कोष्ठक अपेक्षित था।" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "आंकड़े का अमान्य प्रकार।" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "एक वाक्यांश अपेक्षित था।" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected." msgstr "कोइ डाटाबेस नहीं चुना गया है।" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "अनापेक्षित बिंदु।" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "अनापेक्षित टोकन।" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "एक सीमांक अपेक्षित था।" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "LOCK वाक्यांश का अनापेक्षित अंत।" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 #, fuzzy #| msgid "Title of browser window when a table is selected" msgid "The old name of the table was expected." msgstr "ब्राउज़र विंडो का शीर्षक है जब किसी भी सर्वर का चयन नहीं किया है" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "रौ को डिलीट कर दिया" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "नियमित अभिव्यक्ति के रूप में" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format #| msgid "Table %1$s has been created." msgid "Ending quote %1$s was expected." msgstr "%1$s टेबल बना दिया गया है" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "चर नाम अपेक्षित।" #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "कथन का अनापेक्षित आरंभ।" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "अमान्य कथन प्रकार।" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "पूर्व में कोई अंतरण आरंभ नहीं किया गया था।" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "At Beginning of Table" msgid "Keyword at end of statement." msgstr "टेबल के शुरू में" #: src/Statement.php:555 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected ordering of clauses." msgstr "टेबल के शुरू में" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Table name template" msgid "A table name was expected." msgstr "टेबल नाम टेम्पलेट" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "रौ को डिलीट कर दिया" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK statement." msgstr "टेबल के शुरू में" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "Title of browser window when a table is selected" msgid "The name of the CTE was expected." msgstr "ब्राउज़र विंडो का शीर्षक है जब किसी भी सर्वर का चयन नहीं किया है" #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "An offset was expected." msgid "AS keyword was expected." msgstr "एक सीमांक अपेक्षित था।" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "An offset was expected." msgid "Subquery of the CTE was expected." msgstr "एक सीमांक अपेक्षित था।" #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of the WITH CTE." msgstr "टेबल के शुरू में" #~ msgid "Unexpected end of Lock expression." #~ msgstr "LOCK वाक्यांश का अनापेक्षित अंत।" #, fuzzy #~| msgid "errors." #~ msgid "error #1" #~ msgstr "त्रुटियों" #, fuzzy #~| msgid "Gather errors" #~ msgid "strict error" #~ msgstr "त्रुटियों को इकट्ठा करें" sql-parser-5.9.0/locale/hr/000077500000000000000000000000001455302707200154735ustar00rootroot00000000000000sql-parser-5.9.0/locale/hr/LC_MESSAGES/000077500000000000000000000000001455302707200172605ustar00rootroot00000000000000sql-parser-5.9.0/locale/hr/LC_MESSAGES/sqlparser.mo000066400000000000000000000010621455302707200216300ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2015-10-15 11:24+0200 Last-Translator: Michal Čihař Language-Team: Croatian Language: hr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2; X-Generator: Weblate 2.5-dev sql-parser-5.9.0/locale/hr/LC_MESSAGES/sqlparser.po000066400000000000000000000216071455302707200216420ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2015-10-15 11:24+0200\n" "Last-Translator: Michal Čihař \n" "Language-Team: Croatian \n" "Language: hr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Generator: Weblate 2.5-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected after AS." msgstr "Nema odabrane baze podataka." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy msgid "A symbol name was expected!" msgstr "Predložak naziva datoteka" #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "No databases selected." msgid "A comma or a closing bracket was expected." msgstr "Nema odabrane baze podataka." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "No rows selected" msgid "An expression was expected." msgstr "Nema odabranih redova" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected." msgstr "Nema odabrane baze podataka." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK expression." msgstr "Pri početku tablice" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 #, fuzzy #| msgid "The number of tables that are open." msgid "The old name of the table was expected." msgstr "Broj otvorenih tablica." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 #, fuzzy #| msgid "The number of tables that are open." msgid "The new name of the table was expected." msgstr "Broj otvorenih tablica." #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "Redak je izbrisan" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "kao regularan izraz" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format #| msgid "Table %1$s has been created." msgid "Ending quote %1$s was expected." msgstr "Tablica %1$s je izrađena." #: src/Lexer.php:1056 #, fuzzy msgid "Variable name was expected." msgstr "Predložak naziva datoteka" #: src/Parser.php:456 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected beginning of statement." msgstr "Pri početku tablice" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "At Beginning of Table" msgid "Keyword at end of statement." msgstr "Pri početku tablice" #: src/Statement.php:555 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected ordering of clauses." msgstr "Pri početku tablice" #: src/Statements/CreateStatement.php:549 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the entity was expected." msgstr "Broj otvorenih tablica." #: src/Statements/CreateStatement.php:598 #, fuzzy msgid "A table name was expected." msgstr "Predložak naziva datoteka" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "Redak je izbrisan" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK statement." msgstr "Pri početku tablice" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the CTE was expected." msgstr "Broj otvorenih tablica." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No rows selected" msgid "AS keyword was expected." msgstr "Nema odabranih redova" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The number of tables that are open." msgid "Subquery of the CTE was expected." msgstr "Broj otvorenih tablica." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of the WITH CTE." msgstr "Pri početku tablice" #, fuzzy #~| msgid "At Beginning of Table" #~ msgid "Unexpected end of Lock expression." #~ msgstr "Pri početku tablice" #, fuzzy #~| msgid "errors." #~ msgid "error #1" #~ msgstr "greške." #, fuzzy #~| msgid "Gather errors" #~ msgid "strict error" #~ msgstr "Skupi greške" sql-parser-5.9.0/locale/hu/000077500000000000000000000000001455302707200154765ustar00rootroot00000000000000sql-parser-5.9.0/locale/hu/LC_MESSAGES/000077500000000000000000000000001455302707200172635ustar00rootroot00000000000000sql-parser-5.9.0/locale/hu/LC_MESSAGES/sqlparser.mo000066400000000000000000000066721455302707200216470ustar00rootroot00000000000000#4/L* !4V*vL +Ba}< , @(T}&$''!"I*l"(>[w4( ] $} , U % F ` 's   C $ )- W x -  +   6 O -j 5     '! I f "   !" #   %1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.No transaction was previously started.Not implemented yet.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2016-12-21 15:58+0000 Last-Translator: Michal Čihař Language-Team: Hungarian Language: hu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 2.10 %1$d értékek voltak elvárva, de %2$d található."RETURNS" kulcsszavat vártunk.Záró kapcsos zárójelet vártunk.Egy vessző vagy egy záró zárójel várt.Egy új utasítás található, de nincs elválasztó közte és az előző között.Egy átnevezési művelet várt.Egy szimbólumnév várt!Egy álnév várt.Egy álnév korábban már megtalálva.Egy kifejezés várt.Offsetet vártunk.Nyitó kapcsos zárójelet és az azt követő értékeket vártuk.Nyitó kapcsos zárójelet vártunk.Legalább egy oszlopmeghatározás várt.A(z) %1$s záró idézés várt.Határolót vártunk.A határoló előtt szóközö(ke)t vártunk."TO" kulcsszavat vártunk.Nem volt korábban elindított tranzakció.Még nincs megvalósítva.Az entitás neve várt.A tábla új neve várt.A tábla régi neve várt.Ez a lehetőség ütközik ezzel: „%1$s”.A kikötés ezen típusa korábban fel lett dolgozva.Váratlan utasítás kezdet.Váratlan karakter.Váratlan pont.Váratlan jelsor.Felismerhetetlen módosítás művelet.Felismerhetetlen adattípus.Felismerhetetlen kulcsszó.Felismerhetetlen utasítástípus.Változónév várt.sql-parser-5.9.0/locale/hu/LC_MESSAGES/sqlparser.po000066400000000000000000000227561455302707200216530ustar00rootroot00000000000000# Automatically generated <>, 2010. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2016-12-21 15:58+0000\n" "Last-Translator: Michal Čihař \n" "Language-Team: Hungarian \n" "Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 2.10\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Még nincs megvalósítva." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "Egy új utasítás található, de nincs elválasztó közte és az előző között." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Felismerhetetlen módosítás művelet." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "%1$d értékek voltak elvárva, de %2$d található." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Nyitó kapcsos zárójelet és az azt követő értékeket vártuk." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Nyitó kapcsos zárójelet vártunk." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 #, fuzzy #| msgid "Unexpected token." msgid "Unexpected keyword." msgstr "Váratlan jelsor." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Egy álnév korábban már megtalálva." #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "An alias was expected." msgid "An alias was expected after AS." msgstr "Egy álnév várt." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Egy szimbólumnév várt!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Egy vessző vagy egy záró zárójel várt." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Záró kapcsos zárójelet vártunk." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Felismerhetetlen adattípus." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Egy kifejezés várt." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Egy álnév várt." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Váratlan pont." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Váratlan jelsor." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Offsetet vártunk." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of LOCK expression." msgstr "Váratlan utasítás kezdet." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Ez a lehetőség ütközik ezzel: „%1$s”." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "A tábla régi neve várt." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "\"TO\" kulcsszavat vártunk." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "A tábla új neve várt." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Egy átnevezési művelet várt." #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "reguláris kifejezésként" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Váratlan karakter." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "A határoló előtt szóközö(ke)t vártunk." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Határolót vártunk." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "A(z) %1$s záró idézés várt." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Változónév várt." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Váratlan utasítás kezdet." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Felismerhetetlen utasítástípus." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Nem volt korábban elindított tranzakció." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "A kikötés ezen típusa korábban fel lett dolgozva." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Felismerhetetlen kulcsszó." #: src/Statement.php:409 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Keyword at end of statement." msgstr "Váratlan utasítás kezdet." #: src/Statement.php:555 #, fuzzy #| msgid "at beginning of table" msgid "Unexpected ordering of clauses." msgstr "a tábla elejénél" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Az entitás neve várt." #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Table name template" msgid "A table name was expected." msgstr "Táblanév sablon" #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Legalább egy oszlopmeghatározás várt." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "\"RETURNS\" kulcsszavat vártunk." #: src/Statements/DeleteStatement.php:329 #, fuzzy #| msgid "No transaction was previously started." msgid "This type of clause is not valid in Multi-table queries." msgstr "Nem volt korábban elindított tranzakció." #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of LOCK statement." msgstr "Váratlan utasítás kezdet." #: src/Statements/PurgeStatement.php:138 #, fuzzy #| msgid "Unexpected token." msgid "Unexpected keyword" msgstr "Váratlan jelsor." #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The name of the entity was expected." msgid "The name of the CTE was expected." msgstr "Az entitás neve várt." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "A \"RETURNS\" keyword was expected." msgid "AS keyword was expected." msgstr "\"RETURNS\" kulcsszavat vártunk." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The name of the entity was expected." msgid "Subquery of the CTE was expected." msgstr "Az entitás neve várt." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of the WITH CTE." msgstr "Váratlan utasítás kezdet." #, fuzzy #~| msgid "at beginning of table" #~ msgid "Unexpected end of Lock expression." #~ msgstr "a tábla elejénél" #~ msgid "error #1" #~ msgstr "hiba #1" #~ msgid "strict error" #~ msgstr "szigorú hiba" sql-parser-5.9.0/locale/hy/000077500000000000000000000000001455302707200155025ustar00rootroot00000000000000sql-parser-5.9.0/locale/hy/LC_MESSAGES/000077500000000000000000000000001455302707200172675ustar00rootroot00000000000000sql-parser-5.9.0/locale/hy/LC_MESSAGES/sqlparser.mo000066400000000000000000000031731455302707200216440ustar00rootroot00000000000000 t* <]t,''-C_MKj*8S6n>>#9A  A comma or a closing bracket was expected.A rename operation was expected.An alias was expected.An expression was expected.At least one column definition was expected.Ending quote %1$s was expected.The new name of the table was expected.The old name of the table was expected.Unexpected character.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2015-12-18 18:19+0000 Last-Translator: Andrey Aleksanyants Language-Team: Armenian Language: hy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); X-Generator: Weblate 2.5-dev Սպասվում էր ստորակետը կամ փակող փակագիծը։Սպասվում էր վերանվանման գործողությունը։Սպասվում էր այլանունը։Սպասվում էր արտահայտությունը։Սպասվում էր առնվազն մեկ սյունակի սահմանումը։Սպասվում էր %1$s փակող չակերտը։Սպասվում էր աղյուսակի նոր անունը։Սպասվում էր աղյուսակի հին անունը։Անսպասելի նշան։Սպասվում էր փոփոխականի անունը։sql-parser-5.9.0/locale/hy/LC_MESSAGES/sqlparser.po000066400000000000000000000227561455302707200216570ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2012 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # Automatically generated, 2012. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2015-12-18 18:19+0000\n" "Last-Translator: Andrey Aleksanyants \n" "Language-Team: Armenian \n" "Language: hy\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Weblate 2.5-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 #, fuzzy #| msgid "Unexpected character." msgid "Unexpected keyword." msgstr "Անսպասելի նշան։" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "An alias was expected." msgid "An alias was expected after AS." msgstr "Սպասվում էր այլանունը։" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "Variable name was expected." msgid "A symbol name was expected!" msgstr "Սպասվում էր փոփոխականի անունը։" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Սպասվում էր ստորակետը կամ փակող փակագիծը։" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Սպասվում էր արտահայտությունը։" #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Սպասվում էր այլանունը։" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "Unexpected characters on line %s." msgid "Unexpected end of LOCK expression." msgstr "Անսպասելի նշաններ %s տողում։" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Սպասվում էր աղյուսակի հին անունը։" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Սպասվում էր աղյուսակի նոր անունը։" #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Սպասվում էր վերանվանման գործողությունը։" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "որպես կանոնավոր արտահայտություն" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Անսպասելի նշան։" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Սպասվում էր %1$s փակող չակերտը։" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Սպասվում էր փոփոխականի անունը։" #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "" #: src/Statement.php:555 #, fuzzy #| msgid "Unexpected characters on line %s." msgid "Unexpected ordering of clauses." msgstr "Անսպասելի նշաններ %s տողում։" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Variable name was expected." msgid "A table name was expected." msgstr "Սպասվում էր փոփոխականի անունը։" #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Սպասվում էր առնվազն մեկ սյունակի սահմանումը։" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Unexpected characters on line %s." msgid "Unexpected end of LOCK statement." msgstr "Անսպասելի նշաններ %s տողում։" #: src/Statements/PurgeStatement.php:138 #, fuzzy #| msgid "Unexpected character." msgid "Unexpected keyword" msgstr "Անսպասելի նշան։" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The new name of the table was expected." msgid "The name of the CTE was expected." msgstr "Սպասվում էր աղյուսակի նոր անունը։" #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "An expression was expected." msgid "AS keyword was expected." msgstr "Սպասվում էր արտահայտությունը։" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The old name of the table was expected." msgid "Subquery of the CTE was expected." msgstr "Սպասվում էր աղյուսակի հին անունը։" #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected characters on line %s." msgid "Unexpected end of the WITH CTE." msgstr "Անսպասելի նշաններ %s տողում։" #, fuzzy #~| msgid "Unexpected characters on line %s." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Անսպասելի նշաններ %s տողում։" #, fuzzy #~| msgid "Error" #~ msgid "error #1" #~ msgstr "Սխալ" #, fuzzy #~| msgid "Query error" #~ msgid "strict error" #~ msgstr "Հարցման սխալ" sql-parser-5.9.0/locale/ia/000077500000000000000000000000001455302707200154535ustar00rootroot00000000000000sql-parser-5.9.0/locale/ia/LC_MESSAGES/000077500000000000000000000000001455302707200172405ustar00rootroot00000000000000sql-parser-5.9.0/locale/ia/LC_MESSAGES/sqlparser.mo000066400000000000000000000122421455302707200216120ustar00rootroot000000000000002C<H*I!t*L .Ock#.Ed< ,#C(W4&(-=$k''"8 *< "g   ! " !  * > ^ p      2 & % 03 Ud ( " "'%8TFt$/&70P"$9.G1[$(, A)6k'&'!,Iv#(8%W$}12 !  &"$(*#0',/ %+) -. %1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Interlingua Language: ia MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 4.16-dev %1$d valores esseva expectate, ma il trovava %2$d.On expectava le parola clave "RETURN".On expectava un parenthesis claudite.On expectava un comma o un parentheses claudite.On trovava un nove declaration, ma il non ha alcun demarcator inter isto e le previe.On expectava un operation de renominar..On expectava un nomine de symbolo!On expectava un nomine de symbolo! Un parola clave reservate non pte esser usate como nomine de columna sin retro citationes (backquotes).On expectava un nomine de tabella.Un alias attendite post AS ma obteneva On expectava un pseudonymo AS.On expectava un alias.Previemente on trovava un pseudonymo.On expectava un expression.On expectava un displaciamento.On expectava un parenthesis aperite sequite per un insimul de valores.On expectava un parenthesis aperite.On expectava al minus un definition de columna.On expectava le fin de citation %1$s .On expectava demarcator.On expectava spatio(s) blanc ante le demarcator.On expectava le parola clave "TO".Parola clave al fin del instruction.mancante comma ante initiar un nove operation de alterar.Expression mancante.Necun transaction esseva initiate previemente.Ancora non actuate.Un potential alias duplicate del expression CASE.On expectava le nomine del entitate.On expectava le nove nomine del tabella.On expectava le vetule nomine de le tabella.Iste option conflige con "%1$s".Iste typo de proposition non es valide in query de multi-tabella.Iste typo de proposition esseva analysate previemente.Un initio de instruction non expectate.Un character non expectate.Puncto inexpectate.Un fin inexpectate del expression CASEUn fin inexpectate del expression LOCK.Un initio de instruction LOCK non expectate.Un parola clave non expectateUn parola clave non expectate.Un ordine de clausas non expectate.Un indicio non expectate.Operation d alteration non recognoscite.Typo de datos non cognoscite.Parola clave non recognoscite.Typo de declaration non recognoscite.On expectava un nomine de variabile.sql-parser-5.9.0/locale/ia/LC_MESSAGES/sqlparser.po000066400000000000000000000235021455302707200216160ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2013 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # Automatically generated, 2013. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Interlingua \n" "Language: ia\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Ancora non actuate." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "On trovava un nove declaration, ma il non ha alcun demarcator inter isto e " "le previe." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "mancante comma ante initiar un nove operation de alterar." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Operation d alteration non recognoscite." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "%1$d valores esseva expectate, ma il trovava %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "On expectava un parenthesis aperite sequite per un insimul de valores." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "On expectava un parenthesis aperite." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Un parola clave non expectate." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Un fin inexpectate del expression CASE" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Un potential alias duplicate del expression CASE." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "Un alias attendite post AS ma obteneva " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Previemente on trovava un pseudonymo." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "On expectava un pseudonymo AS." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "On expectava un nomine de symbolo! Un parola clave reservate non pte esser " "usate como nomine de columna sin retro citationes (backquotes)." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "On expectava un nomine de symbolo!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "On expectava un comma o un parentheses claudite." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "On expectava un parenthesis claudite." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Typo de datos non cognoscite." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "On expectava un expression." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "On expectava un alias." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Puncto inexpectate." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Un indicio non expectate." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "On expectava un displaciamento." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Un fin inexpectate del expression LOCK." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Iste option conflige con \"%1$s\"." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "On expectava le vetule nomine de le tabella." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "On expectava le parola clave \"TO\"." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "On expectava le nove nomine del tabella." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "On expectava un operation de renominar.." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Expression mancante." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Un character non expectate." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "On expectava spatio(s) blanc ante le demarcator." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "On expectava demarcator." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "On expectava le fin de citation %1$s ." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "On expectava un nomine de variabile." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Un initio de instruction non expectate." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Typo de declaration non recognoscite." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Necun transaction esseva initiate previemente." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Iste typo de proposition esseva analysate previemente." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Parola clave non recognoscite." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Parola clave al fin del instruction." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Un ordine de clausas non expectate." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "On expectava le nomine del entitate." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "On expectava un nomine de tabella." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "On expectava al minus un definition de columna." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "On expectava le parola clave \"RETURN\"." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Iste typo de proposition non es valide in query de multi-tabella." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Un initio de instruction LOCK non expectate." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Un parola clave non expectate" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The name of the entity was expected." msgid "The name of the CTE was expected." msgstr "On expectava le nomine del entitate." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "A \"RETURNS\" keyword was expected." msgid "AS keyword was expected." msgstr "On expectava le parola clave \"RETURN\"." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The name of the entity was expected." msgid "Subquery of the CTE was expected." msgstr "On expectava le nomine del entitate." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected end of LOCK statement." msgid "Unexpected end of the WITH CTE." msgstr "Un initio de instruction LOCK non expectate." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Un fin inexpectate del expression LOCK." #~ msgid "error #1" #~ msgstr "error #1" #~ msgid "strict error" #~ msgstr "stricte error" sql-parser-5.9.0/locale/id/000077500000000000000000000000001455302707200154565ustar00rootroot00000000000000sql-parser-5.9.0/locale/id/LC_MESSAGES/000077500000000000000000000000001455302707200172435ustar00rootroot00000000000000sql-parser-5.9.0/locale/id/LC_MESSAGES/sqlparser.mo000066400000000000000000000124101455302707200216120ustar00rootroot000000000000006I|*!*L9 c'B#[<  F,g( 4)^&r-!!$ 'E 'm " 8 * " ? U !e " !     3 E c {    - '  )Q>%wMk0((%:<`*$@!\6~,,Fdy'2)%Ol '/Gf'y,)'  .%53 0*2 $ (-&4+1!/#6"%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.AS keyword was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.Subquery of the CTE was expected.The name of the CTE was expected.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected end of the WITH CTE.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Indonesian Language: id MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; X-Generator: Weblate 4.16-dev X-Poedit-Basepath: ../../.. Nilai %1$d diharapkan. Namun, ditemukan %2$d.Sebuah kata kunci "RETURNS" diharapkan.Sebuah kurung tutup diharapkan.Sebuah koma atau kurung tutup diharapkan.Suatu pernyataan baru ditemukan, tetapi tanpa pembatas antara itu dan sebelumnya.Sebuah operasi ganti nama diharapkan.Sebuah nama simbol diharapkan!Sebuah nama simbol diharapkan! Kata kunci yang telah diatur tidak dapat digunakan sebagai nama kolom tanpa tanda kutip.Sebuah nama tabel diharapkan.kata kunci AS diharapkan.Alias yang diharapkan setelah AS tetapi didapat Sebuah alias diharapkan.Sebuah alias diharapkan.Sebuah alias telah ditemukan sebelumnya.Sebuah perintah (expression) diharapkan.Suatu pergeseran (offset) diharapkan.Sebuah kurung buka yang diikuti oleh nilai-nilai diharapkan.Sebuah kurung buka diharapkan.Setidaknya satu definisi kolom diharapkan.Petik akhir %1$s diharapkan.Mengharapkan pembatas.Mengharapkan spasi sebelum pembatas.Kata kunci "TO" diharapkan.Kata kunci pada akhir pernyataan.Tidak ada koma sebelum memulai operasi perubahan baru.Perintah (expression) hilang.Tidak ada transaksi yang dimulai sebelumnya.Belum diimplementasikan.Alias potensial duplikat dari ekspresi CASE.Subquery dari CTE diharapkan.Nama CTE diharapkan.Nama entitas diharapkan.Nama baru tabel diharapkan.Nama lama tabel diharapkan.Pilihan ini bertentangan dengan "%1$s".Jenis klausa ini tidak sah dalam kueri multitabel.Jenis klausa ini telah diurai sebelumnya.Awal pernyataan tak terduga.Karakter tak terduga.Titik tak terduga.Akhir operasi CASE tak terdugaAkhir ekspresi LOCK tak terduga.Awal pernyataan tak terduga.Akhir yang tidak terduga dari WITH CTE.Kata kunci tidak adaKata kunci tak terduga.Pengurutan klausa tak terduga.Token tak terduga.Operasi ubah tabel (alter) tak dikenal.Tipe data tak dikenal.Kata kunci tak dikenal.Jenis pernyataan tak dikenal.Nama variabel diharapkan.sql-parser-5.9.0/locale/id/LC_MESSAGES/sqlparser.po000066400000000000000000000222241455302707200216210ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Indonesian \n" "Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Weblate 4.16-dev\n" "X-Poedit-Basepath: ../../..\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Belum diimplementasikan." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "Suatu pernyataan baru ditemukan, tetapi tanpa pembatas antara itu dan " "sebelumnya." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Tidak ada koma sebelum memulai operasi perubahan baru." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Operasi ubah tabel (alter) tak dikenal." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "Nilai %1$d diharapkan. Namun, ditemukan %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Sebuah kurung buka yang diikuti oleh nilai-nilai diharapkan." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Sebuah kurung buka diharapkan." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Kata kunci tak terduga." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Akhir operasi CASE tak terduga" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Alias potensial duplikat dari ekspresi CASE." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "Alias yang diharapkan setelah AS tetapi didapat " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Sebuah alias telah ditemukan sebelumnya." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "Sebuah alias diharapkan." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Sebuah nama simbol diharapkan! Kata kunci yang telah diatur tidak dapat " "digunakan sebagai nama kolom tanpa tanda kutip." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Sebuah nama simbol diharapkan!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Sebuah koma atau kurung tutup diharapkan." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Sebuah kurung tutup diharapkan." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Tipe data tak dikenal." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Sebuah perintah (expression) diharapkan." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Sebuah alias diharapkan." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Titik tak terduga." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Token tak terduga." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Suatu pergeseran (offset) diharapkan." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Akhir ekspresi LOCK tak terduga." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Pilihan ini bertentangan dengan \"%1$s\"." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Nama lama tabel diharapkan." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Kata kunci \"TO\" diharapkan." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Nama baru tabel diharapkan." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Sebuah operasi ganti nama diharapkan." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Perintah (expression) hilang." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Karakter tak terduga." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Mengharapkan spasi sebelum pembatas." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Mengharapkan pembatas." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Petik akhir %1$s diharapkan." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Nama variabel diharapkan." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Awal pernyataan tak terduga." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Jenis pernyataan tak dikenal." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Tidak ada transaksi yang dimulai sebelumnya." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Jenis klausa ini telah diurai sebelumnya." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Kata kunci tak dikenal." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Kata kunci pada akhir pernyataan." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Pengurutan klausa tak terduga." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Nama entitas diharapkan." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Sebuah nama tabel diharapkan." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Setidaknya satu definisi kolom diharapkan." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Sebuah kata kunci \"RETURNS\" diharapkan." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Jenis klausa ini tidak sah dalam kueri multitabel." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Awal pernyataan tak terduga." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Kata kunci tidak ada" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "Nama CTE diharapkan." #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "kata kunci AS diharapkan." #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "Subquery dari CTE diharapkan." #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "Akhir yang tidak terduga dari WITH CTE." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Akhir ekspresi Lock tak terduga." #~ msgid "error #1" #~ msgstr "galat #1" #~ msgid "strict error" #~ msgstr "galat ketat" sql-parser-5.9.0/locale/it/000077500000000000000000000000001455302707200154765ustar00rootroot00000000000000sql-parser-5.9.0/locale/it/LC_MESSAGES/000077500000000000000000000000001455302707200172635ustar00rootroot00000000000000sql-parser-5.9.0/locale/it/LC_MESSAGES/sqlparser.mo000066400000000000000000000127301455302707200216370ustar00rootroot000000000000006I|*!*L9 c'B#[<  F,g( 4)^&r-!!$ 'E 'm " 8 * " ? U !e " !     3 E c {    8 ' .k5&m#*-H@^ - =)!g(@7 A1Z"')*?@j9(#@$d#(!!(1Zv  ,)'  .%53 0*2 $ (-&4+1!/#6"%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.AS keyword was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.Subquery of the CTE was expected.The name of the CTE was expected.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected end of the WITH CTE.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Italian Language: it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 4.16-dev Erano attesi %1$d valori, ma ne sono stati trovati %2$d.Era attesa una parola chiave "RETURNS".Era attesa una parentesi chiusa.Era attesa una virgola o una parentesi chiusa.E' stato trovato un nuovo statement, ma non c'è alcun delimitatore tra il nuovo statement e il precedente.Era attesa una operazione di rinomina.Era atteso un nome di simbolo!Era atteso un nome di simbolo! Un termine riservato non può essere usato come nome di un campo senza inserirlo tra backquotes ( ` ).Era atteso un nome di tabella.Era attesa la parola chiave AS.Atteso un alias dopo AS ma trovato Era atteso un alias dopo AS.Era atteso un alias.Un alias è stato trovato precedentemente.Era attesa un'espressione.Era atteso un offset.Era attesa una parentesi aperta seguita da un insieme di valori.Era attesa una parentesi aperta.Era attesa almeno la definizione di un campo.Era atteso il fine quote %1$s.Era atteso un delimitatore.Erano attesi uno o più spazi bianchi prima del delimitatore.Era attesa la parola chiave "TO".Parola chiave alla fine dello statement.Virgola assente prima dell'inizio di una nuova operazione alter.Espressione mancante.Non è stata iniziata alcuna transazione in precedenza.Non ancora implementato.Potenziale alias duplicato dell'espressione CASE.Era attesa una subquery della CTE.Era atteso il nome della CTE.Era atteso il nome dell'entity.Era atteso il nuovo nome della tabella.Era atteso il vecchio nome della tabella.Questa opzione è in conflitto con "%1$s".Questo tipo di clausola non è valida nelle query Multi-tabella.Questo tipo di clausola è stata esaminata in precedenza.Inizio di statement inatteso.Carattere inatteso.Segno di punteggiatura "punto" inatteso.Inattesa fine dell'espressione CASEInattesa fine dell'espressione LOCK.Inattesa fine dello statement LOCK.Inattesa fine dell'espressione WITH CTE.Keyword inaspettataKeyword inaspettata.Ordinamento di clausole inatteso.Token inatteso.Operazione di modifica non riconosciuta.Tipo dati non riconosciuto.Parola chiave non riconosciuta.Tipo statement non riconosciuto.Era atteso un nome di variabile.sql-parser-5.9.0/locale/it/LC_MESSAGES/sqlparser.po000066400000000000000000000226231455302707200216440ustar00rootroot00000000000000# Automatically generated <>, 2010. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Italian \n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Non ancora implementato." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "E' stato trovato un nuovo statement, ma non c'è alcun delimitatore tra il " "nuovo statement e il precedente." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Virgola assente prima dell'inizio di una nuova operazione alter." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Operazione di modifica non riconosciuta." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "Erano attesi %1$d valori, ma ne sono stati trovati %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Era attesa una parentesi aperta seguita da un insieme di valori." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Era attesa una parentesi aperta." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Keyword inaspettata." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Inattesa fine dell'espressione CASE" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Potenziale alias duplicato dell'espressione CASE." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "Atteso un alias dopo AS ma trovato " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Un alias è stato trovato precedentemente." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "Era atteso un alias dopo AS." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Era atteso un nome di simbolo! Un termine riservato non può essere usato " "come nome di un campo senza inserirlo tra backquotes ( ` )." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Era atteso un nome di simbolo!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Era attesa una virgola o una parentesi chiusa." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Era attesa una parentesi chiusa." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Tipo dati non riconosciuto." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Era attesa un'espressione." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Era atteso un alias." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Segno di punteggiatura \"punto\" inatteso." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Token inatteso." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Era atteso un offset." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Inattesa fine dell'espressione LOCK." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Questa opzione è in conflitto con \"%1$s\"." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Era atteso il vecchio nome della tabella." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Era attesa la parola chiave \"TO\"." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Era atteso il nuovo nome della tabella." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Era attesa una operazione di rinomina." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Espressione mancante." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Carattere inatteso." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Erano attesi uno o più spazi bianchi prima del delimitatore." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Era atteso un delimitatore." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Era atteso il fine quote %1$s." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Era atteso un nome di variabile." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Inizio di statement inatteso." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Tipo statement non riconosciuto." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Non è stata iniziata alcuna transazione in precedenza." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Questo tipo di clausola è stata esaminata in precedenza." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Parola chiave non riconosciuta." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Parola chiave alla fine dello statement." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Ordinamento di clausole inatteso." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Era atteso il nome dell'entity." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Era atteso un nome di tabella." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Era attesa almeno la definizione di un campo." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Era attesa una parola chiave \"RETURNS\"." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Questo tipo di clausola non è valida nelle query Multi-tabella." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Inattesa fine dello statement LOCK." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Keyword inaspettata" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "Era atteso il nome della CTE." #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "Era attesa la parola chiave AS." #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "Era attesa una subquery della CTE." #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "Inattesa fine dell'espressione WITH CTE." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Inattesa fine dell'espressione LOCK." #~ msgid "error #1" #~ msgstr "errore #1" #~ msgid "strict error" #~ msgstr "errore di tipo strict" sql-parser-5.9.0/locale/ja/000077500000000000000000000000001455302707200154545ustar00rootroot00000000000000sql-parser-5.9.0/locale/ja/LC_MESSAGES/000077500000000000000000000000001455302707200172415ustar00rootroot00000000000000sql-parser-5.9.0/locale/ja/LC_MESSAGES/sqlparser.mo000066400000000000000000000136101455302707200216130ustar00rootroot000000000000006I|*!*L9 c'B#[<  F,g( 4)^&r-!!$ 'E 'm " 8 * " ? U !e " !     3 E c {    E , ' *{F$!%F-!M3o'?!9=*w!0'BI`BJ%(p<0-';UH33Ba!}$>-1'P$x"$*6/!f,)'  .%53 0*2 $ (-&4+1!/#6"%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.AS keyword was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.Subquery of the CTE was expected.The name of the CTE was expected.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected end of the WITH CTE.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Japanese Language: ja MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; X-Generator: Weblate 4.16-dev 値 %1$d があるべきですが、 %2$d が見つかりました。キーワード "RETURNS" が必要です。閉じる括弧があるべきです。カンマか閉じ括弧が必要です。新しいステートメントが見つかりましたが、その前の文との間に区切り文字がありません。リネーム操作が必要です。シンボル名が必要です!シンボル名が必要です。 予約語をバッククォートなしでカラム名として使用することはできません。テーブル名が必要です。キーワード AS が必要です。AS の後にエイリアスが必要ですが、取得したものは AS の後にエイリアスが必要です。エイリアスが必要です。エイリアスが前に見つかっています。式が必要です。オフセットがあるべきです。左括弧とそれに続く一連の値があるべきです。左括弧が必要です。少なくとも 1 つのカラム定義が必要です。終端クォート %1$s が必要です。区切り文字が必要です。区切り文字の前に空白が必要です。キーワード "TO" が必要です。ステートメントの末尾にキーワードがあります。新しい ALTER 操作を開始する前にカンマがありません。式がありません。開始されているトランザクションはありません。実装されていません。CASE 式でエイリアスが重複している可能性があります。CTE のサブクエリが必要です。CTE の名前が必要です。エンティティの名前が予想されていました。テーブルの新しい名前が必要です。テーブルの古い名前が必要です。このオプションは "%1$s" と競合しています。この句の種類は、複数テーブルクエリでは無効です。この種類の句は以前に解釈済みです。ここで文を始めることができません。予期しない文字です。予期しないドット。予期しない CASE 式の終了予期しない LOCK 式の終了。LOCK ステートメントが予期せず終了しました。WITH CTE が予期せず終了しました。予期しないキーワード予期しないキーワードです。予期しない節の順序です。予期しないトークン。認識できない alter 操作。認識できないデータ形式。認識できないキーワードです。認識されないステートメント形式です。変数名があるべきです。sql-parser-5.9.0/locale/ja/LC_MESSAGES/sqlparser.po000066400000000000000000000234371455302707200216260ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Japanese \n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "実装されていません。" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "新しいステートメントが見つかりましたが、その前の文との間に区切り文字がありま" "せん。" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "新しい ALTER 操作を開始する前にカンマがありません。" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "認識できない alter 操作。" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "値 %1$d があるべきですが、 %2$d が見つかりました。" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "左括弧とそれに続く一連の値があるべきです。" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "左括弧が必要です。" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "予期しないキーワードです。" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "予期しない CASE 式の終了" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "CASE 式でエイリアスが重複している可能性があります。" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "AS の後にエイリアスが必要ですが、取得したものは " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "エイリアスが前に見つかっています。" #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "AS の後にエイリアスが必要です。" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "シンボル名が必要です。 予約語をバッククォートなしでカラム名として使用すること" "はできません。" #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "シンボル名が必要です!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "カンマか閉じ括弧が必要です。" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "閉じる括弧があるべきです。" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "認識できないデータ形式。" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "式が必要です。" #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "エイリアスが必要です。" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "予期しないドット。" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "予期しないトークン。" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "オフセットがあるべきです。" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "予期しない LOCK 式の終了。" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "このオプションは \"%1$s\" と競合しています。" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "テーブルの古い名前が必要です。" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "キーワード \"TO\" が必要です。" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "テーブルの新しい名前が必要です。" #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "リネーム操作が必要です。" #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "式がありません。" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "予期しない文字です。" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "区切り文字の前に空白が必要です。" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "区切り文字が必要です。" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "終端クォート %1$s が必要です。" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "変数名があるべきです。" #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "ここで文を始めることができません。" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "認識されないステートメント形式です。" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "開始されているトランザクションはありません。" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "この種類の句は以前に解釈済みです。" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "認識できないキーワードです。" #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "ステートメントの末尾にキーワードがあります。" #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "予期しない節の順序です。" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "エンティティの名前が予想されていました。" #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "テーブル名が必要です。" #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "少なくとも 1 つのカラム定義が必要です。" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "キーワード \"RETURNS\" が必要です。" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "この句の種類は、複数テーブルクエリでは無効です。" #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "LOCK ステートメントが予期せず終了しました。" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "予期しないキーワード" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "CTE の名前が必要です。" #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "キーワード AS が必要です。" #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "CTE のサブクエリが必要です。" #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "WITH CTE が予期せず終了しました。" #~ msgid "Unexpected end of Lock expression." #~ msgstr "予期しない LOCK 式の終了。" #~ msgid "error #1" #~ msgstr "エラー #1" #~ msgid "strict error" #~ msgstr "厳格なエラー" sql-parser-5.9.0/locale/ka/000077500000000000000000000000001455302707200154555ustar00rootroot00000000000000sql-parser-5.9.0/locale/ka/LC_MESSAGES/000077500000000000000000000000001455302707200172425ustar00rootroot00000000000000sql-parser-5.9.0/locale/ka/LC_MESSAGES/sqlparser.mo000066400000000000000000000007431455302707200216170ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2015-10-15 11:03+0200 Last-Translator: Michal Čihař Language-Team: Georgian Language: ka MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; X-Generator: Weblate 2.5-dev sql-parser-5.9.0/locale/ka/LC_MESSAGES/sqlparser.po000066400000000000000000000217461455302707200216300ustar00rootroot00000000000000# Automatically generated <>, 2010. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2015-10-15 11:03+0200\n" "Last-Translator: Michal Čihař \n" "Language-Team: Georgian \n" "Language: ka\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Weblate 2.5-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "Remove selected users" msgid "An alias was expected after AS." msgstr "Remove selected users" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "Remove selected users" msgid "A symbol name was expected!" msgstr "Remove selected users" #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "Remove selected users" msgid "A comma or a closing bracket was expected." msgstr "Remove selected users" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "Remove selected users" msgid "An expression was expected." msgstr "Remove selected users" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "Remove selected users" msgid "An alias was expected." msgstr "Remove selected users" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK expression." msgstr "ცხრილის დასაწყისში" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "სტრიქონი წაიშალა" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "რეგულარული გამოსახულება" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format #| msgid "Table %1$s has been created." msgid "Ending quote %1$s was expected." msgstr "Table %1$s has been created." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected beginning of statement." msgstr "ცხრილის დასაწყისში" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "At Beginning of Table" msgid "Keyword at end of statement." msgstr "ცხრილის დასაწყისში" #: src/Statement.php:555 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected ordering of clauses." msgstr "ცხრილის დასაწყისში" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Remove selected users" msgid "A table name was expected." msgstr "Remove selected users" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "სტრიქონი წაიშალა" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK statement." msgstr "ცხრილის დასაწყისში" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "Remove selected users" msgid "The name of the CTE was expected." msgstr "Remove selected users" #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "Remove selected users" msgid "AS keyword was expected." msgstr "Remove selected users" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "Table %1$s has been created." msgid "Subquery of the CTE was expected." msgstr "Table %1$s has been created." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of the WITH CTE." msgstr "ცხრილის დასაწყისში" #, fuzzy #~| msgid "At Beginning of Table" #~ msgid "Unexpected end of Lock expression." #~ msgstr "ცხრილის დასაწყისში" #, fuzzy #~| msgid "Error" #~ msgid "error #1" #~ msgstr "შეცდომა" #, fuzzy #~| msgid "Ignore errors" #~ msgid "strict error" #~ msgstr "შეცდომების იგნორირება" sql-parser-5.9.0/locale/kk/000077500000000000000000000000001455302707200154675ustar00rootroot00000000000000sql-parser-5.9.0/locale/kk/LC_MESSAGES/000077500000000000000000000000001455302707200172545ustar00rootroot00000000000000sql-parser-5.9.0/locale/kk/LC_MESSAGES/sqlparser.mo000066400000000000000000000105021455302707200216230ustar00rootroot00000000000000-=*! .*NLy cg< ),Jw( & G$\''"8*-"X{!" - ? ] u    ,} !  & N \ } l   "0 S e ;x  / ( ()<f *! %,F8s(  !;]q)+*)"'# %  &- ! $ ,(%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing expression.No transaction was previously started.Not implemented yet.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Kazakh Language: kk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 4.16-dev %1$d mánderi kútilgen, biraq %2$d tabyldy.«RETURNS» kilt sózi kútilgen.Jabushy jaqsha kútilgen.Útir nemese jabushy jaqsha kútilgen.Jańa nusqaý tabyldy, biraq onyń men aldyńǵy bireý arasynda bólgish joq.Qaıta ataý áreketi kútilgen.Tańba aty kútilgen!Tańba aty kútilgen! Saqtalǵan kilt sózdi doǵal ekpindersiz baǵan aty retinde paıdalanýǵa bolmaıdy.Keste aty kútilgen.Búrkenshik aty kútilgen.Aldynda búrkenshik aty tabylǵan.Órnek kútilgen.Yǵysý kútilgen.Ashýshy jaqsha, sodan keıin mánder jıyntyǵy kútilgen.Ashýshy jaqsha kútilgen.Eń keminde bir baǵannyń anyqtamsy kútilgen.«%1$s» jabýshy tyrnaqshasy kútilgen.Bólgish kútilgen.Bólgishke deıin bosoryn(dar) kútilgen.«TO» kilt sózi kútilgen.Nusqaý aıaǵynda kilt sóz.Órnek joq.Eshbir tranzaksıa aldynda bastalǵan joq.Áli iske asyrylmady.Nysan aty kútilgen.Kesteniń jańa ataýy kútilgen.Kesteniń eski ataýy kútilgen.Bul opsıa «%1$s» degenmen qaıshy keledi.Birneshe keste saýaldarynda bul sóılem tyri jaramsyz.Bul sóılemdiń túri aldynda taldandy.Nusqaýdyń kútpegen bastalýy.Kútpegen tańba.Kútpegen núkte.CASE órneginiń kútpegen sońyLOCK órneginiń kútpegen sońy.Kútpegen kilt sózKútpegen kilt sóz.Kútpegen sóılemder reti.Kútpegen tańbalaýysh.Tanylmaǵan ózgertý áreketi.Tanylmaǵan derekter túri.Tanylmaǵan kilt sóz.Tanylmaǵan nusqaý túri.Aınymaly aty kútilgen.sql-parser-5.9.0/locale/kk/LC_MESSAGES/sqlparser.po000066400000000000000000000227111455302707200216330ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2012 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # Automatically generated, 2012. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Kazakh \n" "Language: kk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Áli iske asyrylmady." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "Jańa nusqaý tabyldy, biraq onyń men aldyńǵy bireý arasynda bólgish joq." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Tanylmaǵan ózgertý áreketi." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "%1$d mánderi kútilgen, biraq %2$d tabyldy." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Ashýshy jaqsha, sodan keıin mánder jıyntyǵy kútilgen." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Ashýshy jaqsha kútilgen." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Kútpegen kilt sóz." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "CASE órneginiń kútpegen sońy" #: src/Components/CaseExpression.php:212 #, fuzzy #| msgid "Unexpected end of CASE expression" msgid "Potential duplicate alias of CASE expression." msgstr "CASE órneginiń kútpegen sońy" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Aldynda búrkenshik aty tabylǵan." #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "An alias was expected." msgid "An alias was expected after AS." msgstr "Búrkenshik aty kútilgen." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Tańba aty kútilgen! Saqtalǵan kilt sózdi doǵal ekpindersiz baǵan aty retinde " "paıdalanýǵa bolmaıdy." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Tańba aty kútilgen!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Útir nemese jabushy jaqsha kútilgen." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Jabushy jaqsha kútilgen." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Tanylmaǵan derekter túri." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Órnek kútilgen." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Búrkenshik aty kútilgen." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Kútpegen núkte." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Kútpegen tańbalaýysh." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Yǵysý kútilgen." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "LOCK órneginiń kútpegen sońy." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Bul opsıa «%1$s» degenmen qaıshy keledi." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Kesteniń eski ataýy kútilgen." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "«TO» kilt sózi kútilgen." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Kesteniń jańa ataýy kútilgen." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Qaıta ataý áreketi kútilgen." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Órnek joq." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Kútpegen tańba." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Bólgishke deıin bosoryn(dar) kútilgen." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Bólgish kútilgen." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "«%1$s» jabýshy tyrnaqshasy kútilgen." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Aınymaly aty kútilgen." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Nusqaýdyń kútpegen bastalýy." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Tanylmaǵan nusqaý túri." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Eshbir tranzaksıa aldynda bastalǵan joq." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Bul sóılemdiń túri aldynda taldandy." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Tanylmaǵan kilt sóz." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Nusqaý aıaǵynda kilt sóz." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Kútpegen sóılemder reti." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Nysan aty kútilgen." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Keste aty kútilgen." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Eń keminde bir baǵannyń anyqtamsy kútilgen." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "«RETURNS» kilt sózi kútilgen." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Birneshe keste saýaldarynda bul sóılem tyri jaramsyz." #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of LOCK statement." msgstr "Nusqaýdyń kútpegen bastalýy." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Kútpegen kilt sóz" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The name of the entity was expected." msgid "The name of the CTE was expected." msgstr "Nysan aty kútilgen." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "A \"RETURNS\" keyword was expected." msgid "AS keyword was expected." msgstr "«RETURNS» kilt sózi kútilgen." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The name of the entity was expected." msgid "Subquery of the CTE was expected." msgstr "Nysan aty kútilgen." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of the WITH CTE." msgstr "Nusqaýdyń kútpegen bastalýy." #~ msgid "Unexpected end of Lock expression." #~ msgstr "LOCK órneginiń kútpegen sońy." #~ msgid "error #1" #~ msgstr "qate № 1" #~ msgid "strict error" #~ msgstr "qatań qate" sql-parser-5.9.0/locale/km/000077500000000000000000000000001455302707200154715ustar00rootroot00000000000000sql-parser-5.9.0/locale/km/LC_MESSAGES/000077500000000000000000000000001455302707200172565ustar00rootroot00000000000000sql-parser-5.9.0/locale/km/LC_MESSAGES/sqlparser.mo000066400000000000000000000010141455302707200216230ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2017-08-12 15:08+0000 Last-Translator: ប៉ុកណូ រ៉ូយ៉ាល់ Language-Team: Central Khmer Language: km MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; X-Generator: Weblate 2.16 sql-parser-5.9.0/locale/km/LC_MESSAGES/sqlparser.po000066400000000000000000000214371455302707200216410ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2014 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # Automatically generated, 2014. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2017-08-12 15:08+0000\n" "Last-Translator: ប៉ុកណូ រ៉ូយ៉ាល់ \n" "Language-Team: Central Khmer \n" "Language: km\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Weblate 2.16\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected after AS." msgstr "មិន​បាន​ជ្រើស​មូលដ្ឋាន​ទិន្នន័យ។" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "No databases selected." msgid "A symbol name was expected!" msgstr "មិន​បាន​ជ្រើស​មូលដ្ឋាន​ទិន្នន័យ។" #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "No databases selected." msgid "A comma or a closing bracket was expected." msgstr "មិន​បាន​ជ្រើស​មូលដ្ឋាន​ទិន្នន័យ។" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "No databases selected." msgid "An expression was expected." msgstr "មិន​បាន​ជ្រើស​មូលដ្ឋាន​ទិន្នន័យ។" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected." msgstr "មិន​បាន​ជ្រើស​មូលដ្ឋាន​ទិន្នន័យ។" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The bookmark has been deleted." msgid "A rename operation was expected." msgstr "បាន​លុប​ចំណាំ។" #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "" #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "No databases selected." msgid "A table name was expected." msgstr "មិន​បាន​ជ្រើស​មូលដ្ឋាន​ទិន្នន័យ។" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The bookmark has been deleted." msgid "At least one column definition was expected." msgstr "បាន​លុប​ចំណាំ។" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "No databases selected." msgid "The name of the CTE was expected." msgstr "មិន​បាន​ជ្រើស​មូលដ្ឋាន​ទិន្នន័យ។" #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No databases selected." msgid "AS keyword was expected." msgstr "មិន​បាន​ជ្រើស​មូលដ្ឋាន​ទិន្នន័យ។" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "No databases selected." msgid "Subquery of the CTE was expected." msgstr "មិន​បាន​ជ្រើស​មូលដ្ឋាន​ទិន្នន័យ។" #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "" #~ msgid "error #1" #~ msgstr "កំហុស​ #1" sql-parser-5.9.0/locale/kmr/000077500000000000000000000000001455302707200156535ustar00rootroot00000000000000sql-parser-5.9.0/locale/kmr/LC_MESSAGES/000077500000000000000000000000001455302707200174405ustar00rootroot00000000000000sql-parser-5.9.0/locale/kmr/LC_MESSAGES/sqlparser.mo000066400000000000000000000005311455302707200220100ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE Last-Translator: Automatically generated Language-Team: none Language: kmr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit sql-parser-5.9.0/locale/kmr/LC_MESSAGES/sqlparser.po000066400000000000000000000162351455302707200220230ustar00rootroot00000000000000# phpMyAdmin SQL parser translation. # Copyright (C) 2015 - 2020 phpMyAdmin devel team # This file is distributed under the same license as the SQL parser package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: kmr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "" #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "" #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "" #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "" #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "" #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "" #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "" #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "" sql-parser-5.9.0/locale/kn/000077500000000000000000000000001455302707200154725ustar00rootroot00000000000000sql-parser-5.9.0/locale/kn/LC_MESSAGES/000077500000000000000000000000001455302707200172575ustar00rootroot00000000000000sql-parser-5.9.0/locale/kn/LC_MESSAGES/sqlparser.mo000066400000000000000000000007631455302707200216360ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2015-07-24 13:05+0200 Last-Translator: Shameem Ahmed A Mulla Language-Team: Kannada Language: kn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 2.4-dev sql-parser-5.9.0/locale/kn/LC_MESSAGES/sqlparser.po000066400000000000000000000177371455302707200216520ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2013 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # Automatically generated, 2013. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2015-07-24 13:05+0200\n" "Last-Translator: Shameem Ahmed A Mulla \n" "Language-Team: Kannada \n" "Language: kn\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 2.4-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "No tables selected." msgid "An alias was expected after AS." msgstr "ಯಾವುದೇ ಕೋಷ್ಟಕಗಳು ಆಯ್ಕೆ ಮಾಡಲಿಲ್ಲ." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "" #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "" #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "" #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "No tables selected." msgid "A table name was expected." msgstr "ಯಾವುದೇ ಕೋಷ್ಟಕಗಳು ಆಯ್ಕೆ ಮಾಡಲಿಲ್ಲ." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "No tables selected." msgid "The name of the CTE was expected." msgstr "ಯಾವುದೇ ಕೋಷ್ಟಕಗಳು ಆಯ್ಕೆ ಮಾಡಲಿಲ್ಲ." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No tables selected." msgid "AS keyword was expected." msgstr "ಯಾವುದೇ ಕೋಷ್ಟಕಗಳು ಆಯ್ಕೆ ಮಾಡಲಿಲ್ಲ." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "No tables selected." msgid "Subquery of the CTE was expected." msgstr "ಯಾವುದೇ ಕೋಷ್ಟಕಗಳು ಆಯ್ಕೆ ಮಾಡಲಿಲ್ಲ." #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "" sql-parser-5.9.0/locale/ko/000077500000000000000000000000001455302707200154735ustar00rootroot00000000000000sql-parser-5.9.0/locale/ko/LC_MESSAGES/000077500000000000000000000000001455302707200172605ustar00rootroot00000000000000sql-parser-5.9.0/locale/ko/LC_MESSAGES/sqlparser.mo000066400000000000000000000133101455302707200216270ustar00rootroot000000000000006I|*!*L9 c'B#[<  F,g( 4)^&r-!!$ 'E 'm " 8 * " ? U !e " !     3 E c {    @~ & ! 2Y;+!o$S x&#$$<AZ!/* .:"i"B+ +93e'!1.4-cT<4#!X!z&337+c'~-!*/!(Q/z,)'  .%53 0*2 $ (-&4+1!/#6"%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.AS keyword was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.Subquery of the CTE was expected.The name of the CTE was expected.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected end of the WITH CTE.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Korean Language: ko MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; X-Generator: Weblate 4.16-dev 값 %1$d 이 예상되었지만, %2$d 가 발견되었습니다."RETURNS"키워드가 필요합니다.닫는 괄호가 필요합니다.쉼표 또는 닫는 대괄호가 필요합니다.새로운 문장이 발견되었지만, 이전 문장과의 구분기호가 없습니다.이름 바꾸기 작업이 필요합니다.심볼 이름이 필요합니다!심볼 이름이 필요합니다! 예약어는 역따옴표 없이 열 이름으로 사용될 수 없습니다.테이블 이름이 필요합니다.AS 키워드가 필요합니다.AS뒤에 별명이 필요합니다. : AS뒤에 별명이 필요합니다.별명이 필요합니다.이미 사용중인 별명입니다.식이 필요합니다.오프셋이 필요합니다.일련의 값들에 의해 여는 괄호('(')가 예상됩니다.여는 괄호가 예상됩니다.최소 하나의 열 정의가 필요합니다.닫는 따옴표 %1$s 가 팔요합니다.구분기호가 필요합니다.구분기호 앞에 공백이 필요합니다.키워드 "TO"가 팔요합니다.명령문 끝에 있는 키워드.새 alter operation 시작 전에 쉼표가 누락되었습니다.누락된 표현입니다.이전에 시작된 처리가 없습니다.아직 구현되지 않은 기능입니다.CASE 표현식의 잠재적 중복 별명입니다.CTE의 서브쿼리가 필요합니다.CTE 이름이 필요합니다.개체 이름이 필요합니다.테이블의 새로운 이름이 팔요합니다.테이블의 이전 이름이 팔요합니다.이 옵션은 "%1$s"와(과) 충돌합니다.이 유형의 문장(절)은 다중테이블 요청에서 유효하지 않습니다.이 유형의 절은 이전에 구문 분석되었습니다.명령문이 예기치 않게 시작되었습니다.예상치 못한 문자입니다.예기치 못한 점(.)입니다.예기치 못한 CASE 표현식의 끝LOCK 표현식이 예기치 않게 끝났습니다.LOCK 표현식이 예기치 않게 끝났습니다.WITH CTE 표현식이 예기치 않게 끝났습니다.예상치 못한 키워드예상되지 않은 키워드입니다.예기치 못한 문장(절) 순서입니다.예기치 못한 토큰입니다.인식되지 않은 alter 작업입니다.인식할 수 없는 데이터 형식입니다.인식할 수 없는 키워드입니다.인식할 수 없는 명령문 유형입니다.변수명이 필요합니다.sql-parser-5.9.0/locale/ko/LC_MESSAGES/sqlparser.po000066400000000000000000000231431455302707200216370ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Korean \n" "Language: ko\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "아직 구현되지 않은 기능입니다." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "새로운 문장이 발견되었지만, 이전 문장과의 구분기호가 없습니다." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "새 alter operation 시작 전에 쉼표가 누락되었습니다." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "인식되지 않은 alter 작업입니다." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "값 %1$d 이 예상되었지만, %2$d 가 발견되었습니다." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "일련의 값들에 의해 여는 괄호('(')가 예상됩니다." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "여는 괄호가 예상됩니다." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "예상되지 않은 키워드입니다." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "예기치 못한 CASE 표현식의 끝" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "CASE 표현식의 잠재적 중복 별명입니다." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "AS뒤에 별명이 필요합니다. : " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "이미 사용중인 별명입니다." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "AS뒤에 별명이 필요합니다." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "심볼 이름이 필요합니다! 예약어는 역따옴표 없이 열 이름으로 사용될 수 없습니" "다." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "심볼 이름이 필요합니다!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "쉼표 또는 닫는 대괄호가 필요합니다." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "닫는 괄호가 필요합니다." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "인식할 수 없는 데이터 형식입니다." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "식이 필요합니다." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "별명이 필요합니다." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "예기치 못한 점(.)입니다." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "예기치 못한 토큰입니다." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "오프셋이 필요합니다." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "LOCK 표현식이 예기치 않게 끝났습니다." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "이 옵션은 \"%1$s\"와(과) 충돌합니다." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "테이블의 이전 이름이 팔요합니다." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "키워드 \"TO\"가 팔요합니다." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "테이블의 새로운 이름이 팔요합니다." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "이름 바꾸기 작업이 필요합니다." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "누락된 표현입니다." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "예상치 못한 문자입니다." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "구분기호 앞에 공백이 필요합니다." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "구분기호가 필요합니다." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "닫는 따옴표 %1$s 가 팔요합니다." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "변수명이 필요합니다." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "명령문이 예기치 않게 시작되었습니다." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "인식할 수 없는 명령문 유형입니다." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "이전에 시작된 처리가 없습니다." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "이 유형의 절은 이전에 구문 분석되었습니다." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "인식할 수 없는 키워드입니다." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "명령문 끝에 있는 키워드." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "예기치 못한 문장(절) 순서입니다." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "개체 이름이 필요합니다." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "테이블 이름이 필요합니다." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "최소 하나의 열 정의가 필요합니다." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "\"RETURNS\"키워드가 필요합니다." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "이 유형의 문장(절)은 다중테이블 요청에서 유효하지 않습니다." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "LOCK 표현식이 예기치 않게 끝났습니다." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "예상치 못한 키워드" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "CTE 이름이 필요합니다." #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "AS 키워드가 필요합니다." #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "CTE의 서브쿼리가 필요합니다." #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "WITH CTE 표현식이 예기치 않게 끝났습니다." #~ msgid "Unexpected end of Lock expression." #~ msgstr "LOCK 표현식이 예기치 않게 끝났습니다." #~ msgid "error #1" #~ msgstr "오류 #1" #~ msgid "strict error" #~ msgstr "엄격한 오류" sql-parser-5.9.0/locale/ksh/000077500000000000000000000000001455302707200156475ustar00rootroot00000000000000sql-parser-5.9.0/locale/ksh/LC_MESSAGES/000077500000000000000000000000001455302707200174345ustar00rootroot00000000000000sql-parser-5.9.0/locale/ksh/LC_MESSAGES/sqlparser.mo000066400000000000000000000007621455302707200220120ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2014-10-02 15:09+0200 Last-Translator: Purodha Language-Team: Colognian Language: ksh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=n==0 ? 0 : n==1 ? 1 : 2; X-Generator: Weblate 1.10-dev sql-parser-5.9.0/locale/ksh/LC_MESSAGES/sqlparser.po000066400000000000000000000172621455302707200220200ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2014 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # Automatically generated, 2014. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2014-10-02 15:09+0200\n" "Last-Translator: Purodha \n" "Language-Team: Colognian \n" "Language: ksh\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n==0 ? 0 : n==1 ? 1 : 2;\n" "X-Generator: Weblate 1.10-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "The database name is empty!" msgid "An alias was expected after AS." msgstr "Kein Name för di Dahtebangk!" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "" #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "" #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "" #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "The database name is empty!" msgid "A table name was expected." msgstr "Kein Name för di Dahtebangk!" #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The database name is empty!" msgid "The name of the CTE was expected." msgstr "Kein Name för di Dahtebangk!" #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "The database name is empty!" msgid "AS keyword was expected." msgstr "Kein Name för di Dahtebangk!" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The database name is empty!" msgid "Subquery of the CTE was expected." msgstr "Kein Name för di Dahtebangk!" #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "" sql-parser-5.9.0/locale/ky/000077500000000000000000000000001455302707200155055ustar00rootroot00000000000000sql-parser-5.9.0/locale/ky/LC_MESSAGES/000077500000000000000000000000001455302707200172725ustar00rootroot00000000000000sql-parser-5.9.0/locale/ky/LC_MESSAGES/sqlparser.mo000066400000000000000000000007461455302707200216520ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2015-10-15 11:03+0200 Last-Translator: Michal Čihař Language-Team: Kyrgyz Language: ky MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 2.5-dev sql-parser-5.9.0/locale/ky/LC_MESSAGES/sqlparser.po000066400000000000000000000206671455302707200216610ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2013 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # Automatically generated, 2013. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2015-10-15 11:03+0200\n" "Last-Translator: Michal Čihař \n" "Language-Team: Kyrgyz \n" "Language: ky\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 2.5-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "Database %1$s has been created." msgid "An alias was expected after AS." msgstr "%1$s аттуу берилиштер базасы түзүлдү." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "Database %1$s has been created." msgid "A symbol name was expected!" msgstr "%1$s аттуу берилиштер базасы түзүлдү." #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "Database %1$s has been created." msgid "A comma or a closing bracket was expected." msgstr "%1$s аттуу берилиштер базасы түзүлдү." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "Database %1$s has been created." msgid "An alias was expected." msgstr "%1$s аттуу берилиштер базасы түзүлдү." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "Database %1$s has been created." msgid "A rename operation was expected." msgstr "%1$s аттуу берилиштер базасы түзүлдү." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "" #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Database %1$s has been created." msgid "A table name was expected." msgstr "%1$s аттуу берилиштер базасы түзүлдү." #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "Database %1$s has been created." msgid "At least one column definition was expected." msgstr "%1$s аттуу берилиштер базасы түзүлдү." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "Database %1$s has been created." msgid "The name of the CTE was expected." msgstr "%1$s аттуу берилиштер базасы түзүлдү." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "Database %1$s has been created." msgid "AS keyword was expected." msgstr "%1$s аттуу берилиштер базасы түзүлдү." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "Database %1$s has been created." msgid "Subquery of the CTE was expected." msgstr "%1$s аттуу берилиштер базасы түзүлдү." #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "" sql-parser-5.9.0/locale/li/000077500000000000000000000000001455302707200154665ustar00rootroot00000000000000sql-parser-5.9.0/locale/li/LC_MESSAGES/000077500000000000000000000000001455302707200172535ustar00rootroot00000000000000sql-parser-5.9.0/locale/li/LC_MESSAGES/sqlparser.mo000066400000000000000000000007711455302707200216310ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2015-12-29 15:36+0000 Last-Translator: Robin van der Vliet Language-Team: Limburgish Language: li MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); X-Generator: Weblate 2.5-dev sql-parser-5.9.0/locale/li/LC_MESSAGES/sqlparser.po000066400000000000000000000164701455302707200216370ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2014 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # Automatically generated, 2014. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2015-12-29 15:36+0000\n" "Last-Translator: Robin van der Vliet \n" "Language-Team: Limburgish \n" "Language: li\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Weblate 2.5-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "" #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "" #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "" #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "" #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "" #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "" #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "" #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "" sql-parser-5.9.0/locale/lt/000077500000000000000000000000001455302707200155015ustar00rootroot00000000000000sql-parser-5.9.0/locale/lt/LC_MESSAGES/000077500000000000000000000000001455302707200172665ustar00rootroot00000000000000sql-parser-5.9.0/locale/lt/LC_MESSAGES/sqlparser.mo000066400000000000000000000022461455302707200216430ustar00rootroot00000000000000\ * 0Qfv7-"7WoA closing bracket was expected.A comma or a closing bracket was expected.A symbol name was expected!An opening bracket was expected.Not implemented yet.Unexpected dot.Unrecognized data type.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2022-07-05 15:20+0000 Last-Translator: Ugnius Vaičeskas Language-Team: Lithuanian Language: lt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n % 10 == 1 && (n % 100 < 11 || n % 100 > 19)) ? 0 : ((n % 10 >= 2 && n % 10 <= 9 && (n % 100 < 11 || n % 100 > 19)) ? 1 : 2); X-Generator: Weblate 4.13.1-dev Tikimasi uždaromojo skliausto.Tikimasi kablelio arba uždaromojo skliausto.Buvo tikimasi simbolio pavadinimo!Tikimasi atidaromojo skliausto.Vis dar neįgyvendinta.Nepageidautinas taškas.Neatpažintas duomenų tipas.sql-parser-5.9.0/locale/lt/LC_MESSAGES/sqlparser.po000066400000000000000000000225451455302707200216520ustar00rootroot00000000000000# Automatically generated <>, 2010. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2022-07-05 15:20+0000\n" "Last-Translator: Ugnius Vaičeskas \n" "Language-Team: Lithuanian \n" "Language: lt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n % 10 == 1 && (n % 100 < 11 || n % 100 > " "19)) ? 0 : ((n % 10 >= 2 && n % 10 <= 9 && (n % 100 < 11 || n % 100 > 19)) ? " "1 : 2);\n" "X-Generator: Weblate 4.13.1-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Vis dar neįgyvendinta." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 #, fuzzy #| msgid "Iconic table operations" msgid "Unrecognized alter operation." msgstr "Piktograminės lentelių operacijos" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Tikimasi atidaromojo skliausto." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected after AS." msgstr "Nepažymėjote duomenų bazės." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Buvo tikimasi simbolio pavadinimo!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Tikimasi kablelio arba uždaromojo skliausto." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Tikimasi uždaromojo skliausto." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Neatpažintas duomenų tipas." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "No rows selected" msgid "An expression was expected." msgstr "Nepasirinkti įrašai" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected." msgstr "Nepažymėjote duomenų bazės." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Nepageidautinas taškas." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK expression." msgstr "Lentelės pradžioje" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 #, fuzzy #| msgid "The number of tables that are open." msgid "The old name of the table was expected." msgstr "Lentelių kurios yra atidarytos skaičius." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 #, fuzzy #| msgid "The number of tables that are open." msgid "The new name of the table was expected." msgstr "Lentelių kurios yra atidarytos skaičius." #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "Eilutė buvo ištrinta" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "kaip reguliarųjį išsireiškimą" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format #| msgid "Event %1$s has been created." msgid "Ending quote %1$s was expected." msgstr "Įvykis %1$s buvo sukurtas." #: src/Lexer.php:1056 #, fuzzy #| msgid "Table name template" msgid "Variable name was expected." msgstr "Lentelės vardo šablonas" #: src/Parser.php:456 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected beginning of statement." msgstr "Lentelės pradžioje" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "At Beginning of Table" msgid "Keyword at end of statement." msgstr "Lentelės pradžioje" #: src/Statement.php:555 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected ordering of clauses." msgstr "Lentelės pradžioje" #: src/Statements/CreateStatement.php:549 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the entity was expected." msgstr "Lentelių kurios yra atidarytos skaičius." #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Table name template" msgid "A table name was expected." msgstr "Lentelės vardo šablonas" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "Eilutė buvo ištrinta" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK statement." msgstr "Lentelės pradžioje" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the CTE was expected." msgstr "Lentelių kurios yra atidarytos skaičius." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No rows selected" msgid "AS keyword was expected." msgstr "Nepasirinkti įrašai" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The number of tables that are open." msgid "Subquery of the CTE was expected." msgstr "Lentelių kurios yra atidarytos skaičius." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of the WITH CTE." msgstr "Lentelės pradžioje" #, fuzzy #~| msgid "At Beginning of Table" #~ msgid "Unexpected end of Lock expression." #~ msgstr "Lentelės pradžioje" #, fuzzy #~| msgid "errors." #~ msgid "error #1" #~ msgstr "klaidos." #, fuzzy #~| msgid "Gather errors" #~ msgid "strict error" #~ msgstr "Rinkti klaidas" sql-parser-5.9.0/locale/lv/000077500000000000000000000000001455302707200155035ustar00rootroot00000000000000sql-parser-5.9.0/locale/lv/LC_MESSAGES/000077500000000000000000000000001455302707200172705ustar00rootroot00000000000000sql-parser-5.9.0/locale/lv/LC_MESSAGES/sqlparser.mo000066400000000000000000000010171455302707200216400ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2016-01-23 11:11+0000 Last-Translator: Arturs Nikolajevs Language-Team: Latvian Language: lv MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2; X-Generator: Weblate 2.5-dev sql-parser-5.9.0/locale/lv/LC_MESSAGES/sqlparser.po000066400000000000000000000207161455302707200216520ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2016-01-23 11:11+0000\n" "Last-Translator: Arturs Nikolajevs \n" "Language-Team: Latvian \n" "Language: lv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2;\n" "X-Generator: Weblate 2.5-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected after AS." msgstr "Datubāze nav izvēlēta." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy msgid "A symbol name was expected!" msgstr "Faila nosaukuma šablons" #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "No databases selected." msgid "A comma or a closing bracket was expected." msgstr "Datubāze nav izvēlēta." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "No rows selected" msgid "An expression was expected." msgstr "Rindas nav iezīmētas" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected." msgstr "Datubāze nav izvēlēta." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK expression." msgstr "Tabulas sākumā" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "Ieraksts tika dzēsts" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "kā regulārā izteiksme" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format msgid "Ending quote %1$s was expected." msgstr "Tabula %s tika izdzēsta" #: src/Lexer.php:1056 #, fuzzy msgid "Variable name was expected." msgstr "Faila nosaukuma šablons" #: src/Parser.php:456 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected beginning of statement." msgstr "Tabulas sākumā" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "At Beginning of Table" msgid "Keyword at end of statement." msgstr "Tabulas sākumā" #: src/Statement.php:555 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected ordering of clauses." msgstr "Tabulas sākumā" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy msgid "A table name was expected." msgstr "Faila nosaukuma šablons" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "Ieraksts tika dzēsts" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK statement." msgstr "Tabulas sākumā" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy msgid "The name of the CTE was expected." msgstr "Faila nosaukuma šablons" #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No rows selected" msgid "AS keyword was expected." msgstr "Rindas nav iezīmētas" #: src/Statements/WithStatement.php:149 #, fuzzy msgid "Subquery of the CTE was expected." msgstr "Tabula %s tika izdzēsta" #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of the WITH CTE." msgstr "Tabulas sākumā" #, fuzzy #~| msgid "At Beginning of Table" #~ msgid "Unexpected end of Lock expression." #~ msgstr "Tabulas sākumā" #, fuzzy #~| msgid "Error" #~ msgid "error #1" #~ msgstr "Kļūda" #, fuzzy #~| msgid "Query type" #~ msgid "strict error" #~ msgstr "Vaicājuma tips" sql-parser-5.9.0/locale/mk/000077500000000000000000000000001455302707200154715ustar00rootroot00000000000000sql-parser-5.9.0/locale/mk/LC_MESSAGES/000077500000000000000000000000001455302707200172565ustar00rootroot00000000000000sql-parser-5.9.0/locale/mk/LC_MESSAGES/sqlparser.mo000066400000000000000000000057211455302707200216340ustar00rootroot00000000000000l** L7#<6 s4-!,"N!qSV|J3E5A'w4#m8f F i 2P J 2 7 79 +q 3    %1$d values were expected, but found %2$d.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A symbol name was expected!An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.Ending quote %1$s was expected.Missing comma before start of a new alter operation.Not implemented yet.Potential duplicate alias of CASE expression.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected keyword.Unrecognized alter operation.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-02-17 01:42+0000 Last-Translator: "Kristijan \"Fremen\" Velkovski" Language-Team: Macedonian Language: mk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n==1 || n%10==1 ? 0 : 1; X-Generator: Weblate 4.16-dev %1$d вредности беа очекувани, но беа најдени %2$d.Запирка или затворачка заграда беше очекувана.Пронајдена е нова изјава, но нема разграница меѓу неа и претходната.Име на симбол беше очекуван!Се очекуваше алиас после AS, но се доби Алијас беше очекуван после AS.Алијас беше очекуван.Алиас беше претходно најден.Израз се очекуваше.Се очекуваше отворена заграда следејќи со сет на вредности.Се очекуваше отворена заграда.Затварање на цитатот %1$s беше очекуван.Недостига запирка пред почетокот на новата alter операција.Сеуште не е имплементирано.Потенцијален дупликат алиас на CASE израз.Неочекуван крај на CASE изразНеочекуван крај на LOCK изразот.Неочекуван крај на LOCK изразот.Неочекуван клучен збор.Непозната промена(alter) operacija.sql-parser-5.9.0/locale/mk/LC_MESSAGES/sqlparser.po000066400000000000000000000231221455302707200216320ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-02-17 01:42+0000\n" "Last-Translator: \"Kristijan \\\"Fremen\\\" Velkovski\" \n" "Language-Team: Macedonian \n" "Language: mk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n==1 || n%10==1 ? 0 : 1;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Сеуште не е имплементирано." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "Пронајдена е нова изјава, но нема разграница меѓу неа и претходната." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Недостига запирка пред почетокот на новата alter операција." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Непозната промена(alter) operacija." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "%1$d вредности беа очекувани, но беа најдени %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Се очекуваше отворена заграда следејќи со сет на вредности." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Се очекуваше отворена заграда." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Неочекуван клучен збор." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Неочекуван крај на CASE израз" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Потенцијален дупликат алиас на CASE израз." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "Се очекуваше алиас после AS, но се доби " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Алиас беше претходно најден." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "Алијас беше очекуван после AS." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Име на симбол беше очекуван!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Запирка или затворачка заграда беше очекувана." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Израз се очекуваше." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Алијас беше очекуван." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Неочекуван крај на LOCK изразот." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "Записот е избришан" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "како регуларен израз" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Затварање на цитатот %1$s беше очекуван." #: src/Lexer.php:1056 #, fuzzy msgid "Variable name was expected." msgstr "Шаблон на име на податотека" #: src/Parser.php:456 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected beginning of statement." msgstr "на почетокот од табелата" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "At Beginning of Table" msgid "Keyword at end of statement." msgstr "на почетокот од табелата" #: src/Statement.php:555 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected ordering of clauses." msgstr "на почетокот од табелата" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy msgid "A table name was expected." msgstr "Шаблон на име на податотека" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "Записот е избришан" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Неочекуван крај на LOCK изразот." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy msgid "The name of the CTE was expected." msgstr "Шаблон на име на податотека" #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No rows selected" msgid "AS keyword was expected." msgstr "Нема селектирани записи" #: src/Statements/WithStatement.php:149 #, fuzzy msgid "Subquery of the CTE was expected." msgstr "Табелата %s е избришана" #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of the WITH CTE." msgstr "на почетокот од табелата" #~ msgid "Unexpected end of Lock expression." #~ msgstr "Неочекуван крај на Lock изразот." #, fuzzy #~| msgid "Error" #~ msgid "error #1" #~ msgstr "Грешка" #, fuzzy #~| msgid "Query type" #~ msgid "strict error" #~ msgstr "Вид на упит" sql-parser-5.9.0/locale/ml/000077500000000000000000000000001455302707200154725ustar00rootroot00000000000000sql-parser-5.9.0/locale/ml/LC_MESSAGES/000077500000000000000000000000001455302707200172575ustar00rootroot00000000000000sql-parser-5.9.0/locale/ml/LC_MESSAGES/sqlparser.mo000066400000000000000000000145441455302707200216400ustar00rootroot00000000000000(\5p*q!L #'Kk (#4@u&-$''@"h8*"(!8"Z!}.Da}9 f O qp p OS v FDagCQR8dM'kuZd<^uvv`880dihe778]5lhE AQQ~   "%!$ #'& (%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A new statement was found, but no delimiter between it and the previous one.A symbol name was expected!An alias expected after AS but got An alias was expected after AS.An alias was previously found.An opening bracket was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Malayalam Language: ml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 4.16-dev %1$d മൂല്യങ്ങൾ പ്രതീക്ഷിച്ചെങ്കിലും കണ്ടെത്തി %2$d.ഒരു "റിട്ടേൺസ്" സൂചകപദം പ്രതീക്ഷിച്ചു.ഒരു പുതിയ പ്രസ്താവന കണ്ടെത്തി, പക്ഷേ അതിനും മുമ്പത്തെ പ്രസ്താവനയ്ക്കും ഇടയിൽ അതിര്‍ത്തി ഇല്ല.ഒരു ചിഹ്ന നാമം പ്രതീക്ഷിച്ചു!ASന് ശേഷം പ്രതീക്ഷിച്ച ഒരു അപരനാമം ലഭിച്ചു ASന് ശേഷം ഒരു അപരനാമം പ്രതീക്ഷിച്ചിരുന്നു.ഒരു അപരനാമം മുമ്പ് കണ്ടെത്തി.ഒരു ഓപ്പണിംഗ് ബ്രായ്ക്കറ്റ് പ്രതീക്ഷിച്ചു.%1$s ഉദ്ധരണി അവസാനിക്കുന്നു.പ്രതീക്ഷിച്ച അതിര്‍ത്തി.അതിരുകൾക് മുൻപ് പ്രതീക്ഷിച്ച വിടവുകൾ."TO" സൂചകപദം പ്രതീക്ഷിച്ചു.പ്രസ്താവനയുടെ അവസാനം സൂചകപദം.ഒരു പുതിയ പരിവര്‍ത്തരം ആരംഭിക്കുന്നതിന് മുമ്പ് ഉദ്ധരണി സൂചകമായ ചിഹ്നം കാണുന്നില്ല.പദപ്രയോഗം നഷ്‌ടമായി.ഒരു ഇടപാടും മുമ്പ് ആരംഭിച്ചിട്ടില്ല.ഇതുവരെ നടപ്പാക്കിയിട്ടില്ല.CASE പ്രയോഗശൈലിയുടെ തനിപ്പകർപ്പ് അപരനാമം.വസ്‌തുവിന്റെ പേര് പ്രതീക്ഷിച്ചു.പട്ടികയുടെ പുതിയ പേര് പ്രതീക്ഷിച്ചു.പട്ടികയുടെ പഴയ പേര് പ്രതീക്ഷിച്ചു.ഈ "%1$s"തിരഞ്ഞെടുക്കല്‍ പൊരുത്തപ്പെടുന്നില്ല.മൾട്ടി-ടേബിൾ അന്വേഷണങ്ങളിൽ ഇത്തരത്തിലുള്ള ഉപവാക്യം സാധുവല്ല.ഇത്തരത്തിലുള്ള ഉടമ്പടി മുമ്പ് വ്യാകരിച്ചു.പ്രസ്താവനയുടെ അപ്രതീക്ഷിത തുടക്കം.അപ്രതീക്ഷിത പ്രതീകം.അപ്രതീക്ഷിത കുത്ത്‌.CASE പ്രയോഗശൈലിയുടെ അപ്രതീക്ഷിത അവസാനംLOCK പ്രയോഗശൈലിയുടെ അപ്രതീക്ഷിത അവസാനം.LOCK പ്രസ്‌താവനയുടെ അപ്രതീക്ഷിത അവസാനം.അപ്രതീക്ഷിത സൂചകപദംഅപ്രതീക്ഷിത സൂചകപദം.ഉപവാക്യങ്ങളുടെ അപ്രതീക്ഷിത ക്രമം.അപ്രതീക്ഷിത അടയാളം.തിരിച്ചറിയാത്ത വ്യത്യാസപ്പെടുത്തല്‍.തിരിച്ചറിയാത്ത ഡാറ്റ തരം.തിരിച്ചറിയാത്ത സൂചകപദം.തിരിച്ചറിയാത്ത പ്രസ്താവന തരം.പരിവര്‍ത്തിതവസ്‌തുവിന്റെ പേര് പ്രതീക്ഷിച്ചു.sql-parser-5.9.0/locale/ml/LC_MESSAGES/sqlparser.po000066400000000000000000000322261455302707200216400ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2011 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Malayalam \n" "Language: ml\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "ഇതുവരെ നടപ്പാക്കിയിട്ടില്ല." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "ഒരു പുതിയ പ്രസ്താവന കണ്ടെത്തി, പക്ഷേ അതിനും മുമ്പത്തെ പ്രസ്താവനയ്ക്കും ഇടയിൽ അതിര്‍ത്തി ഇല്ല." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "ഒരു പുതിയ പരിവര്‍ത്തരം ആരംഭിക്കുന്നതിന് മുമ്പ് ഉദ്ധരണി സൂചകമായ ചിഹ്നം കാണുന്നില്ല." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "തിരിച്ചറിയാത്ത വ്യത്യാസപ്പെടുത്തല്‍." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "%1$d മൂല്യങ്ങൾ പ്രതീക്ഷിച്ചെങ്കിലും കണ്ടെത്തി %2$d." #: src/Components/Array2d.php:108 #, fuzzy msgid "An opening bracket followed by a set of values was expected." msgstr "ഒരു ഓപ്പണിംഗ് ബ്രാക്കറ്റിന് ശേഷം ഒരു കൂട്ടം മൂല്യങ്ങൾ പ്രതീക്ഷിച്ചു." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "ഒരു ഓപ്പണിംഗ് ബ്രായ്ക്കറ്റ് പ്രതീക്ഷിച്ചു." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "അപ്രതീക്ഷിത സൂചകപദം." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "CASE പ്രയോഗശൈലിയുടെ അപ്രതീക്ഷിത അവസാനം" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "CASE പ്രയോഗശൈലിയുടെ തനിപ്പകർപ്പ് അപരനാമം." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "ASന് ശേഷം പ്രതീക്ഷിച്ച ഒരു അപരനാമം ലഭിച്ചു " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "ഒരു അപരനാമം മുമ്പ് കണ്ടെത്തി." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "ASന് ശേഷം ഒരു അപരനാമം പ്രതീക്ഷിച്ചിരുന്നു." #: src/Components/CreateDefinition.php:255 #, fuzzy msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "ഒരു ചിഹ്ന നാമം പ്രതീക്ഷിച്ചു! ബാക്ക് ഉദ്ധരണികൾ ഇല്ലാതെ ഒരു റിസർവ്ഡ് കീവേഡ്, നിരയുടെ പേരായി " "ഉപയോഗിക്കാൻ കഴിയില്ല." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "ഒരു ചിഹ്ന നാമം പ്രതീക്ഷിച്ചു!" #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "Remove database" msgid "A comma or a closing bracket was expected." msgstr "വിവരശേഖരം നീക്കുക." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 #, fuzzy msgid "A closing bracket was expected." msgstr "ഒരു അടക്കല്‍ ബ്രാക്കറ്റ് പ്രതീക്ഷിച്ചു." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "തിരിച്ചറിയാത്ത ഡാറ്റ തരം." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "Remove database" msgid "An expression was expected." msgstr "വിവരശേഖരം നീക്കുക" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "Remove database" msgid "An alias was expected." msgstr "വിവരശേഖരം നീക്കുക." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "അപ്രതീക്ഷിത കുത്ത്‌." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "അപ്രതീക്ഷിത അടയാളം." #: src/Components/Limit.php:78 src/Components/Limit.php:105 #, fuzzy msgid "An offset was expected." msgstr "ഒരു ഓഫ്‌സെറ്റ് പ്രതീക്ഷിച്ചു." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "LOCK പ്രയോഗശൈലിയുടെ അപ്രതീക്ഷിത അവസാനം." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "ഈ \"%1$s\"തിരഞ്ഞെടുക്കല്‍ പൊരുത്തപ്പെടുന്നില്ല." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "പട്ടികയുടെ പഴയ പേര് പ്രതീക്ഷിച്ചു." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "\"TO\" സൂചകപദം പ്രതീക്ഷിച്ചു." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "പട്ടികയുടെ പുതിയ പേര് പ്രതീക്ഷിച്ചു." #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "Database %1$s has been created." msgid "A rename operation was expected." msgstr "വിവരശേഖരം(ങ്ങൾ) %1$s സൃഷ്ടിച്ചിരിക്കുന്നു." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "പദപ്രയോഗം നഷ്‌ടമായി." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "അപ്രതീക്ഷിത പ്രതീകം." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "അതിരുകൾക് മുൻപ് പ്രതീക്ഷിച്ച വിടവുകൾ." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "പ്രതീക്ഷിച്ച അതിര്‍ത്തി." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "%1$s ഉദ്ധരണി അവസാനിക്കുന്നു." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "പരിവര്‍ത്തിതവസ്‌തുവിന്റെ പേര് പ്രതീക്ഷിച്ചു." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "പ്രസ്താവനയുടെ അപ്രതീക്ഷിത തുടക്കം." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "തിരിച്ചറിയാത്ത പ്രസ്താവന തരം." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "ഒരു ഇടപാടും മുമ്പ് ആരംഭിച്ചിട്ടില്ല." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "ഇത്തരത്തിലുള്ള ഉടമ്പടി മുമ്പ് വ്യാകരിച്ചു." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "തിരിച്ചറിയാത്ത സൂചകപദം." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "പ്രസ്താവനയുടെ അവസാനം സൂചകപദം." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "ഉപവാക്യങ്ങളുടെ അപ്രതീക്ഷിത ക്രമം." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "വസ്‌തുവിന്റെ പേര് പ്രതീക്ഷിച്ചു." #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Remove database" msgid "A table name was expected." msgstr "വിവരശേഖരം നീക്കുക" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "Database %1$s has been created." msgid "At least one column definition was expected." msgstr "വിവരശേഖരം(ങ്ങൾ) %1$s സൃഷ്ടിച്ചിരിക്കുന്നു." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "ഒരു \"റിട്ടേൺസ്\" സൂചകപദം പ്രതീക്ഷിച്ചു." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "മൾട്ടി-ടേബിൾ അന്വേഷണങ്ങളിൽ ഇത്തരത്തിലുള്ള ഉപവാക്യം സാധുവല്ല." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "LOCK പ്രസ്‌താവനയുടെ അപ്രതീക്ഷിത അവസാനം." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "അപ്രതീക്ഷിത സൂചകപദം" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The name of the entity was expected." msgid "The name of the CTE was expected." msgstr "വസ്‌തുവിന്റെ പേര് പ്രതീക്ഷിച്ചു." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "A \"RETURNS\" keyword was expected." msgid "AS keyword was expected." msgstr "ഒരു \"റിട്ടേൺസ്\" സൂചകപദം പ്രതീക്ഷിച്ചു." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The name of the entity was expected." msgid "Subquery of the CTE was expected." msgstr "വസ്‌തുവിന്റെ പേര് പ്രതീക്ഷിച്ചു." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected end of LOCK statement." msgid "Unexpected end of the WITH CTE." msgstr "LOCK പ്രസ്‌താവനയുടെ അപ്രതീക്ഷിത അവസാനം." #, fuzzy #~ msgid "Unexpected end of Lock expression." #~ msgstr "LOCK പ്രയോഗശൈലിയുടെ അപ്രതീക്ഷിത അവസാനം." sql-parser-5.9.0/locale/mn/000077500000000000000000000000001455302707200154745ustar00rootroot00000000000000sql-parser-5.9.0/locale/mn/LC_MESSAGES/000077500000000000000000000000001455302707200172615ustar00rootroot00000000000000sql-parser-5.9.0/locale/mn/LC_MESSAGES/sqlparser.mo000066400000000000000000000013311455302707200216300ustar00rootroot000000000000004L`*aD]6%1$d values were expected, but found %2$d.Unrecognized alter operation.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2017-05-29 07:42+0000 Last-Translator: Sambuu-Yondon Language-Team: Mongolian Language: mn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 2.14.1 %1$d утгууд хүссэн, гэвч %2$d утга олдсон.үл ойлгогдох alter үйлдэл байна.sql-parser-5.9.0/locale/mn/LC_MESSAGES/sqlparser.po000066400000000000000000000222251455302707200216400ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2017-05-29 07:42+0000\n" "Last-Translator: Sambuu-Yondon \n" "Language-Team: Mongolian \n" "Language: mn\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 2.14.1\n" #: src/Component.php:39 src/Component.php:59 #, fuzzy msgid "Not implemented yet." msgstr "Хараахан хэрэгжүүлэлт хийгээгүй" #: src/Components/AlterOperation.php:415 src/Statement.php:359 #, fuzzy msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "шинэ болзол илэрсэн, гэвч өмнөхөөсөө зааглагч байхгүй." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "үл ойлгогдох alter үйлдэл байна." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "%1$d утгууд хүссэн, гэвч %2$d утга олдсон." #: src/Components/Array2d.php:108 #, fuzzy msgid "An opening bracket followed by a set of values was expected." msgstr "хаалт нээсний дараагаар утга оноох хэрэгтэй" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected after AS." msgstr "ӨС сонгогдоогүй." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "No databases selected." msgid "A symbol name was expected!" msgstr "ӨС сонгогдоогүй." #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "No databases selected." msgid "A comma or a closing bracket was expected." msgstr "ӨС сонгогдоогүй." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "No rows selected" msgid "An expression was expected." msgstr "Сонгогдсон мөргүй" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected." msgstr "ӨС сонгогдоогүй." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK expression." msgstr "Хүснэгтийн эхэнд" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "Мөр устгагдсан" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "PHP Version" msgid "Missing expression." msgstr "PHP хувилбар" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format #| msgid "Table %s has been dropped." msgid "Ending quote %1$s was expected." msgstr "Хүснэгт %s нь устгагдлаа" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected beginning of statement." msgstr "Хүснэгтийн эхэнд" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "At Beginning of Table" msgid "Keyword at end of statement." msgstr "Хүснэгтийн эхэнд" #: src/Statement.php:555 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected ordering of clauses." msgstr "Хүснэгтийн эхэнд" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "No databases selected." msgid "A table name was expected." msgstr "ӨС сонгогдоогүй." #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "Мөр устгагдсан" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK statement." msgstr "Хүснэгтийн эхэнд" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "No databases selected." msgid "The name of the CTE was expected." msgstr "ӨС сонгогдоогүй." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No rows selected" msgid "AS keyword was expected." msgstr "Сонгогдсон мөргүй" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "Table %s has been dropped." msgid "Subquery of the CTE was expected." msgstr "Хүснэгт %s нь устгагдлаа" #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of the WITH CTE." msgstr "Хүснэгтийн эхэнд" #, fuzzy #~| msgid "At Beginning of Table" #~ msgid "Unexpected end of Lock expression." #~ msgstr "Хүснэгтийн эхэнд" #, fuzzy #~| msgid "Error" #~ msgid "error #1" #~ msgstr "Алдаа" #, fuzzy #~| msgid "Query type" #~ msgid "strict error" #~ msgstr "Асуултын төрөл" sql-parser-5.9.0/locale/ms/000077500000000000000000000000001455302707200155015ustar00rootroot00000000000000sql-parser-5.9.0/locale/ms/LC_MESSAGES/000077500000000000000000000000001455302707200172665ustar00rootroot00000000000000sql-parser-5.9.0/locale/ms/LC_MESSAGES/sqlparser.mo000066400000000000000000000007401455302707200216400ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2015-10-15 11:06+0200 Last-Translator: Michal Čihař Language-Team: Malay Language: ms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; X-Generator: Weblate 2.5-dev sql-parser-5.9.0/locale/ms/LC_MESSAGES/sqlparser.po000066400000000000000000000205731455302707200216510ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2015-10-15 11:06+0200\n" "Last-Translator: Michal Čihař \n" "Language-Team: Malay \n" "Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Weblate 2.5-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "With selected:" msgid "An alias was expected after AS." msgstr "Dengan pilihan:" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "With selected:" msgid "A symbol name was expected!" msgstr "Dengan pilihan:" #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "With selected:" msgid "A comma or a closing bracket was expected." msgstr "Dengan pilihan:" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "With selected:" msgid "An expression was expected." msgstr "Dengan pilihan:" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "With selected:" msgid "An alias was expected." msgstr "Dengan pilihan:" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK expression." msgstr "Pada Awalan Jadual" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "Baris telah dipadam" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "sebagai penyataan regular (regexp)" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format msgid "Ending quote %1$s was expected." msgstr "Jadual %s telah digugurkan" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected beginning of statement." msgstr "Pada Awalan Jadual" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "At Beginning of Table" msgid "Keyword at end of statement." msgstr "Pada Awalan Jadual" #: src/Statement.php:555 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected ordering of clauses." msgstr "Pada Awalan Jadual" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "With selected:" msgid "A table name was expected." msgstr "Dengan pilihan:" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "Baris telah dipadam" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK statement." msgstr "Pada Awalan Jadual" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "With selected:" msgid "The name of the CTE was expected." msgstr "Dengan pilihan:" #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "With selected:" msgid "AS keyword was expected." msgstr "Dengan pilihan:" #: src/Statements/WithStatement.php:149 #, fuzzy msgid "Subquery of the CTE was expected." msgstr "Jadual %s telah digugurkan" #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of the WITH CTE." msgstr "Pada Awalan Jadual" #, fuzzy #~| msgid "At Beginning of Table" #~ msgid "Unexpected end of Lock expression." #~ msgstr "Pada Awalan Jadual" #, fuzzy #~| msgid "Error" #~ msgid "error #1" #~ msgstr "Ralat" #, fuzzy #~| msgid "Query type" #~ msgid "strict error" #~ msgstr "Jenis Kueri" sql-parser-5.9.0/locale/nb/000077500000000000000000000000001455302707200154615ustar00rootroot00000000000000sql-parser-5.9.0/locale/nb/LC_MESSAGES/000077500000000000000000000000001455302707200172465ustar00rootroot00000000000000sql-parser-5.9.0/locale/nb/LC_MESSAGES/sqlparser.mo000066400000000000000000000114711455302707200216230ustar00rootroot000000000000002C<H*I!t*L .Ock#.Ed< ,#C(W4&(-=$k''"8 *< "g   ! " !  * > ^ p      * $  +$ KP '  a*w 7$\&v$%3:n(&(9>b,     +!Ln"  !12 !  &"$(*#0',/ %+) -. %1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2020-06-24 17:41+0000 Last-Translator: Sebastian Language-Team: Norwegian Bokmål Language: nb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 4.2-dev %1$d verdier var forventet, men fant %2$d.Et "RETURNS" søkeord ble forventet.Forventet en lukkingsklamme.Forventet et komma eller en lukkingsklamme.En ny uttalelse ble funnet, men ingen skilletegn mellom det og den forrige.En navneenringsoperasjon var forventet.Forventet et symbolnavn!Forventet et symbolnavn! Reserverte nøkkelord kan bare bli brukt som kolonnenavn ved å sette gravistegn (`) før og etter navnet.Tabellnavn forventet.Forventet et alias etter AS, men ble gitt Et alias var forventet etter AS.Alias forventet.Et alias ble tidligere funnet.Uttrykk forventet.En forskyvning var forventet.Åpningsklamme etterfulgt av et sett verdier forventet.Åpningsklamme forventet.Minst én kolonnedefinisjon forventet.Sluttsitat %1$s forventet.Forventet avgrensning.Forventet blanktegn før skilletegn.Søkeordet "TIL" var forventet.Nøkkelord ved slutten av uttalelsen.Mangler komma før starten av ny endringsoperasjon.Manglende uttrykk.Ingen transaksjon ble tidligere startet.Ikke implementert ennå.Mulig duplisert alias av CASE-uttrykk.Enhetsnavn forventet.Forventet nytt tabellnavn.Forventet gammelt tabellnavn.Denne operasjonen konflikter med "%1$s".Denne typen klausul er ikke gyldig i Multi-tabell-spørringer.Denne typen klausul ble tidligere analysert.Uventet begynnelse på uttykket.Uventet tegn.Uventet dott.Uventet slutt av CASE-uttrykketUventet slutt av LOCK-uttrykket.Uventet slutt på LOCK-uttrykket.Uventet nøkkelordUventede karakterer på linje %sd.Uventet klausulrekkefølge.Uventet tegn.Ukjent endringsoperasjon.Ukjent datatype.Ukjent nøkkelord.Ukjent setningstype.Variabelnavn forventet.sql-parser-5.9.0/locale/nb/LC_MESSAGES/sqlparser.po000066400000000000000000000224111455302707200216220ustar00rootroot00000000000000# Automatically generated <>, 2010. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2020-06-24 17:41+0000\n" "Last-Translator: Sebastian \n" "Language-Team: Norwegian Bokmål \n" "Language: nb\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.2-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Ikke implementert ennå." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "En ny uttalelse ble funnet, men ingen skilletegn mellom det og den forrige." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Mangler komma før starten av ny endringsoperasjon." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Ukjent endringsoperasjon." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "%1$d verdier var forventet, men fant %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Åpningsklamme etterfulgt av et sett verdier forventet." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Åpningsklamme forventet." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Uventede karakterer på linje %sd." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Uventet slutt av CASE-uttrykket" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Mulig duplisert alias av CASE-uttrykk." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "Forventet et alias etter AS, men ble gitt " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Et alias ble tidligere funnet." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "Et alias var forventet etter AS." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Forventet et symbolnavn! Reserverte nøkkelord kan bare bli brukt som " "kolonnenavn ved å sette gravistegn (`) før og etter navnet." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Forventet et symbolnavn!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Forventet et komma eller en lukkingsklamme." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Forventet en lukkingsklamme." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Ukjent datatype." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Uttrykk forventet." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Alias forventet." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Uventet dott." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Uventet tegn." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "En forskyvning var forventet." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Uventet slutt av LOCK-uttrykket." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Denne operasjonen konflikter med \"%1$s\"." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Forventet gammelt tabellnavn." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Søkeordet \"TIL\" var forventet." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Forventet nytt tabellnavn." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "En navneenringsoperasjon var forventet." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Manglende uttrykk." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Uventet tegn." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Forventet blanktegn før skilletegn." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Forventet avgrensning." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Sluttsitat %1$s forventet." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Variabelnavn forventet." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Uventet begynnelse på uttykket." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Ukjent setningstype." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Ingen transaksjon ble tidligere startet." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Denne typen klausul ble tidligere analysert." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Ukjent nøkkelord." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Nøkkelord ved slutten av uttalelsen." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Uventet klausulrekkefølge." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Enhetsnavn forventet." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Tabellnavn forventet." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Minst én kolonnedefinisjon forventet." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Et \"RETURNS\" søkeord ble forventet." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Denne typen klausul er ikke gyldig i Multi-tabell-spørringer." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Uventet slutt på LOCK-uttrykket." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Uventet nøkkelord" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The name of the entity was expected." msgid "The name of the CTE was expected." msgstr "Enhetsnavn forventet." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "A \"RETURNS\" keyword was expected." msgid "AS keyword was expected." msgstr "Et \"RETURNS\" søkeord ble forventet." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The name of the entity was expected." msgid "Subquery of the CTE was expected." msgstr "Enhetsnavn forventet." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected end of LOCK statement." msgid "Unexpected end of the WITH CTE." msgstr "Uventet slutt på LOCK-uttrykket." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Uventet slutt av LOCK-uttrykket." #~ msgid "error #1" #~ msgstr "feil #1" #~ msgid "strict error" #~ msgstr "streng feil" sql-parser-5.9.0/locale/ne/000077500000000000000000000000001455302707200154645ustar00rootroot00000000000000sql-parser-5.9.0/locale/ne/LC_MESSAGES/000077500000000000000000000000001455302707200172515ustar00rootroot00000000000000sql-parser-5.9.0/locale/ne/LC_MESSAGES/sqlparser.mo000066400000000000000000000007461455302707200216310ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2015-10-15 11:03+0200 Last-Translator: Michal Čihař Language-Team: Nepali Language: ne MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 2.5-dev sql-parser-5.9.0/locale/ne/LC_MESSAGES/sqlparser.po000066400000000000000000000176261455302707200216410ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2014 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # Automatically generated, 2014. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2015-10-15 11:03+0200\n" "Last-Translator: Michal Čihař \n" "Language-Team: Nepali \n" "Language: ne\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 2.5-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "No tables selected." msgid "An alias was expected after AS." msgstr "कुनैपनि डेटाबेस चयन गरिएको छैन।" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "" #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "" #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "" #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "No tables selected." msgid "A table name was expected." msgstr "कुनैपनि डेटाबेस चयन गरिएको छैन।" #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "No tables selected." msgid "The name of the CTE was expected." msgstr "कुनैपनि डेटाबेस चयन गरिएको छैन।" #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No tables selected." msgid "AS keyword was expected." msgstr "कुनैपनि डेटाबेस चयन गरिएको छैन।" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "No tables selected." msgid "Subquery of the CTE was expected." msgstr "कुनैपनि डेटाबेस चयन गरिएको छैन।" #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "" sql-parser-5.9.0/locale/nl/000077500000000000000000000000001455302707200154735ustar00rootroot00000000000000sql-parser-5.9.0/locale/nl/LC_MESSAGES/000077500000000000000000000000001455302707200172605ustar00rootroot00000000000000sql-parser-5.9.0/locale/nl/LC_MESSAGES/sqlparser.mo000066400000000000000000000125751455302707200216430ustar00rootroot000000000000006I|*!*L9 c'B#[<  F,g( 4)^&r-!!$ 'E 'm " 8 * " ? U !e " !     3 E c {    1 ) " /a1$d")!)FB`!/5- c#<-4"b!&*(#"AF-#$#D'h%%@![,)'  .%53 0*2 $ (-&4+1!/#6"%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.AS keyword was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.Subquery of the CTE was expected.The name of the CTE was expected.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected end of the WITH CTE.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Dutch Language: nl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 4.16-dev %1$d waarden werden verwacht, maar %2$d gevonden.Een "RETURNS" sleutelwoord werd verwacht.Een sluitingshaakje werd verwacht.Een komma of een sluitingshaakje werd verwacht.Een nieuwe opdracht werd gevonden, maar zonder scheidingsteken tussen deze en de vorige opdracht.Een hernoem bewerking werd verwacht.Een symbool naam werd verwacht!Een symbool naam werd verwacht! Een gereserveerd sleutelwoord kan niet als kolomnaam gebruikt worden zonder achterwaartse aanhalingstekens.Een tabel naam werd verwacht.Het AS sleutelwoord werd verwacht.Een alias werd verwacht na AS maar kreeg Een alias werd verwacht na AS.Een alias werd verwacht.Een alias was eerder al gevonden.Een expressie werd verwacht.Een offset werd verwacht.Een openingshaakje gevolgd door een set met waardes werd verwacht.Een openingshaakje werd verwacht.Er werd minimaal één kolomdefinitie verwacht.Eindquote %1$s werd verwacht.Scheidingsteken verwacht.Spatie(s) werd(en) verwacht voor het scheidingsteken.Sleutelwoord "TO" werd verwacht.Sleutelwoord aan eind van opdracht.Ontbrekende komma voor de start van een wijzigingsbewerking.Expressie ontbreekt.Er is geen transactie gestart.Nog niet geïmplementeerd.Potentiële dubbele alias van CASE expressie.Subquery van de CTE werd verwacht.De naam van de CTE werd verwacht.De naam van de entiteit werd verwacht.De nieuwe naam van de tabel werd verwacht.De oude naam van de tabel werd verwacht.Deze optie conflicteert met "%1$s".Dit type van voorwaarde is niet bruikbaar in multi-tabel queries.Dit type van voorwaarde is eerder uitgevoerd.Onverwacht begin van opdracht.Onverwachte letter.Onverwachte punt.Onverwacht einde van CASE expressieOnverwacht einde van LOCK expressie.Onverwacht einde van LOCK opdracht.Onverwacht einde van WITH CTE opdracht.Onverwacht sleutelwoordOnverwacht sleutelwoord.Onverwachte volgorde van voorwaarden.Onverwacht token.Onbekende bewerking.Onbekend gegevenstype.Sleutelwoord niet herkend.Opdrachttype niet herkend.Naam van variabele werd verwacht.sql-parser-5.9.0/locale/nl/LC_MESSAGES/sqlparser.po000066400000000000000000000224531455302707200216420ustar00rootroot00000000000000# Automatically generated <>, 2010. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Dutch \n" "Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Nog niet geïmplementeerd." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "Een nieuwe opdracht werd gevonden, maar zonder scheidingsteken tussen deze " "en de vorige opdracht." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Ontbrekende komma voor de start van een wijzigingsbewerking." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Onbekende bewerking." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "%1$d waarden werden verwacht, maar %2$d gevonden." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Een openingshaakje gevolgd door een set met waardes werd verwacht." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Een openingshaakje werd verwacht." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Onverwacht sleutelwoord." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Onverwacht einde van CASE expressie" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Potentiële dubbele alias van CASE expressie." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "Een alias werd verwacht na AS maar kreeg " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Een alias was eerder al gevonden." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "Een alias werd verwacht na AS." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Een symbool naam werd verwacht! Een gereserveerd sleutelwoord kan niet als " "kolomnaam gebruikt worden zonder achterwaartse aanhalingstekens." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Een symbool naam werd verwacht!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Een komma of een sluitingshaakje werd verwacht." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Een sluitingshaakje werd verwacht." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Onbekend gegevenstype." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Een expressie werd verwacht." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Een alias werd verwacht." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Onverwachte punt." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Onverwacht token." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Een offset werd verwacht." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Onverwacht einde van LOCK expressie." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Deze optie conflicteert met \"%1$s\"." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "De oude naam van de tabel werd verwacht." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Sleutelwoord \"TO\" werd verwacht." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "De nieuwe naam van de tabel werd verwacht." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Een hernoem bewerking werd verwacht." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Expressie ontbreekt." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Onverwachte letter." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Spatie(s) werd(en) verwacht voor het scheidingsteken." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Scheidingsteken verwacht." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Eindquote %1$s werd verwacht." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Naam van variabele werd verwacht." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Onverwacht begin van opdracht." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Opdrachttype niet herkend." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Er is geen transactie gestart." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Dit type van voorwaarde is eerder uitgevoerd." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Sleutelwoord niet herkend." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Sleutelwoord aan eind van opdracht." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Onverwachte volgorde van voorwaarden." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "De naam van de entiteit werd verwacht." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Een tabel naam werd verwacht." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Er werd minimaal één kolomdefinitie verwacht." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Een \"RETURNS\" sleutelwoord werd verwacht." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Dit type van voorwaarde is niet bruikbaar in multi-tabel queries." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Onverwacht einde van LOCK opdracht." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Onverwacht sleutelwoord" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "De naam van de CTE werd verwacht." #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "Het AS sleutelwoord werd verwacht." #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "Subquery van de CTE werd verwacht." #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "Onverwacht einde van WITH CTE opdracht." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Onverwacht einde van LOCK expressie." #~ msgid "error #1" #~ msgstr "fout #1" #~ msgid "strict error" #~ msgstr "strikte fout" sql-parser-5.9.0/locale/pa/000077500000000000000000000000001455302707200154625ustar00rootroot00000000000000sql-parser-5.9.0/locale/pa/LC_MESSAGES/000077500000000000000000000000001455302707200172475ustar00rootroot00000000000000sql-parser-5.9.0/locale/pa/LC_MESSAGES/sqlparser.mo000066400000000000000000000007461455302707200216270ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2014-01-06 12:13+0200 Last-Translator: Michal Čihař Language-Team: Punjabi Language: pa MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 1.9-dev sql-parser-5.9.0/locale/pa/LC_MESSAGES/sqlparser.po000066400000000000000000000205471455302707200216330ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2012 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # Automatically generated, 2012. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2014-01-06 12:13+0200\n" "Last-Translator: Michal Čihař \n" "Language-Team: Punjabi \n" "Language: pa\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 1.9-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "Database %1$s has been created." msgid "An alias was expected after AS." msgstr "%1$s ਡਾਟਾਬੇਸ ਬਣ ਚੁੱਕਾ ਹੈ." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "Database %1$s has been created." msgid "A symbol name was expected!" msgstr "%1$s ਡਾਟਾਬੇਸ ਬਣ ਚੁੱਕਾ ਹੈ." #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "Database %1$s has been created." msgid "A comma or a closing bracket was expected." msgstr "%1$s ਡਾਟਾਬੇਸ ਬਣ ਚੁੱਕਾ ਹੈ." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "Database %1$s has been created." msgid "An alias was expected." msgstr "%1$s ਡਾਟਾਬੇਸ ਬਣ ਚੁੱਕਾ ਹੈ." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "Database %1$s has been created." msgid "A rename operation was expected." msgstr "%1$s ਡਾਟਾਬੇਸ ਬਣ ਚੁੱਕਾ ਹੈ." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "" #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Database %1$s has been created." msgid "A table name was expected." msgstr "%1$s ਡਾਟਾਬੇਸ ਬਣ ਚੁੱਕਾ ਹੈ." #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "Database %1$s has been created." msgid "At least one column definition was expected." msgstr "%1$s ਡਾਟਾਬੇਸ ਬਣ ਚੁੱਕਾ ਹੈ." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "Database %1$s has been created." msgid "The name of the CTE was expected." msgstr "%1$s ਡਾਟਾਬੇਸ ਬਣ ਚੁੱਕਾ ਹੈ." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "Database %1$s has been created." msgid "AS keyword was expected." msgstr "%1$s ਡਾਟਾਬੇਸ ਬਣ ਚੁੱਕਾ ਹੈ." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "Database %1$s has been created." msgid "Subquery of the CTE was expected." msgstr "%1$s ਡਾਟਾਬੇਸ ਬਣ ਚੁੱਕਾ ਹੈ." #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "" sql-parser-5.9.0/locale/pl/000077500000000000000000000000001455302707200154755ustar00rootroot00000000000000sql-parser-5.9.0/locale/pl/LC_MESSAGES/000077500000000000000000000000001455302707200172625ustar00rootroot00000000000000sql-parser-5.9.0/locale/pl/LC_MESSAGES/sqlparser.mo000066400000000000000000000120031455302707200216270ustar00rootroot000000000000002C<H*I!t*L .Ock#.Ed< ,#C(W4&(-=$k''"8 *< "g   ! " !  * > ^ p      ; '$ L /h F " u'34M0) "3#V9z6/Nh#E7Ii}#%+ ""<_s12 !  &"$(*#0',/ %+) -. %1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Polish Language: pl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2; X-Generator: Weblate 4.16-dev Oczekiwano następującej wartości: %1$d; znaleziono %2$d.Oczekiwano słowa kluczowego "RETURNS".Brak nawiasu zamykającego.Oczekiwano przecinka lub nawiasu zamykającego.Znaleziono kolejne polecenie, ale brakuje między nimi rozgranicznika.Oczekiwano polecenia zmiany nazwy.Oczekiwano nazwy symbolu!Oczekiwano nazwy symbolu! Zarezerwowane słowo kluczowe nie może być używane jako nazwa kolumny bez cudzysłowów.Oczekiwano nazwy tabeli.Oczekiwano alias po AS, lecz otrzymano Oczekiwano aliasu po AS.Oczekiwano aliasu.Wcześniej znaleziono alias.Oczekiwano wyrażenia.Oczekiwano przesunięcia.Oczekiwano nawiasu otwierającego i listy wartości.Brak nawiasu otwierającego.Oczekiwano definicji co najmniej jednej kolumny.Oczekiwano znaku końca %1$s.Oczekiwano rozgranicznika.Oczekiwano spacji przez rozgranicznikiem.Oczekiwano słowa kluczowego "TO".Słowo kluczowe na końcu wyciągu.Brak przecinka przed rozpoczęciem nowej operacji zmiany.Brakujace wyrazenie.Żadna transakcja nie została wcześniej uruchomiona.Jeszcze nie zaimplementowane.Potencjalny zduplikowany alias wyrażenia CASE.Oczekiwano nazwy obiektu.Oczekiwano nowej nazwy tabeli.Oczekiwano starej nazwy tabeli.Ta opcja zawiera konflikt z "%1$s".Ta klauzula nie może być stosowana w poleceniach międzytabelowych.Tego typu klauzula została wcześniej przeanalizowana.Oczekiwano początku polecenia.Nieoczekiwany znak.Nieoczekiwana kropka.Nieoczekiwany koniec polecenia CASENieoczekiwany koniec wyrażenia LOCK.Nieoczekiwane zakończenie instrukcji LOCK.Nieznane słowo kluczoweNieznane słowo kluczowe.Nieoczekiwana kolejność klauzul.Nieoczekiwany znak.Nierozpoznana zmiana operacji.Nierozpoznany typ danych.Nierozpoznane słowo kluczowe.Nierozpoznany typ polecenia.Oczekiwano nazwy zmiennej.sql-parser-5.9.0/locale/pl/LC_MESSAGES/sqlparser.po000066400000000000000000000227621455302707200216470ustar00rootroot00000000000000# iMutrix , 2012. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Polish \n" "Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Jeszcze nie zaimplementowane." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "Znaleziono kolejne polecenie, ale brakuje między nimi rozgranicznika." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Brak przecinka przed rozpoczęciem nowej operacji zmiany." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Nierozpoznana zmiana operacji." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "Oczekiwano następującej wartości: %1$d; znaleziono %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Oczekiwano nawiasu otwierającego i listy wartości." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Brak nawiasu otwierającego." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Nieznane słowo kluczowe." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Nieoczekiwany koniec polecenia CASE" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Potencjalny zduplikowany alias wyrażenia CASE." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "Oczekiwano alias po AS, lecz otrzymano " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Wcześniej znaleziono alias." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "Oczekiwano aliasu po AS." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Oczekiwano nazwy symbolu! Zarezerwowane słowo kluczowe nie może być używane " "jako nazwa kolumny bez cudzysłowów." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Oczekiwano nazwy symbolu!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Oczekiwano przecinka lub nawiasu zamykającego." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Brak nawiasu zamykającego." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Nierozpoznany typ danych." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Oczekiwano wyrażenia." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Oczekiwano aliasu." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Nieoczekiwana kropka." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Nieoczekiwany znak." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Oczekiwano przesunięcia." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Nieoczekiwany koniec wyrażenia LOCK." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Ta opcja zawiera konflikt z \"%1$s\"." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Oczekiwano starej nazwy tabeli." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Oczekiwano słowa kluczowego \"TO\"." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Oczekiwano nowej nazwy tabeli." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Oczekiwano polecenia zmiany nazwy." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Brakujace wyrazenie." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Nieoczekiwany znak." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Oczekiwano spacji przez rozgranicznikiem." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Oczekiwano rozgranicznika." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Oczekiwano znaku końca %1$s." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Oczekiwano nazwy zmiennej." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Oczekiwano początku polecenia." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Nierozpoznany typ polecenia." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Żadna transakcja nie została wcześniej uruchomiona." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Tego typu klauzula została wcześniej przeanalizowana." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Nierozpoznane słowo kluczowe." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Słowo kluczowe na końcu wyciągu." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Nieoczekiwana kolejność klauzul." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Oczekiwano nazwy obiektu." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Oczekiwano nazwy tabeli." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Oczekiwano definicji co najmniej jednej kolumny." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Oczekiwano słowa kluczowego \"RETURNS\"." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Ta klauzula nie może być stosowana w poleceniach międzytabelowych." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Nieoczekiwane zakończenie instrukcji LOCK." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Nieznane słowo kluczowe" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The name of the entity was expected." msgid "The name of the CTE was expected." msgstr "Oczekiwano nazwy obiektu." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "A \"RETURNS\" keyword was expected." msgid "AS keyword was expected." msgstr "Oczekiwano słowa kluczowego \"RETURNS\"." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The name of the entity was expected." msgid "Subquery of the CTE was expected." msgstr "Oczekiwano nazwy obiektu." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected end of LOCK statement." msgid "Unexpected end of the WITH CTE." msgstr "Nieoczekiwane zakończenie instrukcji LOCK." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Nieoczekiwany koniec wyrażenia LOCK." #~ msgid "error #1" #~ msgstr "Błąd #1" #~ msgid "strict error" #~ msgstr "ścisły błąd" sql-parser-5.9.0/locale/pt/000077500000000000000000000000001455302707200155055ustar00rootroot00000000000000sql-parser-5.9.0/locale/pt/LC_MESSAGES/000077500000000000000000000000001455302707200172725ustar00rootroot00000000000000sql-parser-5.9.0/locale/pt/LC_MESSAGES/sqlparser.mo000066400000000000000000000121571455302707200216510ustar00rootroot000000000000002C<H*I!t*L .Ock#.Ed< ,#C(W4&(-=$k''"8 *< "g   ! " !  * > ^ p      8 ) ' 7< St # ! o#~*)$3PGh%2# -6C z'J/#S8p #%">71v#!"$9^w%+",O12 !  &"$(*#0',/ %+) -. %1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Portuguese Language: pt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n > 1; X-Generator: Weblate 4.16-dev Eram esperados %1$d valores, mas foram encontrados %2$d.Uma palavra-chave "RETURNS" era esperada.Um colchete ou parenteses era esperado.Uma vírgula ou um colchete de fechamento era esperado.Uma nova instrução foi encontrada, mas nenhum delimitador entre ela e a anterior.Uma operação rename era esperada.Um nome do símbolo era esperado!Um nome de símbolo era esperado! Uma chave reservada não pode ser usada como um nome de coluna sem as chaves.Um nome para a tabela era esperado.Um pseudónimo esperado após AS, mas tem Um pseudónimo foi esperado depois do AS.Um alias era esperado.Um alias foi previamente encontrado.Uma expressão era esperada.Um offset era esperado.Uma abertura de chaveta seguida de um conjunto de valores era esperada.Uma abertura de chaveta era esperada.Pelo menos uma definição de coluna era esperada.Citação final %1$s1 era esperada.Delimitador esperado.Espaço(s) em Branco(s) esperado antes do delimitador.Palavra-chave "TO" era esperada.Palavra-chave no final da declaração.Falta uma vírgula antes do início de uma nova operação de alteração.Faltando expressão.Nenhuma transação foi iniciada anteriormente.Ainda não foi implementado.Pseudónimo potencialmente duplicado da expressão CASE.O nome da entidade era esperado.O novo nome da tabela era esperado.O nome antigo da tabela era esperado.Essa opção conflita com "%1$s1".Esse tipo de clausula não é válida em queries Multi-tabela.Este tipo de cláusula foi previamente analisado.Inesperado começo da declaração.Caractere inesperado.Ponto inesperado.Fim da expressão CASE inesperadaFim inesperado da expressão LOCK.Fim inesperado da declaração LOCK.Palavra-chave inesperadaPalavra-chave inesperada.Ordenação inesperada de cláusulas.Token inesperado.Operação de alteração não reconhecida.Tipo de dado desconhecido.Palavra-chave desconhecida.Tipo de declaração desconhecida.Nome da variável era esperado.sql-parser-5.9.0/locale/pt/LC_MESSAGES/sqlparser.po000066400000000000000000000231031455302707200216450ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Portuguese \n" "Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n > 1;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Ainda não foi implementado." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "Uma nova instrução foi encontrada, mas nenhum delimitador entre ela e a " "anterior." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Falta uma vírgula antes do início de uma nova operação de alteração." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Operação de alteração não reconhecida." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "Eram esperados %1$d valores, mas foram encontrados %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" "Uma abertura de chaveta seguida de um conjunto de valores era esperada." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Uma abertura de chaveta era esperada." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Palavra-chave inesperada." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Fim da expressão CASE inesperada" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Pseudónimo potencialmente duplicado da expressão CASE." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "Um pseudónimo esperado após AS, mas tem " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Um alias foi previamente encontrado." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "Um pseudónimo foi esperado depois do AS." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Um nome de símbolo era esperado! Uma chave reservada não pode ser usada como " "um nome de coluna sem as chaves." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Um nome do símbolo era esperado!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Uma vírgula ou um colchete de fechamento era esperado." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Um colchete ou parenteses era esperado." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Tipo de dado desconhecido." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Uma expressão era esperada." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Um alias era esperado." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Ponto inesperado." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Token inesperado." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Um offset era esperado." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Fim inesperado da expressão LOCK." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Essa opção conflita com \"%1$s1\"." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "O nome antigo da tabela era esperado." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Palavra-chave \"TO\" era esperada." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "O novo nome da tabela era esperado." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Uma operação rename era esperada." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Faltando expressão." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Caractere inesperado." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Espaço(s) em Branco(s) esperado antes do delimitador." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Delimitador esperado." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Citação final %1$s1 era esperada." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Nome da variável era esperado." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Inesperado começo da declaração." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Tipo de declaração desconhecida." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Nenhuma transação foi iniciada anteriormente." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Este tipo de cláusula foi previamente analisado." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Palavra-chave desconhecida." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Palavra-chave no final da declaração." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Ordenação inesperada de cláusulas." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "O nome da entidade era esperado." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Um nome para a tabela era esperado." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Pelo menos uma definição de coluna era esperada." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Uma palavra-chave \"RETURNS\" era esperada." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Esse tipo de clausula não é válida em queries Multi-tabela." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Fim inesperado da declaração LOCK." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Palavra-chave inesperada" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The name of the entity was expected." msgid "The name of the CTE was expected." msgstr "O nome da entidade era esperado." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "A \"RETURNS\" keyword was expected." msgid "AS keyword was expected." msgstr "Uma palavra-chave \"RETURNS\" era esperada." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The name of the entity was expected." msgid "Subquery of the CTE was expected." msgstr "O nome da entidade era esperado." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected end of LOCK statement." msgid "Unexpected end of the WITH CTE." msgstr "Fim inesperado da declaração LOCK." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Fim inesperado da expressão LOCK." #~ msgid "error #1" #~ msgstr "Erro #1" #~ msgid "strict error" #~ msgstr "Erro severo" sql-parser-5.9.0/locale/pt_BR/000077500000000000000000000000001455302707200160705ustar00rootroot00000000000000sql-parser-5.9.0/locale/pt_BR/LC_MESSAGES/000077500000000000000000000000001455302707200176555ustar00rootroot00000000000000sql-parser-5.9.0/locale/pt_BR/LC_MESSAGES/sqlparser.mo000066400000000000000000000122601455302707200222270ustar00rootroot000000000000002C<H*I!t*L .Ock#.Ed< ,#C(W4&(-=$k''"8 *< "g   ! " !  * > ^ p      8 " ' 7D Z| % ! r*)%2-`}H%4 ?_=u'JD.Y8 #'*GGr1#%#7$[$%'>Y"o12 !  &"$(*#0',/ %+) -. %1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Portuguese (Brazil) Language: pt_BR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n > 1; X-Generator: Weblate 4.16-dev Eram esperados %1$d valores, mas foram encontrados %2$d.Era esperado um comando "RETURNS".Era esperado um colchete de fechamento.Era esperado uma vírgula ou um colchete de fechamento.Uma nova declaração foi encontrada, porém não há delimitador entre esta e a anterior.Era esperado uma operação renomear.Era esperado um nome de símbolo!Era esperado um nome de símbolo! Um caracter reservado não pode ser usado como um nome de coluna sem apóstrofo.Era esperado um nome de tabela.Um pseudônimo esperado após AS, mas tem Um pseudônimo foi esperado depois do AS.Era esperado um nome de correlação.Um nome correlação foi encontrado anteriormente.Era esperado uma expressão.Era esperado um espaçamento.Era esperado um colchete de abertura seguido por um conjunto de valores.Era esperado um colchete de abertura.Era esperado a definição de pelo menos uma coluna.Era esperado fechar aspas %1$s.Esperado delimitador.Era(m) esperado(s) espaço(s) em branco antes do delimitador.Era esperado o caracter "TO".Palavra-chave no final da declaração.Falta uma vírgula antes do início de uma nova operação de alteração.Faltando expressão.Nenhuma operação foi iniciada anteriormente.Ainda não implementado.Pseudônimo potencialmente duplicado da expressão CASE.Era esperado o nome da entidade.Era esperado o novo nome da tabela.Era esperado o nome anterior da tabela.Esta opção está em conflito com "%1$s".Este tipo de sentença não é válida em consultas à várias tabelas.Este tipo de sentença foi previamente analisado.Início de declaração inesperado.Caracter inesperado.Ponto inesperado.Final inesperado da expressão CASEFinal inesperado da expressão LOCK.Fim inesperado da declaração LOCK.Palavra-chave inesperadaCaracter inesperado.Ordenamento de sentenças inesperado.Símbolo (token) inesperado.Operação de alteração desconhecida.Tipo de dado desconhecido.Comando desconhecido.Tipo de declaração desconhecido.Era perado nome de variável.sql-parser-5.9.0/locale/pt_BR/LC_MESSAGES/sqlparser.po000066400000000000000000000232001455302707200222260ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Portuguese (Brazil) \n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n > 1;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Ainda não implementado." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "Uma nova declaração foi encontrada, porém não há delimitador entre esta e a " "anterior." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Falta uma vírgula antes do início de uma nova operação de alteração." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Operação de alteração desconhecida." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "Eram esperados %1$d valores, mas foram encontrados %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" "Era esperado um colchete de abertura seguido por um conjunto de valores." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Era esperado um colchete de abertura." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Caracter inesperado." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Final inesperado da expressão CASE" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Pseudônimo potencialmente duplicado da expressão CASE." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "Um pseudônimo esperado após AS, mas tem " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Um nome correlação foi encontrado anteriormente." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "Um pseudônimo foi esperado depois do AS." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Era esperado um nome de símbolo! Um caracter reservado não pode ser usado " "como um nome de coluna sem apóstrofo." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Era esperado um nome de símbolo!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Era esperado uma vírgula ou um colchete de fechamento." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Era esperado um colchete de fechamento." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Tipo de dado desconhecido." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Era esperado uma expressão." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Era esperado um nome de correlação." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Ponto inesperado." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Símbolo (token) inesperado." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Era esperado um espaçamento." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Final inesperado da expressão LOCK." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Esta opção está em conflito com \"%1$s\"." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Era esperado o nome anterior da tabela." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Era esperado o caracter \"TO\"." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Era esperado o novo nome da tabela." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Era esperado uma operação renomear." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Faltando expressão." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Caracter inesperado." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Era(m) esperado(s) espaço(s) em branco antes do delimitador." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Esperado delimitador." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Era esperado fechar aspas %1$s." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Era perado nome de variável." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Início de declaração inesperado." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Tipo de declaração desconhecido." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Nenhuma operação foi iniciada anteriormente." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Este tipo de sentença foi previamente analisado." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Comando desconhecido." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Palavra-chave no final da declaração." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Ordenamento de sentenças inesperado." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Era esperado o nome da entidade." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Era esperado um nome de tabela." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Era esperado a definição de pelo menos uma coluna." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Era esperado um comando \"RETURNS\"." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Este tipo de sentença não é válida em consultas à várias tabelas." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Fim inesperado da declaração LOCK." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Palavra-chave inesperada" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The name of the entity was expected." msgid "The name of the CTE was expected." msgstr "Era esperado o nome da entidade." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "A \"RETURNS\" keyword was expected." msgid "AS keyword was expected." msgstr "Era esperado um comando \"RETURNS\"." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The name of the entity was expected." msgid "Subquery of the CTE was expected." msgstr "Era esperado o nome da entidade." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected end of LOCK statement." msgid "Unexpected end of the WITH CTE." msgstr "Fim inesperado da declaração LOCK." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Final inesperado da expressão LOCK." #~ msgid "error #1" #~ msgstr "erro #1" #~ msgid "strict error" #~ msgstr "Erro estrito" sql-parser-5.9.0/locale/rcf/000077500000000000000000000000001455302707200156345ustar00rootroot00000000000000sql-parser-5.9.0/locale/rcf/LC_MESSAGES/000077500000000000000000000000001455302707200174215ustar00rootroot00000000000000sql-parser-5.9.0/locale/rcf/LC_MESSAGES/sqlparser.mo000066400000000000000000000005311455302707200217710ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE Last-Translator: Automatically generated Language-Team: none Language: rcf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit sql-parser-5.9.0/locale/rcf/LC_MESSAGES/sqlparser.po000066400000000000000000000162351455302707200220040ustar00rootroot00000000000000# phpMyAdmin SQL parser translation. # Copyright (C) 2015 - 2020 phpMyAdmin devel team # This file is distributed under the same license as the SQL parser package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: rcf\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "" #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "" #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "" #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "" #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "" #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "" #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "" #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "" sql-parser-5.9.0/locale/ro/000077500000000000000000000000001455302707200155025ustar00rootroot00000000000000sql-parser-5.9.0/locale/ro/LC_MESSAGES/000077500000000000000000000000001455302707200172675ustar00rootroot00000000000000sql-parser-5.9.0/locale/ro/LC_MESSAGES/sqlparser.mo000066400000000000000000000131021455302707200216350ustar00rootroot000000000000006I|*!*L9 c'B#[<  F,g( 4)^&r-!!$ 'E 'm " 8 * " ? U !e " !     3 E c {    5 , *:Ci~* q4$. ; StG*3,Q~5*Aa0u,'!+&M(t3G.%Hn'(+"7Q#m& !,)'  .%53 0*2 $ (-&4+1!/#6"%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.AS keyword was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.Subquery of the CTE was expected.The name of the CTE was expected.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected end of the WITH CTE.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Romanian Language: ro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2; X-Generator: Weblate 4.16-dev Au fost așteptate %1$d valori, dar s-au găsit %2$d.Un cuvânt cheie "RETURNS" era de aşteptat.Era așteptată o paranteza de închidere.Era așteptată o virgulă sau o paranteză de închidere.A fost găsită o nouă activitate, dar nu există niciun delimitator între aceasta și cea anterioară.Era așteptată o operație de redenumire.Era așteptat un nume de simbol!Era așteptat nume de simbol! Un cuvânt cheie rezervat nu poate fi folosit ca nume de coloană fără ghilimele.Era așteptat un nume de tabel.Era de aşteptat cuvântul-cheie AS.Era așteptat un alias după AS dar am primit Era așteptat un alias după AS.Era așteptat un alias.A fost găsit anterior un alias.Era așteptată o expresie.Era așteptat un decalaj.Era așteptată o paranteză de deschidere urmată de un set de valori.Era așteptată o paranteza de deschidere.Era așteptată cel puțin o definiție a coloanei.Erau așteptate ghilimele la sfârșit %1$s.A fost așteptat delimitatorul.S-au așteptat spații goale înainte de delimitator.Cuvantul cheie "TO" este cerut.Cuvânt cheie la sfârșitul declarației.Virgulă lipsa înainte de începutul unei noi operațiuni ALTER.Lipsește expresia.Nu a fost începută anterior nicio tranzacție.Neimplementat încă.Alias potențial duplicat al expresiei CASE.Era de așteptat o subinterogare a CTE.Era așteptat numele CTE.Era așteptat numele entității.Era așteptat numele nou al tabelului.Era așteptat numele vechi al tabelului.Aceasta opțiune intră în conflict cu „%1$s”.Acest tip de clauză nu este valid în interogările mai multor tabele.Acest tip de clauză a fost analizat anterior.Început neașteptat al declarației.Caracter neașteptat.Punct neașteptat.Sfârșit neașteptat al expresiei CASESfârșit neașteptat al expresiei LOCK.Sfârșit neașteptat al declarației LOCK.Sfârșit neașteptat al WITH CTE.Cuvânt-cheie neașteptatCuvinte cheie neașteptate.Ordonare neașteptată a clauzelor.Token neașteptat.Activitate de modificare necunoscută.Tip de date nerecunoscut.Cuvânt cheie nerecunoscut.Tip de activitate nerecunoscut.Era așteptat numele variabilei.sql-parser-5.9.0/locale/ro/LC_MESSAGES/sqlparser.po000066400000000000000000000227721455302707200216550ustar00rootroot00000000000000# Automatically generated <>, 2010. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Romanian \n" "Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < " "20)) ? 1 : 2;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Neimplementat încă." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "A fost găsită o nouă activitate, dar nu există niciun delimitator între " "aceasta și cea anterioară." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Virgulă lipsa înainte de începutul unei noi operațiuni ALTER." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Activitate de modificare necunoscută." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "Au fost așteptate %1$d valori, dar s-au găsit %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Era așteptată o paranteză de deschidere urmată de un set de valori." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Era așteptată o paranteza de deschidere." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Cuvinte cheie neașteptate." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Sfârșit neașteptat al expresiei CASE" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Alias potențial duplicat al expresiei CASE." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "Era așteptat un alias după AS dar am primit " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "A fost găsit anterior un alias." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "Era așteptat un alias după AS." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Era așteptat nume de simbol! Un cuvânt cheie rezervat nu poate fi folosit ca " "nume de coloană fără ghilimele." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Era așteptat un nume de simbol!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Era așteptată o virgulă sau o paranteză de închidere." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Era așteptată o paranteza de închidere." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Tip de date nerecunoscut." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Era așteptată o expresie." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Era așteptat un alias." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Punct neașteptat." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Token neașteptat." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Era așteptat un decalaj." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Sfârșit neașteptat al expresiei LOCK." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Aceasta opțiune intră în conflict cu „%1$s”." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Era așteptat numele vechi al tabelului." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Cuvantul cheie \"TO\" este cerut." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Era așteptat numele nou al tabelului." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Era așteptată o operație de redenumire." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Lipsește expresia." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Caracter neașteptat." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "S-au așteptat spații goale înainte de delimitator." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "A fost așteptat delimitatorul." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Erau așteptate ghilimele la sfârșit %1$s." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Era așteptat numele variabilei." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Început neașteptat al declarației." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Tip de activitate nerecunoscut." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Nu a fost începută anterior nicio tranzacție." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Acest tip de clauză a fost analizat anterior." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Cuvânt cheie nerecunoscut." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Cuvânt cheie la sfârșitul declarației." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Ordonare neașteptată a clauzelor." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Era așteptat numele entității." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Era așteptat un nume de tabel." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Era așteptată cel puțin o definiție a coloanei." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Un cuvânt cheie \"RETURNS\" era de aşteptat." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Acest tip de clauză nu este valid în interogările mai multor tabele." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Sfârșit neașteptat al declarației LOCK." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Cuvânt-cheie neașteptat" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "Era așteptat numele CTE." #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "Era de aşteptat cuvântul-cheie AS." #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "Era de așteptat o subinterogare a CTE." #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "Sfârșit neașteptat al WITH CTE." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Sfârșit neașteptat al expresiei LOCK." #~ msgid "error #1" #~ msgstr "eroare #1" #~ msgid "strict error" #~ msgstr "eroare strictă" sql-parser-5.9.0/locale/ru/000077500000000000000000000000001455302707200155105ustar00rootroot00000000000000sql-parser-5.9.0/locale/ru/LC_MESSAGES/000077500000000000000000000000001455302707200172755ustar00rootroot00000000000000sql-parser-5.9.0/locale/ru/LC_MESSAGES/sqlparser.mo000066400000000000000000000153211455302707200216500ustar00rootroot000000000000006I|*!*L9 c'B#[<  F,g( 4)^&r-!!$ 'E 'm " 8 * " ? U !e " !     3 E c {    > 9 7GMA]))2S2W$2&$ X.7c>#*bB4?bE*I#\A(+46G;~O:7$"A BLD323;=o"A13D(x/,)'  .%53 0*2 $ (-&4+1!/#6"%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.AS keyword was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.Subquery of the CTE was expected.The name of the CTE was expected.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected end of the WITH CTE.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Russian Language: ru MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2; X-Generator: Weblate 4.16-dev Ожидалось %1$d значений, найдено %2$d.Ожидалось ключевое слово "RETURNS".Ожидалась закрывающая скобка.Ожидалась запятая или закрывающая скобка.Было найдено новое утверждение, но не было разделителя между ним и предыдущим.Ожидалась операция переименования.Ожидалось имя символа!Ожидалось имя символа! Зарезервированное ключевое слово не может использоваться как имя столбца без обратных запросов.Ожидалось имя таблицы.Ожидалось ключевое слово AS.После AS ожидается псевдоним, однако получено После AS ожидался псевдоним.Ожидался псевдоним.Псевдоним был найден ранее.Ожидалось выражение.Ожидалось смещение.Ожидалась открывающая скобка и список значений.Ожидалась открывающая скобка.Ожидалось объявление, по крайней мере, одного столбца.Ожидалась закрывающая кавычка %1$s.Ожидается разделитель.Ожидался пробел перед разделителем.Ожидалось ключевое слово "TO".Ключевое слово в конце инструкции.Отсутствует запятая перед началом новой операции alter.Отсутствует выражение.Ни одна транзакция не была ранее начата.Ещё не реализовано.Потенциальный дубликат псевдонима в выражении CASE.Ожидался подзапрос CTE.Ожидалось имя CTE.Ожидалось имя сущности.Ожидалось новое имя таблицы.Ожидалось старое имя таблицы.Этот параметр конфликтует с "%1$s".Такого рода выражения не поддерживаются в мульти-табличных запросах.Этот тип предложения ранее анализировался.Неожиданное начало выражения.Неожиданный символ.Неожиданная точка.Неожиданное окончание CASE выраженияНеожиданное окончание выражения LOCK.Неожиданное окончание инструкции LOCK.Неожиданное окончание CTE WITH.Неожиданное ключевое словоНеожиданное ключевое слово.Неожиданный порядок предложений.Неожиданный токен.Нераспознанная операция изменения.Нераспознанный тип данных.Неизвестное ключевое слово.Неизвестный оператор.Ожидалось имя переменной.sql-parser-5.9.0/locale/ru/LC_MESSAGES/sqlparser.po000066400000000000000000000252671455302707200216650ustar00rootroot00000000000000# Automatically generated <>, 2010. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Russian \n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Ещё не реализовано." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "Было найдено новое утверждение, но не было разделителя между ним и " "предыдущим." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Отсутствует запятая перед началом новой операции alter." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Нераспознанная операция изменения." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "Ожидалось %1$d значений, найдено %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Ожидалась открывающая скобка и список значений." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Ожидалась открывающая скобка." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Неожиданное ключевое слово." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Неожиданное окончание CASE выражения" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Потенциальный дубликат псевдонима в выражении CASE." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "После AS ожидается псевдоним, однако получено " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Псевдоним был найден ранее." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "После AS ожидался псевдоним." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Ожидалось имя символа! Зарезервированное ключевое слово не может " "использоваться как имя столбца без обратных запросов." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Ожидалось имя символа!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Ожидалась запятая или закрывающая скобка." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Ожидалась закрывающая скобка." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Нераспознанный тип данных." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Ожидалось выражение." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Ожидался псевдоним." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Неожиданная точка." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Неожиданный токен." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Ожидалось смещение." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Неожиданное окончание выражения LOCK." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Этот параметр конфликтует с \"%1$s\"." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Ожидалось старое имя таблицы." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Ожидалось ключевое слово \"TO\"." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Ожидалось новое имя таблицы." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Ожидалась операция переименования." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Отсутствует выражение." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Неожиданный символ." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Ожидался пробел перед разделителем." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Ожидается разделитель." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Ожидалась закрывающая кавычка %1$s." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Ожидалось имя переменной." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Неожиданное начало выражения." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Неизвестный оператор." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Ни одна транзакция не была ранее начата." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Этот тип предложения ранее анализировался." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Неизвестное ключевое слово." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Ключевое слово в конце инструкции." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Неожиданный порядок предложений." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Ожидалось имя сущности." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Ожидалось имя таблицы." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Ожидалось объявление, по крайней мере, одного столбца." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Ожидалось ключевое слово \"RETURNS\"." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Такого рода выражения не поддерживаются в мульти-табличных запросах." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Неожиданное окончание инструкции LOCK." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Неожиданное ключевое слово" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "Ожидалось имя CTE." #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "Ожидалось ключевое слово AS." #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "Ожидался подзапрос CTE." #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "Неожиданное окончание CTE WITH." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Неожиданное окончание выражения LOCK." #~ msgid "error #1" #~ msgstr "ошибка #1" #~ msgid "strict error" #~ msgstr "строгая ошибка" sql-parser-5.9.0/locale/si/000077500000000000000000000000001455302707200154755ustar00rootroot00000000000000sql-parser-5.9.0/locale/si/LC_MESSAGES/000077500000000000000000000000001455302707200172625ustar00rootroot00000000000000sql-parser-5.9.0/locale/si/LC_MESSAGES/sqlparser.mo000066400000000000000000000032561455302707200216410ustar00rootroot00000000000000 l *<Xo!_| LOE#:iRW^O  A closing bracket was expected.A comma or a closing bracket was expected.A symbol name was expected!An alias was expected.An expression was expected.Not implemented yet.Unexpected dot.Unexpected end of CASE expressionUnrecognized alter operation.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Sinhala Language: si MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n > 1; X-Generator: Weblate 4.16-dev අවසන් කිරීමේ වරහනක් බලාපොරොත්තු වේ.කොමාවක් හෝ අවසන් කිරීමේ වරහනක් බලාපොරොත්තු වේ.සංකේත නාමයක් බලාපොරොත්තු වේ!අනවර්ථ නාමයක් බලාපොරොත්තු වේ.ප්‍රකාශයක් බලපොරොත්තු වේ.තවම නිර්මාණය කර නොමැත.බලාපොරොත්තු නොවූ ඩොට් සලකුණක්.'CASE' ප්‍රකාශය නොසිතු ලෙස අවසන් විය.හදුනානොගත් වෙනස් කිරීමේ මෙහෙයුමක්.sql-parser-5.9.0/locale/si/LC_MESSAGES/sqlparser.po000066400000000000000000000253351455302707200216460ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Sinhala \n" "Language: si\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n > 1;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "තවම නිර්මාණය කර නොමැත." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "හදුනානොගත් වෙනස් කිරීමේ මෙහෙයුමක්." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 #, fuzzy #| msgid "Unexpected characters on line %s." msgid "Unexpected keyword." msgstr "%s වන පේළියේ අනපේක්ෂිත අනුලකුණකි." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "'CASE' ප්‍රකාශය නොසිතු ලෙස අවසන් විය." #: src/Components/CaseExpression.php:212 #, fuzzy #| msgid "Unexpected end of CASE expression" msgid "Potential duplicate alias of CASE expression." msgstr "'CASE' ප්‍රකාශය නොසිතු ලෙස අවසන් විය." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "An alias was expected." msgid "An alias was expected after AS." msgstr "අනවර්ථ නාමයක් බලාපොරොත්තු වේ." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "සංකේත නාමයක් බලාපොරොත්තු වේ!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "කොමාවක් හෝ අවසන් කිරීමේ වරහනක් බලාපොරොත්තු වේ." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "අවසන් කිරීමේ වරහනක් බලාපොරොත්තු වේ." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "ප්‍රකාශයක් බලපොරොත්තු වේ." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "අනවර්ථ නාමයක් බලාපොරොත්තු වේ." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "බලාපොරොත්තු නොවූ ඩොට් සලකුණක්." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 #, fuzzy #| msgid "Unexpected characters on line %s." msgid "Unexpected token." msgstr "%s වන පේළියේ අනපේක්ෂිත අනුලකුණකි." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "Unexpected end of CASE expression" msgid "Unexpected end of LOCK expression." msgstr "'LOCK' ප්‍රකාශය නොසිතු ලෙස අවසන් විය." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 #, fuzzy #| msgid "Title of browser window when a table is selected" msgid "The old name of the table was expected." msgstr "වගුවක් තෝරා ඇති විට බ්‍රව්සර කවුළුවේ මාතෘකාව" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "පේළිය ඉවත් කරන ලදි." #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "regular expression ලෙස" #: src/Lexer.php:274 #, fuzzy #| msgid "Unexpected characters on line %s." msgid "Unexpected character." msgstr "%s වන පේළියේ අනපේක්ෂිත අනුලකුණකි." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format #| msgid "Event %1$s has been created." msgid "Ending quote %1$s was expected." msgstr "%1$s සිද්ධිය සාදන ලදි." #: src/Lexer.php:1056 #, fuzzy #| msgid "Table name template" msgid "Variable name was expected." msgstr "ගොනු නාම ටෙම්ප්ලේටය" #: src/Parser.php:456 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected beginning of statement." msgstr "වගුව මුලදී" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "At Beginning of Table" msgid "Keyword at end of statement." msgstr "වගුව මුලදී" #: src/Statement.php:555 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected ordering of clauses." msgstr "වගුව මුලදී" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Table name template" msgid "A table name was expected." msgstr "ගොනු නාම ටෙම්ප්ලේටය" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "පේළිය ඉවත් කරන ලදි." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK statement." msgstr "වගුව මුලදී" #: src/Statements/PurgeStatement.php:138 #, fuzzy #| msgid "Unexpected characters on line %s." msgid "Unexpected keyword" msgstr "%s වන පේළියේ අනපේක්ෂිත අනුලකුණකි." #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "Title of browser window when a table is selected" msgid "The name of the CTE was expected." msgstr "වගුවක් තෝරා ඇති විට බ්‍රව්සර කවුළුවේ මාතෘකාව" #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "An expression was expected." msgid "AS keyword was expected." msgstr "ප්‍රකාශයක් බලපොරොත්තු වේ." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "Title of browser window when a table is selected" msgid "Subquery of the CTE was expected." msgstr "වගුවක් තෝරා ඇති විට බ්‍රව්සර කවුළුවේ මාතෘකාව" #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of the WITH CTE." msgstr "වගුව මුලදී" #, fuzzy #~| msgid "Unexpected end of CASE expression" #~ msgid "Unexpected end of Lock expression." #~ msgstr "'LOCK' ප්‍රකාශය නොසිතු ලෙස අවසන් විය." #, fuzzy #~| msgid "errors." #~ msgid "error #1" #~ msgstr "දෝෂ." #, fuzzy #~| msgid "Gather errors" #~ msgid "strict error" #~ msgstr "දෝෂ රැස්කරන්න" sql-parser-5.9.0/locale/sk/000077500000000000000000000000001455302707200154775ustar00rootroot00000000000000sql-parser-5.9.0/locale/sk/LC_MESSAGES/000077500000000000000000000000001455302707200172645ustar00rootroot00000000000000sql-parser-5.9.0/locale/sk/LC_MESSAGES/sqlparser.mo000066400000000000000000000112451455302707200216400ustar00rootroot00000000000000.=*!>*^L cw< 9,Z(4Q&e$''"89*r"!" + > R r       0 + %< 7b _ & ! ~>    )AB&/,)#)M#w5!"&@'g$B'!AV"l# 2 Jk,+-*#($ & !'. " % )%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Slovak Language: sk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2; X-Generator: Weblate 4.16-dev Očakávali sa hodnoty %1$d, ale našli sa %2$d.Očakávalo sa kľúčové slovo "RETURNS".Očakávalo sa uzatvorenie zátvorky.Bola očakávaná čiarka alebo uzatváracia zátvorka.Nový príkaz bol nájdený, ale nenašiel sa oddeľovač medzi týmto a predošlým príkazom.Očakávala sa operácia premenovania.Očakávalo sa meno symbolu!Očakávalo sa meno symbolu! Rezervované kľúčové slovo nemôže byt použité ako meno stĺpca bez spätných uvodzoviek.Očakávalo sa meno tabuľky.Bol očakávaný alias.Alias bol predtým najdený.Bol očakávaný výraz.Odstup bol očakávaný.Očakávala sa otvárajúca zátvorka nasledovaná sadou hodnôt.Očakávala sa otvárajúca zátvorka.Očakávala sa aspoň jedna definícia stĺpca.Ukončujúca úvodzovka %1$s sa očakávala.Očakával sa oddeľovač.Očakávala sa medzera pred oddelovačom.Kľúčové slovo "TO" bolo očakávané.Kľúčové slovo na konci výrazu.Chýba čiarka pred začiatkom novej operácie zmeny.Chýbajúci výraz.Transakcia sa predtým nezačala.Zatiaľ neimplementované.Meno celku bolo očakávané.Bolo očakávané nové meno tabuľky.Bolo očakávané staré meno tabuľky.Táto možnosť je v rozpore s %1$s.Takýto typ výrazu nie je platný vo viac tabuľkových dotazoch.Tento typ vety bol predtým rozobraný.Neočakávaný začiatok výrazu.Neočakávaný znak.Neočakávaná bodka.Neočakávaný koniec CASE výrazuNeočakávaný koniec LOCK výrazu.Neočakávaný znakNeočakávaný znak.Neočakávané poradie výrazov.Neočakávaný token.Nerozpoznaná operácia zmeny.Nerozpoznaný typ dát.Nerozpoznané kľúčové slovo.Nerozpoznaný typ výrazu.Očakávalo sa meno premennej.sql-parser-5.9.0/locale/sk/LC_MESSAGES/sqlparser.po000066400000000000000000000231261455302707200216440ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Slovak \n" "Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Zatiaľ neimplementované." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "Nový príkaz bol nájdený, ale nenašiel sa oddeľovač medzi týmto a predošlým " "príkazom." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Chýba čiarka pred začiatkom novej operácie zmeny." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Nerozpoznaná operácia zmeny." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "Očakávali sa hodnoty %1$d, ale našli sa %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Očakávala sa otvárajúca zátvorka nasledovaná sadou hodnôt." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Očakávala sa otvárajúca zátvorka." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Neočakávaný znak." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Neočakávaný koniec CASE výrazu" #: src/Components/CaseExpression.php:212 #, fuzzy #| msgid "Unexpected end of CASE expression" msgid "Potential duplicate alias of CASE expression." msgstr "Neočakávaný koniec CASE výrazu" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Alias bol predtým najdený." #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "An alias was expected." msgid "An alias was expected after AS." msgstr "Bol očakávaný alias." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Očakávalo sa meno symbolu! Rezervované kľúčové slovo nemôže byt použité ako " "meno stĺpca bez spätných uvodzoviek." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Očakávalo sa meno symbolu!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Bola očakávaná čiarka alebo uzatváracia zátvorka." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Očakávalo sa uzatvorenie zátvorky." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Nerozpoznaný typ dát." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Bol očakávaný výraz." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Bol očakávaný alias." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Neočakávaná bodka." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Neočakávaný token." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Odstup bol očakávaný." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Neočakávaný koniec LOCK výrazu." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Táto možnosť je v rozpore s %1$s." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Bolo očakávané staré meno tabuľky." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Kľúčové slovo \"TO\" bolo očakávané." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Bolo očakávané nové meno tabuľky." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Očakávala sa operácia premenovania." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Chýbajúci výraz." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Neočakávaný znak." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Očakávala sa medzera pred oddelovačom." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Očakával sa oddeľovač." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Ukončujúca úvodzovka %1$s sa očakávala." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Očakávalo sa meno premennej." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Neočakávaný začiatok výrazu." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Nerozpoznaný typ výrazu." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Transakcia sa predtým nezačala." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Tento typ vety bol predtým rozobraný." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Nerozpoznané kľúčové slovo." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Kľúčové slovo na konci výrazu." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Neočakávané poradie výrazov." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Meno celku bolo očakávané." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Očakávalo sa meno tabuľky." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Očakávala sa aspoň jedna definícia stĺpca." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Očakávalo sa kľúčové slovo \"RETURNS\"." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Takýto typ výrazu nie je platný vo viac tabuľkových dotazoch." #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of LOCK statement." msgstr "Neočakávaný začiatok výrazu." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Neočakávaný znak" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The name of the entity was expected." msgid "The name of the CTE was expected." msgstr "Meno celku bolo očakávané." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "A \"RETURNS\" keyword was expected." msgid "AS keyword was expected." msgstr "Očakávalo sa kľúčové slovo \"RETURNS\"." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The name of the entity was expected." msgid "Subquery of the CTE was expected." msgstr "Meno celku bolo očakávané." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of the WITH CTE." msgstr "Neočakávaný začiatok výrazu." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Neočakávaný koniec LOCK výrazu." #~ msgid "error #1" #~ msgstr "Chyba #1" #~ msgid "strict error" #~ msgstr "Striktná chyba" sql-parser-5.9.0/locale/sl/000077500000000000000000000000001455302707200155005ustar00rootroot00000000000000sql-parser-5.9.0/locale/sl/LC_MESSAGES/000077500000000000000000000000001455302707200172655ustar00rootroot00000000000000sql-parser-5.9.0/locale/sl/LC_MESSAGES/sqlparser.mo000066400000000000000000000120071455302707200216360ustar00rootroot000000000000002C<H*I!t*L .Ock#.Ed< ,#C(W4&(-=$k''"8 *< "g   ! " !  * > ^ p      < +" N %i V %  p(*8PBh".(!&5H&~ 7!2&Ip!"6%'Ml  !6Xn#12 !  &"$(*#0',/ %+) -. %1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Slovenian Language: sl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=4; plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3; X-Generator: Weblate 4.16-dev Pričakovali smo %1$d vrednosti, vendar smo jih našli %2$d.Pričakovali smo ključno besedo "RETURNS".Pričakovali smo zaklepaj.Pričakovali smo vejico ali zaklepaj.Naleteli smo na nov stavek, vendar med njim in prejšnjim stavkom ni ločilnega znaka.Pričakovali smo poseg preimenovanja.Pričakovali smo ime znaka!Pričakovali smo ime simbola! Rezervirane besede ne morete uporabiti kot ime stolpca brez ustreznih narekovajev.Pričakovali smo ime tabele.Po AS smo pričakovali vzdevek, dobili pa Po AS smo pričakovali vzdevek.Pričakovali smo vzdevek.Vzdevek smo našli že prej.Pričakovali smo izraz.Pričakovali smo odmik.Pričakovali smo začetni oklepaj, ki mu sledi množica vrednosti.Pričakovali smo začetni oklepaj.Pričakovali smo vsaj eno opredelitev stolpca.Pričakovali smo končni narekovaj %1$s.Pričakovali smo ločitveni znak.Pred ločitvenim znakom smo pričakoval prazne znake.Pričakovali smo ključno besedo "TO".Ključna beseda na koncu stavka.Manjkajoča vejica pred začetkom nove operacije alter.Manjkajoč izraz.Začeli niste nobene transakcije.Ni še implementirano.Morebiti podvojen vzdevek izraza CASE.Pričakovali smo ime entitete.Pričakovali smo novo ime tabele.Pričakovali smo staro ime tabele.Izbira je v sporu z "%1$s".Ta vrsta stavka ni veljavna v večtabelnih poizvedbah.To vrsto stavka smo prej razčlenili.Nepričakovan začetek stavka.Nepričakovan znak.Nepričakovana pika.Nepričakovan konec izraza CASENepričakovan konec izraza LOCK.Nepričakovan konec izjave LOCK.Nepričakovana ključna besedaNepričakovana ključna beseda.Nepričakovan vrstni red stavkov.Nepričakovan žeton.Neprepoznan poseg spremembe.Neprepoznana vrsta podatkov.Nepričakovana ključna beseda.Neprepoznana vrsta stavka.Pričakovali smo ime spremenljivke.sql-parser-5.9.0/locale/sl/LC_MESSAGES/sqlparser.po000066400000000000000000000227271455302707200216530ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Slovenian \n" "Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || " "n%100==4 ? 2 : 3;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Ni še implementirano." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "Naleteli smo na nov stavek, vendar med njim in prejšnjim stavkom ni " "ločilnega znaka." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Manjkajoča vejica pred začetkom nove operacije alter." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Neprepoznan poseg spremembe." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "Pričakovali smo %1$d vrednosti, vendar smo jih našli %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Pričakovali smo začetni oklepaj, ki mu sledi množica vrednosti." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Pričakovali smo začetni oklepaj." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Nepričakovana ključna beseda." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Nepričakovan konec izraza CASE" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Morebiti podvojen vzdevek izraza CASE." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "Po AS smo pričakovali vzdevek, dobili pa " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Vzdevek smo našli že prej." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "Po AS smo pričakovali vzdevek." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Pričakovali smo ime simbola! Rezervirane besede ne morete uporabiti kot ime " "stolpca brez ustreznih narekovajev." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Pričakovali smo ime znaka!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Pričakovali smo vejico ali zaklepaj." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Pričakovali smo zaklepaj." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Neprepoznana vrsta podatkov." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Pričakovali smo izraz." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Pričakovali smo vzdevek." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Nepričakovana pika." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Nepričakovan žeton." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Pričakovali smo odmik." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Nepričakovan konec izraza LOCK." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Izbira je v sporu z \"%1$s\"." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Pričakovali smo staro ime tabele." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Pričakovali smo ključno besedo \"TO\"." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Pričakovali smo novo ime tabele." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Pričakovali smo poseg preimenovanja." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Manjkajoč izraz." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Nepričakovan znak." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Pred ločitvenim znakom smo pričakoval prazne znake." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Pričakovali smo ločitveni znak." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Pričakovali smo končni narekovaj %1$s." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Pričakovali smo ime spremenljivke." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Nepričakovan začetek stavka." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Neprepoznana vrsta stavka." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Začeli niste nobene transakcije." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "To vrsto stavka smo prej razčlenili." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Nepričakovana ključna beseda." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Ključna beseda na koncu stavka." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Nepričakovan vrstni red stavkov." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Pričakovali smo ime entitete." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Pričakovali smo ime tabele." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Pričakovali smo vsaj eno opredelitev stolpca." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Pričakovali smo ključno besedo \"RETURNS\"." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Ta vrsta stavka ni veljavna v večtabelnih poizvedbah." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Nepričakovan konec izjave LOCK." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Nepričakovana ključna beseda" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The name of the entity was expected." msgid "The name of the CTE was expected." msgstr "Pričakovali smo ime entitete." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "A \"RETURNS\" keyword was expected." msgid "AS keyword was expected." msgstr "Pričakovali smo ključno besedo \"RETURNS\"." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The name of the entity was expected." msgid "Subquery of the CTE was expected." msgstr "Pričakovali smo ime entitete." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected end of LOCK statement." msgid "Unexpected end of the WITH CTE." msgstr "Nepričakovan konec izjave LOCK." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Nepričakovan konec izraza LOCK." #~ msgid "error #1" #~ msgstr "napaka #1" #~ msgid "strict error" #~ msgstr "stroga napaka" sql-parser-5.9.0/locale/sq/000077500000000000000000000000001455302707200155055ustar00rootroot00000000000000sql-parser-5.9.0/locale/sq/LC_MESSAGES/000077500000000000000000000000001455302707200172725ustar00rootroot00000000000000sql-parser-5.9.0/locale/sq/LC_MESSAGES/sqlparser.mo000066400000000000000000000107131455302707200216450ustar00rootroot00000000000000-=*! .*NLy cg< ),Jw( & G$\''"8*-"X{!" - ? ] u    * #  . c   s / I +h   < '#Kk0 1 <[t!L. Lm$%#4Ha~+*)"'# %  &- ! $ ,(%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing expression.No transaction was previously started.Not implemented yet.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Albanian Language: sq MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 4.16-dev Vlerat %1$d u pritën, por u gjetën %2$d.Pritej një fjalë kyçe "RETURNS".Pritej një kllapë mbyllëse.Pritej një presje ose një kllapë mbyllëse.Një deklaratë e re është gjetur, por nuk ka delimiter ndërmjet asaj dhe tjetrës më përpara.Pritej një veprim riemërimi.Pritej emri i një simboli!Pritej një emër simboli! Një fjalë kyçe e rezervuar nuk mund të përdoret si një emër kolone pa backquotes.Pritej një emër tabele.Pritej një alias (pseudonim).Një pseudonim është gjetur më përpara.Pritej një shprehje.Pritej një rezultat (offset).Pritej një kllapë e hapur, e ndjekur nga një set vlerash.Pritej një kllapë e hapur.Pritej së paku një përcaktim kolone.Pritej thonjëza e fundit %1$s.Delimitues i pritshëm.Pritej hapësirë(a) e bardhë para delimiterit.Pritej fjala kyçe "TO" (për).Fillim i papritur i deklaratës.Shprehje që mungon.Deri më tani nuk ka filluar ndonjë transaksion.Nuk është implementuar ende.Pritej emri i entitetit.Pritej emri i ri i tabelës.Pritej emri i vjetër i tabelës.Ky opsion ndeshet me "%1$s".Ky lloj i klauzolës nuk është i vlefshëm në pyetjet me shumë tavolina.Ky tip i klauzolës është parsuar më parë.Fillim i papritur i deklaratës.Karakter i papritur.Pikë e papritur.Fund i papritur i shprehjes së CASEFund i papritur i shprehjes së LOCK.Fjalë kyçe e papriturFjalë kyçe e papritur.Urdhërimi i papritur i klauzolave.Shenjë e papritur.Veprim alter i panjohur.Tip të dhënash i panjohur.Fjalë kyçe e panjohur.Tip deklarate i panjohur.Pritej emri i ndryshores.sql-parser-5.9.0/locale/sq/LC_MESSAGES/sqlparser.po000066400000000000000000000226741455302707200216610ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Albanian \n" "Language: sq\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Nuk është implementuar ende." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "Një deklaratë e re është gjetur, por nuk ka delimiter ndërmjet asaj dhe " "tjetrës më përpara." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Veprim alter i panjohur." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "Vlerat %1$d u pritën, por u gjetën %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Pritej një kllapë e hapur, e ndjekur nga një set vlerash." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Pritej një kllapë e hapur." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Fjalë kyçe e papritur." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Fund i papritur i shprehjes së CASE" #: src/Components/CaseExpression.php:212 #, fuzzy #| msgid "Unexpected end of CASE expression" msgid "Potential duplicate alias of CASE expression." msgstr "Fund i papritur i shprehjes së CASE" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Një pseudonim është gjetur më përpara." #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "An alias was expected." msgid "An alias was expected after AS." msgstr "Pritej një alias (pseudonim)." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Pritej një emër simboli! Një fjalë kyçe e rezervuar nuk mund të përdoret si " "një emër kolone pa backquotes." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Pritej emri i një simboli!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Pritej një presje ose një kllapë mbyllëse." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Pritej një kllapë mbyllëse." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Tip të dhënash i panjohur." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Pritej një shprehje." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Pritej një alias (pseudonim)." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Pikë e papritur." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Shenjë e papritur." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Pritej një rezultat (offset)." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Fund i papritur i shprehjes së LOCK." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Ky opsion ndeshet me \"%1$s\"." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Pritej emri i vjetër i tabelës." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Pritej fjala kyçe \"TO\" (për)." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Pritej emri i ri i tabelës." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Pritej një veprim riemërimi." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Shprehje që mungon." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Karakter i papritur." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Pritej hapësirë(a) e bardhë para delimiterit." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Delimitues i pritshëm." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Pritej thonjëza e fundit %1$s." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Pritej emri i ndryshores." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Fillim i papritur i deklaratës." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Tip deklarate i panjohur." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Deri më tani nuk ka filluar ndonjë transaksion." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Ky tip i klauzolës është parsuar më parë." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Fjalë kyçe e panjohur." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Fillim i papritur i deklaratës." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Urdhërimi i papritur i klauzolave." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Pritej emri i entitetit." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Pritej një emër tabele." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Pritej së paku një përcaktim kolone." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Pritej një fjalë kyçe \"RETURNS\"." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Ky lloj i klauzolës nuk është i vlefshëm në pyetjet me shumë tavolina." #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of LOCK statement." msgstr "Fillim i papritur i deklaratës." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Fjalë kyçe e papritur" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The name of the entity was expected." msgid "The name of the CTE was expected." msgstr "Pritej emri i entitetit." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "A \"RETURNS\" keyword was expected." msgid "AS keyword was expected." msgstr "Pritej një fjalë kyçe \"RETURNS\"." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The name of the entity was expected." msgid "Subquery of the CTE was expected." msgstr "Pritej emri i entitetit." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of the WITH CTE." msgstr "Fillim i papritur i deklaratës." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Fund i papritur i shprehjes së LOCK." #~ msgid "error #1" #~ msgstr "gabim # 1" #~ msgid "strict error" #~ msgstr "gabim i rreptë" sql-parser-5.9.0/locale/sqlparser.pot000066400000000000000000000162671455302707200176360ustar00rootroot00000000000000# phpMyAdmin SQL parser translation. # Copyright (C) 2015 - 2023 phpMyAdmin devel team # This file is distributed under the same license as the SQL parser package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "" #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "" #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "" #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "" #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "" #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "" #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "" #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "" sql-parser-5.9.0/locale/sr/000077500000000000000000000000001455302707200155065ustar00rootroot00000000000000sql-parser-5.9.0/locale/sr/LC_MESSAGES/000077500000000000000000000000001455302707200172735ustar00rootroot00000000000000sql-parser-5.9.0/locale/sr/LC_MESSAGES/sqlparser.mo000066400000000000000000000010611455302707200216420ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2015-10-15 11:25+0200 Last-Translator: Michal Čihař Language-Team: Serbian Language: sr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2; X-Generator: Weblate 2.5-dev sql-parser-5.9.0/locale/sr/LC_MESSAGES/sqlparser.po000066400000000000000000000223261455302707200216540ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2015-10-15 11:25+0200\n" "Last-Translator: Michal Čihař \n" "Language-Team: Serbian \n" "Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Generator: Weblate 2.5-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected after AS." msgstr "Није изабрана ни једна база." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy msgid "A symbol name was expected!" msgstr "Шаблон имена датотеке" #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "No databases selected." msgid "A comma or a closing bracket was expected." msgstr "Није изабрана ни једна база." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "No rows selected" msgid "An expression was expected." msgstr "Нема одабраних редова" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected." msgstr "Није изабрана ни једна база." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK expression." msgstr "На почетку табеле" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 #, fuzzy #| msgid "The number of tables that are open." msgid "The old name of the table was expected." msgstr "Број отворених табела." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 #, fuzzy #| msgid "The number of tables that are open." msgid "The new name of the table was expected." msgstr "Број отворених табела." #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "Ред је обрисан" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "као регуларни израз" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format msgid "Ending quote %1$s was expected." msgstr "Табела %s је одбачена" #: src/Lexer.php:1056 #, fuzzy msgid "Variable name was expected." msgstr "Шаблон имена датотеке" #: src/Parser.php:456 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected beginning of statement." msgstr "На почетку табеле" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "At Beginning of Table" msgid "Keyword at end of statement." msgstr "На почетку табеле" #: src/Statement.php:555 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected ordering of clauses." msgstr "На почетку табеле" #: src/Statements/CreateStatement.php:549 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the entity was expected." msgstr "Број отворених табела." #: src/Statements/CreateStatement.php:598 #, fuzzy msgid "A table name was expected." msgstr "Шаблон имена датотеке" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "Ред је обрисан" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK statement." msgstr "На почетку табеле" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the CTE was expected." msgstr "Број отворених табела." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No rows selected" msgid "AS keyword was expected." msgstr "Нема одабраних редова" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The number of tables that are open." msgid "Subquery of the CTE was expected." msgstr "Број отворених табела." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of the WITH CTE." msgstr "На почетку табеле" #, fuzzy #~| msgid "At Beginning of Table" #~ msgid "Unexpected end of Lock expression." #~ msgstr "На почетку табеле" #, fuzzy #~| msgid "Error" #~ msgid "error #1" #~ msgstr "Грешка" #, fuzzy #~| msgid "Query type" #~ msgid "strict error" #~ msgstr "Врста упита" sql-parser-5.9.0/locale/sr@latin/000077500000000000000000000000001455302707200166365ustar00rootroot00000000000000sql-parser-5.9.0/locale/sr@latin/LC_MESSAGES/000077500000000000000000000000001455302707200204235ustar00rootroot00000000000000sql-parser-5.9.0/locale/sr@latin/LC_MESSAGES/sqlparser.mo000066400000000000000000000011071455302707200227730ustar00rootroot00000000000000$,8 9Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2015-10-15 11:24+0200 Last-Translator: Michal Čihař Language-Team: Serbian (latin) Language: sr@latin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2; X-Generator: Weblate 2.5-dev sql-parser-5.9.0/locale/sr@latin/LC_MESSAGES/sqlparser.po000066400000000000000000000217221455302707200230030ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2015-10-15 11:24+0200\n" "Last-Translator: Michal Čihař \n" "Language-Team: Serbian (latin) \n" "Language: sr@latin\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Generator: Weblate 2.5-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected after AS." msgstr "Nije izabrana ni jedna baza." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "Table name template" msgid "A symbol name was expected!" msgstr "Šablon imena tabele" #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "No databases selected." msgid "A comma or a closing bracket was expected." msgstr "Nije izabrana ni jedna baza." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "No rows selected" msgid "An expression was expected." msgstr "Nema odabranih redova" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected." msgstr "Nije izabrana ni jedna baza." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK expression." msgstr "Na početku tabele" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 #, fuzzy #| msgid "The number of tables that are open." msgid "The old name of the table was expected." msgstr "Broj otvorenih tabela." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 #, fuzzy #| msgid "The number of tables that are open." msgid "The new name of the table was expected." msgstr "Broj otvorenih tabela." #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "Red je obrisan" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "kao regularni izraz" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format #| msgid "Event %1$s has been created." msgid "Ending quote %1$s was expected." msgstr "Događaj %1$s je kreiran." #: src/Lexer.php:1056 #, fuzzy #| msgid "Table name template" msgid "Variable name was expected." msgstr "Šablon imena tabele" #: src/Parser.php:456 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected beginning of statement." msgstr "Na početku tabele" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "At Beginning of Table" msgid "Keyword at end of statement." msgstr "Na početku tabele" #: src/Statement.php:555 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected ordering of clauses." msgstr "Na početku tabele" #: src/Statements/CreateStatement.php:549 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the entity was expected." msgstr "Broj otvorenih tabela." #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Table name template" msgid "A table name was expected." msgstr "Šablon imena tabele" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "Red je obrisan" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK statement." msgstr "Na početku tabele" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the CTE was expected." msgstr "Broj otvorenih tabela." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No rows selected" msgid "AS keyword was expected." msgstr "Nema odabranih redova" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The number of tables that are open." msgid "Subquery of the CTE was expected." msgstr "Broj otvorenih tabela." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of the WITH CTE." msgstr "Na početku tabele" #, fuzzy #~| msgid "At Beginning of Table" #~ msgid "Unexpected end of Lock expression." #~ msgstr "Na početku tabele" #, fuzzy #~| msgid "Error" #~ msgid "error #1" #~ msgstr "Greška" #, fuzzy #~| msgid "Gather errors" #~ msgid "strict error" #~ msgstr "Prikupljanje grešaka" sql-parser-5.9.0/locale/sv/000077500000000000000000000000001455302707200155125ustar00rootroot00000000000000sql-parser-5.9.0/locale/sv/LC_MESSAGES/000077500000000000000000000000001455302707200172775ustar00rootroot00000000000000sql-parser-5.9.0/locale/sv/LC_MESSAGES/sqlparser.mo000066400000000000000000000064411455302707200216550ustar00rootroot00000000000000!$/,*!6*VL %A<Y ,43&h$''""<_u+( 8B K{     4 IT ' (   ( 8H %  # * , 0= n           !   %1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Keyword "TO" was expected.Missing comma before start of a new alter operation.No transaction was previously started.Not implemented yet.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2022-10-23 12:05+0000 Last-Translator: Tom Sawyer Language-Team: Swedish Language: sv MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 4.14.2-dev %1$d värden var väntat, men hittade %2$d.Ett nyckelord förväntades.En avslutande hakparentes förväntades.Semikolon eller en avslutande hakparentes förväntades.En ny sats hittades, men ingen avgränsare mellan det och den föregående.Ett namnbyte förväntades.Ett alias förväntades.Ett alias hittades tidigare.Ett uttryck förväntades.En förskjutning förväntades.En inledande hakparentes följt av en uppsättning värden förväntades.En inledande hakparentes förväntades.Minst en kolumndefinition förväntades.Slut citat %1$s förväntades.Förväntade avgränsare.Sökordet "Till" förväntades.Kommatecken saknas före start av en ny alter-operation.Ingen transaktion startades tidigare.Ännu inte implementerat.Namnet på entiteten förväntades.Det nya namnet på tabellen förväntades.Det gamla namnet på tabellen förväntades.Det här alternativet är i konflikt med "%1$s".Oväntad början av satsen.Oväntade tecken.Oväntad punkt.Oväntad token.Okänd operation.Okänd datatyp.Okänt nyckelord.Okänd uttryckstyp.Variabel namn förväntades.sql-parser-5.9.0/locale/sv/LC_MESSAGES/sqlparser.po000066400000000000000000000230331455302707200216540ustar00rootroot00000000000000# Automatically generated <>, 2010. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2022-10-23 12:05+0000\n" "Last-Translator: Tom Sawyer \n" "Language-Team: Swedish \n" "Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.14.2-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Ännu inte implementerat." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "En ny sats hittades, men ingen avgränsare mellan det och den föregående." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Kommatecken saknas före start av en ny alter-operation." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Okänd operation." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "%1$d värden var väntat, men hittade %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "En inledande hakparentes följt av en uppsättning värden förväntades." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "En inledande hakparentes förväntades." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 #, fuzzy #| msgid "Unexpected token." msgid "Unexpected keyword." msgstr "Oväntad token." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Ett alias hittades tidigare." #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "An alias was expected." msgid "An alias was expected after AS." msgstr "Ett alias förväntades." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "Variable name was expected." msgid "A symbol name was expected!" msgstr "Variabel namn förväntades." #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Semikolon eller en avslutande hakparentes förväntades." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "En avslutande hakparentes förväntades." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Okänd datatyp." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Ett uttryck förväntades." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Ett alias förväntades." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Oväntad punkt." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Oväntad token." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "En förskjutning förväntades." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of LOCK expression." msgstr "Oväntad början av satsen." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Det här alternativet är i konflikt med \"%1$s\"." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Det gamla namnet på tabellen förväntades." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Sökordet \"Till\" förväntades." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Det nya namnet på tabellen förväntades." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Ett namnbyte förväntades." #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "som reguljärt uttryck" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Oväntade tecken." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Förväntade avgränsare." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Slut citat %1$s förväntades." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Variabel namn förväntades." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Oväntad början av satsen." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Okänd uttryckstyp." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Ingen transaktion startades tidigare." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Okänt nyckelord." #: src/Statement.php:409 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Keyword at end of statement." msgstr "Oväntad början av satsen." #: src/Statement.php:555 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected ordering of clauses." msgstr "Oväntad början av satsen." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Namnet på entiteten förväntades." #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Variable name was expected." msgid "A table name was expected." msgstr "Variabel namn förväntades." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Minst en kolumndefinition förväntades." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Ett nyckelord förväntades." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of LOCK statement." msgstr "Oväntad början av satsen." #: src/Statements/PurgeStatement.php:138 #, fuzzy #| msgid "Unexpected token." msgid "Unexpected keyword" msgstr "Oväntad token." #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The name of the entity was expected." msgid "The name of the CTE was expected." msgstr "Namnet på entiteten förväntades." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "A \"RETURNS\" keyword was expected." msgid "AS keyword was expected." msgstr "Ett nyckelord förväntades." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The name of the entity was expected." msgid "Subquery of the CTE was expected." msgstr "Namnet på entiteten förväntades." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of the WITH CTE." msgstr "Oväntad början av satsen." #, fuzzy #~| msgid "Unexpected beginning of statement." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Oväntad början av satsen." #, fuzzy #~| msgid "errors." #~ msgid "error #1" #~ msgstr "fel." #, fuzzy #~| msgid "Gather errors" #~ msgid "strict error" #~ msgstr "Samla fel" sql-parser-5.9.0/locale/ta/000077500000000000000000000000001455302707200154665ustar00rootroot00000000000000sql-parser-5.9.0/locale/ta/LC_MESSAGES/000077500000000000000000000000001455302707200172535ustar00rootroot00000000000000sql-parser-5.9.0/locale/ta/LC_MESSAGES/sqlparser.mo000066400000000000000000000013251455302707200216250ustar00rootroot000000000000004L`avM?GNot implemented yet.Unexpected keyword.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2017-07-21 09:33+0000 Last-Translator: Murshid Ahmed Language-Team: Tamil Language: ta MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 2.16-dev இன்னும் அமுலாக்கப்படவில்லை.எதிர்பாராத சிறப்புச்சொல்.sql-parser-5.9.0/locale/ta/LC_MESSAGES/sqlparser.po000066400000000000000000000253351455302707200216370ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2010 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # FIRST AUTHOR , YEAR. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2017-07-21 09:33+0000\n" "Last-Translator: Murshid Ahmed \n" "Language-Team: Tamil \n" "Language: ta\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 2.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "இன்னும் அமுலாக்கப்படவில்லை." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "எதிர்பாராத சிறப்புச்சொல்." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "No tables selected." msgid "An alias was expected after AS." msgstr "எந்த தரவுத்தளமும் தேர்ந்தெடுக்கப்படவில்லை." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "No tables selected." msgid "A symbol name was expected!" msgstr "எந்த தரவுத்தளமும் தேர்ந்தெடுக்கப்படவில்லை." #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "No tables selected." msgid "A comma or a closing bracket was expected." msgstr "எந்த தரவுத்தளமும் தேர்ந்தெடுக்கப்படவில்லை." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "No rows selected" msgid "An expression was expected." msgstr "தெரிவுசெய்யப்பட வரிசைகள் இல்லை" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "No tables selected." msgid "An alias was expected." msgstr "எந்த தரவுத்தளமும் தேர்ந்தெடுக்கப்படவில்லை." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 #, fuzzy #| msgid "Unexpected characters on line %s." msgid "Unexpected token." msgstr "%sம் வரியில் எதிர்பாராத எழுத்துக்கள் உள்ளன." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "Rate of table open" msgid "Unexpected end of LOCK expression." msgstr "திறந்தநிலை அட்டவணைகளின் விழுக்காடு" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "இந்நிரைவரிசை அழிக்கப்பட்டது." #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "வழக்கமான வெளிப்பாடு" #: src/Lexer.php:274 #, fuzzy #| msgid "Unexpected characters on line %s." msgid "Unexpected character." msgstr "%sம் வரியில் எதிர்பாராத எழுத்துக்கள் உள்ளன." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 #, fuzzy #| msgid "Rate of table open" msgid "Unexpected beginning of statement." msgstr "திறந்தநிலை அட்டவணைகளின் விழுக்காடு" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "Rate of table open" msgid "Keyword at end of statement." msgstr "திறந்தநிலை அட்டவணைகளின் விழுக்காடு" #: src/Statement.php:555 #, fuzzy #| msgid "Rate of table open" msgid "Unexpected ordering of clauses." msgstr "திறந்தநிலை அட்டவணைகளின் விழுக்காடு" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "No tables selected." msgid "A table name was expected." msgstr "எந்த தரவுத்தளமும் தேர்ந்தெடுக்கப்படவில்லை." #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "இந்நிரைவரிசை அழிக்கப்பட்டது." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Rate of table open" msgid "Unexpected end of LOCK statement." msgstr "திறந்தநிலை அட்டவணைகளின் விழுக்காடு" #: src/Statements/PurgeStatement.php:138 #, fuzzy #| msgid "Unexpected keyword." msgid "Unexpected keyword" msgstr "எதிர்பாராத சிறப்புச்சொல்." #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "No tables selected." msgid "The name of the CTE was expected." msgstr "எந்த தரவுத்தளமும் தேர்ந்தெடுக்கப்படவில்லை." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No rows selected" msgid "AS keyword was expected." msgstr "தெரிவுசெய்யப்பட வரிசைகள் இல்லை" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "No tables selected." msgid "Subquery of the CTE was expected." msgstr "எந்த தரவுத்தளமும் தேர்ந்தெடுக்கப்படவில்லை." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Rate of table open" msgid "Unexpected end of the WITH CTE." msgstr "திறந்தநிலை அட்டவணைகளின் விழுக்காடு" #, fuzzy #~| msgid "Rate of table open" #~ msgid "Unexpected end of Lock expression." #~ msgstr "திறந்தநிலை அட்டவணைகளின் விழுக்காடு" #, fuzzy #~| msgid "Error" #~ msgid "error #1" #~ msgstr "வலு" #, fuzzy #~| msgid "Query error" #~ msgid "strict error" #~ msgstr "வினவல் வழு" sql-parser-5.9.0/locale/te/000077500000000000000000000000001455302707200154725ustar00rootroot00000000000000sql-parser-5.9.0/locale/te/LC_MESSAGES/000077500000000000000000000000001455302707200172575ustar00rootroot00000000000000sql-parser-5.9.0/locale/te/LC_MESSAGES/sqlparser.mo000066400000000000000000000020331455302707200216260ustar00rootroot00000000000000<\pLq-HA new statement was found, but no delimiter between it and the previous one.Not implemented yet.Unrecognized alter operation.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2017-04-12 15:19+0000 Last-Translator: bhargavi sabbisetty Language-Team: Telugu Language: te MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 2.13 ఒక కొత్త వాక్యం కనిపించింది, కానీ దీనికి మరియు మునుపటి దానికి మధ్య ఎటువంటి డీలిమిటర్ లేదు .ఇంకా అమలు కాలేదు.గుర్తించబడని మారు ఆపరేషన్.sql-parser-5.9.0/locale/te/LC_MESSAGES/sqlparser.po000066400000000000000000000236411455302707200216410ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2010 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # FIRST AUTHOR , YEAR. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2017-04-12 15:19+0000\n" "Last-Translator: bhargavi sabbisetty \n" "Language-Team: Telugu \n" "Language: te\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 2.13\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "ఇంకా అమలు కాలేదు." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "ఒక కొత్త వాక్యం కనిపించింది, కానీ దీనికి మరియు మునుపటి దానికి మధ్య ఎటువంటి డీలిమిటర్ లేదు ." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "గుర్తించబడని మారు ఆపరేషన్." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "Table name" msgid "An alias was expected after AS." msgstr "పట్టిక పేరు" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "Table name" msgid "A symbol name was expected!" msgstr "పట్టిక పేరు" #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "Table name" msgid "A comma or a closing bracket was expected." msgstr "పట్టిక పేరు" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "Table name" msgid "An expression was expected." msgstr "పట్టిక పేరు" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "Table name" msgid "An alias was expected." msgstr "పట్టిక పేరు" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" # మొదటి అనువాదము #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgctxt "short form" #| msgid "Create table" msgid "Unexpected end of LOCK expression." msgstr "పట్టికను సృష్టించు" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "Database %s has been dropped." msgid "A rename operation was expected." msgstr "%s డేటాబేస్ తుడిచివేయడమైనది" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "Last version" msgid "Missing expression." msgstr "చివరి కూర్పు" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" # మొదటి అనువాదము #: src/Lexer.php:1004 #, fuzzy, php-format #| msgid "Page has been created." msgid "Ending quote %1$s was expected." msgstr "పుటను సృష్టించడమైనది" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" # మొదటి అనువాదము #: src/Parser.php:456 #, fuzzy #| msgctxt "short form" #| msgid "Create table" msgid "Unexpected beginning of statement." msgstr "పట్టికను సృష్టించు" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" # మొదటి అనువాదము #: src/Statement.php:409 #, fuzzy #| msgctxt "short form" #| msgid "Create table" msgid "Keyword at end of statement." msgstr "పట్టికను సృష్టించు" # మొదటి అనువాదము #: src/Statement.php:555 #, fuzzy #| msgctxt "short form" #| msgid "Create table" msgid "Unexpected ordering of clauses." msgstr "పట్టికను సృష్టించు" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Table name" msgid "A table name was expected." msgstr "పట్టిక పేరు" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "Database %s has been dropped." msgid "At least one column definition was expected." msgstr "%s డేటాబేస్ తుడిచివేయడమైనది" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" # మొదటి అనువాదము #: src/Statements/LockStatement.php:120 #, fuzzy #| msgctxt "short form" #| msgid "Create table" msgid "Unexpected end of LOCK statement." msgstr "పట్టికను సృష్టించు" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "Table name" msgid "The name of the CTE was expected." msgstr "పట్టిక పేరు" #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "Table name" msgid "AS keyword was expected." msgstr "పట్టిక పేరు" # మొదటి అనువాదము #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "Page has been created." msgid "Subquery of the CTE was expected." msgstr "పుటను సృష్టించడమైనది" # మొదటి అనువాదము #: src/Statements/WithStatement.php:266 #, fuzzy #| msgctxt "short form" #| msgid "Create table" msgid "Unexpected end of the WITH CTE." msgstr "పట్టికను సృష్టించు" # మొదటి అనువాదము #, fuzzy #~| msgctxt "short form" #~| msgid "Create table" #~ msgid "Unexpected end of Lock expression." #~ msgstr "పట్టికను సృష్టించు" #, fuzzy #~| msgid "Error" #~ msgid "error #1" #~ msgstr "పొరపాటు" sql-parser-5.9.0/locale/th/000077500000000000000000000000001455302707200154755ustar00rootroot00000000000000sql-parser-5.9.0/locale/th/LC_MESSAGES/000077500000000000000000000000001455302707200172625ustar00rootroot00000000000000sql-parser-5.9.0/locale/th/LC_MESSAGES/sqlparser.mo000066400000000000000000000161231455302707200216360ustar00rootroot00000000000000-=*! .*NLy cg< ),Jw( & G$\''"8*-"X{!" - ? ] u    xv Y HI i W U9uK?=;NyQ` WBDHT$si<Q?T]DDcE@LlmThTlKl98NrEK+*)"'# %  &- ! $ ,(%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing expression.No transaction was previously started.Not implemented yet.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Thai Language: th MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; X-Generator: Weblate 4.16-dev ค่าของ %1$d ได้รับการคาดเดา แต่สิ่งที่พบคือ %2$dคีย์เวิร์ด "RETURNS" ได้รับการคาดหวังวงเล็บปิดได้รับการคาดเดาจุลภาค หรือ วงเล็บปิด ได้รับการคาดเดาตรวจพบประพจน์ใหม่ แต่ไม่มีตัวคั่นระหว่างข้อความนี้กับข้อความก่อนหน้าการเปลี่ยนชื่อได้รับการคาดเดาชื่อสัญลักษณ์ได้รับการคาดเดา!ชื่อสัญลักษณ์ได้รับการคาดเดาแล้ว คำสำคัญที่สงวนไว้ไม่สามารถใช้เป็นชื่อคอลัมน์โดยไม่มีอัญประกาศกลับหลังได้ชื่อตารางได้รับการคาดหวังตัวแทนได้รับการคาดเดาชื่อ alias มีอยู่ก่อนแล้วหนึ่งนิพจน์ได้รับการคาดเดาหนึ่งออฟเซ็ตได้รับการคาดเดาเปิดวงเล็บเหลี่ยมแล้วตามด้วยชุดของค่าที่จะคาดเดาวงเล็บเหลี่ยมเปิดได้รับการคาดเดาการกำหนดคอลัมน์อย่างน้อยหนึ่งคอลัมน์ได้รับการคาดหวังอัญประกาศปิด %1$s ได้รับการคาดเดาตัวคั่นได้รับการคาดเดาวรรค(อาจจะมากกว่าหนึ่ง) ได้รับการคาดเดาก่อนตัวคั่นคำสำคัญ "TO" ได้รับการคาดเดาคีย์เวิร์ดในตอนท้ายของคำสั่งนิพจน์ขาดหายไม่มีข้อมูลเข้าออกได้เริ่มต้นมาก่อนยังไม่มีการดำเนินการชื่อเอนทิติได้รับการคาดหวังชื่อตารางใหม่ได้รับการคาดเดาชื่อเดิมของตารางได้รับการคาดเดาตัวเลือกนี้ขัดแย้งกับ %1$sประโยคชนิดนี้ไม่ถูกต้องในการเรียกใช้แบบหลายตารางชนิดของประโยคนี้ถูกวิเคราะห์มาแล้วก่อนหน้านี้ไม่อาจคาดเดาจุดเริ่มต้นของประพจน์ตัวอักษรที่คาดเดาไม่ได้จุด ไม่ได้รับการคาดเดาจุดสิ้นสุดนิพจน์ CASE ไม่ได้รับการคาดเดาจุดสิ้นสุดนิพจน์ LOCK ไม่ได้รับการคาดเดา.คำสำคัญที่ไม่ได้รับการคาดเดาคำสำคัญที่ไม่ได้รับการคาดเดาการเรียงของประโยคที่ไม่ได้คาดหวังไว้โทเค็นที่ไม่ได้คาดหวังไว้ไม่รู้จักการปฏิบัติการนอกเหนือจากนี้ไม่รู้จักชนิดข้อมูลไม่รู้จักชนิดของคีย์เวิร์ดไม่รู้จักชนิดของประพจน์ชื่อตัวแปรได้รับการคาดเดาsql-parser-5.9.0/locale/th/LC_MESSAGES/sqlparser.po000066400000000000000000000311351455302707200216410ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Thai \n" "Language: th\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "ยังไม่มีการดำเนินการ" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "ตรวจพบประพจน์ใหม่ แต่ไม่มีตัวคั่นระหว่างข้อความนี้กับข้อความก่อนหน้า" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "ไม่รู้จักการปฏิบัติการนอกเหนือจากนี้" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "ค่าของ %1$d ได้รับการคาดเดา แต่สิ่งที่พบคือ %2$d" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "เปิดวงเล็บเหลี่ยมแล้วตามด้วยชุดของค่าที่จะคาดเดา" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "วงเล็บเหลี่ยมเปิดได้รับการคาดเดา" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "คำสำคัญที่ไม่ได้รับการคาดเดา" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "จุดสิ้นสุดนิพจน์ CASE ไม่ได้รับการคาดเดา" #: src/Components/CaseExpression.php:212 #, fuzzy #| msgid "Unexpected end of CASE expression" msgid "Potential duplicate alias of CASE expression." msgstr "จุดสิ้นสุดนิพจน์ CASE ไม่ได้รับการคาดเดา" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "ชื่อ alias มีอยู่ก่อนแล้ว" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "An alias was expected." msgid "An alias was expected after AS." msgstr "ตัวแทนได้รับการคาดเดา" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "ชื่อสัญลักษณ์ได้รับการคาดเดาแล้ว " "คำสำคัญที่สงวนไว้ไม่สามารถใช้เป็นชื่อคอลัมน์โดยไม่มีอัญประกาศกลับหลังได้" #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "ชื่อสัญลักษณ์ได้รับการคาดเดา!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "จุลภาค หรือ วงเล็บปิด ได้รับการคาดเดา" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "วงเล็บปิดได้รับการคาดเดา" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "ไม่รู้จักชนิดข้อมูล" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "หนึ่งนิพจน์ได้รับการคาดเดา" #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "ตัวแทนได้รับการคาดเดา" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "จุด ไม่ได้รับการคาดเดา" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "โทเค็นที่ไม่ได้คาดหวังไว้" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "หนึ่งออฟเซ็ตได้รับการคาดเดา" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "จุดสิ้นสุดนิพจน์ LOCK ไม่ได้รับการคาดเดา." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "ตัวเลือกนี้ขัดแย้งกับ %1$s" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "ชื่อเดิมของตารางได้รับการคาดเดา" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "คำสำคัญ \"TO\" ได้รับการคาดเดา" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "ชื่อตารางใหม่ได้รับการคาดเดา" #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "การเปลี่ยนชื่อได้รับการคาดเดา" #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "นิพจน์ขาดหาย" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "ตัวอักษรที่คาดเดาไม่ได้" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "วรรค(อาจจะมากกว่าหนึ่ง) ได้รับการคาดเดาก่อนตัวคั่น" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "ตัวคั่นได้รับการคาดเดา" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "อัญประกาศปิด %1$s ได้รับการคาดเดา" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "ชื่อตัวแปรได้รับการคาดเดา" #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "ไม่อาจคาดเดาจุดเริ่มต้นของประพจน์" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "ไม่รู้จักชนิดของประพจน์" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "ไม่มีข้อมูลเข้าออกได้เริ่มต้นมาก่อน" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "ชนิดของประโยคนี้ถูกวิเคราะห์มาแล้วก่อนหน้านี้" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "ไม่รู้จักชนิดของคีย์เวิร์ด" #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "คีย์เวิร์ดในตอนท้ายของคำสั่ง" #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "การเรียงของประโยคที่ไม่ได้คาดหวังไว้" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "ชื่อเอนทิติได้รับการคาดหวัง" #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "ชื่อตารางได้รับการคาดหวัง" #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "การกำหนดคอลัมน์อย่างน้อยหนึ่งคอลัมน์ได้รับการคาดหวัง" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "คีย์เวิร์ด \"RETURNS\" ได้รับการคาดหวัง" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "ประโยคชนิดนี้ไม่ถูกต้องในการเรียกใช้แบบหลายตาราง" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of LOCK statement." msgstr "ไม่อาจคาดเดาจุดเริ่มต้นของประพจน์" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "คำสำคัญที่ไม่ได้รับการคาดเดา" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The name of the entity was expected." msgid "The name of the CTE was expected." msgstr "ชื่อเอนทิติได้รับการคาดหวัง" #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "A \"RETURNS\" keyword was expected." msgid "AS keyword was expected." msgstr "คีย์เวิร์ด \"RETURNS\" ได้รับการคาดหวัง" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The name of the entity was expected." msgid "Subquery of the CTE was expected." msgstr "ชื่อเอนทิติได้รับการคาดหวัง" #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of the WITH CTE." msgstr "ไม่อาจคาดเดาจุดเริ่มต้นของประพจน์" #~ msgid "Unexpected end of Lock expression." #~ msgstr "จุดสิ้นสุดนิพจน์ LOCK ไม่ได้รับการคาดเดา." #~ msgid "error #1" #~ msgstr "ผิดพลาด #1" #~ msgid "strict error" #~ msgstr "ข้อผิดพลาดที่ครัดเคร้ง" sql-parser-5.9.0/locale/tk/000077500000000000000000000000001455302707200155005ustar00rootroot00000000000000sql-parser-5.9.0/locale/tk/LC_MESSAGES/000077500000000000000000000000001455302707200172655ustar00rootroot00000000000000sql-parser-5.9.0/locale/tk/LC_MESSAGES/sqlparser.mo000066400000000000000000000007461455302707200216450ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2013-05-07 17:12+0200 Last-Translator: Michal Čihař Language-Team: Turkmen Language: tk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 1.6-dev sql-parser-5.9.0/locale/tk/LC_MESSAGES/sqlparser.po000066400000000000000000000202201455302707200216350ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2011 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2013-05-07 17:12+0200\n" "Last-Translator: Michal Čihař \n" "Language-Team: Turkmen \n" "Language: tk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 1.6-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "Database %1$s has been created." msgid "An alias was expected after AS." msgstr "%1$s maglumatlar ulgamy döredildi." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "Database %1$s has been created." msgid "A symbol name was expected!" msgstr "%1$s maglumatlar ulgamy döredildi." #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "Database %1$s has been created." msgid "A comma or a closing bracket was expected." msgstr "%1$s maglumatlar ulgamy döredildi." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "Database %1$s has been created." msgid "An alias was expected." msgstr "%1$s maglumatlar ulgamy döredildi." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "Database %1$s has been created." msgid "A rename operation was expected." msgstr "%1$s maglumatlar ulgamy döredildi." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "" #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Database %1$s has been created." msgid "A table name was expected." msgstr "%1$s maglumatlar ulgamy döredildi." #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "Database %1$s has been created." msgid "At least one column definition was expected." msgstr "%1$s maglumatlar ulgamy döredildi." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "Database %1$s has been created." msgid "The name of the CTE was expected." msgstr "%1$s maglumatlar ulgamy döredildi." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "Database %1$s has been created." msgid "AS keyword was expected." msgstr "%1$s maglumatlar ulgamy döredildi." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "Database %1$s has been created." msgid "Subquery of the CTE was expected." msgstr "%1$s maglumatlar ulgamy döredildi." #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "" sql-parser-5.9.0/locale/tr/000077500000000000000000000000001455302707200155075ustar00rootroot00000000000000sql-parser-5.9.0/locale/tr/LC_MESSAGES/000077500000000000000000000000001455302707200172745ustar00rootroot00000000000000sql-parser-5.9.0/locale/tr/LC_MESSAGES/sqlparser.mo000066400000000000000000000125121455302707200216460ustar00rootroot000000000000006I|*!*L9 c'B#[<  F,g( 4)^&r-!!$ 'E 'm " 8 * " ? U !e " !     3 E c {    , ' * < O<(T l2& 7CT)&//3"c 7 '&) Pq%>0N $C^$z'-,)'  .%53 0*2 $ (-&4+1!/#6"%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.AS keyword was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.Subquery of the CTE was expected.The name of the CTE was expected.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected end of the WITH CTE.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2021-12-31 01:53+0000 Last-Translator: Burak Yavuz Language-Team: Turkish Language: tr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n > 1; X-Generator: Weblate 4.10.1 %1$d değer beklenmekte, ancak %2$d bulundu."RETURNS" anahtar kelimesi beklenmekte.Kapalı bir köşeli parantez beklenmekte.Bir virgül ya da kapalı bir köşeli parantez beklenmekte.Yeni bir ifade bulundu, ancak bu ve önceki arasında hiç sınırlayıcı yok.Yeniden adlandırma işlemi beklenmekte.Bir sembol adı beklenmekte!Bir sembol adı beklenmekte! Ayrılmış bir anahtar kelime ters eğik tırnakları olmadan bir sütun adı olarak kullanılamaz.Tablo adı beklenmekte.AS anahtar kelimesi beklenmekte.AS'den sonra beklenen ancak var olan bir kod adı AS'den sonra bir kod adı beklenmekte.Bir kodadı beklenmekte.Bir kodadı daha önce bulundu.Bir ifade beklenmekte.Bir karşılık beklenmekte.Açık bir köşeli parantez ardından bir grup değer beklenmekte.Açık bir köşeli parantez beklenmekte.En az bir sütun tanımı beklenmekte.Sonlandırma tırnak işareti %1$s beklenmekte.Beklenen sınırlayıcı.Sınırlayıcıdan önce beklenen boşluk(lar)."TO" anahtar kelimesi beklenmekte.İfade sonundaki anahtar kelime.Yeni bir alter işlemi başlamadan önce eksik virgül.Eksik ifade.Daha önce hiç işlem başlatılmadı.Henüz uygulanmadı.CASE ifadesinin olası kopya kod adı.CTE'nin alt sorgusu beklenmekte.CTE'nin adı beklenmekte.Varlığın adı beklenmekte.Tablonun yeni adı beklenmekte.Tablonun eski adı beklenmekte.Bu seçenek "%1$s" ile çakışıyor.Bu tür yan tümce Çoklu tablo sorgularında geçerli değil.Bu tür yan tümce daha önce ayrıştırıldı.Beklenmeyen ifade başlangıcı.Beklenmeyen karakter.Beklenmeyen nokta.Beklenmeyen CASE ifadesi sonuBeklenmeyen LOCK ifadesi sonu.Beklenmeyen LOCK deyimi sonu.WITH CTE'nin beklenmeyen sonu.Beklenmeyen anahtar kelimeBeklenmeyen anahtar kelime.Beklenmeyen yan tümce sıralaması.Beklenmeyen belirteç.Kategorilenmemiş değiştirme işlemi.Tanınmayan veri türü.Tanınmayan anahtar kelime.Tanınmayan ifade türü.Değişken adı beklenmekte.sql-parser-5.9.0/locale/tr/LC_MESSAGES/sqlparser.po000066400000000000000000000223551455302707200216570ustar00rootroot00000000000000# Automatically generated <>, 2010. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2021-12-31 01:53+0000\n" "Last-Translator: Burak Yavuz \n" "Language-Team: Turkish \n" "Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n > 1;\n" "X-Generator: Weblate 4.10.1\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Henüz uygulanmadı." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "Yeni bir ifade bulundu, ancak bu ve önceki arasında hiç sınırlayıcı yok." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Yeni bir alter işlemi başlamadan önce eksik virgül." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Kategorilenmemiş değiştirme işlemi." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "%1$d değer beklenmekte, ancak %2$d bulundu." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Açık bir köşeli parantez ardından bir grup değer beklenmekte." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Açık bir köşeli parantez beklenmekte." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Beklenmeyen anahtar kelime." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Beklenmeyen CASE ifadesi sonu" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "CASE ifadesinin olası kopya kod adı." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "AS'den sonra beklenen ancak var olan bir kod adı " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Bir kodadı daha önce bulundu." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "AS'den sonra bir kod adı beklenmekte." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Bir sembol adı beklenmekte! Ayrılmış bir anahtar kelime ters eğik tırnakları " "olmadan bir sütun adı olarak kullanılamaz." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Bir sembol adı beklenmekte!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Bir virgül ya da kapalı bir köşeli parantez beklenmekte." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Kapalı bir köşeli parantez beklenmekte." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Tanınmayan veri türü." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Bir ifade beklenmekte." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Bir kodadı beklenmekte." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Beklenmeyen nokta." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Beklenmeyen belirteç." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Bir karşılık beklenmekte." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Beklenmeyen LOCK ifadesi sonu." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Bu seçenek \"%1$s\" ile çakışıyor." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Tablonun eski adı beklenmekte." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "\"TO\" anahtar kelimesi beklenmekte." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Tablonun yeni adı beklenmekte." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Yeniden adlandırma işlemi beklenmekte." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Eksik ifade." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Beklenmeyen karakter." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Sınırlayıcıdan önce beklenen boşluk(lar)." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Beklenen sınırlayıcı." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Sonlandırma tırnak işareti %1$s beklenmekte." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Değişken adı beklenmekte." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Beklenmeyen ifade başlangıcı." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Tanınmayan ifade türü." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Daha önce hiç işlem başlatılmadı." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Bu tür yan tümce daha önce ayrıştırıldı." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Tanınmayan anahtar kelime." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "İfade sonundaki anahtar kelime." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Beklenmeyen yan tümce sıralaması." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Varlığın adı beklenmekte." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Tablo adı beklenmekte." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "En az bir sütun tanımı beklenmekte." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "\"RETURNS\" anahtar kelimesi beklenmekte." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Bu tür yan tümce Çoklu tablo sorgularında geçerli değil." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Beklenmeyen LOCK deyimi sonu." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Beklenmeyen anahtar kelime" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "CTE'nin adı beklenmekte." #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "AS anahtar kelimesi beklenmekte." #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "CTE'nin alt sorgusu beklenmekte." #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "WITH CTE'nin beklenmeyen sonu." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Beklenmeyen LOCK ifadesi sonu." #~ msgid "error #1" #~ msgstr "hata #1" #~ msgid "strict error" #~ msgstr "kesin hata" sql-parser-5.9.0/locale/tt/000077500000000000000000000000001455302707200155115ustar00rootroot00000000000000sql-parser-5.9.0/locale/tt/LC_MESSAGES/000077500000000000000000000000001455302707200172765ustar00rootroot00000000000000sql-parser-5.9.0/locale/tt/LC_MESSAGES/sqlparser.mo000066400000000000000000000007401455302707200216500ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2015-10-15 11:22+0200 Last-Translator: Michal Čihař Language-Team: Tatar Language: tt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; X-Generator: Weblate 2.5-dev sql-parser-5.9.0/locale/tt/LC_MESSAGES/sqlparser.po000066400000000000000000000214471455302707200216620ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2015-10-15 11:22+0200\n" "Last-Translator: Michal Čihař \n" "Language-Team: Tatar \n" "Language: tt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Weblate 2.5-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected after AS." msgstr "Biremlek saylanmağan." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy msgid "A symbol name was expected!" msgstr "Birem adınıñ tözeleşe" #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "No databases selected." msgid "A comma or a closing bracket was expected." msgstr "Biremlek saylanmağan." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "No rows selected" msgid "An expression was expected." msgstr "Kertemnär sayladı" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected." msgstr "Biremlek saylanmağan." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK expression." msgstr "Tüşämä Başına" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 #, fuzzy #| msgid "The number of tables that are open." msgid "The old name of the table was expected." msgstr "Açıq toruçı tüşämä sanı." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 #, fuzzy #| msgid "The number of tables that are open." msgid "The new name of the table was expected." msgstr "Açıq toruçı tüşämä sanı." #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "Bu yazma salınğan buldı" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "regexp kileş" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format msgid "Ending quote %1$s was expected." msgstr "\"%s\" atlı tüşämä beterelde" #: src/Lexer.php:1056 #, fuzzy msgid "Variable name was expected." msgstr "Birem adınıñ tözeleşe" #: src/Parser.php:456 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected beginning of statement." msgstr "Tüşämä Başına" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "At Beginning of Table" msgid "Keyword at end of statement." msgstr "Tüşämä Başına" #: src/Statement.php:555 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected ordering of clauses." msgstr "Tüşämä Başına" #: src/Statements/CreateStatement.php:549 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the entity was expected." msgstr "Açıq toruçı tüşämä sanı." #: src/Statements/CreateStatement.php:598 #, fuzzy msgid "A table name was expected." msgstr "Birem adınıñ tözeleşe" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "Bu yazma salınğan buldı" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK statement." msgstr "Tüşämä Başına" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the CTE was expected." msgstr "Açıq toruçı tüşämä sanı." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No rows selected" msgid "AS keyword was expected." msgstr "Kertemnär sayladı" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The number of tables that are open." msgid "Subquery of the CTE was expected." msgstr "Açıq toruçı tüşämä sanı." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of the WITH CTE." msgstr "Tüşämä Başına" #, fuzzy #~| msgid "At Beginning of Table" #~ msgid "Unexpected end of Lock expression." #~ msgstr "Tüşämä Başına" #, fuzzy #~| msgid "Error" #~ msgid "error #1" #~ msgstr "Xata" #, fuzzy #~| msgid "Query type" #~ msgid "strict error" #~ msgstr "Soraw töre" sql-parser-5.9.0/locale/ug/000077500000000000000000000000001455302707200154755ustar00rootroot00000000000000sql-parser-5.9.0/locale/ug/LC_MESSAGES/000077500000000000000000000000001455302707200172625ustar00rootroot00000000000000sql-parser-5.9.0/locale/ug/LC_MESSAGES/sqlparser.mo000066400000000000000000000021341455302707200216330ustar00rootroot00000000000000DlL4  >n'; A new statement was found, but no delimiter between it and the previous one.Missing comma before start of a new alter operation.Not implemented yet.Unrecognized alter operation.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2020-08-03 18:42+0000 Last-Translator: Abdusalam <1810010207@s.upc.edu.cn> Language-Team: Uyghur Language: ug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 4.2-dev يېڭى بايانات تېپىلدى ، ئەمما ئۇنىڭ بىلەن ئالدىنقىسىنىڭ ئوتتۇرىسىدا ئېنىقلىما يوق.يېڭى ئۆزگەرتىش مەشغۇلاتى باشلىنىشتىن بۇرۇن پەش يوقاپ كەتتى.تېخى يولغا قويۇلمىدى.تونۇلمىغان ئۆزگەرتىش مەشغۇلاتى.sql-parser-5.9.0/locale/ug/LC_MESSAGES/sqlparser.po000066400000000000000000000227411455302707200216440ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2010 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # FIRST AUTHOR , YEAR. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2020-08-03 18:42+0000\n" "Last-Translator: Abdusalam <1810010207@s.upc.edu.cn>\n" "Language-Team: Uyghur \n" "Language: ug\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.2-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "تېخى يولغا قويۇلمىدى." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "يېڭى بايانات تېپىلدى ، ئەمما ئۇنىڭ بىلەن ئالدىنقىسىنىڭ ئوتتۇرىسىدا ئېنىقلىما " "يوق." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "يېڭى ئۆزگەرتىش مەشغۇلاتى باشلىنىشتىن بۇرۇن پەش يوقاپ كەتتى." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "تونۇلمىغان ئۆزگەرتىش مەشغۇلاتى." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "With selected:" msgid "An alias was expected after AS." msgstr "تاللانغىنى:" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "With selected:" msgid "A symbol name was expected!" msgstr "تاللانغىنى:" #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "With selected:" msgid "A comma or a closing bracket was expected." msgstr "تاللانغىنى:" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "With selected:" msgid "An expression was expected." msgstr "تاللانغىنى:" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "With selected:" msgid "An alias was expected." msgstr "تاللانغىنى:" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "Show dimension of tables" msgid "Unexpected end of LOCK expression." msgstr "جەدېۋەلنىڭ چوڭ-كىچىكلىكىنى كۆرسىتىش" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The bookmark has been deleted." msgid "A rename operation was expected." msgstr "خەتكۈچ ئۆچۈرۈلدى." #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "مۇنتىزىم ئىپادە" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format #| msgid "Database %1$s has been created." msgid "Ending quote %1$s was expected." msgstr "%1$s ساندان غەلبىلىك قۇرۇلدى" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 #, fuzzy #| msgid "Show dimension of tables" msgid "Unexpected beginning of statement." msgstr "جەدېۋەلنىڭ چوڭ-كىچىكلىكىنى كۆرسىتىش" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "Show dimension of tables" msgid "Keyword at end of statement." msgstr "جەدېۋەلنىڭ چوڭ-كىچىكلىكىنى كۆرسىتىش" #: src/Statement.php:555 #, fuzzy #| msgid "Show dimension of tables" msgid "Unexpected ordering of clauses." msgstr "جەدېۋەلنىڭ چوڭ-كىچىكلىكىنى كۆرسىتىش" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "With selected:" msgid "A table name was expected." msgstr "تاللانغىنى:" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The bookmark has been deleted." msgid "At least one column definition was expected." msgstr "خەتكۈچ ئۆچۈرۈلدى." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Show dimension of tables" msgid "Unexpected end of LOCK statement." msgstr "جەدېۋەلنىڭ چوڭ-كىچىكلىكىنى كۆرسىتىش" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "With selected:" msgid "The name of the CTE was expected." msgstr "تاللانغىنى:" #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "With selected:" msgid "AS keyword was expected." msgstr "تاللانغىنى:" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "Database %1$s has been created." msgid "Subquery of the CTE was expected." msgstr "%1$s ساندان غەلبىلىك قۇرۇلدى" #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Show dimension of tables" msgid "Unexpected end of the WITH CTE." msgstr "جەدېۋەلنىڭ چوڭ-كىچىكلىكىنى كۆرسىتىش" #, fuzzy #~| msgid "Show dimension of tables" #~ msgid "Unexpected end of Lock expression." #~ msgstr "جەدېۋەلنىڭ چوڭ-كىچىكلىكىنى كۆرسىتىش" #~ msgid "error #1" #~ msgstr "خاتالىق #1" #, fuzzy #~| msgid "Query" #~ msgid "strict error" #~ msgstr "تەكشۈرۈش" sql-parser-5.9.0/locale/uk/000077500000000000000000000000001455302707200155015ustar00rootroot00000000000000sql-parser-5.9.0/locale/uk/LC_MESSAGES/000077500000000000000000000000001455302707200172665ustar00rootroot00000000000000sql-parser-5.9.0/locale/uk/LC_MESSAGES/sqlparser.mo000066400000000000000000000153131455302707200216420ustar00rootroot000000000000006I|*!*L9 c'B#[<  F,g( 4)^&r-!!$ 'E 'm " 8 * " ? U !e " !     3 E c {    H ;3UD}EL<.6O6l(:&(.VW5\=A,L650]f$L!6UX*#-7+<c7cT<H&$7&8^>/017=i&5-325f.,)'  .%53 0*2 $ (-&4+1!/#6"%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.AS keyword was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.Subquery of the CTE was expected.The name of the CTE was expected.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected end of the WITH CTE.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Ukrainian Language: uk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2; X-Generator: Weblate 4.16-dev Очікувалося %1$d значення, а знайдено %2$d .Очікувалося ключове слово "RETURNS".Очікувалася закривна дужка.Очікувалося, кома або закривна дужка.Новий оператор знайдено, але між ним і попереднім немає роздільника.Очікувалася операція перейменування.Очікувалося ім'я ідентифікатора!Очікувалося ім'я ідентифікатора! Зарезервоване ключове слово не може використовуватися, як ім'я стовпця, без зворотніх лапок.Очікувалося ім'я таблиці.Очікувалося ключове слово "AS".Псевдонім очікується після AS, але отримано Псевдонім очікувався після AS.Очікувався псевдонім.Псевдонім був раніше знайдений.Очікувався оператор.Очікувалося зміщення.Очікувалося відкриття дужки з набором значень.Очікувалося відкриття дужки.Очікувалося, принаймні одне визначення стовпчика.Очікувалося закриваюча лапка %1$s .Очікувалося роздільник.Очікувалося пробіл(и) перед роздільником.Очікувалося ключове слово "TO".Ключове слово в кінці виразу.Відсутня кома перед початком нової операції зміни.Відсутній оператор.Жодна транзакція не була раніше запущена.Ще не реалізовано.Потенційний повторюваний псевдонім виразу CASE.Очікувався підзапит CTE.Очікувалося ім'я CTE.Очікувалося ім'я об'єкта.Очікувалося нове ім'я таблиці.Очікувалося стара назва таблиці.Цей параметр конфліктує з "%1$s".Цей тип оператора не діє для запитів групових таблиць.Цей тип оператора був раніше проаналізований.Неочікуваний початок виразу оператора.Неочікуваний символ.Неочікувана крапка.Неочікуваний кінець виразу CASEНеочікуваний кінець виразу LOCK.Несподіваний кінець оператора LOCK.Несподіваний кінець WITH CTE.Неочікуване ключове словоНеочікуване ключове слово.Неочікуваний порядок операторів.Неочікуваний маркер.Нерозпізнана операція зміни.Нерозпізнаний тип даних.Нерозпізнане ключове слово.Нерозпізнаний тип оператора.Очікувалося ім'я змінної.sql-parser-5.9.0/locale/uk/LC_MESSAGES/sqlparser.po000066400000000000000000000252151455302707200216470ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Ukrainian \n" "Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Ще не реалізовано." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "Новий оператор знайдено, але між ним і попереднім немає роздільника." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "Відсутня кома перед початком нової операції зміни." #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Нерозпізнана операція зміни." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "Очікувалося %1$d значення, а знайдено %2$d ." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Очікувалося відкриття дужки з набором значень." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Очікувалося відкриття дужки." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Неочікуване ключове слово." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Неочікуваний кінець виразу CASE" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "Потенційний повторюваний псевдонім виразу CASE." #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "Псевдонім очікується після AS, але отримано " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Псевдонім був раніше знайдений." #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "Псевдонім очікувався після AS." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Очікувалося ім'я ідентифікатора! Зарезервоване ключове слово не може " "використовуватися, як ім'я стовпця, без зворотніх лапок." #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "Очікувалося ім'я ідентифікатора!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Очікувалося, кома або закривна дужка." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Очікувалася закривна дужка." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Нерозпізнаний тип даних." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Очікувався оператор." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Очікувався псевдонім." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Неочікувана крапка." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Неочікуваний маркер." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Очікувалося зміщення." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Неочікуваний кінець виразу LOCK." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Цей параметр конфліктує з \"%1$s\"." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Очікувалося стара назва таблиці." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Очікувалося ключове слово \"TO\"." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Очікувалося нове ім'я таблиці." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Очікувалася операція перейменування." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Відсутній оператор." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Неочікуваний символ." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Очікувалося пробіл(и) перед роздільником." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Очікувалося роздільник." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Очікувалося закриваюча лапка %1$s ." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Очікувалося ім'я змінної." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Неочікуваний початок виразу оператора." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Нерозпізнаний тип оператора." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Жодна транзакція не була раніше запущена." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Цей тип оператора був раніше проаналізований." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Нерозпізнане ключове слово." #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "Ключове слово в кінці виразу." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Неочікуваний порядок операторів." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Очікувалося ім'я об'єкта." #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "Очікувалося ім'я таблиці." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Очікувалося, принаймні одне визначення стовпчика." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Очікувалося ключове слово \"RETURNS\"." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Цей тип оператора не діє для запитів групових таблиць." #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "Несподіваний кінець оператора LOCK." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Неочікуване ключове слово" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "Очікувалося ім'я CTE." #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "Очікувалося ключове слово \"AS\"." #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "Очікувався підзапит CTE." #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "Несподіваний кінець WITH CTE." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Несподіваний кінець виразу LOCK." #~ msgid "error #1" #~ msgstr "помилка #1" #~ msgid "strict error" #~ msgstr "недопустима помилка" sql-parser-5.9.0/locale/ur/000077500000000000000000000000001455302707200155105ustar00rootroot00000000000000sql-parser-5.9.0/locale/ur/LC_MESSAGES/000077500000000000000000000000001455302707200172755ustar00rootroot00000000000000sql-parser-5.9.0/locale/ur/LC_MESSAGES/sqlparser.mo000066400000000000000000000007461455302707200216550ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2015-10-15 11:05+0200 Last-Translator: Michal Čihař Language-Team: Urdu Language: ur MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); X-Generator: Weblate 2.5-dev sql-parser-5.9.0/locale/ur/LC_MESSAGES/sqlparser.po000066400000000000000000000225231455302707200216550ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2010 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # FIRST AUTHOR , YEAR. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2015-10-15 11:05+0200\n" "Last-Translator: Michal Čihař \n" "Language-Team: Urdu \n" "Language: ur\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Weblate 2.5-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 #, fuzzy #| msgid "Iconic table operations" msgid "Unrecognized alter operation." msgstr "شبیہاتی جدول عملیات" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "Removing Selected Users" msgid "An alias was expected after AS." msgstr "منتخب صارفین حذف کیے جا رہے ہیں" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "Table name template" msgid "A symbol name was expected!" msgstr "جدول نام سانچا" #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "Removing Selected Users" msgid "A comma or a closing bracket was expected." msgstr "منتخب صارفین حذف کیے جا رہے ہیں" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "Removing Selected Users" msgid "An expression was expected." msgstr "منتخب صارفین حذف کیے جا رہے ہیں" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "Removing Selected Users" msgid "An alias was expected." msgstr "منتخب صارفین حذف کیے جا رہے ہیں" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "Show dimension of tables" msgid "Unexpected end of LOCK expression." msgstr "ٹیبلز کی جسامت دیکھیں" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The bookmark has been deleted." msgid "A rename operation was expected." msgstr "نشانی حذف ہو چکی ہے۔" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "بطور باقاعدہ اظہار" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format #| msgid "Database %1$s has been created." msgid "Ending quote %1$s was expected." msgstr "کوائفیہ $1%s بن گئی ہے۔" #: src/Lexer.php:1056 #, fuzzy #| msgid "Table name template" msgid "Variable name was expected." msgstr "جدول نام سانچا" #: src/Parser.php:456 #, fuzzy #| msgid "Show dimension of tables" msgid "Unexpected beginning of statement." msgstr "ٹیبلز کی جسامت دیکھیں" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "Show dimension of tables" msgid "Keyword at end of statement." msgstr "ٹیبلز کی جسامت دیکھیں" #: src/Statement.php:555 #, fuzzy #| msgid "Show dimension of tables" msgid "Unexpected ordering of clauses." msgstr "ٹیبلز کی جسامت دیکھیں" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Table name template" msgid "A table name was expected." msgstr "جدول نام سانچا" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The bookmark has been deleted." msgid "At least one column definition was expected." msgstr "نشانی حذف ہو چکی ہے۔" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Show dimension of tables" msgid "Unexpected end of LOCK statement." msgstr "ٹیبلز کی جسامت دیکھیں" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "Table name template" msgid "The name of the CTE was expected." msgstr "جدول نام سانچا" #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "Removing Selected Users" msgid "AS keyword was expected." msgstr "منتخب صارفین حذف کیے جا رہے ہیں" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "Database %1$s has been created." msgid "Subquery of the CTE was expected." msgstr "کوائفیہ $1%s بن گئی ہے۔" #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Show dimension of tables" msgid "Unexpected end of the WITH CTE." msgstr "ٹیبلز کی جسامت دیکھیں" #, fuzzy #~| msgid "Show dimension of tables" #~ msgid "Unexpected end of Lock expression." #~ msgstr "ٹیبلز کی جسامت دیکھیں" #, fuzzy #~| msgid "Error" #~ msgid "error #1" #~ msgstr "نقص" #, fuzzy #~| msgid "Gather errors" #~ msgid "strict error" #~ msgstr "نقائص اکھٹی کریں" sql-parser-5.9.0/locale/uz/000077500000000000000000000000001455302707200155205ustar00rootroot00000000000000sql-parser-5.9.0/locale/uz/LC_MESSAGES/000077500000000000000000000000001455302707200173055ustar00rootroot00000000000000sql-parser-5.9.0/locale/uz/LC_MESSAGES/sqlparser.mo000066400000000000000000000007461455302707200216650ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2015-10-15 11:39+0200 Last-Translator: Michal Čihař Language-Team: Uzbek Language: uz MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n > 1); X-Generator: Weblate 2.5-dev sql-parser-5.9.0/locale/uz/LC_MESSAGES/sqlparser.po000066400000000000000000000231711455302707200216650ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2015-10-15 11:39+0200\n" "Last-Translator: Michal Čihař \n" "Language-Team: Uzbek \n" "Language: uz\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Weblate 2.5-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 #, fuzzy #| msgid "Iconic table operations" msgid "Unrecognized alter operation." msgstr "Жадвал операцияларини пиктограммалар ёрдамида амалга ошириш" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected after AS." msgstr "Биронта ҳам маълумотлар базаси танланмаган." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "Table name template" msgid "A symbol name was expected!" msgstr "Жадвал номи шаблони" #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "No databases selected." msgid "A comma or a closing bracket was expected." msgstr "Биронта ҳам маълумотлар базаси танланмаган." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "No rows selected" msgid "An expression was expected." msgstr "Амални амалга ошириш учун битта ёки бир нечта қаторни танлаш керак." #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected." msgstr "Биронта ҳам маълумотлар базаси танланмаган." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK expression." msgstr "Жадвал бошига" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 #, fuzzy #| msgid "The number of tables that are open." msgid "The old name of the table was expected." msgstr "Очиқ жадваллар сони." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 #, fuzzy #| msgid "The number of tables that are open." msgid "The new name of the table was expected." msgstr "Очиқ жадваллар сони." #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "Ёзув ўчирилди" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "мунтазам ибора" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format #| msgid "Table %1$s has been created." msgid "Ending quote %1$s was expected." msgstr "%1$s жадвали тузилди." #: src/Lexer.php:1056 #, fuzzy #| msgid "Table name template" msgid "Variable name was expected." msgstr "Жадвал номи шаблони" #: src/Parser.php:456 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected beginning of statement." msgstr "Жадвал бошига" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "At Beginning of Table" msgid "Keyword at end of statement." msgstr "Жадвал бошига" #: src/Statement.php:555 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected ordering of clauses." msgstr "Жадвал бошига" #: src/Statements/CreateStatement.php:549 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the entity was expected." msgstr "Очиқ жадваллар сони." #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Table name template" msgid "A table name was expected." msgstr "Жадвал номи шаблони" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "Ёзув ўчирилди" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK statement." msgstr "Жадвал бошига" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the CTE was expected." msgstr "Очиқ жадваллар сони." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No rows selected" msgid "AS keyword was expected." msgstr "Амални амалга ошириш учун битта ёки бир нечта қаторни танлаш керак." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The number of tables that are open." msgid "Subquery of the CTE was expected." msgstr "Очиқ жадваллар сони." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of the WITH CTE." msgstr "Жадвал бошига" #, fuzzy #~| msgid "At Beginning of Table" #~ msgid "Unexpected end of Lock expression." #~ msgstr "Жадвал бошига" #, fuzzy #~| msgid "errors." #~ msgid "error #1" #~ msgstr "хатоликлар." #, fuzzy #~| msgid "Ignore errors" #~ msgid "strict error" #~ msgstr "Хатоларга эътибор бермаслик" sql-parser-5.9.0/locale/uz@latin/000077500000000000000000000000001455302707200166505ustar00rootroot00000000000000sql-parser-5.9.0/locale/uz@latin/LC_MESSAGES/000077500000000000000000000000001455302707200204355ustar00rootroot00000000000000sql-parser-5.9.0/locale/uz@latin/LC_MESSAGES/sqlparser.mo000066400000000000000000000007641455302707200230150ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2015-12-29 19:19+0000 Last-Translator: Michal Čihař Language-Team: Uzbek (latin) Language: uz@latin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; X-Generator: Weblate 2.5-dev sql-parser-5.9.0/locale/uz@latin/LC_MESSAGES/sqlparser.po000066400000000000000000000222151455302707200230130ustar00rootroot00000000000000# Automatically generated <>, 2010. msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2015-12-29 19:19+0000\n" "Last-Translator: Michal Čihař \n" "Language-Team: Uzbek (latin) \n" "Language: uz@latin\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Weblate 2.5-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 #, fuzzy #| msgid "Iconic table operations" msgid "Unrecognized alter operation." msgstr "Jadval operatsiyalarini piktogrammalar yordamida amalga oshirish" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected after AS." msgstr "Bironta ham ma`lumotlar bazasi tanlanmagan." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "Table name template" msgid "A symbol name was expected!" msgstr "Jadval nomi shabloni" #: src/Components/CreateDefinition.php:300 #, fuzzy #| msgid "No databases selected." msgid "A comma or a closing bracket was expected." msgstr "Bironta ham ma`lumotlar bazasi tanlanmagan." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 #, fuzzy #| msgid "No rows selected" msgid "An expression was expected." msgstr "" "Amalni amalga oshirish uchun bitta yoki bir nechta qatorni tanlash kerak" #: src/Components/Expression.php:257 src/Components/Expression.php:435 #, fuzzy #| msgid "No databases selected." msgid "An alias was expected." msgstr "Bironta ham ma`lumotlar bazasi tanlanmagan." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK expression." msgstr "Jadval boshiga" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 #, fuzzy #| msgid "The number of tables that are open." msgid "The old name of the table was expected." msgstr "Ochiq jadvallar soni." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 #, fuzzy #| msgid "The number of tables that are open." msgid "The new name of the table was expected." msgstr "Ochiq jadvallar soni." #: src/Components/RenameOperation.php:140 #, fuzzy #| msgid "The row has been deleted." msgid "A rename operation was expected." msgstr "Yozuv o‘chirildi" #: src/Components/SetOperation.php:121 #, fuzzy #| msgid "as regular expression" msgid "Missing expression." msgstr "muntazam ibora" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, fuzzy, php-format #| msgid "Table %1$s has been created." msgid "Ending quote %1$s was expected." msgstr "%1$s jadvali tuzildi." #: src/Lexer.php:1056 #, fuzzy #| msgid "Table name template" msgid "Variable name was expected." msgstr "Jadval nomi shabloni" #: src/Parser.php:456 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected beginning of statement." msgstr "Jadval boshiga" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 #, fuzzy #| msgid "At Beginning of Table" msgid "Keyword at end of statement." msgstr "Jadval boshiga" #: src/Statement.php:555 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected ordering of clauses." msgstr "Jadval boshiga" #: src/Statements/CreateStatement.php:549 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the entity was expected." msgstr "Ochiq jadvallar soni." #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Table name template" msgid "A table name was expected." msgstr "Jadval nomi shabloni" #: src/Statements/CreateStatement.php:603 #, fuzzy #| msgid "The row has been deleted." msgid "At least one column definition was expected." msgstr "Yozuv o‘chirildi" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of LOCK statement." msgstr "Jadval boshiga" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The number of tables that are open." msgid "The name of the CTE was expected." msgstr "Ochiq jadvallar soni." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "No rows selected" msgid "AS keyword was expected." msgstr "" "Amalni amalga oshirish uchun bitta yoki bir nechta qatorni tanlash kerak" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The number of tables that are open." msgid "Subquery of the CTE was expected." msgstr "Ochiq jadvallar soni." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "At Beginning of Table" msgid "Unexpected end of the WITH CTE." msgstr "Jadval boshiga" #, fuzzy #~| msgid "At Beginning of Table" #~ msgid "Unexpected end of Lock expression." #~ msgstr "Jadval boshiga" #, fuzzy #~| msgid "errors." #~ msgid "error #1" #~ msgstr "xatoliklar." #, fuzzy #~| msgid "Ignore errors" #~ msgid "strict error" #~ msgstr "Xatolarga e`tibor bermaslik" sql-parser-5.9.0/locale/vi/000077500000000000000000000000001455302707200155005ustar00rootroot00000000000000sql-parser-5.9.0/locale/vi/LC_MESSAGES/000077500000000000000000000000001455302707200172655ustar00rootroot00000000000000sql-parser-5.9.0/locale/vi/LC_MESSAGES/sqlparser.mo000066400000000000000000000107671455302707200216510ustar00rootroot00000000000000*l;*!*LA c*Ie<} ,((<e&$''"E8h*"!"7Zm 8 9 * F 3f b    4   T8  &   7 C!Z=|%*;LfH.+ H0i1' 1'P$x)!*&)' $ % " # ( %1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Missing expression.No transaction was previously started.Not implemented yet.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Vietnamese Language: vi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; X-Generator: Weblate 4.16-dev Cần giá trị %1$d, nhưng lại nhận được %2$d.Cần từ khóa "RETURNS".Cần dấu ngoặc ôm đóng.Cần dấu phẩy hoặc dấu ngoặc ôm đóng.Tìm thấy câu lệnh mới, nhưng không có dấu ngăn cách giữa nó và lệnh trước.Cần thao tác đổi tên.Cần tên biểu tượng. Một từ khoá truy ngược không thể được sử dụng như là một tên cột mà không có các ngoặc sau.Cần một bí danh.Một bí danh đã tìm thấy từ trước đây.Cần một biểu thức.Cần vị trí tương đối.Cần một dấu ngoặc ôm mở theo sau bởi một tập hợp các giá trị.Cần dấu ngoặc ôm mở.Chưa có bảng nào được chọn.Cần trích dẫn đóng %1$s.Cần dấu phân tách.Cần các khoảng trắng trước dấu phân tách.Cần từ khóa "TO".Thiếu biểu thức chính quy.Chưa có giao địch nào đã bắt đầu trước đây.Chưa được viết mã thực thi.Cần tên của thực thể.Cần tên mới của bảng.Cần tên cũ của bảng.Tùy chọn này xung đột với "%1$s".Mệnh đề loại này không hợp lệ trong các truy vấn Đa bảng.Kiểu của mệnh đề này đã được phân tích trước đây.Gặp phần đầu mệnh đề không cần.Gặp ký tự không cần.Gặp dấu chấm không cần.Kết thúc bất ngờ của biểu thức CASEKết thúc bất ngờ của biểu thức LOCK.Từ khóa không mong muốnTừ khóa không mong muốn.Đặt mệnh đề không mong muốn.Gặp thẻ bài không cần.Không nhận ra thao tác thay đổi.Không nhận ra kiểu dữ liệu.Không nhận ra từ khóa.Không thừa nhận kiểu mệnh đề.Cần tên biến.sql-parser-5.9.0/locale/vi/LC_MESSAGES/sqlparser.po000066400000000000000000000242201455302707200216410ustar00rootroot00000000000000# phpMyAdmin translation. # Bản dịch tiếng Việt dành cho phpMyAdmin. # Copyright (C) 2003 - 2015 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # Trần Ngọc Quân , 2015. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Vietnamese \n" "Language: vi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "Chưa được viết mã thực thi." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" "Tìm thấy câu lệnh mới, nhưng không có dấu ngăn cách giữa nó và lệnh trước." #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "Không nhận ra thao tác thay đổi." #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "Cần giá trị %1$d, nhưng lại nhận được %2$d." #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "Cần một dấu ngoặc ôm mở theo sau bởi một tập hợp các giá trị." #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "Cần dấu ngoặc ôm mở." #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "Từ khóa không mong muốn." #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "Kết thúc bất ngờ của biểu thức CASE" #: src/Components/CaseExpression.php:212 #, fuzzy #| msgid "Unexpected end of CASE expression" msgid "Potential duplicate alias of CASE expression." msgstr "Kết thúc bất ngờ của biểu thức CASE" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "Một bí danh đã tìm thấy từ trước đây." #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "An alias was expected." msgid "An alias was expected after AS." msgstr "Cần một bí danh." #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" "Cần tên biểu tượng. Một từ khoá truy ngược không thể được sử dụng như là một " "tên cột mà không có các ngoặc sau." #: src/Components/CreateDefinition.php:268 #, fuzzy #| msgid "Variable name was expected." msgid "A symbol name was expected!" msgstr "Cần tên biến." #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "Cần dấu phẩy hoặc dấu ngoặc ôm đóng." #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "Cần dấu ngoặc ôm đóng." #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "Không nhận ra kiểu dữ liệu." #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "Cần một biểu thức." #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "Cần một bí danh." #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "Gặp dấu chấm không cần." #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "Gặp thẻ bài không cần." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "Cần vị trí tương đối." #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "Kết thúc bất ngờ của biểu thức LOCK." #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "Tùy chọn này xung đột với \"%1$s\"." #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "Cần tên cũ của bảng." #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "Cần từ khóa \"TO\"." #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "Cần tên mới của bảng." #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "Cần thao tác đổi tên." #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "Thiếu biểu thức chính quy." #: src/Lexer.php:274 msgid "Unexpected character." msgstr "Gặp ký tự không cần." #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "Cần các khoảng trắng trước dấu phân tách." #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "Cần dấu phân tách." #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "Cần trích dẫn đóng %1$s." #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "Cần tên biến." #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "Gặp phần đầu mệnh đề không cần." #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "Không thừa nhận kiểu mệnh đề." #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "Chưa có giao địch nào đã bắt đầu trước đây." #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "Kiểu của mệnh đề này đã được phân tích trước đây." #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "Không nhận ra từ khóa." #: src/Statement.php:409 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Keyword at end of statement." msgstr "Gặp phần đầu mệnh đề không cần." #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "Đặt mệnh đề không mong muốn." #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "Cần tên của thực thể." #: src/Statements/CreateStatement.php:598 #, fuzzy #| msgid "Variable name was expected." msgid "A table name was expected." msgstr "Cần tên biến." #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "Chưa có bảng nào được chọn." #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "Cần từ khóa \"RETURNS\"." #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "Mệnh đề loại này không hợp lệ trong các truy vấn Đa bảng." #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of LOCK statement." msgstr "Gặp phần đầu mệnh đề không cần." #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "Từ khóa không mong muốn" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The name of the entity was expected." msgid "The name of the CTE was expected." msgstr "Cần tên của thực thể." #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "A \"RETURNS\" keyword was expected." msgid "AS keyword was expected." msgstr "Cần từ khóa \"RETURNS\"." #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The name of the entity was expected." msgid "Subquery of the CTE was expected." msgstr "Cần tên của thực thể." #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of the WITH CTE." msgstr "Gặp phần đầu mệnh đề không cần." #~ msgid "Unexpected end of Lock expression." #~ msgstr "Kết thúc bất ngờ của biểu thức LOCK." #~ msgid "error #1" #~ msgstr "lỗi #1" #~ msgid "strict error" #~ msgstr "lỗi nghiêm ngặt" sql-parser-5.9.0/locale/vls/000077500000000000000000000000001455302707200156665ustar00rootroot00000000000000sql-parser-5.9.0/locale/vls/LC_MESSAGES/000077500000000000000000000000001455302707200174535ustar00rootroot00000000000000sql-parser-5.9.0/locale/vls/LC_MESSAGES/sqlparser.mo000066400000000000000000000007731455302707200220330ustar00rootroot00000000000000$,89Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2014-12-23 23:39+0200 Last-Translator: Robin van der Vliet Language-Team: West Flemish Language: vls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; X-Generator: Weblate 2.2-dev sql-parser-5.9.0/locale/vls/LC_MESSAGES/sqlparser.po000066400000000000000000000164721455302707200220410ustar00rootroot00000000000000# phpMyAdmin translation. # Copyright (C) 2003 - 2013 phpMyAdmin devel team # This file is distributed under the same license as the phpMyAdmin package. # Automatically generated, 2013. # msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2014-12-23 23:39+0200\n" "Last-Translator: Robin van der Vliet \n" "Language-Team: West Flemish \n" "Language: vls\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 2.2-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "" #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "" #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "" #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "" #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "" #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "" #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "" #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "" #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "" #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "" #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "" #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "" #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "" #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "" #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "" sql-parser-5.9.0/locale/zh_CN/000077500000000000000000000000001455302707200160635ustar00rootroot00000000000000sql-parser-5.9.0/locale/zh_CN/LC_MESSAGES/000077500000000000000000000000001455302707200176505ustar00rootroot00000000000000sql-parser-5.9.0/locale/zh_CN/LC_MESSAGES/sqlparser.mo000066400000000000000000000120271455302707200222230ustar00rootroot000000000000006I|*!*L9 c'B#[<  F,g( 4)^&r-!!$ 'E 'm " 8 * " ? U !e " !     3 E c {    ,   $ KkW-) Wx3!5Wr+ !# E(S|-$Mr!:Vo),)'  .%53 0*2 $ (-&4+1!/#6"%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.AS keyword was expected.An alias expected after AS but got An alias was expected after AS.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing comma before start of a new alter operation.Missing expression.No transaction was previously started.Not implemented yet.Potential duplicate alias of CASE expression.Subquery of the CTE was expected.The name of the CTE was expected.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected end of LOCK statement.Unexpected end of the WITH CTE.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Chinese (Simplified) Language: zh_CN MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; X-Generator: Weblate 4.16-dev 应有%1$d个值,但查找到了%2$d个。应有“RETURNS”关键字。应有一个右括号。应该是有逗号或结束括号。发现了一个新的声明,但它与前一声明之间没有分隔符。应进行重命名操作。应该有一个符号名称!应该有一个符号名称!保留的关键字不能用作没有反引号的列名。应有表名。应有“AS”关键字。AS关键字后应跟随别名,但是发现 AS关键字后应跟随别名。应该有一个别名。之前发现了一个别名。应该为一个表达式。应该为一个偏移。应该有一个开头括号后面跟着一组值。应该有一个左括号。至少应有一个字段定义。应有结束引号 %1$s。应有分隔符。分隔符之前应有空格。应为关键词“TO”。声明结尾处的关键字。在新的 alter 操作之前缺少逗号。缺少正则表达式。之前没有开始任何事务。还未实现.CASE表达式有潜在的重复别名。应为CTE的子查询。应该有CTE的名字。应有该实体的名称。应有表的新名称。需要有表的旧名称。此选项与“%1$s”冲突。此类型的子句在多表查询中无效。之前已解析此类型的子句。不应出现的开始声明。缺少字符。不应出现的点。CASE表达式意外结束LOCK表达式意外结束。LOCK语句意外结束。CTE语句意外结束。不应出现的关键词不应出现的关键词。错误的语句顺序。意外的标记.无法识别的变更(alter)操作。无法识别的数据类型。不能识别的关键词。无法识别的声明形式。应有变量名。sql-parser-5.9.0/locale/zh_CN/LC_MESSAGES/sqlparser.po000066400000000000000000000216131455302707200222270ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Chinese (Simplified) \n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "还未实现." #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "发现了一个新的声明,但它与前一声明之间没有分隔符。" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "在新的 alter 操作之前缺少逗号。" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "无法识别的变更(alter)操作。" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "应有%1$d个值,但查找到了%2$d个。" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "应该有一个开头括号后面跟着一组值。" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "应该有一个左括号。" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "不应出现的关键词。" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "CASE表达式意外结束" #: src/Components/CaseExpression.php:212 msgid "Potential duplicate alias of CASE expression." msgstr "CASE表达式有潜在的重复别名。" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "AS关键字后应跟随别名,但是发现 " #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "之前发现了一个别名。" #: src/Components/CaseExpression.php:252 msgid "An alias was expected after AS." msgstr "AS关键字后应跟随别名。" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "应该有一个符号名称!保留的关键字不能用作没有反引号的列名。" #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "应该有一个符号名称!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "应该是有逗号或结束括号。" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "应有一个右括号。" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "无法识别的数据类型。" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "应该为一个表达式。" #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "应该有一个别名。" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "不应出现的点。" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "意外的标记." #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "应该为一个偏移。" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "LOCK表达式意外结束。" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "此选项与“%1$s”冲突。" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "需要有表的旧名称。" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "应为关键词“TO”。" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "应有表的新名称。" #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "应进行重命名操作。" #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "缺少正则表达式。" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "缺少字符。" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "分隔符之前应有空格。" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "应有分隔符。" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "应有结束引号 %1$s。" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "应有变量名。" #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "不应出现的开始声明。" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "无法识别的声明形式。" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "之前没有开始任何事务。" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "之前已解析此类型的子句。" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "不能识别的关键词。" #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "声明结尾处的关键字。" #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "错误的语句顺序。" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "应有该实体的名称。" #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "应有表名。" #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "至少应有一个字段定义。" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "应有“RETURNS”关键字。" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "此类型的子句在多表查询中无效。" #: src/Statements/LockStatement.php:120 msgid "Unexpected end of LOCK statement." msgstr "LOCK语句意外结束。" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "不应出现的关键词" #: src/Statements/WithStatement.php:118 msgid "The name of the CTE was expected." msgstr "应该有CTE的名字。" #: src/Statements/WithStatement.php:137 msgid "AS keyword was expected." msgstr "应有“AS”关键字。" #: src/Statements/WithStatement.php:149 msgid "Subquery of the CTE was expected." msgstr "应为CTE的子查询。" #: src/Statements/WithStatement.php:266 msgid "Unexpected end of the WITH CTE." msgstr "CTE语句意外结束。" #~ msgid "Unexpected end of Lock expression." #~ msgstr "LOCK表达式意外结束。" #~ msgid "error #1" #~ msgstr "错误 #1" #~ msgid "strict error" #~ msgstr "严格错误" sql-parser-5.9.0/locale/zh_TW/000077500000000000000000000000001455302707200161155ustar00rootroot00000000000000sql-parser-5.9.0/locale/zh_TW/LC_MESSAGES/000077500000000000000000000000001455302707200177025ustar00rootroot00000000000000sql-parser-5.9.0/locale/zh_TW/LC_MESSAGES/sqlparser.mo000066400000000000000000000105431455302707200222560ustar00rootroot00000000000000-=*! .*NLy cg< ),Jw( & G$\''"8*-"X{!" - ? ] u    - &  ' E( $n  T   3 O h $  $ & *2]|+$$+#P-t*!!>^w !%G+*)"'# %  &- ! $ ,(%1$d values were expected, but found %2$d.A "RETURNS" keyword was expected.A closing bracket was expected.A comma or a closing bracket was expected.A new statement was found, but no delimiter between it and the previous one.A rename operation was expected.A symbol name was expected!A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.A table name was expected.An alias was expected.An alias was previously found.An expression was expected.An offset was expected.An opening bracket followed by a set of values was expected.An opening bracket was expected.At least one column definition was expected.Ending quote %1$s was expected.Expected delimiter.Expected whitespace(s) before delimiter.Keyword "TO" was expected.Keyword at end of statement.Missing expression.No transaction was previously started.Not implemented yet.The name of the entity was expected.The new name of the table was expected.The old name of the table was expected.This option conflicts with "%1$s".This type of clause is not valid in Multi-table queries.This type of clause was previously parsed.Unexpected beginning of statement.Unexpected character.Unexpected dot.Unexpected end of CASE expressionUnexpected end of LOCK expression.Unexpected keywordUnexpected keyword.Unexpected ordering of clauses.Unexpected token.Unrecognized alter operation.Unrecognized data type.Unrecognized keyword.Unrecognized statement type.Variable name was expected.Project-Id-Version: SQL parser 5 Report-Msgid-Bugs-To: translators@phpmyadmin.net PO-Revision-Date: 2023-01-26 07:10+0000 Last-Translator: liviuconcioiu Language-Team: Chinese (Traditional) Language: zh_TW MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; X-Generator: Weblate 4.16-dev 預期 %1$d 個數值,但找到 %2$d 個。預期要使用 "RETURNS" 關鍵字。預期要有結束括號。預期要有逗號或者結束括號。找到新的陳述句,但與前一陳述句之間沒有分隔符。預期要有重新命名的操作。預期要有符號名稱!預期有一個符號!保留字不可以在沒有反引號時用作欄位名稱。預期有表格名稱。預期要有別名。已於前面找到別名。預期要有表示式。預期要有偏移量(Offset)。預期開括號後有一組數值。預期要有開始括號。預期要至少一個欄位定義。預期要於結束使用括號 %1$s。預期要有分隔符號。預期要有空白於分隔符號之前。預期要有 "TO" 關鍵字。陳述句結尾的關鍵字。缺少表達式。前面未開啟交易(Transaction)模式。尚未實作。預期要有實體名稱。預期要有新的資料表名稱。預期要有舊的資料表名稱。此選項與 "%1$s" 發生衝突。此類型的子句不可用於多表查詢。此類型的子句已於前面解析過。預期之外的陳述句開頭。預期之外的字元。預期之外的句點。預期之外的CASE陳述式預期之外的LOCK陳述式。預期之外的關鍵字預期之外的關鍵字。預期之外的排序語句。預期之外的符號。無法識別的修改操作。無法識別的資料類型。無法辨識的關鍵字。無法辨識的陳述句類型。預期要有變數名稱。sql-parser-5.9.0/locale/zh_TW/LC_MESSAGES/sqlparser.po000066400000000000000000000224711455302707200222640ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: SQL parser 5\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2023-02-26 22:46+0100\n" "PO-Revision-Date: 2023-01-26 07:10+0000\n" "Last-Translator: liviuconcioiu \n" "Language-Team: Chinese (Traditional) \n" "Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Weblate 4.16-dev\n" #: src/Component.php:39 src/Component.php:59 msgid "Not implemented yet." msgstr "尚未實作。" #: src/Components/AlterOperation.php:415 src/Statement.php:359 msgid "" "A new statement was found, but no delimiter between it and the previous one." msgstr "找到新的陳述句,但與前一陳述句之間沒有分隔符。" #: src/Components/AlterOperation.php:427 msgid "Missing comma before start of a new alter operation." msgstr "" #: src/Components/AlterOperation.php:472 msgid "Unrecognized alter operation." msgstr "無法識別的修改操作。" #: src/Components/Array2d.php:88 #, php-format msgid "%1$d values were expected, but found %2$d." msgstr "預期 %1$d 個數值,但找到 %2$d 個。" #: src/Components/Array2d.php:108 msgid "An opening bracket followed by a set of values was expected." msgstr "預期開括號後有一組數值。" #: src/Components/ArrayObj.php:106 src/Components/CreateDefinition.php:233 msgid "An opening bracket was expected." msgstr "預期要有開始括號。" #: src/Components/CaseExpression.php:133 src/Components/CaseExpression.php:161 #: src/Components/CaseExpression.php:172 src/Components/CaseExpression.php:184 #: src/Components/IndexHint.php:134 src/Components/IndexHint.php:164 #: src/Components/LockExpression.php:173 src/Components/LockExpression.php:180 #: src/Components/LockExpression.php:188 src/Statements/DeleteStatement.php:249 #: src/Statements/DeleteStatement.php:268 #: src/Statements/DeleteStatement.php:308 #: src/Statements/DeleteStatement.php:320 #: src/Statements/DeleteStatement.php:346 #: src/Statements/DeleteStatement.php:353 #: src/Statements/InsertStatement.php:189 #: src/Statements/InsertStatement.php:220 src/Statements/LoadStatement.php:265 #: src/Statements/LockStatement.php:85 src/Statements/ReplaceStatement.php:149 #: src/Statements/ReplaceStatement.php:178 msgid "Unexpected keyword." msgstr "預期之外的關鍵字。" #: src/Components/CaseExpression.php:192 msgid "Unexpected end of CASE expression" msgstr "預期之外的CASE陳述式" #: src/Components/CaseExpression.php:212 #, fuzzy #| msgid "Unexpected end of CASE expression" msgid "Potential duplicate alias of CASE expression." msgstr "預期之外的CASE陳述式" #: src/Components/CaseExpression.php:225 msgid "An alias expected after AS but got " msgstr "" #: src/Components/CaseExpression.php:238 src/Components/Expression.php:352 #: src/Components/Expression.php:372 src/Components/Expression.php:424 msgid "An alias was previously found." msgstr "已於前面找到別名。" #: src/Components/CaseExpression.php:252 #, fuzzy #| msgid "An alias was expected." msgid "An alias was expected after AS." msgstr "預期要有別名。" #: src/Components/CreateDefinition.php:255 msgid "" "A symbol name was expected! A reserved keyword can not be used as a column " "name without backquotes." msgstr "預期有一個符號!保留字不可以在沒有反引號時用作欄位名稱。" #: src/Components/CreateDefinition.php:268 msgid "A symbol name was expected!" msgstr "預期要有符號名稱!" #: src/Components/CreateDefinition.php:300 msgid "A comma or a closing bracket was expected." msgstr "預期要有逗號或者結束括號。" #: src/Components/CreateDefinition.php:313 src/Statements/WithStatement.php:328 msgid "A closing bracket was expected." msgstr "預期要有結束括號。" #: src/Components/DataType.php:130 msgid "Unrecognized data type." msgstr "無法識別的資料類型。" #: src/Components/ExpressionArray.php:106 src/Statements/WithStatement.php:197 msgid "An expression was expected." msgstr "預期要有表示式。" #: src/Components/Expression.php:257 src/Components/Expression.php:435 msgid "An alias was expected." msgstr "預期要有別名。" #: src/Components/Expression.php:403 msgid "Unexpected dot." msgstr "預期之外的句點。" #: src/Components/IndexHint.php:140 src/Components/IndexHint.php:170 #: src/Components/Key.php:259 src/Components/LockExpression.php:161 #: src/Components/SetOperation.php:138 src/Statement.php:258 #: src/Statements/DeleteStatement.php:263 #: src/Statements/DeleteStatement.php:315 #: src/Statements/ExplainStatement.php:161 #: src/Statements/InsertStatement.php:203 #: src/Statements/InsertStatement.php:240 src/Statements/LoadStatement.php:270 #: src/Statements/LoadStatement.php:291 src/Statements/LoadStatement.php:310 #: src/Statements/LockStatement.php:93 src/Statements/LockStatement.php:100 #: src/Statements/PurgeStatement.php:106 src/Statements/PurgeStatement.php:119 #: src/Statements/PurgeStatement.php:140 #: src/Statements/ReplaceStatement.php:163 src/Statements/WithStatement.php:132 msgid "Unexpected token." msgstr "預期之外的符號。" #: src/Components/Limit.php:78 src/Components/Limit.php:105 msgid "An offset was expected." msgstr "預期要有偏移量(Offset)。" #: src/Components/LockExpression.php:91 src/Components/LockExpression.php:201 msgid "Unexpected end of LOCK expression." msgstr "預期之外的LOCK陳述式。" #: src/Components/OptionsArray.php:146 #, php-format msgid "This option conflicts with \"%1$s\"." msgstr "此選項與 \"%1$s\" 發生衝突。" #: src/Components/RenameOperation.php:103 msgid "The old name of the table was expected." msgstr "預期要有舊的資料表名稱。" #: src/Components/RenameOperation.php:109 msgid "Keyword \"TO\" was expected." msgstr "預期要有 \"TO\" 關鍵字。" #: src/Components/RenameOperation.php:124 msgid "The new name of the table was expected." msgstr "預期要有新的資料表名稱。" #: src/Components/RenameOperation.php:140 msgid "A rename operation was expected." msgstr "預期要有重新命名的操作。" #: src/Components/SetOperation.php:121 msgid "Missing expression." msgstr "缺少表達式。" #: src/Lexer.php:274 msgid "Unexpected character." msgstr "預期之外的字元。" #: src/Lexer.php:313 msgid "Expected whitespace(s) before delimiter." msgstr "預期要有空白於分隔符號之前。" #: src/Lexer.php:329 src/Lexer.php:348 msgid "Expected delimiter." msgstr "預期要有分隔符號。" #: src/Lexer.php:1004 #, php-format msgid "Ending quote %1$s was expected." msgstr "預期要於結束使用括號 %1$s。" #: src/Lexer.php:1056 msgid "Variable name was expected." msgstr "預期要有變數名稱。" #: src/Parser.php:456 msgid "Unexpected beginning of statement." msgstr "預期之外的陳述句開頭。" #: src/Parser.php:499 msgid "Unrecognized statement type." msgstr "無法辨識的陳述句類型。" #: src/Parser.php:587 msgid "No transaction was previously started." msgstr "前面未開啟交易(Transaction)模式。" #: src/Statement.php:327 msgid "This type of clause was previously parsed." msgstr "此類型的子句已於前面解析過。" #: src/Statement.php:398 msgid "Unrecognized keyword." msgstr "無法辨識的關鍵字。" #: src/Statement.php:409 msgid "Keyword at end of statement." msgstr "陳述句結尾的關鍵字。" #: src/Statement.php:555 msgid "Unexpected ordering of clauses." msgstr "預期之外的排序語句。" #: src/Statements/CreateStatement.php:549 msgid "The name of the entity was expected." msgstr "預期要有實體名稱。" #: src/Statements/CreateStatement.php:598 msgid "A table name was expected." msgstr "預期有表格名稱。" #: src/Statements/CreateStatement.php:603 msgid "At least one column definition was expected." msgstr "預期要至少一個欄位定義。" #: src/Statements/CreateStatement.php:707 msgid "A \"RETURNS\" keyword was expected." msgstr "預期要使用 \"RETURNS\" 關鍵字。" #: src/Statements/DeleteStatement.php:329 msgid "This type of clause is not valid in Multi-table queries." msgstr "此類型的子句不可用於多表查詢。" #: src/Statements/LockStatement.php:120 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of LOCK statement." msgstr "預期之外的陳述句開頭。" #: src/Statements/PurgeStatement.php:138 msgid "Unexpected keyword" msgstr "預期之外的關鍵字" #: src/Statements/WithStatement.php:118 #, fuzzy #| msgid "The name of the entity was expected." msgid "The name of the CTE was expected." msgstr "預期要有實體名稱。" #: src/Statements/WithStatement.php:137 #, fuzzy #| msgid "A \"RETURNS\" keyword was expected." msgid "AS keyword was expected." msgstr "預期要使用 \"RETURNS\" 關鍵字。" #: src/Statements/WithStatement.php:149 #, fuzzy #| msgid "The name of the entity was expected." msgid "Subquery of the CTE was expected." msgstr "預期要有實體名稱。" #: src/Statements/WithStatement.php:266 #, fuzzy #| msgid "Unexpected beginning of statement." msgid "Unexpected end of the WITH CTE." msgstr "預期之外的陳述句開頭。" #~ msgid "Unexpected end of Lock expression." #~ msgstr "預期之外的LOCK陳述式。" #~ msgid "error #1" #~ msgstr "錯誤 #1" #~ msgid "strict error" #~ msgstr "嚴謹錯誤" sql-parser-5.9.0/phpunit.xml.dist000066400000000000000000000037161455302707200170050ustar00rootroot00000000000000 ./tests/Builder ./tests/Components ./tests/Lexer ./tests/Misc ./tests/Parser ./tests/Utils ./tests/Tools ./tests/Tools/templates/ ./tests/Tools/contexts/ src/ sql-parser-5.9.0/src/000077500000000000000000000000001455302707200144125ustar00rootroot00000000000000sql-parser-5.9.0/src/Component.php000066400000000000000000000042101455302707200170620ustar00rootroot00000000000000 $options parameters for parsing * * @return mixed * * @throws Exception not implemented yet. */ public static function parse( Parser $parser, TokensList $list, array $options = [] ) { // This method should be abstract, but it can't be both static and // abstract. throw new Exception(Translator::gettext('Not implemented yet.')); } /** * Builds the string representation of a component of this type. * * In other words, this function represents the inverse function of * `static::parse`. * * @param mixed $component the component to be built * @param array $options parameters for building * * @return mixed * * @throws Exception not implemented yet. */ public static function build($component, array $options = []) { // This method should be abstract, but it can't be both static and // abstract. throw new Exception(Translator::gettext('Not implemented yet.')); } /** * Builds the string representation of a component of this type. * * @see static::build * * @return string */ public function __toString() { return static::build($this); } } sql-parser-5.9.0/src/Components/000077500000000000000000000000001455302707200165375ustar00rootroot00000000000000sql-parser-5.9.0/src/Components/AlterOperation.php000066400000000000000000000425031455302707200222040ustar00rootroot00000000000000> * @psalm-var array [ 1, 'var', ], 'CHARSET' => [ 1, 'var', ], 'DEFAULT CHARACTER SET' => [ 1, 'var', ], 'DEFAULT CHARSET' => [ 1, 'var', ], 'UPGRADE' => [ 1, 'var', ], 'COLLATE' => [ 2, 'var', ], 'DEFAULT COLLATE' => [ 2, 'var', ], ]; /** * All table options. * * @var array> * @psalm-var array [ 1, 'var=', ], 'ALGORITHM' => [ 1, 'var=', ], 'AUTO_INCREMENT' => [ 1, 'var=', ], 'AVG_ROW_LENGTH' => [ 1, 'var', ], 'COALESCE PARTITION' => [ 1, 'var', ], 'LOCK' => [ 1, 'var=', ], 'MAX_ROWS' => [ 1, 'var', ], 'ROW_FORMAT' => [ 1, 'var', ], 'COMMENT' => [ 1, 'var', ], 'ADD' => 1, 'ALTER' => 1, 'ANALYZE' => 1, 'CHANGE' => 1, 'CHARSET' => 1, 'CHECK' => 1, 'CONVERT' => 1, 'DEFAULT CHARSET' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DROP' => 1, 'ENABLE' => 1, 'IMPORT' => 1, 'MODIFY' => 1, 'OPTIMIZE' => 1, 'ORDER' => 1, 'REBUILD' => 1, 'REMOVE' => 1, 'RENAME' => 1, 'REORGANIZE' => 1, 'REPAIR' => 1, 'UPGRADE' => 1, 'COLUMN' => 2, 'CONSTRAINT' => 2, 'DEFAULT' => 2, 'BY' => 2, 'FOREIGN' => 2, 'FULLTEXT' => 2, 'KEY' => 2, 'KEYS' => 2, 'PARTITION' => 2, 'PARTITION BY' => 2, 'PARTITIONING' => 2, 'PRIMARY KEY' => 2, 'SPATIAL' => 2, 'TABLESPACE' => 2, 'INDEX' => [ 2, 'var', ], 'CHARACTER SET' => 3, 'TO' => [ 3, 'var', ], ]; /** * All user options. * * @var array> * @psalm-var array [ 1, 'var', ], 'COMMENT' => [ 1, 'var', ], 'REQUIRE' => [ 1, 'var', ], 'IDENTIFIED VIA' => [ 2, 'var', ], 'IDENTIFIED WITH' => [ 2, 'var', ], 'PASSWORD' => [ 2, 'var', ], 'WITH' => [ 2, 'var', ], 'BY' => [ 4, 'expr', ], 'ACCOUNT' => 1, 'DEFAULT' => 1, 'LOCK' => 2, 'UNLOCK' => 2, 'IDENTIFIED' => 3, ]; /** * All view options. * * @var array> * @psalm-var array 1]; /** * All event options. * * @var array> * @psalm-var array 1, 'EVERY' => [ 2, 'expr', ], 'AT' => [ 2, 'expr', ], 'STARTS' => [ 3, 'expr', ], 'ENDS' => [ 4, 'expr', ], 'ON COMPLETION PRESERVE' => 5, 'ON COMPLETION NOT PRESERVE' => 5, 'RENAME' => 6, 'TO' => [7, 'expr', ['parseField' => 'table', 'breakOnAlias' => true]], 'ENABLE' => 8, 'DISABLE' => 8, 'DISABLE ON SLAVE' => 8, 'COMMENT' => [ 9, 'var', ], 'DO' => 10, ]; /** * Options of this operation. * * @var OptionsArray */ public $options; /** * The altered field. * * @var Expression|string|null */ public $field; /** * The partitions. * * @var Component[]|ArrayObj|null */ public $partitions; /** * Unparsed tokens. * * @var Token[]|string */ public $unknown = []; /** * @param OptionsArray $options options of alter operation * @param Expression|string|null $field altered field * @param Component[]|ArrayObj|null $partitions partitions definition found in the operation * @param Token[] $unknown unparsed tokens found at the end of operation */ public function __construct( $options = null, $field = null, $partitions = null, $unknown = [] ) { $this->partitions = $partitions; $this->options = $options; $this->field = $field; $this->unknown = $unknown; } /** * @param Parser $parser the parser that serves as context * @param TokensList $list the list of tokens that are being parsed * @param array $options parameters for parsing * * @return AlterOperation */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = new static(); /** * Counts brackets. * * @var int */ $brackets = 0; /** * The state of the parser. * * Below are the states of the parser. * * 0 ---------------------[ options ]---------------------> 1 * * 1 ----------------------[ field ]----------------------> 2 * * 1 -------------[ PARTITION / PARTITION BY ]------------> 3 * * 2 -------------------------[ , ]-----------------------> 0 * * @var int */ $state = 0; /** * partition state. * * @var int */ $partitionState = 0; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping comments. if ($token->type === Token::TYPE_COMMENT) { continue; } // Skipping whitespaces. if ($token->type === Token::TYPE_WHITESPACE) { if ($state === 2) { // When parsing the unknown part, the whitespaces are // included to not break anything. $ret->unknown[] = $token; continue; } } if ($state === 0) { $ret->options = OptionsArray::parse($parser, $list, $options); // Not only when aliasing but also when parsing the body of an event, we just list the tokens of the // body in the unknown tokens list, as they define their own statements. if ($ret->options->has('AS') || $ret->options->has('DO')) { for (; $list->idx < $list->count; ++$list->idx) { if ($list->tokens[$list->idx]->type === Token::TYPE_DELIMITER) { break; } $ret->unknown[] = $list->tokens[$list->idx]; } break; } $state = 1; if ($ret->options->has('PARTITION') || $token->value === 'PARTITION BY') { $state = 3; $list->getPrevious(); // in order to check whether it's partition or partition by. } } elseif ($state === 1) { $ret->field = Expression::parse( $parser, $list, [ 'breakOnAlias' => true, 'parseField' => 'column', ] ); if ($ret->field === null) { // No field was read. We go back one token so the next // iteration will parse the same token, but in state 2. --$list->idx; } // If the operation is a RENAME COLUMN, now we have detected the field to rename, we need to parse // again the options to get the new name of the column. if ($ret->options->has('RENAME') && $ret->options->has('COLUMN')) { $nextOptions = OptionsArray::parse($parser, $list, $options); $ret->options->merge($nextOptions); } $state = 2; } elseif ($state === 2) { if (is_string($token->value) || is_int($token->value)) { $arrayKey = $token->value; } else { $arrayKey = $token->token; } if ($token->type === Token::TYPE_OPERATOR) { if ($token->value === '(') { ++$brackets; } elseif ($token->value === ')') { --$brackets; } elseif (($token->value === ',') && ($brackets === 0)) { break; } } elseif (! self::checkIfTokenQuotedSymbol($token) && $token->type !== Token::TYPE_STRING) { if (isset(Parser::$STATEMENT_PARSERS[$arrayKey]) && Parser::$STATEMENT_PARSERS[$arrayKey] !== '') { $list->idx++; // Ignore the current token $nextToken = $list->getNext(); if ($token->value === 'SET' && $nextToken !== null && $nextToken->value === '(') { // To avoid adding the tokens between the SET() parentheses to the unknown tokens $list->getNextOfTypeAndValue(Token::TYPE_OPERATOR, ')'); } elseif ($token->value === 'SET' && $nextToken !== null && $nextToken->value === 'DEFAULT') { // to avoid adding the `DEFAULT` token to the unknown tokens. ++$list->idx; } else { // We have reached the end of ALTER operation and suddenly found // a start to new statement, but have not found a delimiter between them $parser->error( 'A new statement was found, but no delimiter between it and the previous one.', $token ); break; } } elseif ( (array_key_exists($arrayKey, self::$DB_OPTIONS) || array_key_exists($arrayKey, self::$TABLE_OPTIONS)) && ! self::checkIfColumnDefinitionKeyword($arrayKey) ) { // This alter operation has finished, which means a comma // was missing before start of new alter operation $parser->error('Missing comma before start of a new alter operation.', $token); break; } } $ret->unknown[] = $token; } elseif ($state === 3) { if ($partitionState === 0) { $list->idx++; // Ignore the current token $nextToken = $list->getNext(); if ( ($token->type === Token::TYPE_KEYWORD) && (($token->keyword === 'PARTITION BY') || ($token->keyword === 'PARTITION' && $nextToken && $nextToken->value !== '(')) ) { $partitionState = 1; } elseif (($token->type === Token::TYPE_KEYWORD) && ($token->keyword === 'PARTITION')) { $partitionState = 2; } --$list->idx; // to decrease the idx by one, because the last getNext returned and increased it. // reverting the effect of the getNext $list->getPrevious(); $list->getPrevious(); ++$list->idx; // to index the idx by one, because the last getPrevious returned and decreased it. } elseif ($partitionState === 1) { // Fetch the next token in a way the current index is reset to manage whitespaces in "field". $currIdx = $list->idx; ++$list->idx; $nextToken = $list->getNext(); $list->idx = $currIdx; // Building the expression used for partitioning. if (empty($ret->field)) { $ret->field = ''; } if ( $token->type === Token::TYPE_OPERATOR && $token->value === '(' && $nextToken && $nextToken->keyword === 'PARTITION' ) { $partitionState = 2; --$list->idx; // Current idx is on "(". We need a step back for ArrayObj::parse incoming. } else { $ret->field .= $token->type === Token::TYPE_WHITESPACE ? ' ' : $token->token; } } elseif ($partitionState === 2) { $ret->partitions = ArrayObj::parse( $parser, $list, ['type' => PartitionDefinition::class] ); } } } if ($ret->options->isEmpty()) { $parser->error('Unrecognized alter operation.', $list->tokens[$list->idx]); } --$list->idx; return $ret; } /** * @param AlterOperation $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { // Specific case of RENAME COLUMN that insert the field between 2 options. $afterFieldsOptions = new OptionsArray(); if ($component->options->has('RENAME') && $component->options->has('COLUMN')) { $afterFieldsOptions = clone $component->options; $afterFieldsOptions->remove('RENAME'); $afterFieldsOptions->remove('COLUMN'); $component->options->remove('TO'); } $ret = $component->options . ' '; if (isset($component->field) && ($component->field !== '')) { $ret .= $component->field . ' '; } $ret .= $afterFieldsOptions . TokensList::build($component->unknown); if (isset($component->partitions)) { $ret .= PartitionDefinition::build($component->partitions); } return trim($ret); } /** * Check if token's value is one of the common keywords * between column and table alteration * * @param string $tokenValue Value of current token * * @return bool */ private static function checkIfColumnDefinitionKeyword($tokenValue) { $commonOptions = [ 'AUTO_INCREMENT', 'COMMENT', 'DEFAULT', 'CHARACTER SET', 'COLLATE', 'PRIMARY', 'UNIQUE', 'PRIMARY KEY', 'UNIQUE KEY', ]; // Since these options can be used for // both table as well as a specific column in the table return in_array($tokenValue, $commonOptions); } /** * Check if token is symbol and quoted with backtick * * @param Token $token token to check * * @return bool */ private static function checkIfTokenQuotedSymbol($token) { return $token->type === Token::TYPE_SYMBOL && $token->flags === Token::FLAG_SYMBOL_BACKTICK; } } sql-parser-5.9.0/src/Components/Array2d.php000066400000000000000000000066161455302707200205650ustar00rootroot00000000000000 $options parameters for parsing * * @return ArrayObj[] */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = []; /** * The number of values in each set. * * @var int */ $count = -1; /** * The state of the parser. * * Below are the states of the parser. * * 0 ----------------------[ array ]----------------------> 1 * * 1 ------------------------[ , ]------------------------> 0 * 1 -----------------------[ else ]----------------------> (END) * * @var int */ $state = 0; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } // No keyword is expected. if (($token->type === Token::TYPE_KEYWORD) && ($token->flags & Token::FLAG_KEYWORD_RESERVED)) { break; } if ($state === 0) { if ($token->value !== '(') { break; } $arr = ArrayObj::parse($parser, $list, $options); $arrCount = count($arr->values); if ($count === -1) { $count = $arrCount; } elseif ($arrCount !== $count) { $parser->error( sprintf( Translator::gettext('%1$d values were expected, but found %2$d.'), $count, $arrCount ), $token ); } $ret[] = $arr; $state = 1; } elseif ($state === 1) { if ($token->value !== ',') { break; } $state = 0; } } if ($state === 0) { $parser->error('An opening bracket followed by a set of values was expected.', $list->tokens[$list->idx]); } --$list->idx; return $ret; } /** * @param ArrayObj[] $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { return ArrayObj::build($component); } } sql-parser-5.9.0/src/Components/ArrayObj.php000066400000000000000000000117571455302707200207740ustar00rootroot00000000000000raw = $raw; $this->values = $values; } /** * @param Parser $parser the parser that serves as context * @param TokensList $list the list of tokens that are being parsed * @param array $options parameters for parsing * * @return ArrayObj|Component[] */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = empty($options['type']) ? new static() : []; /** * The last raw expression. * * @var string */ $lastRaw = ''; /** * The last value. * * @var string */ $lastValue = ''; /** * Counts brackets. * * @var int */ $brackets = 0; /** * Last separator (bracket or comma). * * @var bool */ $isCommaLast = false; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { if ($brackets > 0) { $parser->error('A closing bracket was expected.', $token); } break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { $lastRaw .= $token->token; $lastValue = trim($lastValue) . ' '; continue; } if (($brackets === 0) && (($token->type !== Token::TYPE_OPERATOR) || ($token->value !== '('))) { $parser->error('An opening bracket was expected.', $token); break; } if ($token->type === Token::TYPE_OPERATOR) { if ($token->value === '(') { if (++$brackets === 1) { // 1 is the base level. continue; } } elseif ($token->value === ')') { if (--$brackets === 0) { // Array ended. break; } } elseif ($token->value === ',') { if ($brackets === 1) { $isCommaLast = true; if (empty($options['type'])) { $ret->raw[] = trim($lastRaw); $ret->values[] = trim($lastValue); $lastRaw = $lastValue = ''; } continue; } } } if (empty($options['type'])) { $lastRaw .= $token->token; $lastValue .= $token->value; } else { $ret[] = $options['type']::parse( $parser, $list, empty($options['typeOptions']) ? [] : $options['typeOptions'] ); } } // Handling last element. // // This is treated differently to treat the following cases: // // => [] // [,] => ['', ''] // [] => [] // [a,] => ['a', ''] // [a] => ['a'] $lastRaw = trim($lastRaw); if (empty($options['type']) && ((strlen($lastRaw) > 0) || ($isCommaLast))) { $ret->raw[] = $lastRaw; $ret->values[] = trim($lastValue); } return $ret; } /** * @param ArrayObj|ArrayObj[] $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { if (is_array($component)) { return implode(', ', $component); } if (! empty($component->raw)) { return '(' . implode(', ', $component->raw) . ')'; } return '(' . implode(', ', $component->values) . ')'; } } sql-parser-5.9.0/src/Components/CaseExpression.php000066400000000000000000000233171455302707200222110ustar00rootroot00000000000000 $options parameters for parsing * * @return CaseExpression */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = new static(); /** * State of parser. * * @var int */ $state = 0; /** * Syntax type (type 0 or type 1). * * @var int */ $type = 0; ++$list->idx; // Skip 'CASE' for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } if ($state === 0) { if ($token->type === Token::TYPE_KEYWORD) { switch ($token->keyword) { case 'WHEN': ++$list->idx; // Skip 'WHEN' $newCondition = Condition::parse($parser, $list); $type = 1; $state = 1; $ret->conditions[] = $newCondition; break; case 'ELSE': ++$list->idx; // Skip 'ELSE' $ret->else_result = Expression::parse($parser, $list); $state = 0; // last clause of CASE expression break; case 'END': $state = 3; // end of CASE expression ++$list->idx; break 2; default: $parser->error('Unexpected keyword.', $token); break 2; } } else { $ret->value = Expression::parse($parser, $list); $type = 0; $state = 1; } } elseif ($state === 1) { if ($type === 0) { if ($token->type === Token::TYPE_KEYWORD) { switch ($token->keyword) { case 'WHEN': ++$list->idx; // Skip 'WHEN' $newValue = Expression::parse($parser, $list); $state = 2; $ret->compare_values[] = $newValue; break; case 'ELSE': ++$list->idx; // Skip 'ELSE' $ret->else_result = Expression::parse($parser, $list); $state = 0; // last clause of CASE expression break; case 'END': $state = 3; // end of CASE expression ++$list->idx; break 2; default: $parser->error('Unexpected keyword.', $token); break 2; } } } else { if ($token->type === Token::TYPE_KEYWORD && $token->keyword === 'THEN') { ++$list->idx; // Skip 'THEN' $newResult = Expression::parse($parser, $list); $state = 0; $ret->results[] = $newResult; } elseif ($token->type === Token::TYPE_KEYWORD) { $parser->error('Unexpected keyword.', $token); break; } } } elseif ($state === 2) { if ($type === 0) { if ($token->type === Token::TYPE_KEYWORD && $token->keyword === 'THEN') { ++$list->idx; // Skip 'THEN' $newResult = Expression::parse($parser, $list); $ret->results[] = $newResult; $state = 1; } elseif ($token->type === Token::TYPE_KEYWORD) { $parser->error('Unexpected keyword.', $token); break; } } } } if ($state !== 3) { $parser->error('Unexpected end of CASE expression', $list->tokens[$list->idx - 1]); } else { // Parse for alias of CASE expression $asFound = false; for (; $list->idx < $list->count; ++$list->idx) { $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } // Handle optional AS keyword before alias if ($token->type === Token::TYPE_KEYWORD && $token->keyword === 'AS') { if ($asFound || ! empty($ret->alias)) { $parser->error('Potential duplicate alias of CASE expression.', $token); break; } $asFound = true; continue; } if ( $asFound && $token->type === Token::TYPE_KEYWORD && ($token->flags & Token::FLAG_KEYWORD_RESERVED || $token->flags & Token::FLAG_KEYWORD_FUNCTION) ) { $parser->error('An alias expected after AS but got ' . $token->value, $token); $asFound = false; break; } if ( $asFound || $token->type === Token::TYPE_STRING || ($token->type === Token::TYPE_SYMBOL && ! $token->flags & Token::FLAG_SYMBOL_VARIABLE) || $token->type === Token::TYPE_NONE ) { // An alias is expected (the keyword `AS` was previously found). if (! empty($ret->alias)) { $parser->error('An alias was previously found.', $token); break; } $ret->alias = $token->value; $asFound = false; continue; } break; } if ($asFound) { $parser->error('An alias was expected after AS.', $list->tokens[$list->idx - 1]); } $ret->expr = self::build($ret); } --$list->idx; return $ret; } /** * @param CaseExpression $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { $ret = 'CASE '; if (isset($component->value)) { // Syntax type 0 $ret .= $component->value . ' '; $valuesCount = count($component->compare_values); $resultsCount = count($component->results); for ($i = 0; $i < $valuesCount && $i < $resultsCount; ++$i) { $ret .= 'WHEN ' . $component->compare_values[$i] . ' '; $ret .= 'THEN ' . $component->results[$i] . ' '; } } else { // Syntax type 1 $valuesCount = count($component->conditions); $resultsCount = count($component->results); for ($i = 0; $i < $valuesCount && $i < $resultsCount; ++$i) { $ret .= 'WHEN ' . Condition::build($component->conditions[$i]) . ' '; $ret .= 'THEN ' . $component->results[$i] . ' '; } } if (isset($component->else_result)) { $ret .= 'ELSE ' . $component->else_result . ' '; } $ret .= 'END'; if ($component->alias) { $ret .= ' AS ' . Context::escape($component->alias); } return $ret; } } sql-parser-5.9.0/src/Components/Condition.php000066400000000000000000000141261455302707200212020ustar00rootroot00000000000000 */ public static $ALLOWED_KEYWORDS = [ 'ALL' => 1, 'AND' => 1, 'BETWEEN' => 1, 'COLLATE' => 1, 'EXISTS' => 1, 'IF' => 1, 'IN' => 1, 'INTERVAL' => 1, 'IS' => 1, 'LIKE' => 1, 'MATCH' => 1, 'NOT IN' => 1, 'NOT NULL' => 1, 'NOT' => 1, 'NULL' => 1, 'OR' => 1, 'REGEXP' => 1, 'RLIKE' => 1, 'SOUNDS' => 1, 'XOR' => 1, ]; /** * Identifiers recognized. * * @var array */ public $identifiers = []; /** * Whether this component is an operator. * * @var bool */ public $isOperator = false; /** * The condition. * * @var string */ public $expr; /** * @param string $expr the condition or the operator */ public function __construct($expr = null) { $this->expr = trim((string) $expr); } /** * @param Parser $parser the parser that serves as context * @param TokensList $list the list of tokens that are being parsed * @param array $options parameters for parsing * * @return Condition[] */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = []; $expr = new static(); /** * Counts brackets. * * @var int */ $brackets = 0; /** * Whether there was a `BETWEEN` keyword before or not. * * It is required to keep track of them because their structure contains * the keyword `AND`, which is also an operator that delimits * expressions. * * @var bool */ $betweenBefore = false; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if ($token->type === Token::TYPE_COMMENT) { continue; } // Replacing all whitespaces (new lines, tabs, etc.) with a single // space character. if ($token->type === Token::TYPE_WHITESPACE) { $expr->expr .= ' '; continue; } // Conditions are delimited by logical operators. if (in_array($token->value, static::$DELIMITERS, true)) { if ($betweenBefore && ($token->value === 'AND')) { // The syntax of keyword `BETWEEN` is hard-coded. $betweenBefore = false; } else { // The expression ended. $expr->expr = trim($expr->expr); if (! empty($expr->expr)) { $ret[] = $expr; } // Adding the operator. $expr = new static($token->value); $expr->isOperator = true; $ret[] = $expr; // Preparing to parse another condition. $expr = new static(); continue; } } if ( ($token->type === Token::TYPE_KEYWORD) && ($token->flags & Token::FLAG_KEYWORD_RESERVED) && ! ($token->flags & Token::FLAG_KEYWORD_FUNCTION) ) { if ($token->value === 'BETWEEN') { $betweenBefore = true; } if (($brackets === 0) && empty(static::$ALLOWED_KEYWORDS[$token->value])) { break; } } if ($token->type === Token::TYPE_OPERATOR) { if ($token->value === '(') { ++$brackets; } elseif ($token->value === ')') { if ($brackets === 0) { break; } --$brackets; } } $expr->expr .= $token->token; if ( ($token->type !== Token::TYPE_NONE) && (($token->type !== Token::TYPE_KEYWORD) || ($token->flags & Token::FLAG_KEYWORD_RESERVED)) && ($token->type !== Token::TYPE_STRING) && ($token->type !== Token::TYPE_SYMBOL || ($token->flags & Token::FLAG_SYMBOL_PARAMETER)) ) { continue; } if (in_array($token->value, $expr->identifiers)) { continue; } $expr->identifiers[] = $token->value; } // Last iteration was not processed. $expr->expr = trim($expr->expr); if (! empty($expr->expr)) { $ret[] = $expr; } --$list->idx; return $ret; } /** * @param Condition[] $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { if (is_array($component)) { return implode(' ', $component); } return $component->expr; } } sql-parser-5.9.0/src/Components/CreateDefinition.php000066400000000000000000000251321455302707200224670ustar00rootroot00000000000000>> * @psalm-var array true, 'NOT NULL' => 1, 'NULL' => 1, 'DEFAULT' => [ 2, 'expr', ['breakOnAlias' => true], ], /* Following are not according to grammar, but MySQL happily accepts * these at any location */ 'CHARSET' => [ 2, 'var', ], 'COLLATE' => [ 3, 'var', ], 'AUTO_INCREMENT' => 3, 'KEY' => 4, 'PRIMARY' => 4, 'PRIMARY KEY' => 4, 'UNIQUE' => 4, 'UNIQUE KEY' => 4, 'COMMENT' => [ 5, 'var', ], 'COLUMN_FORMAT' => [ 6, 'var', ], 'ON UPDATE' => [ 7, 'expr', ], // Generated columns options. 'GENERATED ALWAYS' => 8, 'AS' => [ 9, 'expr', ['parenthesesDelimited' => true], ], 'VIRTUAL' => 10, 'PERSISTENT' => 11, 'STORED' => 11, 'CHECK' => [ 12, 'expr', ['parenthesesDelimited' => true], ], 'INVISIBLE' => 13, 'ENFORCED' => 14, 'NOT' => 15, 'COMPRESSED' => 16, // Common entries. // // NOTE: Some of the common options are not in the same order which // causes troubles when checking if the options are in the right order. // I should find a way to define multiple sets of options and make the // parser select the right set. // // 'UNIQUE' => 4, // 'UNIQUE KEY' => 4, // 'COMMENT' => [5, 'var'], // 'NOT NULL' => 1, // 'NULL' => 1, // 'PRIMARY' => 4, // 'PRIMARY KEY' => 4, ]; /** * The name of the new column. * * @var string|null */ public $name; /** * Whether this field is a constraint or not. * * @var bool|null */ public $isConstraint; /** * The data type of thew new column. * * @var DataType|null */ public $type; /** * The key. * * @var Key|null */ public $key; /** * The table that is referenced. * * @var Reference|null */ public $references; /** * The options of this field. * * @var OptionsArray|null */ public $options; /** * @param string|null $name the name of the field * @param OptionsArray|null $options the options of this field * @param DataType|Key|null $type the data type of this field or the key * @param bool $isConstraint whether this field is a constraint or not * @param Reference|null $references references */ public function __construct( $name = null, $options = null, $type = null, $isConstraint = false, $references = null ) { $this->name = $name; $this->options = $options; if ($type instanceof DataType) { $this->type = $type; } elseif ($type instanceof Key) { $this->key = $type; $this->isConstraint = $isConstraint; $this->references = $references; } } /** * @param Parser $parser the parser that serves as context * @param TokensList $list the list of tokens that are being parsed * @param array $options parameters for parsing * * @return CreateDefinition[] */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = []; $expr = new static(); /** * The state of the parser. * * Below are the states of the parser. * * 0 -----------------------[ ( ]------------------------> 1 * * 1 --------------------[ CONSTRAINT ]------------------> 1 * 1 -----------------------[ key ]----------------------> 2 * 1 -------------[ constraint / column name ]-----------> 2 * * 2 --------------------[ data type ]-------------------> 3 * * 3 ---------------------[ options ]--------------------> 4 * * 4 --------------------[ REFERENCES ]------------------> 4 * * 5 ------------------------[ , ]-----------------------> 1 * 5 ------------------------[ ) ]-----------------------> 6 (-1) * * @var int */ $state = 0; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } if ($state === 0) { if (($token->type !== Token::TYPE_OPERATOR) || ($token->value !== '(')) { $parser->error('An opening bracket was expected.', $token); break; } $state = 1; } elseif ($state === 1) { if ($token->type === Token::TYPE_KEYWORD && $token->keyword === 'CONSTRAINT') { $expr->isConstraint = true; } elseif (($token->type === Token::TYPE_KEYWORD) && ($token->flags & Token::FLAG_KEYWORD_KEY)) { $expr->key = Key::parse($parser, $list); $state = 4; } elseif ($token->type === Token::TYPE_SYMBOL || $token->type === Token::TYPE_NONE) { $expr->name = $token->value; if (! $expr->isConstraint) { $state = 2; } } elseif ($token->type === Token::TYPE_KEYWORD) { if ($token->flags & Token::FLAG_KEYWORD_RESERVED) { // Reserved keywords can't be used // as field names without backquotes $parser->error( 'A symbol name was expected! ' . 'A reserved keyword can not be used ' . 'as a column name without backquotes.', $token ); return $ret; } // Non-reserved keywords are allowed without backquotes $expr->name = $token->value; $state = 2; } else { $parser->error('A symbol name was expected!', $token); return $ret; } } elseif ($state === 2) { $expr->type = DataType::parse($parser, $list); $state = 3; } elseif ($state === 3) { $expr->options = OptionsArray::parse($parser, $list, static::$FIELD_OPTIONS); $state = 4; } elseif ($state === 4) { if ($token->type === Token::TYPE_KEYWORD && $token->keyword === 'REFERENCES') { ++$list->idx; // Skipping keyword 'REFERENCES'. $expr->references = Reference::parse($parser, $list); } else { --$list->idx; } $state = 5; } elseif ($state === 5) { if (! empty($expr->type) || ! empty($expr->key)) { $ret[] = $expr; } $expr = new static(); if ($token->value === ',') { $state = 1; } elseif ($token->value === ')') { $state = 6; ++$list->idx; break; } else { $parser->error('A comma or a closing bracket was expected.', $token); $state = 0; break; } } } // Last iteration was not saved. if (! empty($expr->type) || ! empty($expr->key)) { $ret[] = $expr; } if (($state !== 0) && ($state !== 6)) { $parser->error('A closing bracket was expected.', $list->tokens[$list->idx - 1]); } --$list->idx; return $ret; } /** * @param CreateDefinition|CreateDefinition[] $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { if (is_array($component)) { return "(\n " . implode(",\n ", $component) . "\n)"; } $tmp = ''; if ($component->isConstraint) { $tmp .= 'CONSTRAINT '; } if (isset($component->name) && ($component->name !== '')) { $tmp .= Context::escape($component->name) . ' '; } if (! empty($component->type)) { $tmp .= DataType::build( $component->type, ['lowercase' => true] ) . ' '; } if (! empty($component->key)) { $tmp .= $component->key . ' '; } if (! empty($component->references)) { $tmp .= 'REFERENCES ' . $component->references . ' '; } $tmp .= $component->options; return trim($tmp); } } sql-parser-5.9.0/src/Components/DataType.php000066400000000000000000000113241455302707200207640ustar00rootroot00000000000000> * @psalm-var array 1, 'CHARACTER SET' => [ 2, 'var', ], 'CHARSET' => [ 2, 'var', ], 'COLLATE' => [ 3, 'var', ], 'UNSIGNED' => 4, 'ZEROFILL' => 5, ]; /** * The name of the data type. * * @var string */ public $name; /** * The parameters of this data type. * * Some data types have no parameters. * Numeric types might have parameters for the maximum number of digits, * precision, etc. * String types might have parameters for the maximum length stored. * `ENUM` and `SET` have parameters for possible values. * * For more information, check the MySQL manual. * * @var int[]|string[] */ public $parameters = []; /** * The options of this data type. * * @var OptionsArray */ public $options; /** * @param string $name the name of this data type * @param int[]|string[] $parameters the parameters (size or possible values) * @param OptionsArray $options the options of this data type */ public function __construct( $name = null, array $parameters = [], $options = null ) { $this->name = $name; $this->parameters = $parameters; $this->options = $options; } /** * @param Parser $parser the parser that serves as context * @param TokensList $list the list of tokens that are being parsed * @param array $options parameters for parsing * * @return DataType|null */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = new static(); /** * The state of the parser. * * Below are the states of the parser. * * 0 -------------------[ data type ]--------------------> 1 * * 1 ----------------[ size and options ]----------------> 2 * * @var int */ $state = 0; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } if ($state === 0) { $ret->name = strtoupper((string) $token->value); if (($token->type !== Token::TYPE_KEYWORD) || (! ($token->flags & Token::FLAG_KEYWORD_DATA_TYPE))) { $parser->error('Unrecognized data type.', $token); } $state = 1; } elseif ($state === 1) { if (($token->type === Token::TYPE_OPERATOR) && ($token->value === '(')) { $parameters = ArrayObj::parse($parser, $list); ++$list->idx; $ret->parameters = ($ret->name === 'ENUM') || ($ret->name === 'SET') ? $parameters->raw : $parameters->values; } $ret->options = OptionsArray::parse($parser, $list, static::$DATA_TYPE_OPTIONS); ++$list->idx; break; } } if (empty($ret->name)) { return null; } --$list->idx; return $ret; } /** * @param DataType $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { $name = empty($options['lowercase']) ? $component->name : strtolower($component->name); $parameters = ''; if (! empty($component->parameters)) { $parameters = '(' . implode(',', $component->parameters) . ')'; } return trim($name . $parameters . ' ' . $component->options); } } sql-parser-5.9.0/src/Components/Expression.php000066400000000000000000000377261455302707200214260ustar00rootroot00000000000000 */ private static $ALLOWED_KEYWORDS = [ 'AND' => 1, 'AS' => 1, 'BETWEEN' => 1, 'CASE' => 1, 'DUAL' => 1, 'DIV' => 1, 'IS' => 1, 'MOD' => 1, 'NOT' => 1, 'NOT NULL' => 1, 'NULL' => 1, 'OR' => 1, 'OVER' => 1, 'REGEXP' => 1, 'RLIKE' => 1, 'XOR' => 1, ]; /** * The name of this database. * * @var string|null */ public $database; /** * The name of this table. * * @var string|null */ public $table; /** * The name of the column. * * @var string|null */ public $column; /** * The sub-expression. * * @var string|null */ public $expr = ''; /** * The alias of this expression. * * @var string|null */ public $alias; /** * The name of the function. * * @var mixed */ public $function; /** * The type of subquery. * * @var string|null */ public $subquery; /** * Syntax: * new Expression('expr') * new Expression('expr', 'alias') * new Expression('database', 'table', 'column') * new Expression('database', 'table', 'column', 'alias') * * If the database, table or column name is not required, pass an empty * string. * * @param string|null $database The name of the database or the expression. * @param string|null $table The name of the table or the alias of the expression. * @param string|null $column the name of the column * @param string|null $alias the name of the alias */ public function __construct($database = null, $table = null, $column = null, $alias = null) { if (($column === null) && ($alias === null)) { $this->expr = $database; // case 1 $this->alias = $table; // case 2 } else { $this->database = $database; // case 3 $this->table = $table; // case 3 $this->column = $column; // case 3 $this->alias = $alias; // case 4 } } /** * Possible options:. * * `field` * * First field to be filled. * If this is not specified, it takes the value of `parseField`. * * `parseField` * * Specifies the type of the field parsed. It may be `database`, * `table` or `column`. These expressions may not include * parentheses. * * `breakOnAlias` * * If not empty, breaks when the alias occurs (it is not included). * * `breakOnParentheses` * * If not empty, breaks when the first parentheses occurs. * * `parenthesesDelimited` * * If not empty, breaks after last parentheses occurred. * * @param Parser $parser the parser that serves as context * @param TokensList $list the list of tokens that are being parsed * @param array $options parameters for parsing * * @return Expression|null * * @throws ParserException */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = new static(); /** * Whether current tokens make an expression or a table reference. * * @var bool */ $isExpr = false; /** * Whether a period was previously found. * * @var bool */ $dot = false; /** * Whether an alias is expected. Is 2 if `AS` keyword was found. * * @var bool */ $alias = false; /** * Counts brackets. * * @var int */ $brackets = 0; /** * Keeps track of the last two previous tokens. * * @var Token[] */ $prev = [ null, null, ]; // When a field is parsed, no parentheses are expected. if (! empty($options['parseField'])) { $options['breakOnParentheses'] = true; $options['field'] = $options['parseField']; } for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { // If the token is a closing C comment from a MySQL command, it must be ignored. if ($isExpr && $token->token !== '*/') { $ret->expr .= $token->token; } continue; } if ($token->type === Token::TYPE_KEYWORD) { if (($brackets > 0) && empty($ret->subquery) && ! empty(Parser::$STATEMENT_PARSERS[$token->keyword])) { // A `(` was previously found and this keyword is the // beginning of a statement, so this is a subquery. $ret->subquery = $token->keyword; } elseif ( ($token->flags & Token::FLAG_KEYWORD_FUNCTION) && (empty($options['parseField']) && ! $alias) ) { $isExpr = true; } elseif (($token->flags & Token::FLAG_KEYWORD_RESERVED) && ($brackets === 0)) { if (empty(self::$ALLOWED_KEYWORDS[$token->keyword])) { // A reserved keyword that is not allowed in the // expression was found so the expression must have // ended and a new clause is starting. break; } if ($token->keyword === 'AS') { if (! empty($options['breakOnAlias'])) { break; } if ($alias) { $parser->error('An alias was expected.', $token); break; } $alias = true; continue; } if ($token->keyword === 'CASE') { // For a use of CASE like // 'SELECT a = CASE .... END, b=1, `id`, ... FROM ...' $tempCaseExpr = CaseExpression::parse($parser, $list); $ret->expr .= CaseExpression::build($tempCaseExpr); $isExpr = true; continue; } $isExpr = true; } elseif ( $brackets === 0 && strlen((string) $ret->expr) > 0 && ! $alias && ($ret->table === null || $ret->table === '') ) { /* End of expression */ break; } } if ( ($token->type === Token::TYPE_NUMBER) || ($token->type === Token::TYPE_BOOL) || (($token->type === Token::TYPE_SYMBOL) && ($token->flags & Token::FLAG_SYMBOL_VARIABLE)) || (($token->type === Token::TYPE_SYMBOL) && ($token->flags & Token::FLAG_SYMBOL_PARAMETER)) || (($token->type === Token::TYPE_OPERATOR) && ($token->value !== '.')) ) { if (! empty($options['parseField'])) { break; } // Numbers, booleans and operators (except dot) are usually part // of expressions. $isExpr = true; } if ($token->type === Token::TYPE_OPERATOR) { if (! empty($options['breakOnParentheses']) && (($token->value === '(') || ($token->value === ')'))) { // No brackets were expected. break; } if ($token->value === '(') { ++$brackets; if ( empty($ret->function) && ($prev[1] !== null) && (($prev[1]->type === Token::TYPE_NONE) || ($prev[1]->type === Token::TYPE_SYMBOL) || (($prev[1]->type === Token::TYPE_KEYWORD) && ($prev[1]->flags & Token::FLAG_KEYWORD_FUNCTION))) ) { $ret->function = $prev[1]->value; } } elseif ($token->value === ')') { if ($brackets === 0) { // Not our bracket break; } --$brackets; if ($brackets === 0) { if (! empty($options['parenthesesDelimited'])) { // The current token is the last bracket, the next // one will be outside the expression. $ret->expr .= $token->token; ++$list->idx; break; } } elseif ($brackets < 0) { // $parser->error('Unexpected closing bracket.', $token); // $brackets = 0; break; } } elseif ($token->value === ',') { // Expressions are comma-delimited. if ($brackets === 0) { break; } } } // Saving the previous tokens. $prev[0] = $prev[1]; $prev[1] = $token; if ($alias) { // An alias is expected (the keyword `AS` was previously found). if (! empty($ret->alias)) { $parser->error('An alias was previously found.', $token); break; } $ret->alias = $token->value; $alias = false; } elseif ($isExpr) { // Handling aliases. if ( $brackets === 0 && ($prev[0] === null || (($prev[0]->type !== Token::TYPE_OPERATOR || $prev[0]->token === ')') && ($prev[0]->type !== Token::TYPE_KEYWORD || ! ($prev[0]->flags & Token::FLAG_KEYWORD_RESERVED)))) && (($prev[1]->type === Token::TYPE_STRING) || ($prev[1]->type === Token::TYPE_SYMBOL && ! ($prev[1]->flags & Token::FLAG_SYMBOL_VARIABLE) && ! ($prev[1]->flags & Token::FLAG_SYMBOL_PARAMETER)) || ($prev[1]->type === Token::TYPE_NONE && $prev[1]->token !== 'OVER')) ) { if (! empty($ret->alias)) { $parser->error('An alias was previously found.', $token); break; } $ret->alias = $prev[1]->value; } else { $currIdx = $list->idx; --$list->idx; $beforeToken = $list->getPrevious(); $list->idx = $currIdx; // columns names tokens are of type NONE, or SYMBOL (`col`), and the columns options // would start with a token of type KEYWORD, in that case, we want to have a space // between the tokens. if ( $ret->expr !== null && $beforeToken && ($beforeToken->type === Token::TYPE_NONE || $beforeToken->type === Token::TYPE_SYMBOL || $beforeToken->type === Token::TYPE_STRING) && $token->type === Token::TYPE_KEYWORD ) { $ret->expr = rtrim($ret->expr, ' ') . ' '; } $ret->expr .= $token->token; } } elseif (! $isExpr) { if (($token->type === Token::TYPE_OPERATOR) && ($token->value === '.')) { // Found a `.` which means we expect a column name and // the column name we parsed is actually the table name // and the table name is actually a database name. if (! empty($ret->database) || $dot) { $parser->error('Unexpected dot.', $token); } $ret->database = $ret->table; $ret->table = $ret->column; $ret->column = null; $dot = true; $ret->expr .= $token->token; } else { $field = empty($options['field']) ? 'column' : $options['field']; if (empty($ret->$field)) { $ret->$field = $token->value; $ret->expr .= $token->token; $dot = false; } else { // No alias is expected. if (! empty($options['breakOnAlias'])) { break; } if (! empty($ret->alias)) { $parser->error('An alias was previously found.', $token); break; } $ret->alias = $token->value; } } } } if ($alias) { $parser->error('An alias was expected.', $list->tokens[$list->idx - 1]); } // White-spaces might be added at the end. $ret->expr = trim((string) $ret->expr); if ($ret->expr === '') { return null; } --$list->idx; return $ret; } /** * @param Expression|Expression[] $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { if (is_array($component)) { return implode(', ', $component); } if ($component->expr !== '' && $component->expr !== null) { $ret = $component->expr; } else { $fields = []; if (isset($component->database) && ($component->database !== '')) { $fields[] = $component->database; } if (isset($component->table) && ($component->table !== '')) { $fields[] = $component->table; } if (isset($component->column) && ($component->column !== '')) { $fields[] = $component->column; } $ret = implode('.', Context::escape($fields)); } if (! empty($component->alias)) { $ret .= ' AS ' . Context::escape($component->alias); } return $ret; } } sql-parser-5.9.0/src/Components/ExpressionArray.php000066400000000000000000000076421455302707200224170ustar00rootroot00000000000000 $options parameters for parsing * * @return Expression[] * * @throws ParserException */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = []; /** * The state of the parser. * * Below are the states of the parser. * * 0 ----------------------[ array ]---------------------> 1 * * 1 ------------------------[ , ]------------------------> 0 * 1 -----------------------[ else ]----------------------> (END) * * @var int */ $state = 0; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } if ( ($token->type === Token::TYPE_KEYWORD) && ($token->flags & Token::FLAG_KEYWORD_RESERVED) && ((~$token->flags & Token::FLAG_KEYWORD_FUNCTION)) && ($token->value !== 'DUAL') && ($token->value !== 'NULL') && ($token->value !== 'CASE') && ($token->value !== 'NOT') ) { // No keyword is expected. break; } if ($state === 0) { if ($token->type === Token::TYPE_KEYWORD && $token->value === 'CASE') { $expr = CaseExpression::parse($parser, $list, $options); } else { $expr = Expression::parse($parser, $list, $options); } if ($expr === null) { break; } $ret[] = $expr; $state = 1; } elseif ($state === 1) { if ($token->value !== ',') { break; } $state = 0; } } if ($state === 0) { $parser->error('An expression was expected.', $list->tokens[$list->idx]); } --$list->idx; if (is_array($ret)) { $retIndex = count($ret) - 1; if (isset($ret[$retIndex])) { $expr = $ret[$retIndex]->expr; if (preg_match('/\s*--\s.*$/', $expr, $matches)) { $found = $matches[0]; $ret[$retIndex]->expr = substr($expr, 0, strlen($expr) - strlen($found)); } } } return $ret; } /** * @param Expression[] $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { $ret = []; foreach ($component as $frag) { $ret[] = $frag::build($frag); } return implode(', ', $ret); } } sql-parser-5.9.0/src/Components/FunctionCall.php000066400000000000000000000063001455302707200216300ustar00rootroot00000000000000name = $name; if (is_array($parameters)) { $this->parameters = new ArrayObj($parameters); } elseif ($parameters instanceof ArrayObj) { $this->parameters = $parameters; } } /** * @param Parser $parser the parser that serves as context * @param TokensList $list the list of tokens that are being parsed * @param array $options parameters for parsing * * @return FunctionCall */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = new static(); /** * The state of the parser. * * Below are the states of the parser. * * 0 ----------------------[ name ]-----------------------> 1 * * 1 --------------------[ parameters ]-------------------> (END) * * @var int */ $state = 0; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { --$list->idx; // Let last token to previous one to avoid "This type of clause was previously parsed." break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } if ($state === 0) { if ($token->type === Token::TYPE_OPERATOR && $token->value === '(') { --$list->idx; // ArrayObj needs to start with `(` $state = 1; continue;// do not add this token to the name } $ret->name .= $token->value; } elseif ($state === 1) { $ret->parameters = ArrayObj::parse($parser, $list); break; } } return $ret; } /** * @param FunctionCall $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { return $component->name . $component->parameters; } } sql-parser-5.9.0/src/Components/GroupKeyword.php000066400000000000000000000065321455302707200217170ustar00rootroot00000000000000expr = $expr; } /** * @param Parser $parser the parser that serves as context * @param TokensList $list the list of tokens that are being parsed * @param array $options parameters for parsing * * @return GroupKeyword[] */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = []; $expr = new static(); /** * The state of the parser. * * Below are the states of the parser. * * 0 --------------------[ expression ]-------------------> 1 * * 1 ------------------------[ , ]------------------------> 0 * 1 -------------------[ ASC / DESC ]--------------------> 1 * * @var int */ $state = 0; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } if ($state === 0) { $expr->expr = Expression::parse($parser, $list); $state = 1; } elseif ($state === 1) { if ( ($token->type === Token::TYPE_KEYWORD) && (($token->keyword === 'ASC') || ($token->keyword === 'DESC')) ) { $expr->type = $token->keyword; } elseif (($token->type === Token::TYPE_OPERATOR) && ($token->value === ',')) { if (! empty($expr->expr)) { $ret[] = $expr; } $expr = new static(); $state = 0; } else { break; } } } // Last iteration was not processed. if (! empty($expr->expr)) { $ret[] = $expr; } --$list->idx; return $ret; } /** * @param GroupKeyword|GroupKeyword[] $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { if (is_array($component)) { return implode(', ', $component); } return trim((string) $component->expr); } } sql-parser-5.9.0/src/Components/IndexHint.php000066400000000000000000000145201455302707200211440ustar00rootroot00000000000000type = $type; $this->indexOrKey = $indexOrKey; $this->for = $for; $this->indexes = $indexes; } /** * @param Parser $parser the parser that serves as context * @param TokensList $list the list of tokens that are being parsed * @param array $options parameters for parsing * * @return IndexHint|Component[] */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = []; $expr = new static(); $expr->type = $options['type'] ?? null; /** * The state of the parser. * * Below are the states of the parser. * 0 ----------------- [ USE/IGNORE/FORCE ]-----------------> 1 * 1 -------------------- [ INDEX/KEY ] --------------------> 2 * 2 ----------------------- [ FOR ] -----------------------> 3 * 2 -------------------- [ expr_list ] --------------------> 0 * 3 -------------- [ JOIN/GROUP BY/ORDER BY ] -------------> 4 * 4 -------------------- [ expr_list ] --------------------> 0 * * @var int */ $state = 0; // By design, the parser will parse first token after the keyword. So, the keyword // must be analyzed too, in order to determine the type of this index hint. if ($list->idx > 0) { --$list->idx; } for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } switch ($state) { case 0: if ($token->type === Token::TYPE_KEYWORD) { if ($token->keyword !== 'USE' && $token->keyword !== 'IGNORE' && $token->keyword !== 'FORCE') { break 2; } $expr->type = $token->keyword; $state = 1; } break; case 1: if ($token->type === Token::TYPE_KEYWORD) { if ($token->keyword === 'INDEX' || $token->keyword === 'KEY') { $expr->indexOrKey = $token->keyword; } else { $parser->error('Unexpected keyword.', $token); } $state = 2; } else { // we expect the token to be a keyword $parser->error('Unexpected token.', $token); } break; case 2: if ($token->type === Token::TYPE_KEYWORD && $token->keyword === 'FOR') { $state = 3; } else { $expr->indexes = ExpressionArray::parse($parser, $list); $state = 0; $ret[] = $expr; $expr = new static(); } break; case 3: if ($token->type === Token::TYPE_KEYWORD) { if ( $token->keyword === 'JOIN' || $token->keyword === 'GROUP BY' || $token->keyword === 'ORDER BY' ) { $expr->for = $token->keyword; } else { $parser->error('Unexpected keyword.', $token); } $state = 4; } else { // we expect the token to be a keyword $parser->error('Unexpected token.', $token); } break; case 4: $expr->indexes = ExpressionArray::parse($parser, $list); $state = 0; $ret[] = $expr; $expr = new static(); break; } } --$list->idx; return $ret; } /** * @param IndexHint|IndexHint[] $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { if (is_array($component)) { return implode(' ', $component); } $ret = $component->type . ' ' . $component->indexOrKey . ' '; if ($component->for !== null) { $ret .= 'FOR ' . $component->for . ' '; } return $ret . ExpressionArray::build($component->indexes); } } sql-parser-5.9.0/src/Components/IntoKeyword.php000066400000000000000000000205331455302707200215310ustar00rootroot00000000000000> * @psalm-var array [ 1, 'expr', ], 'OPTIONALLY' => 2, 'ENCLOSED BY' => [ 3, 'expr', ], 'ESCAPED BY' => [ 4, 'expr', ], ]; /** * LINES Options for `SELECT...INTO` statements. * * @var array> * @psalm-var array [ 1, 'expr', ], 'TERMINATED BY' => [ 2, 'expr', ], ]; /** * Type of target (OUTFILE or SYMBOL). * * @var string|null */ public $type; /** * The destination, which can be a table or a file. * * @var string|Expression|null */ public $dest; /** * The name of the columns. * * @var string[]|null */ public $columns; /** * The values to be selected into (SELECT .. INTO @var1). * * @var Expression[]|null */ public $values; /** * Options for FIELDS/COLUMNS keyword. * * @see static::$FIELDS_OPTIONS * * @var OptionsArray|null */ public $fields_options; /** * Whether to use `FIELDS` or `COLUMNS` while building. * * @var bool|null */ public $fields_keyword; /** * Options for OPTIONS keyword. * * @see static::$LINES_OPTIONS * * @var OptionsArray|null */ public $lines_options; /** * @param string|null $type type of destination (may be OUTFILE) * @param string|Expression|null $dest actual destination * @param string[]|null $columns column list of destination * @param Expression[]|null $values selected fields * @param OptionsArray|null $fieldsOptions options for FIELDS/COLUMNS keyword * @param bool|null $fieldsKeyword options for OPTIONS keyword */ public function __construct( $type = null, $dest = null, $columns = null, $values = null, $fieldsOptions = null, $fieldsKeyword = null ) { $this->type = $type; $this->dest = $dest; $this->columns = $columns; $this->values = $values; $this->fields_options = $fieldsOptions; $this->fields_keyword = $fieldsKeyword; } /** * @param Parser $parser the parser that serves as context * @param TokensList $list the list of tokens that are being parsed * @param array $options parameters for parsing * * @return IntoKeyword */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = new static(); /** * The state of the parser. * * Below are the states of the parser. * * 0 -----------------------[ name ]----------------------> 1 * 0 ---------------------[ OUTFILE ]---------------------> 2 * * 1 ------------------------[ ( ]------------------------> (END) * * 2 ---------------------[ filename ]--------------------> 1 * * @var int */ $state = 0; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } if (($token->type === Token::TYPE_KEYWORD) && ($token->flags & Token::FLAG_KEYWORD_RESERVED)) { if (($state === 0) && ($token->keyword === 'OUTFILE')) { $ret->type = 'OUTFILE'; $state = 2; continue; } // No other keyword is expected except for $state = 4, which expects `LINES` if ($state !== 4) { break; } } if ($state === 0) { if ( (isset($options['fromInsert']) && $options['fromInsert']) || (isset($options['fromReplace']) && $options['fromReplace']) ) { $ret->dest = Expression::parse( $parser, $list, [ 'parseField' => 'table', 'breakOnAlias' => true, ] ); } else { $ret->values = ExpressionArray::parse($parser, $list); } $state = 1; } elseif ($state === 1) { if (($token->type === Token::TYPE_OPERATOR) && ($token->value === '(')) { $ret->columns = ArrayObj::parse($parser, $list)->values; ++$list->idx; } break; } elseif ($state === 2) { $ret->dest = $token->value; $state = 3; } elseif ($state === 3) { $ret->parseFileOptions($parser, $list, $token->keyword); $state = 4; } elseif ($state === 4) { if ($token->type === Token::TYPE_KEYWORD && $token->keyword !== 'LINES') { break; } $ret->parseFileOptions($parser, $list, $token->keyword); $state = 5; } } --$list->idx; return $ret; } /** * @param Parser $parser The parser * @param TokensList $list A token list * @param string $keyword The keyword * * @return void */ public function parseFileOptions(Parser $parser, TokensList $list, $keyword = 'FIELDS') { ++$list->idx; if ($keyword === 'FIELDS' || $keyword === 'COLUMNS') { // parse field options $this->fields_options = OptionsArray::parse($parser, $list, static::$FIELDS_OPTIONS); $this->fields_keyword = ($keyword === 'FIELDS'); } else { // parse line options $this->lines_options = OptionsArray::parse($parser, $list, static::$LINES_OPTIONS); } } /** * @param IntoKeyword $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { if ($component->dest instanceof Expression) { $columns = ! empty($component->columns) ? '(`' . implode('`, `', $component->columns) . '`)' : ''; return $component->dest . $columns; } if (isset($component->values)) { return ExpressionArray::build($component->values); } $ret = 'OUTFILE "' . $component->dest . '"'; $fieldsOptionsString = OptionsArray::build($component->fields_options); if (trim($fieldsOptionsString) !== '') { $ret .= $component->fields_keyword ? ' FIELDS' : ' COLUMNS'; $ret .= ' ' . $fieldsOptionsString; } $linesOptionsString = OptionsArray::build($component->lines_options, ['expr' => true]); if (trim($linesOptionsString) !== '') { $ret .= ' LINES ' . $linesOptionsString; } return $ret; } } sql-parser-5.9.0/src/Components/JoinKeyword.php000066400000000000000000000142261455302707200215210ustar00rootroot00000000000000 */ public static $JOINS = [ 'CROSS JOIN' => 'CROSS', 'FULL JOIN' => 'FULL', 'FULL OUTER JOIN' => 'FULL', 'INNER JOIN' => 'INNER', 'JOIN' => 'JOIN', 'LEFT JOIN' => 'LEFT', 'LEFT OUTER JOIN' => 'LEFT', 'RIGHT JOIN' => 'RIGHT', 'RIGHT OUTER JOIN' => 'RIGHT', 'NATURAL JOIN' => 'NATURAL', 'NATURAL LEFT JOIN' => 'NATURAL LEFT', 'NATURAL RIGHT JOIN' => 'NATURAL RIGHT', 'NATURAL LEFT OUTER JOIN' => 'NATURAL LEFT OUTER', 'NATURAL RIGHT OUTER JOIN' => 'NATURAL RIGHT OUTER', 'STRAIGHT_JOIN' => 'STRAIGHT', ]; /** * Type of this join. * * @see static::$JOINS * * @var string */ public $type; /** * Join expression. * * @var Expression */ public $expr; /** * Join conditions. * * @var Condition[] */ public $on; /** * Columns in Using clause. * * @var ArrayObj */ public $using; /** * @see JoinKeyword::$JOINS * * @param string $type Join type * @param Expression $expr join expression * @param Condition[] $on join conditions * @param ArrayObj $using columns joined */ public function __construct($type = null, $expr = null, $on = null, $using = null) { $this->type = $type; $this->expr = $expr; $this->on = $on; $this->using = $using; } /** * @param Parser $parser the parser that serves as context * @param TokensList $list the list of tokens that are being parsed * @param array $options parameters for parsing * * @return JoinKeyword[] */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = []; $expr = new static(); /** * The state of the parser. * * Below are the states of the parser. * * 0 -----------------------[ JOIN ]----------------------> 1 * * 1 -----------------------[ expr ]----------------------> 2 * * 2 ------------------------[ ON ]-----------------------> 3 * 2 -----------------------[ USING ]---------------------> 4 * * 3 --------------------[ conditions ]-------------------> 0 * * 4 ----------------------[ columns ]--------------------> 0 * * @var int */ $state = 0; // By design, the parser will parse first token after the keyword. // In this case, the keyword must be analyzed too, in order to determine // the type of this join. if ($list->idx > 0) { --$list->idx; } for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } if ($state === 0) { if (($token->type !== Token::TYPE_KEYWORD) || empty(static::$JOINS[$token->keyword])) { break; } $expr->type = static::$JOINS[$token->keyword]; $state = 1; } elseif ($state === 1) { $expr->expr = Expression::parse($parser, $list, ['field' => 'table']); $state = 2; } elseif ($state === 2) { if ($token->type === Token::TYPE_KEYWORD) { switch ($token->keyword) { case 'ON': $state = 3; break; case 'USING': $state = 4; break; default: if (empty(static::$JOINS[$token->keyword])) { /* Next clause is starting */ break 2; } $ret[] = $expr; $expr = new static(); $expr->type = static::$JOINS[$token->keyword]; $state = 1; break; } } } elseif ($state === 3) { $expr->on = Condition::parse($parser, $list); $ret[] = $expr; $expr = new static(); $state = 0; } elseif ($state === 4) { $expr->using = ArrayObj::parse($parser, $list); $ret[] = $expr; $expr = new static(); $state = 0; } } if (! empty($expr->type)) { $ret[] = $expr; } --$list->idx; return $ret; } /** * @param JoinKeyword[] $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { $ret = []; foreach ($component as $c) { $ret[] = array_search($c->type, static::$JOINS) . ' ' . $c->expr . (! empty($c->on) ? ' ON ' . Condition::build($c->on) : '') . (! empty($c->using) ? ' USING ' . ArrayObj::build($c->using) : ''); } return implode(' ', $ret); } } sql-parser-5.9.0/src/Components/Key.php000066400000000000000000000222421455302707200200020ustar00rootroot00000000000000> * @psalm-var array [ 1, 'var=', ], 'USING' => [ 2, 'var', ], 'WITH PARSER' => [ 3, 'var', ], 'COMMENT' => [ 4, 'var', ], // MariaDB options 'CLUSTERING' => [ 4, 'var=', ], 'ENGINE_ATTRIBUTE' => [ 5, 'var=', ], 'SECONDARY_ENGINE_ATTRIBUTE' => [ 5, 'var=', ], // MariaDB & MySQL options 'VISIBLE' => 6, 'INVISIBLE' => 6, // MariaDB options 'IGNORED' => 10, 'NOT IGNORED' => 10, ]; /** * The name of this key. * * @var string */ public $name; /** * The key columns * * @var array> * @phpstan-var array{name?: string, length?: int, order?: string}[] */ public $columns; /** * The type of this key. * * @var string */ public $type; /** * The expression if the Key is not using column names * * @var string|null */ public $expr = null; /** * The options of this key or null if none where found. * * @var OptionsArray|null */ public $options; /** * @param string $name the name of the key * @param array> $columns the columns covered by this key * @param string $type the type of this key * @param OptionsArray $options the options of this key * @phpstan-param array{name?: string, length?: int, order?: string}[] $columns */ public function __construct( $name = null, array $columns = [], $type = null, $options = null ) { $this->name = $name; $this->columns = $columns; $this->type = $type; $this->options = $options; } /** * @param Parser $parser the parser that serves as context * @param TokensList $list the list of tokens that are being parsed * @param array $options parameters for parsing * * @return Key */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = new static(); /** * Last parsed column. * * @var array */ $lastColumn = []; /** * The state of the parser. * * Below are the states of the parser. * * 0 ---------------------[ type ]---------------------------> 1 * * 1 ---------------------[ name ]---------------------------> 1 * 1 ---------------------[ columns ]------------------------> 2 * 1 ---------------------[ expression ]---------------------> 5 * * 2 ---------------------[ column length ]------------------> 3 * 3 ---------------------[ column length ]------------------> 2 * 2 ---------------------[ options ]------------------------> 4 * 5 ---------------------[ expression ]---------------------> 4 * * @var int */ $state = 0; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } if ($state === 0) { $ret->type = $token->value; $state = 1; } elseif ($state === 1) { if (($token->type === Token::TYPE_OPERATOR) && ($token->value === '(')) { $positionBeforeSearch = $list->idx; $list->idx++;// Ignore the current token "(" or the search condition will always be true $nextToken = $list->getNext(); $list->idx = $positionBeforeSearch;// Restore the position if ($nextToken !== null && $nextToken->value === '(') { // Switch to expression mode $state = 5; } else { $state = 2; } } else { $ret->name = $token->value; } } elseif ($state === 2) { if ($token->type === Token::TYPE_OPERATOR) { if ($token->value === '(') { $state = 3; } elseif (($token->value === ',') || ($token->value === ')')) { $state = $token->value === ',' ? 2 : 4; if (! empty($lastColumn)) { $ret->columns[] = $lastColumn; $lastColumn = []; } } } elseif ( ( $token->type === Token::TYPE_KEYWORD ) && ( ($token->keyword === 'ASC') || ($token->keyword === 'DESC') ) ) { $lastColumn['order'] = $token->keyword; } else { $lastColumn['name'] = $token->value; } } elseif ($state === 3) { if (($token->type === Token::TYPE_OPERATOR) && ($token->value === ')')) { $state = 2; } else { $lastColumn['length'] = $token->value; } } elseif ($state === 4) { $ret->options = OptionsArray::parse($parser, $list, static::$KEY_OPTIONS); ++$list->idx; break; } elseif ($state === 5) { if ($token->type === Token::TYPE_OPERATOR) { // This got back to here and we reached the end of the expression if ($token->value === ')') { $state = 4;// go back to state 4 to fetch options continue; } // The expression is not finished, adding a separator for the next expression if ($token->value === ',') { $ret->expr .= ', '; continue; } // Start of the expression if ($token->value === '(') { // This is the first expression, set to empty if ($ret->expr === null) { $ret->expr = ''; } $ret->expr .= Expression::parse($parser, $list, ['parenthesesDelimited' => true]); continue; } // Another unexpected operator was found } // Something else than an operator was found $parser->error('Unexpected token.', $token); } } --$list->idx; return $ret; } /** * @param Key $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { $ret = $component->type . ' '; if (! empty($component->name)) { $ret .= Context::escape($component->name) . ' '; } if ($component->expr !== null) { return $ret . '(' . $component->expr . ') ' . $component->options; } $columns = []; foreach ($component->columns as $column) { $tmp = ''; if (isset($column['name'])) { $tmp .= Context::escape($column['name']); } if (isset($column['length'])) { $tmp .= '(' . $column['length'] . ')'; } if (isset($column['order'])) { $tmp .= ' ' . $column['order']; } $columns[] = $tmp; } $ret .= '(' . implode(',', $columns) . ') ' . $component->options; return trim($ret); } } sql-parser-5.9.0/src/Components/Limit.php000066400000000000000000000064041455302707200203320ustar00rootroot00000000000000rowCount = $rowCount; $this->offset = $offset; } /** * @param Parser $parser the parser that serves as context * @param TokensList $list the list of tokens that are being parsed * @param array $options parameters for parsing * * @return Limit */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = new static(); $offset = false; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } if (($token->type === Token::TYPE_KEYWORD) && ($token->flags & Token::FLAG_KEYWORD_RESERVED)) { break; } if ($token->type === Token::TYPE_KEYWORD && $token->keyword === 'OFFSET') { if ($offset) { $parser->error('An offset was expected.', $token); } $offset = true; continue; } if (($token->type === Token::TYPE_OPERATOR) && ($token->value === ',')) { $ret->offset = $ret->rowCount; $ret->rowCount = 0; continue; } // Skip if not a number or a bind parameter (?) if ( ! ($token->type === Token::TYPE_NUMBER || ($token->type === Token::TYPE_SYMBOL && ($token->flags & Token::FLAG_SYMBOL_PARAMETER))) ) { break; } if ($offset) { $ret->offset = $token->value; $offset = false; } else { $ret->rowCount = $token->value; } } if ($offset) { $parser->error('An offset was expected.', $list->tokens[$list->idx - 1]); } --$list->idx; return $ret; } /** * @param Limit $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { return $component->offset . ', ' . $component->rowCount; } } sql-parser-5.9.0/src/Components/LockExpression.php000066400000000000000000000131721455302707200222240ustar00rootroot00000000000000 $options parameters for parsing * * @return LockExpression */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = new static(); /** * The state of the parser. * * Below are the states of the parser. * * 0 ---------------- [ tbl_name ] -----------------> 1 * 1 ---------------- [ lock_type ] ----------------> 2 * 2 -------------------- [ , ] --------------------> break * * @var int */ $state = 0; $prevToken = null; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ( $token->type === Token::TYPE_DELIMITER || ($token->type === Token::TYPE_OPERATOR && $token->value === ',') ) { break; } if ($state === 0) { $ret->table = Expression::parse($parser, $list, ['parseField' => 'table']); $state = 1; } elseif ($state === 1) { // parse lock type $ret->type = self::parseLockType($parser, $list); $state = 2; } $prevToken = $token; } // 2 is the only valid end state if ($state !== 2) { $parser->error('Unexpected end of LOCK expression.', $prevToken); } --$list->idx; return $ret; } /** * @param LockExpression|LockExpression[] $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { if (is_array($component)) { return implode(', ', $component); } return $component->table . ' ' . $component->type; } /** * @return string */ private static function parseLockType(Parser $parser, TokensList $list) { $lockType = ''; /** * The state of the parser while parsing for lock type. * * Below are the states of the parser. * * 0 ---------------- [ READ ] -----------------> 1 * 0 ------------- [ LOW_PRIORITY ] ------------> 2 * 0 ---------------- [ WRITE ] ----------------> 3 * 1 ---------------- [ LOCAL ] ----------------> 3 * 2 ---------------- [ WRITE ] ----------------> 3 * * @var int */ $state = 0; $prevToken = null; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ( $token->type === Token::TYPE_DELIMITER || ($token->type === Token::TYPE_OPERATOR && $token->value === ',') ) { --$list->idx; break; } // Skipping whitespaces and comments. if ($token->type === Token::TYPE_WHITESPACE || $token->type === Token::TYPE_COMMENT) { continue; } // We only expect keywords if ($token->type !== Token::TYPE_KEYWORD) { $parser->error('Unexpected token.', $token); break; } if ($state === 0) { if ($token->keyword === 'READ') { $state = 1; } elseif ($token->keyword === 'LOW_PRIORITY') { $state = 2; } elseif ($token->keyword === 'WRITE') { $state = 3; } else { $parser->error('Unexpected keyword.', $token); break; } $lockType .= $token->keyword; } elseif ($state === 1) { if ($token->keyword !== 'LOCAL') { $parser->error('Unexpected keyword.', $token); break; } $lockType .= ' ' . $token->keyword; $state = 3; } elseif ($state === 2) { if ($token->keyword !== 'WRITE') { $parser->error('Unexpected keyword.', $token); break; } $lockType .= ' ' . $token->keyword; $state = 3; // parsing over } $prevToken = $token; } // Only two possible end states if ($state !== 1 && $state !== 3) { $parser->error('Unexpected end of LOCK expression.', $prevToken); } return $lockType; } } sql-parser-5.9.0/src/Components/OptionsArray.php000066400000000000000000000301121455302707200216770ustar00rootroot00000000000000 */ public $options = []; /** * @param array $options The array of options. Options that have a value * must be an array with at least two keys `name` and * `expr` or `value`. */ public function __construct(array $options = []) { $this->options = $options; } /** * @param Parser $parser the parser that serves as context * @param TokensList $list the list of tokens that are being parsed * @param array $options parameters for parsing * * @return OptionsArray */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = new static(); /** * The ID that will be assigned to duplicate options. * * @var int */ $lastAssignedId = count($options) + 1; /** * The option that was processed last time. */ $lastOption = null; /** * The index of the option that was processed last time. * * @var int */ $lastOptionId = 0; /** * Counts brackets. * * @var int */ $brackets = 0; /** * The state of the parser. * * Below are the states of the parser. * * 0 ---------------------[ option ]----------------------> 1 * * 1 -------------------[ = (optional) ]------------------> 2 * * 2 ----------------------[ value ]----------------------> 0 * * @var int */ $state = 0; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping comments. if ($token->type === Token::TYPE_COMMENT) { continue; } // Skipping whitespace if not parsing value. if (($token->type === Token::TYPE_WHITESPACE) && ($brackets === 0)) { continue; } if ($lastOption === null) { $upper = strtoupper($token->token); if (! isset($options[$upper])) { // There is no option to be processed. break; } $lastOption = $options[$upper]; $lastOptionId = is_array($lastOption) ? $lastOption[0] : $lastOption; $state = 0; // Checking for option conflicts. // For example, in `SELECT` statements the keywords `ALL` // and `DISTINCT` conflict and if used together, they // produce an invalid query. // // Usually, tokens can be identified in the array by the // option ID, but if conflicts occur, a generated option ID // is used. // // The first pseudo duplicate ID is the maximum value of the // real options (e.g. if there are 5 options, the first // fake ID is 6). if (isset($ret->options[$lastOptionId])) { $parser->error( sprintf( Translator::gettext('This option conflicts with "%1$s".'), is_array($ret->options[$lastOptionId]) ? $ret->options[$lastOptionId]['name'] : $ret->options[$lastOptionId] ), $token ); $lastOptionId = $lastAssignedId++; } } if ($state === 0) { if (! is_array($lastOption)) { // This is a just keyword option without any value. // This is the beginning and the end of it. $ret->options[$lastOptionId] = $token->value; $lastOption = null; $state = 0; } elseif (($lastOption[1] === 'var') || ($lastOption[1] === 'var=')) { // This is a keyword that is followed by a value. // This is only the beginning. The value is parsed in state // 1 and 2. State 1 is used to skip the first equals sign // and state 2 to parse the actual value. $ret->options[$lastOptionId] = [ // @var string The name of the option. 'name' => $token->value, // @var bool Whether it contains an equal sign. // This is used by the builder to rebuild it. 'equals' => $lastOption[1] === 'var=', // @var string Raw value. 'expr' => '', // @var string Processed value. 'value' => '', ]; $state = 1; } elseif ($lastOption[1] === 'expr' || $lastOption[1] === 'expr=') { // This is a keyword that is followed by an expression. // The expression is used by the specialized parser. // Skipping this option in order to parse the expression. ++$list->idx; $ret->options[$lastOptionId] = [ // @var string The name of the option. 'name' => $token->value, // @var bool Whether it contains an equal sign. // This is used by the builder to rebuild it. 'equals' => $lastOption[1] === 'expr=', // @var Expression The parsed expression. 'expr' => '', ]; $state = 1; } } elseif ($state === 1) { $state = 2; if ($token->token === '=') { $ret->options[$lastOptionId]['equals'] = true; continue; } } // This is outside the `elseif` group above because the change might // change this iteration. if ($state !== 2) { continue; } if ($lastOption[1] === 'expr' || $lastOption[1] === 'expr=') { $ret->options[$lastOptionId]['expr'] = Expression::parse( $parser, $list, empty($lastOption[2]) ? [] : $lastOption[2] ); if ($ret->options[$lastOptionId]['expr'] !== null) { $ret->options[$lastOptionId]['value'] = $ret->options[$lastOptionId]['expr']->expr; } $lastOption = null; $state = 0; } else { if ($token->token === '(') { ++$brackets; } elseif ($token->token === ')') { --$brackets; } $ret->options[$lastOptionId]['expr'] .= $token->token; if ( ! (($token->token === '(') && ($brackets === 1) || (($token->token === ')') && ($brackets === 0))) ) { // First pair of brackets is being skipped. $ret->options[$lastOptionId]['value'] .= $token->value; } // Checking if we finished parsing. if ($brackets === 0) { $lastOption = null; } } } /* * We reached the end of statement without getting a value * for an option for which a value was required */ if ( $state === 1 && $lastOption && ($lastOption[1] === 'expr' || $lastOption[1] === 'var' || $lastOption[1] === 'var=' || $lastOption[1] === 'expr=') ) { $parser->error( sprintf( 'Value/Expression for the option %1$s was expected.', $ret->options[$lastOptionId]['name'] ), $list->tokens[$list->idx - 1] ); } if (empty($options['_UNSORTED'])) { ksort($ret->options); } --$list->idx; return $ret; } /** * @param OptionsArray $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { if (empty($component->options)) { return ''; } $options = []; foreach ($component->options as $option) { if (! is_array($option)) { $options[] = $option; } else { $options[] = $option['name'] . (! empty($option['equals']) && $option['equals'] ? '=' : ' ') . (! empty($option['expr']) ? $option['expr'] : $option['value']); } } return implode(' ', $options); } /** * Checks if it has the specified option and returns it value or true. * * @param string $key the key to be checked * @param bool $getExpr Gets the expression instead of the value. * The value is the processed form of the expression. * * @return mixed */ public function has($key, $getExpr = false) { foreach ($this->options as $option) { if (is_array($option)) { if (! strcasecmp($key, $option['name'])) { return $getExpr ? $option['expr'] : $option['value']; } } elseif (! strcasecmp($key, $option)) { return true; } } return false; } /** * Removes the option from the array. * * @param string $key the key to be removed * * @return bool whether the key was found and deleted or not */ public function remove($key) { foreach ($this->options as $idx => $option) { if (is_array($option)) { if (! strcasecmp($key, $option['name'])) { unset($this->options[$idx]); return true; } } elseif (! strcasecmp($key, $option)) { unset($this->options[$idx]); return true; } } return false; } /** * Merges the specified options with these ones. Values with same ID will be * replaced. * * @param array|OptionsArray $options the options to be merged * * @return void */ public function merge($options) { if (is_array($options)) { $this->options = array_merge_recursive($this->options, $options); } elseif ($options instanceof self) { $this->options = array_merge_recursive($this->options, $options->options); } } /** * Checks tf there are no options set. * * @return bool */ public function isEmpty() { return empty($this->options); } } sql-parser-5.9.0/src/Components/OrderKeyword.php000066400000000000000000000067301455302707200216760ustar00rootroot00000000000000expr = $expr; $this->type = $type; } /** * @param Parser $parser the parser that serves as context * @param TokensList $list the list of tokens that are being parsed * @param array $options parameters for parsing * * @return OrderKeyword[] */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = []; $expr = new static(); /** * The state of the parser. * * Below are the states of the parser. * * 0 --------------------[ expression ]-------------------> 1 * * 1 ------------------------[ , ]------------------------> 0 * 1 -------------------[ ASC / DESC ]--------------------> 1 * * @var int */ $state = 0; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } if ($state === 0) { $expr->expr = Expression::parse($parser, $list); $state = 1; } elseif ($state === 1) { if ( ($token->type === Token::TYPE_KEYWORD) && (($token->keyword === 'ASC') || ($token->keyword === 'DESC')) ) { $expr->type = $token->keyword; } elseif (($token->type === Token::TYPE_OPERATOR) && ($token->value === ',')) { if (! empty($expr->expr)) { $ret[] = $expr; } $expr = new static(); $state = 0; } else { break; } } } // Last iteration was not processed. if (! empty($expr->expr)) { $ret[] = $expr; } --$list->idx; return $ret; } /** * @param OrderKeyword|OrderKeyword[] $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { if (is_array($component)) { return implode(', ', $component); } return $component->expr . ' ' . $component->type; } } sql-parser-5.9.0/src/Components/ParameterDefinition.php000066400000000000000000000110461455302707200232030ustar00rootroot00000000000000name = $name; $this->inOut = $inOut; $this->type = $type; } /** * @param Parser $parser the parser that serves as context * @param TokensList $list the list of tokens that are being parsed * @param array $options parameters for parsing * * @return ParameterDefinition[] */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = []; $expr = new static(); /** * The state of the parser. * * Below are the states of the parser. * * 0 -----------------------[ ( ]------------------------> 1 * * 1 ----------------[ IN / OUT / INOUT ]----------------> 1 * 1 ----------------------[ name ]----------------------> 2 * * 2 -------------------[ data type ]--------------------> 3 * * 3 ------------------------[ , ]-----------------------> 1 * 3 ------------------------[ ) ]-----------------------> (END) * * @var int */ $state = 0; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } if ($state === 0) { if (($token->type === Token::TYPE_OPERATOR) && ($token->value === '(')) { $state = 1; } continue; } elseif ($state === 1) { if (($token->value === 'IN') || ($token->value === 'OUT') || ($token->value === 'INOUT')) { $expr->inOut = $token->value; ++$list->idx; } elseif ($token->value === ')') { ++$list->idx; break; } else { $expr->name = $token->value; $state = 2; } } elseif ($state === 2) { $expr->type = DataType::parse($parser, $list); $state = 3; } elseif ($state === 3) { $ret[] = $expr; $expr = new static(); if ($token->value === ',') { $state = 1; } elseif ($token->value === ')') { ++$list->idx; break; } } } // Last iteration was not saved. if (isset($expr->name) && ($expr->name !== '')) { $ret[] = $expr; } --$list->idx; return $ret; } /** * @param ParameterDefinition[] $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { if (is_array($component)) { return '(' . implode(', ', $component) . ')'; } $tmp = ''; if (! empty($component->inOut)) { $tmp .= $component->inOut . ' '; } return trim( $tmp . Context::escape($component->name) . ' ' . $component->type ); } } sql-parser-5.9.0/src/Components/PartitionDefinition.php000066400000000000000000000157371455302707200232470ustar00rootroot00000000000000> * @psalm-var array [ 1, 'var', ], 'ENGINE' => [ 1, 'var', ], 'COMMENT' => [ 2, 'var', ], 'DATA DIRECTORY' => [ 3, 'var', ], 'INDEX DIRECTORY' => [ 4, 'var', ], 'MAX_ROWS' => [ 5, 'var', ], 'MIN_ROWS' => [ 6, 'var', ], 'TABLESPACE' => [ 7, 'var', ], 'NODEGROUP' => [ 8, 'var', ], ]; /** * Whether this entry is a subpartition or a partition. * * @var bool */ public $isSubpartition; /** * The name of this partition. * * @var string */ public $name; /** * The type of this partition (what follows the `VALUES` keyword). * * @var string */ public $type; /** * The expression used to defined this partition. * * @var Expression|string */ public $expr; /** * The subpartitions of this partition. * * @var PartitionDefinition[] */ public $subpartitions; /** * The options of this field. * * @var OptionsArray */ public $options; /** * @param Parser $parser the parser that serves as context * @param TokensList $list the list of tokens that are being parsed * @param array $options parameters for parsing * * @return PartitionDefinition */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = new static(); /** * The state of the parser. * * Below are the states of the parser. * * 0 -------------[ PARTITION | SUBPARTITION ]------------> 1 * * 1 -----------------------[ name ]----------------------> 2 * * 2 ----------------------[ VALUES ]---------------------> 3 * * 3 ---------------------[ LESS THAN ]-------------------> 4 * 3 ------------------------[ IN ]-----------------------> 4 * * 4 -----------------------[ expr ]----------------------> 5 * * 5 ----------------------[ options ]--------------------> 6 * * 6 ------------------[ subpartitions ]------------------> (END) * * @var int */ $state = 0; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } if ($state === 0) { $ret->isSubpartition = ($token->type === Token::TYPE_KEYWORD) && ($token->keyword === 'SUBPARTITION'); $state = 1; } elseif ($state === 1) { $ret->name = $token->value; // Looking ahead for a 'VALUES' keyword. // Loop until the end of the partition name (delimited by a whitespace) while ($nextToken = $list->tokens[++$list->idx]) { if ($nextToken->type !== Token::TYPE_NONE) { break; } $ret->name .= $nextToken->value; } $idx = $list->idx--; // Get the first token after the white space. $nextToken = $list->tokens[++$idx]; $state = ($nextToken->type === Token::TYPE_KEYWORD) && ($nextToken->value === 'VALUES') ? 2 : 5; } elseif ($state === 2) { $state = 3; } elseif ($state === 3) { $ret->type = $token->value; $state = 4; } elseif ($state === 4) { if ($token->value === 'MAXVALUE') { $ret->expr = $token->value; } else { $ret->expr = Expression::parse( $parser, $list, [ 'parenthesesDelimited' => true, 'breakOnAlias' => true, ] ); } $state = 5; } elseif ($state === 5) { $ret->options = OptionsArray::parse($parser, $list, static::$OPTIONS); $state = 6; } elseif ($state === 6) { if (($token->type === Token::TYPE_OPERATOR) && ($token->value === '(')) { $ret->subpartitions = ArrayObj::parse( $parser, $list, ['type' => 'PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition'] ); ++$list->idx; } break; } } --$list->idx; return $ret; } /** * @param PartitionDefinition|PartitionDefinition[] $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { if (is_array($component)) { return "(\n" . implode(",\n", $component) . "\n)"; } if ($component->isSubpartition) { return trim('SUBPARTITION ' . $component->name . ' ' . $component->options); } $subpartitions = empty($component->subpartitions) ? '' : ' ' . self::build($component->subpartitions); return trim( 'PARTITION ' . $component->name . (empty($component->type) ? '' : ' VALUES ' . $component->type . ' ' . $component->expr . ' ') . (! empty($component->options) && ! empty($component->type) ? '' : ' ') . $component->options . $subpartitions ); } } sql-parser-5.9.0/src/Components/Reference.php000066400000000000000000000077151455302707200211600ustar00rootroot00000000000000> * @psalm-var array [ 1, 'var', ], 'ON DELETE' => [ 2, 'var', ], 'ON UPDATE' => [ 3, 'var', ], ]; /** * The referenced table. * * @var Expression */ public $table; /** * The referenced columns. * * @var string[] */ public $columns; /** * The options of the referencing. * * @var OptionsArray */ public $options; /** * @param Expression $table the name of the table referenced * @param string[] $columns the columns referenced * @param OptionsArray $options the options */ public function __construct($table = null, array $columns = [], $options = null) { $this->table = $table; $this->columns = $columns; $this->options = $options; } /** * @param Parser $parser the parser that serves as context * @param TokensList $list the list of tokens that are being parsed * @param array $options parameters for parsing * * @return Reference */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = new static(); /** * The state of the parser. * * Below are the states of the parser. * * 0 ----------------------[ table ]---------------------> 1 * * 1 ---------------------[ columns ]--------------------> 2 * * 2 ---------------------[ options ]--------------------> (END) * * @var int */ $state = 0; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } if ($state === 0) { $ret->table = Expression::parse( $parser, $list, [ 'parseField' => 'table', 'breakOnAlias' => true, ] ); $state = 1; } elseif ($state === 1) { $ret->columns = ArrayObj::parse($parser, $list)->values; $state = 2; } elseif ($state === 2) { $ret->options = OptionsArray::parse($parser, $list, static::$REFERENCES_OPTIONS); ++$list->idx; break; } } --$list->idx; return $ret; } /** * @param Reference $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { return trim( $component->table . ' (' . implode(', ', Context::escape($component->columns)) . ') ' . $component->options ); } } sql-parser-5.9.0/src/Components/RenameOperation.php000066400000000000000000000107201455302707200223400ustar00rootroot00000000000000old = $old; $this->new = $new; } /** * @param Parser $parser the parser that serves as context * @param TokensList $list the list of tokens that are being parsed * @param array $options parameters for parsing * * @return RenameOperation[] */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = []; $expr = new static(); /** * The state of the parser. * * Below are the states of the parser. * * 0 ---------------------[ old name ]--------------------> 1 * * 1 ------------------------[ TO ]-----------------------> 2 * * 2 ---------------------[ new name ]--------------------> 3 * * 3 ------------------------[ , ]------------------------> 0 * 3 -----------------------[ else ]----------------------> (END) * * @var int */ $state = 0; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } if ($state === 0) { $expr->old = Expression::parse( $parser, $list, [ 'breakOnAlias' => true, 'parseField' => 'table', ] ); if (empty($expr->old)) { $parser->error('The old name of the table was expected.', $token); } $state = 1; } elseif ($state === 1) { if ($token->type !== Token::TYPE_KEYWORD || $token->keyword !== 'TO') { $parser->error('Keyword "TO" was expected.', $token); break; } $state = 2; } elseif ($state === 2) { $expr->new = Expression::parse( $parser, $list, [ 'breakOnAlias' => true, 'parseField' => 'table', ] ); if (empty($expr->new)) { $parser->error('The new name of the table was expected.', $token); } $state = 3; } elseif ($state === 3) { if (($token->type !== Token::TYPE_OPERATOR) || ($token->value !== ',')) { break; } $ret[] = $expr; $expr = new static(); $state = 0; } } if ($state !== 3) { $parser->error('A rename operation was expected.', $list->tokens[$list->idx - 1]); } // Last iteration was not saved. if (! empty($expr->old)) { $ret[] = $expr; } --$list->idx; return $ret; } /** * @param RenameOperation $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { if (is_array($component)) { return implode(', ', $component); } return $component->old . ' TO ' . $component->new; } } sql-parser-5.9.0/src/Components/SetOperation.php000066400000000000000000000103031455302707200216610ustar00rootroot00000000000000column = $column; $this->value = $value; } /** * @param Parser $parser the parser that serves as context * @param TokensList $list the list of tokens that are being parsed * @param array $options parameters for parsing * * @return SetOperation[] */ public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = []; $expr = new static(); /** * The state of the parser. * * Below are the states of the parser. * * 0 ---------------------[ col_name ]--------------------> 0 * 0 ---------------------[ = or := ]---------------------> 1 * 1 -----------------------[ value ]---------------------> 1 * 1 ------------------------[ , ]------------------------> 0 * * @var int */ $state = 0; /** * Token when the parser has seen the latest comma * * @var Token */ $commaLastSeenAt = null; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } // No keyword is expected. if ( ($token->type === Token::TYPE_KEYWORD) && ($token->flags & Token::FLAG_KEYWORD_RESERVED) && ($state === 0) ) { break; } if ($state === 0) { if (in_array($token->token, ['=', ':='], true)) { $state = 1; } elseif ($token->value !== ',') { $expr->column .= $token->token; } elseif ($token->value === ',') { $commaLastSeenAt = $token; } } elseif ($state === 1) { $tmp = Expression::parse( $parser, $list, ['breakOnAlias' => true] ); if ($tmp === null) { $parser->error('Missing expression.', $token); break; } $expr->column = trim($expr->column); $expr->value = $tmp->expr; $ret[] = $expr; $expr = new static(); $state = 0; $commaLastSeenAt = null; } } --$list->idx; // We saw a comma, but didn't see a column-value pair after it if ($commaLastSeenAt !== null) { $parser->error('Unexpected token.', $commaLastSeenAt); } return $ret; } /** * @param SetOperation|SetOperation[] $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { if (is_array($component)) { return implode(', ', $component); } return $component->column . ' = ' . $component->value; } } sql-parser-5.9.0/src/Components/UnionKeyword.php000066400000000000000000000012421455302707200217040ustar00rootroot00000000000000 $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = []) { $tmp = []; foreach ($component as $componentPart) { $tmp[] = $componentPart[0] . ' ' . $componentPart[1]; } return implode(' ', $tmp); } } sql-parser-5.9.0/src/Components/WithKeyword.php000066400000000000000000000024511455302707200215320ustar00rootroot00000000000000name = $name; } /** * @param WithKeyword $component * @param array $options * * @return string */ public static function build($component, array $options = []) { if (! $component instanceof WithKeyword) { throw new RuntimeException('Can not build a component that is not a WithKeyword'); } if (! isset($component->statement)) { throw new RuntimeException('No statement inside WITH'); } $str = $component->name; if ($component->columns) { $str .= ArrayObj::build($component->columns); } $str .= ' AS ('; foreach ($component->statement->statements as $statement) { $str .= $statement->build(); } $str .= ')'; return $str; } } sql-parser-5.9.0/src/Context.php000066400000000000000000000637741455302707200165700ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = []; /** * List of operators and their flags. * * @var array */ public static $OPERATORS = [ // Some operators (*, =) may have ambiguous flags, because they depend on // the context they are being used in. // For example: 1. SELECT * FROM table; # SQL specific (wildcard) // SELECT 2 * 3; # arithmetic // 2. SELECT * FROM table WHERE foo = 'bar'; // SET @i = 0; // @see Token::FLAG_OPERATOR_ARITHMETIC '%' => 1, '*' => 1, '+' => 1, '-' => 1, '/' => 1, // @see Token::FLAG_OPERATOR_LOGICAL '!' => 2, '!=' => 2, '&&' => 2, '<' => 2, '<=' => 2, '<=>' => 2, '<>' => 2, '=' => 2, '>' => 2, '>=' => 2, '||' => 2, // @see Token::FLAG_OPERATOR_BITWISE '&' => 4, '<<' => 4, '>>' => 4, '^' => 4, '|' => 4, '~' => 4, // @see Token::FLAG_OPERATOR_ASSIGNMENT ':=' => 8, // @see Token::FLAG_OPERATOR_SQL '(' => 16, ')' => 16, '.' => 16, ',' => 16, ';' => 16, ]; /** * The mode of the MySQL server that will be used in lexing, parsing and building the statements. * * @internal use the {@see Context::getMode()} method instead. * * @link https://dev.mysql.com/doc/refman/en/sql-mode.html * @link https://mariadb.com/kb/en/sql-mode/ * * @var int */ public static $MODE = self::SQL_MODE_NONE; public const SQL_MODE_NONE = 0; /** * @link https://dev.mysql.com/doc/refman/en/sql-mode.html#sqlmode_allow_invalid_dates * @link https://mariadb.com/kb/en/sql-mode/#allow_invalid_dates */ public const SQL_MODE_ALLOW_INVALID_DATES = 1; /** * @link https://dev.mysql.com/doc/refman/en/sql-mode.html#sqlmode_ansi_quotes * @link https://mariadb.com/kb/en/sql-mode/#ansi_quotes */ public const SQL_MODE_ANSI_QUOTES = 2; /** Compatibility mode for Microsoft's SQL server. This is the equivalent of {@see SQL_MODE_ANSI_QUOTES}. */ public const SQL_MODE_COMPAT_MYSQL = 2; /** * @link https://dev.mysql.com/doc/refman/en/sql-mode.html#sqlmode_error_for_division_by_zero * @link https://mariadb.com/kb/en/sql-mode/#error_for_division_by_zero */ public const SQL_MODE_ERROR_FOR_DIVISION_BY_ZERO = 4; /** * @link https://dev.mysql.com/doc/refman/en/sql-mode.html#sqlmode_high_not_precedence * @link https://mariadb.com/kb/en/sql-mode/#high_not_precedence */ public const SQL_MODE_HIGH_NOT_PRECEDENCE = 8; /** * @link https://dev.mysql.com/doc/refman/en/sql-mode.html#sqlmode_ignore_space * @link https://mariadb.com/kb/en/sql-mode/#ignore_space */ public const SQL_MODE_IGNORE_SPACE = 16; /** * @link https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_no_auto_create_user * @link https://mariadb.com/kb/en/sql-mode/#no_auto_create_user */ public const SQL_MODE_NO_AUTO_CREATE_USER = 32; /** * @link https://dev.mysql.com/doc/refman/en/sql-mode.html#sqlmode_no_auto_value_on_zero * @link https://mariadb.com/kb/en/sql-mode/#no_auto_value_on_zero */ public const SQL_MODE_NO_AUTO_VALUE_ON_ZERO = 64; /** * @link https://dev.mysql.com/doc/refman/en/sql-mode.html#sqlmode_no_backslash_escapes * @link https://mariadb.com/kb/en/sql-mode/#no_backslash_escapes */ public const SQL_MODE_NO_BACKSLASH_ESCAPES = 128; /** * @link https://dev.mysql.com/doc/refman/en/sql-mode.html#sqlmode_no_dir_in_create * @link https://mariadb.com/kb/en/sql-mode/#no_dir_in_create */ public const SQL_MODE_NO_DIR_IN_CREATE = 256; /** * @link https://dev.mysql.com/doc/refman/en/sql-mode.html#sqlmode_no_engine_substitution * @link https://mariadb.com/kb/en/sql-mode/#no_engine_substitution */ public const SQL_MODE_NO_ENGINE_SUBSTITUTION = 512; /** * @link https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_no_field_options * @link https://mariadb.com/kb/en/sql-mode/#no_field_options */ public const SQL_MODE_NO_FIELD_OPTIONS = 1024; /** * @link https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_no_key_options * @link https://mariadb.com/kb/en/sql-mode/#no_key_options */ public const SQL_MODE_NO_KEY_OPTIONS = 2048; /** * @link https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_no_table_options * @link https://mariadb.com/kb/en/sql-mode/#no_table_options */ public const SQL_MODE_NO_TABLE_OPTIONS = 4096; /** * @link https://dev.mysql.com/doc/refman/en/sql-mode.html#sqlmode_no_unsigned_subtraction * @link https://mariadb.com/kb/en/sql-mode/#no_unsigned_subtraction */ public const SQL_MODE_NO_UNSIGNED_SUBTRACTION = 8192; /** * @link https://dev.mysql.com/doc/refman/en/sql-mode.html#sqlmode_no_zero_date * @link https://mariadb.com/kb/en/sql-mode/#no_zero_date */ public const SQL_MODE_NO_ZERO_DATE = 16384; /** * @link https://dev.mysql.com/doc/refman/en/sql-mode.html#sqlmode_no_zero_in_date * @link https://mariadb.com/kb/en/sql-mode/#no_zero_in_date */ public const SQL_MODE_NO_ZERO_IN_DATE = 32768; /** * @link https://dev.mysql.com/doc/refman/en/sql-mode.html#sqlmode_only_full_group_by * @link https://mariadb.com/kb/en/sql-mode/#only_full_group_by */ public const SQL_MODE_ONLY_FULL_GROUP_BY = 65536; /** * @link https://dev.mysql.com/doc/refman/en/sql-mode.html#sqlmode_pipes_as_concat * @link https://mariadb.com/kb/en/sql-mode/#pipes_as_concat */ public const SQL_MODE_PIPES_AS_CONCAT = 131072; /** * @link https://dev.mysql.com/doc/refman/en/sql-mode.html#sqlmode_real_as_float * @link https://mariadb.com/kb/en/sql-mode/#real_as_float */ public const SQL_MODE_REAL_AS_FLOAT = 262144; /** * @link https://dev.mysql.com/doc/refman/en/sql-mode.html#sqlmode_strict_all_tables * @link https://mariadb.com/kb/en/sql-mode/#strict_all_tables */ public const SQL_MODE_STRICT_ALL_TABLES = 524288; /** * @link https://dev.mysql.com/doc/refman/en/sql-mode.html#sqlmode_strict_trans_tables * @link https://mariadb.com/kb/en/sql-mode/#strict_trans_tables */ public const SQL_MODE_STRICT_TRANS_TABLES = 1048576; /** * Custom mode. * The table and column names and any other field that must be escaped will not be. * Reserved keywords are being escaped regardless this mode is used or not. */ public const SQL_MODE_NO_ENCLOSING_QUOTES = 1073741824; /** * Equivalent to {@see SQL_MODE_REAL_AS_FLOAT}, {@see SQL_MODE_PIPES_AS_CONCAT}, {@see SQL_MODE_ANSI_QUOTES}, * {@see SQL_MODE_IGNORE_SPACE}. * * @link https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_ansi * @link https://mariadb.com/kb/en/sql-mode/#ansi */ public const SQL_MODE_ANSI = 393234; /** * Equivalent to {@see SQL_MODE_PIPES_AS_CONCAT}, {@see SQL_MODE_ANSI_QUOTES}, {@see SQL_MODE_IGNORE_SPACE}, * {@see SQL_MODE_NO_KEY_OPTIONS}, {@see SQL_MODE_NO_TABLE_OPTIONS}, {@see SQL_MODE_NO_FIELD_OPTIONS}. * * @link https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_db2 * @link https://mariadb.com/kb/en/sql-mode/#db2 */ public const SQL_MODE_DB2 = 138258; /** * Equivalent to {@see SQL_MODE_PIPES_AS_CONCAT}, {@see SQL_MODE_ANSI_QUOTES}, {@see SQL_MODE_IGNORE_SPACE}, * {@see SQL_MODE_NO_KEY_OPTIONS}, {@see SQL_MODE_NO_TABLE_OPTIONS}, {@see SQL_MODE_NO_FIELD_OPTIONS}, * {@see SQL_MODE_NO_AUTO_CREATE_USER}. * * @link https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_maxdb * @link https://mariadb.com/kb/en/sql-mode/#maxdb */ public const SQL_MODE_MAXDB = 138290; /** * Equivalent to {@see SQL_MODE_PIPES_AS_CONCAT}, {@see SQL_MODE_ANSI_QUOTES}, {@see SQL_MODE_IGNORE_SPACE}, * {@see SQL_MODE_NO_KEY_OPTIONS}, {@see SQL_MODE_NO_TABLE_OPTIONS}, {@see SQL_MODE_NO_FIELD_OPTIONS}. * * @link https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_mssql * @link https://mariadb.com/kb/en/sql-mode/#mssql */ public const SQL_MODE_MSSQL = 138258; /** * Equivalent to {@see SQL_MODE_PIPES_AS_CONCAT}, {@see SQL_MODE_ANSI_QUOTES}, {@see SQL_MODE_IGNORE_SPACE}, * {@see SQL_MODE_NO_KEY_OPTIONS}, {@see SQL_MODE_NO_TABLE_OPTIONS}, {@see SQL_MODE_NO_FIELD_OPTIONS}, * {@see SQL_MODE_NO_AUTO_CREATE_USER}. * * @link https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_oracle * @link https://mariadb.com/kb/en/sql-mode/#oracle */ public const SQL_MODE_ORACLE = 138290; /** * Equivalent to {@see SQL_MODE_PIPES_AS_CONCAT}, {@see SQL_MODE_ANSI_QUOTES}, {@see SQL_MODE_IGNORE_SPACE}, * {@see SQL_MODE_NO_KEY_OPTIONS}, {@see SQL_MODE_NO_TABLE_OPTIONS}, {@see SQL_MODE_NO_FIELD_OPTIONS}. * * @link https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_postgresql * @link https://mariadb.com/kb/en/sql-mode/#postgresql */ public const SQL_MODE_POSTGRESQL = 138258; /** * Equivalent to {@see SQL_MODE_STRICT_TRANS_TABLES}, {@see SQL_MODE_STRICT_ALL_TABLES}, * {@see SQL_MODE_NO_ZERO_IN_DATE}, {@see SQL_MODE_NO_ZERO_DATE}, {@see SQL_MODE_ERROR_FOR_DIVISION_BY_ZERO}, * {@see SQL_MODE_NO_AUTO_CREATE_USER}. * * @link https://dev.mysql.com/doc/refman/en/sql-mode.html#sqlmode_traditional * @link https://mariadb.com/kb/en/sql-mode/#traditional */ public const SQL_MODE_TRADITIONAL = 1622052; // ------------------------------------------------------------------------- // Keyword. /** * Checks if the given string is a keyword. * * @param string $str string to be checked * @param bool $isReserved checks if the keyword is reserved * * @return int|null */ public static function isKeyword($str, $isReserved = false) { $str = strtoupper($str); if (isset(static::$KEYWORDS[$str])) { if ($isReserved && ! (static::$KEYWORDS[$str] & Token::FLAG_KEYWORD_RESERVED)) { return null; } return static::$KEYWORDS[$str]; } return null; } // ------------------------------------------------------------------------- // Operator. /** * Checks if the given string is an operator. * * @param string $str string to be checked * * @return int|null the appropriate flag for the operator */ public static function isOperator($str) { if (! isset(static::$OPERATORS[$str])) { return null; } return static::$OPERATORS[$str]; } // ------------------------------------------------------------------------- // Whitespace. /** * Checks if the given character is a whitespace. * * @param string $str string to be checked * * @return bool */ public static function isWhitespace($str) { return ($str === ' ') || ($str === "\r") || ($str === "\n") || ($str === "\t"); } // ------------------------------------------------------------------------- // Comment. /** * Checks if the given string is the beginning of a whitespace. * * @param string $str string to be checked * @param mixed $end * * @return int|null the appropriate flag for the comment type */ public static function isComment($str, $end = false) { $len = strlen($str); if ($len === 0) { return null; } // If comment is Bash style (#): if ($str[0] === '#') { return Token::FLAG_COMMENT_BASH; } // If comment is opening C style (/*), warning, it could be a MySQL command (/*!) if (($len > 1) && ($str[0] === '/') && ($str[1] === '*')) { return ($len > 2) && ($str[2] === '!') ? Token::FLAG_COMMENT_MYSQL_CMD : Token::FLAG_COMMENT_C; } // If comment is closing C style (*/), warning, it could conflicts with wildcard and a real opening C style. // It would looks like the following valid SQL statement: "SELECT */* comment */ FROM...". if (($len > 1) && ($str[0] === '*') && ($str[1] === '/')) { return Token::FLAG_COMMENT_C; } // If comment is SQL style (--\s?): if (($len > 2) && ($str[0] === '-') && ($str[1] === '-') && static::isWhitespace($str[2])) { return Token::FLAG_COMMENT_SQL; } if (($len === 2) && $end && ($str[0] === '-') && ($str[1] === '-')) { return Token::FLAG_COMMENT_SQL; } return null; } // ------------------------------------------------------------------------- // Bool. /** * Checks if the given string is a boolean value. * This actually check only for `TRUE` and `FALSE` because `1` or `0` are * actually numbers and are parsed by specific methods. * * @param string $str string to be checked * * @return bool */ public static function isBool($str) { $str = strtoupper($str); return ($str === 'TRUE') || ($str === 'FALSE'); } // ------------------------------------------------------------------------- // Number. /** * Checks if the given character can be a part of a number. * * @param string $str string to be checked * * @return bool */ public static function isNumber($str) { return ($str >= '0') && ($str <= '9') || ($str === '.') || ($str === '-') || ($str === '+') || ($str === 'e') || ($str === 'E'); } // ------------------------------------------------------------------------- // Symbol. /** * Checks if the given character is the beginning of a symbol. A symbol * can be either a variable or a field name. * * @param string $str string to be checked * * @return int|null the appropriate flag for the symbol type */ public static function isSymbol($str) { if (strlen($str) === 0) { return null; } if ($str[0] === '@') { return Token::FLAG_SYMBOL_VARIABLE; } if ($str[0] === '`') { return Token::FLAG_SYMBOL_BACKTICK; } if ($str[0] === ':' || $str[0] === '?') { return Token::FLAG_SYMBOL_PARAMETER; } return null; } // ------------------------------------------------------------------------- // String. /** * Checks if the given character is the beginning of a string. * * @param string $str string to be checked * * @return int|null the appropriate flag for the string type */ public static function isString($str) { if (strlen($str) === 0) { return null; } if ($str[0] === '\'') { return Token::FLAG_STRING_SINGLE_QUOTES; } if ($str[0] === '"') { return Token::FLAG_STRING_DOUBLE_QUOTES; } return null; } // ------------------------------------------------------------------------- // Delimiter. /** * Checks if the given character can be a separator for two lexeme. * * @param string $str string to be checked * * @return bool */ public static function isSeparator($str) { // NOTES: Only non alphanumeric ASCII characters may be separators. // `~` is the last printable ASCII character. return ($str <= '~') && ($str !== '_') && ($str !== '$') && (($str < '0') || ($str > '9')) && (($str < 'a') || ($str > 'z')) && (($str < 'A') || ($str > 'Z')); } /** * Loads the specified context. * * Contexts may be used by accessing the context directly. * * @param string $context name of the context or full class name that defines the context * * @return void * * @throws LoaderException if the specified context doesn't exist. */ public static function load($context = '') { if (empty($context)) { $context = self::$defaultContext; } if ($context[0] !== '\\') { // Short context name (must be formatted into class name). $context = self::$contextPrefix . $context; } if (! class_exists($context)) { throw @new LoaderException('Specified context ("' . $context . '") does not exist.', $context); } self::$loadedContext = $context; self::$KEYWORDS = $context::$KEYWORDS; } /** * Loads the context with the closest version to the one specified. * * The closest context is found by replacing last digits with zero until one * is loaded successfully. * * @see Context::load() * * @param string $context name of the context or full class name that * defines the context * * @return string|null The loaded context. `null` if no context was loaded. */ public static function loadClosest($context = '') { $length = strlen($context); for ($i = $length; $i > 0;) { try { /* Trying to load the new context */ static::load($context); return $context; } catch (LoaderException $e) { /* Replace last two non zero digits by zeroes */ do { $i -= 2; $part = substr($context, $i, 2); /* No more numeric parts to strip */ if (! is_numeric($part)) { break 2; } } while (intval($part) === 0 && $i > 0); $context = substr($context, 0, $i) . '00' . substr($context, $i + 2); } } /* Fallback to loading at least matching engine */ if (str_starts_with($context, 'MariaDb')) { return static::loadClosest('MariaDb100300'); } if (str_starts_with($context, 'MySql')) { return static::loadClosest('MySql50700'); } return null; } /** * Gets the SQL mode. */ public static function getMode(): int { return static::$MODE; } /** * Sets the SQL mode. * * @param int|string $mode * * @return void */ public static function setMode($mode = self::SQL_MODE_NONE) { if (is_int($mode)) { static::$MODE = $mode; return; } static::$MODE = self::SQL_MODE_NONE; if ($mode === '') { return; } $modes = explode(',', $mode); foreach ($modes as $sqlMode) { static::$MODE |= self::getModeFromString($sqlMode); } } /** * @psalm-suppress MixedReturnStatement, MixedInferredReturnType Is caused by the LSB of the constants */ private static function getModeFromString(string $mode): int { // phpcs:disable SlevomatCodingStandard.Classes.DisallowLateStaticBindingForConstants.DisallowedLateStaticBindingForConstant switch ($mode) { case 'ALLOW_INVALID_DATES': return static::SQL_MODE_ALLOW_INVALID_DATES; case 'ANSI_QUOTES': return static::SQL_MODE_ANSI_QUOTES; case 'COMPAT_MYSQL': return static::SQL_MODE_COMPAT_MYSQL; case 'ERROR_FOR_DIVISION_BY_ZERO': return static::SQL_MODE_ERROR_FOR_DIVISION_BY_ZERO; case 'HIGH_NOT_PRECEDENCE': return static::SQL_MODE_HIGH_NOT_PRECEDENCE; case 'IGNORE_SPACE': return static::SQL_MODE_IGNORE_SPACE; case 'NO_AUTO_CREATE_USER': return static::SQL_MODE_NO_AUTO_CREATE_USER; case 'NO_AUTO_VALUE_ON_ZERO': return static::SQL_MODE_NO_AUTO_VALUE_ON_ZERO; case 'NO_BACKSLASH_ESCAPES': return static::SQL_MODE_NO_BACKSLASH_ESCAPES; case 'NO_DIR_IN_CREATE': return static::SQL_MODE_NO_DIR_IN_CREATE; case 'NO_ENGINE_SUBSTITUTION': return static::SQL_MODE_NO_ENGINE_SUBSTITUTION; case 'NO_FIELD_OPTIONS': return static::SQL_MODE_NO_FIELD_OPTIONS; case 'NO_KEY_OPTIONS': return static::SQL_MODE_NO_KEY_OPTIONS; case 'NO_TABLE_OPTIONS': return static::SQL_MODE_NO_TABLE_OPTIONS; case 'NO_UNSIGNED_SUBTRACTION': return static::SQL_MODE_NO_UNSIGNED_SUBTRACTION; case 'NO_ZERO_DATE': return static::SQL_MODE_NO_ZERO_DATE; case 'NO_ZERO_IN_DATE': return static::SQL_MODE_NO_ZERO_IN_DATE; case 'ONLY_FULL_GROUP_BY': return static::SQL_MODE_ONLY_FULL_GROUP_BY; case 'PIPES_AS_CONCAT': return static::SQL_MODE_PIPES_AS_CONCAT; case 'REAL_AS_FLOAT': return static::SQL_MODE_REAL_AS_FLOAT; case 'STRICT_ALL_TABLES': return static::SQL_MODE_STRICT_ALL_TABLES; case 'STRICT_TRANS_TABLES': return static::SQL_MODE_STRICT_TRANS_TABLES; case 'NO_ENCLOSING_QUOTES': return static::SQL_MODE_NO_ENCLOSING_QUOTES; case 'ANSI': return static::SQL_MODE_ANSI; case 'DB2': return static::SQL_MODE_DB2; case 'MAXDB': return static::SQL_MODE_MAXDB; case 'MSSQL': return static::SQL_MODE_MSSQL; case 'ORACLE': return static::SQL_MODE_ORACLE; case 'POSTGRESQL': return static::SQL_MODE_POSTGRESQL; case 'TRADITIONAL': return static::SQL_MODE_TRADITIONAL; default: return self::SQL_MODE_NONE; } // phpcs:enable } /** * Escapes the symbol by adding surrounding backticks. * * @param string[]|string $str the string to be escaped * @param string $quote quote to be used when escaping * * @return string|string[] */ public static function escape($str, $quote = '`') { if (is_array($str)) { foreach ($str as $key => $value) { $str[$key] = static::escape($value); } return $str; } if ((static::$MODE & self::SQL_MODE_NO_ENCLOSING_QUOTES) && (! static::isKeyword($str, true))) { return $str; } if (static::$MODE & self::SQL_MODE_ANSI_QUOTES) { $quote = '"'; } return $quote . str_replace($quote, $quote . $quote, $str) . $quote; } /** * Returns char used to quote identifiers based on currently set SQL Mode (ie. standard or ANSI_QUOTES) * * @return string either " (double quote, ansi_quotes mode) or ` (backtick, standard mode) */ public static function getIdentifierQuote() { return self::hasMode(self::SQL_MODE_ANSI_QUOTES) ? '"' : '`'; } /** * Function verifies that given SQL Mode constant is currently set * * @param int $flag for example {@see Context::SQL_MODE_ANSI_QUOTES} * * @return bool false on empty param, true/false on given constant/int value */ public static function hasMode($flag = null) { if (empty($flag)) { return false; } return (self::$MODE & $flag) === $flag; } } // Initializing the default context. Context::load(); sql-parser-5.9.0/src/Contexts/000077500000000000000000000000001455302707200162215ustar00rootroot00000000000000sql-parser-5.9.0/src/Contexts/ContextMariaDb100000.php000066400000000000000000000440211455302707200222400ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'ROWS' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'INNODB' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'AUTHORS' => 1, 'CHANGED' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'VIRTUAL' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'INNOBASE' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'ONE_SHOT' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'COLUMN_NAME' => 1, 'CURSOR_NAME' => 1, 'EXTENT_SIZE' => 1, 'FRAC_SECOND' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'CONTRIBUTORS' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'SQL_BUFFER_RESULT' => 1, 'CONSTRAINT_CATALOG' => 1, 'SQL_TSI_FRAC_SECOND' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'READ' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'IDENTIFIED WITH' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'LOAD_FILE' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'SUBSTRING' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INTERSECTS' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'GEOMFROMWKB' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'LINEFROMTEXT' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'INTERIORRINGN' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'TIMESTAMPDIFF' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'NUMINTERIORRINGS' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'MULTIPOINTFROMTEXT' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMariaDb100100.php000066400000000000000000000545661455302707200222600ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'XID' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'ONLY' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'ROWS' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'NEVER' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'ALWAYS' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'EXPIRE' => 1, 'EXPORT' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'FILTER' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'NUMBER' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'ACCOUNT' => 1, 'ANALYSE' => 1, 'CHANGED' => 1, 'CHANNEL' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'CURRENT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'FOLLOWS' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STACKED' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'WITHOUT' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXCHANGE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'PRECEDES' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PLUGIN_DIR' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'VALIDATION' => 1, 'COLUMN_NAME' => 1, 'COMPRESSION' => 1, 'CURSOR_NAME' => 1, 'DIAGNOSTICS' => 1, 'EXTENT_SIZE' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'NONBLOCKING' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'DEFAULT_AUTH' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MASTER_DELAY' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'COLUMN_FORMAT' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_CRL' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'FILE_BLOCK_SIZE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'PARSE_GCOL_EXPR' => 1, 'REPLICATE_DO_DB' => 1, 'SQL_AFTER_GTIDS' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'SQL_BEFORE_GTIDS' => 1, 'STATS_PERSISTENT' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'GROUP_REPLICATION' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'RETURNED_SQLSTATE' => 1, 'SQL_BUFFER_RESULT' => 1, 'STATS_AUTO_RECALC' => 1, 'CONSTRAINT_CATALOG' => 1, 'MASTER_RETRY_COUNT' => 1, 'MASTER_SSL_CRLPATH' => 1, 'MAX_STATEMENT_TIME' => 1, 'REPLICATE_DO_TABLE' => 1, 'SQL_AFTER_MTS_GAPS' => 1, 'STATS_SAMPLE_PAGES' => 1, 'REPLICATE_IGNORE_DB' => 1, 'MASTER_AUTO_POSITION' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'REPLICATE_REWRITE_DB' => 1, 'REPLICATE_IGNORE_TABLE' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'REPLICATE_WILD_DO_TABLE' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'REPLICATE_WILD_IGNORE_TABLE' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'GET' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'READ' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'STORED' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'VIRTUAL' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'GENERATED' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'MASTER_BIND' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'IO_AFTER_GTIDS' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'IO_BEFORE_GTIDS' => 3, 'OPTIMIZER_COSTS' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'IDENTIFIED WITH' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'ST_X' => 33, 'ST_Y' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'BUFFER' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'IS_IPV4' => 33, 'IS_IPV6' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'ST_AREA' => 33, 'ST_SRID' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'DISTANCE' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'JSON_SET' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'ST_ASWKB' => 33, 'ST_ASWKT' => 33, 'ST_UNION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'ANY_VALUE' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'JSON_KEYS' => 33, 'JSON_TYPE' => 33, 'LOAD_FILE' => 33, 'MBRCOVERS' => 33, 'MBREQUALS' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'ST_ASTEXT' => 33, 'ST_BUFFER' => 33, 'ST_EQUALS' => 33, 'ST_LENGTH' => 33, 'ST_POINTN' => 33, 'ST_WITHIN' => 33, 'SUBSTRING' => 33, 'TO_BASE64' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'CONVEXHULL' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INET6_ATON' => 33, 'INET6_NTOA' => 33, 'INTERSECTS' => 33, 'JSON_ARRAY' => 33, 'JSON_DEPTH' => 33, 'JSON_MERGE' => 33, 'JSON_QUOTE' => 33, 'JSON_VALID' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'ST_CROSSES' => 33, 'ST_GEOHASH' => 33, 'ST_ISEMPTY' => 33, 'ST_ISVALID' => 33, 'ST_TOUCHES' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'FROM_BASE64' => 33, 'GEOMFROMWKB' => 33, 'GTID_SUBSET' => 33, 'JSON_INSERT' => 33, 'JSON_LENGTH' => 33, 'JSON_OBJECT' => 33, 'JSON_PRETTY' => 33, 'JSON_REMOVE' => 33, 'JSON_SEARCH' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'ST_ASBINARY' => 33, 'ST_CENTROID' => 33, 'ST_CONTAINS' => 33, 'ST_DISJOINT' => 33, 'ST_DISTANCE' => 33, 'ST_ENDPOINT' => 33, 'ST_ENVELOPE' => 33, 'ST_ISCLOSED' => 33, 'ST_ISSIMPLE' => 33, 'ST_OVERLAPS' => 33, 'ST_SIMPLIFY' => 33, 'ST_VALIDATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'JSON_EXTRACT' => 33, 'JSON_REPLACE' => 33, 'JSON_UNQUOTE' => 33, 'LINEFROMTEXT' => 33, 'MBRCOVEREDBY' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RANDOM_BYTES' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'ST_ASGEOJSON' => 33, 'ST_DIMENSION' => 33, 'ST_GEOMETRYN' => 33, 'ST_NUMPOINTS' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'GTID_SUBTRACT' => 33, 'INTERIORRINGN' => 33, 'JSON_CONTAINS' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'ST_CONVEXHULL' => 33, 'ST_DIFFERENCE' => 33, 'ST_INTERSECTS' => 33, 'ST_STARTPOINT' => 33, 'TIMESTAMPDIFF' => 33, 'WEIGHT_STRING' => 33, 'IS_IPV4_COMPAT' => 33, 'IS_IPV4_MAPPED' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'ST_GEOMFROMWKB' => 33, 'ST_LINEFROMWKB' => 33, 'ST_POLYFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'ST_EXTERIORRING' => 33, 'ST_GEOMETRYTYPE' => 33, 'ST_GEOMFROMTEXT' => 33, 'ST_INTERSECTION' => 33, 'ST_LINEFROMTEXT' => 33, 'ST_MAKEENVELOPE' => 33, 'ST_MLINEFROMWKB' => 33, 'ST_MPOLYFROMWKB' => 33, 'ST_POINTFROMWKB' => 33, 'ST_POLYFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'JSON_MERGE_PATCH' => 33, 'NUMINTERIORRINGS' => 33, 'ST_INTERIORRINGN' => 33, 'ST_MLINEFROMTEXT' => 33, 'ST_MPOINTFROMWKB' => 33, 'ST_MPOLYFROMTEXT' => 33, 'ST_NUMGEOMETRIES' => 33, 'ST_POINTFROMTEXT' => 33, 'ST_SYMDIFFERENCE' => 33, 'JSON_ARRAY_APPEND' => 33, 'JSON_ARRAY_INSERT' => 33, 'JSON_STORAGE_FREE' => 33, 'JSON_STORAGE_SIZE' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'RELEASE_ALL_LOCKS' => 33, 'ST_LATFROMGEOHASH' => 33, 'ST_MPOINTFROMTEXT' => 33, 'ST_POLYGONFROMWKB' => 33, 'JSON_CONTAINS_PATH' => 33, 'MULTIPOINTFROMTEXT' => 33, 'ST_BUFFER_STRATEGY' => 33, 'ST_DISTANCE_SPHERE' => 33, 'ST_GEOMCOLLFROMTXT' => 33, 'ST_GEOMCOLLFROMWKB' => 33, 'ST_GEOMFROMGEOJSON' => 33, 'ST_LONGFROMGEOHASH' => 33, 'ST_POLYGONFROMTEXT' => 33, 'JSON_MERGE_PRESERVE' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'ST_GEOMCOLLFROMTEXT' => 33, 'ST_GEOMETRYFROMTEXT' => 33, 'ST_NUMINTERIORRINGS' => 33, 'ST_POINTFROMGEOHASH' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'ST_LINESTRINGFROMWKB' => 33, 'ST_MULTIPOINTFROMWKB' => 33, 'ST_MULTIPOINTFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'ST_MULTIPOLYGONFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'ST_MULTIPOLYGONFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_MULTILINESTRINGFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'ST_MULTILINESTRINGFROMTEXT' => 33, 'VALIDATE_PASSWORD_STRENGTH' => 33, 'WAIT_FOR_EXECUTED_GTID_SET' => 33, 'ST_GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_GEOMETRYCOLLECTIONFROMTEXT' => 33, 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMariaDb100200.php000066400000000000000000000546351455302707200222560ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'XID' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'ONLY' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'NEVER' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'ALWAYS' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'EXPIRE' => 1, 'EXPORT' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'FILTER' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'NUMBER' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'ACCOUNT' => 1, 'ANALYSE' => 1, 'CHANGED' => 1, 'CHANNEL' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'CURRENT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'FOLLOWS' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STACKED' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'WITHOUT' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXCHANGE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'PRECEDES' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PLUGIN_DIR' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'VALIDATION' => 1, 'COLUMN_NAME' => 1, 'COMPRESSION' => 1, 'CURSOR_NAME' => 1, 'DIAGNOSTICS' => 1, 'EXTENT_SIZE' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'NONBLOCKING' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'DEFAULT_AUTH' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MASTER_DELAY' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'COLUMN_FORMAT' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_CRL' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'FILE_BLOCK_SIZE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'PARSE_GCOL_EXPR' => 1, 'REPLICATE_DO_DB' => 1, 'SQL_AFTER_GTIDS' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'SQL_BEFORE_GTIDS' => 1, 'STATS_PERSISTENT' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'GROUP_REPLICATION' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'RETURNED_SQLSTATE' => 1, 'SQL_BUFFER_RESULT' => 1, 'STATS_AUTO_RECALC' => 1, 'CONSTRAINT_CATALOG' => 1, 'MASTER_RETRY_COUNT' => 1, 'MASTER_SSL_CRLPATH' => 1, 'MAX_STATEMENT_TIME' => 1, 'REPLICATE_DO_TABLE' => 1, 'SQL_AFTER_MTS_GAPS' => 1, 'STATS_SAMPLE_PAGES' => 1, 'REPLICATE_IGNORE_DB' => 1, 'MASTER_AUTO_POSITION' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'REPLICATE_REWRITE_DB' => 1, 'REPLICATE_IGNORE_TABLE' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'REPLICATE_WILD_DO_TABLE' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'REPLICATE_WILD_IGNORE_TABLE' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'GET' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'OVER' => 3, 'READ' => 3, 'ROWS' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'STORED' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'VIRTUAL' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'GENERATED' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'RECURSIVE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'MASTER_BIND' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'IO_AFTER_GTIDS' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'IO_BEFORE_GTIDS' => 3, 'OPTIMIZER_COSTS' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'IDENTIFIED WITH' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'ST_X' => 33, 'ST_Y' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'BUFFER' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'IS_IPV4' => 33, 'IS_IPV6' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'ST_AREA' => 33, 'ST_SRID' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'DISTANCE' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'JSON_SET' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'ST_ASWKB' => 33, 'ST_ASWKT' => 33, 'ST_UNION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'ANY_VALUE' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'JSON_KEYS' => 33, 'JSON_TYPE' => 33, 'LOAD_FILE' => 33, 'MBRCOVERS' => 33, 'MBREQUALS' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'ST_ASTEXT' => 33, 'ST_BUFFER' => 33, 'ST_EQUALS' => 33, 'ST_LENGTH' => 33, 'ST_POINTN' => 33, 'ST_WITHIN' => 33, 'SUBSTRING' => 33, 'TO_BASE64' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'CONVEXHULL' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INET6_ATON' => 33, 'INET6_NTOA' => 33, 'INTERSECTS' => 33, 'JSON_ARRAY' => 33, 'JSON_DEPTH' => 33, 'JSON_MERGE' => 33, 'JSON_QUOTE' => 33, 'JSON_VALID' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'ST_CROSSES' => 33, 'ST_GEOHASH' => 33, 'ST_ISEMPTY' => 33, 'ST_ISVALID' => 33, 'ST_TOUCHES' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'FROM_BASE64' => 33, 'GEOMFROMWKB' => 33, 'GTID_SUBSET' => 33, 'JSON_INSERT' => 33, 'JSON_LENGTH' => 33, 'JSON_OBJECT' => 33, 'JSON_PRETTY' => 33, 'JSON_REMOVE' => 33, 'JSON_SEARCH' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'ST_ASBINARY' => 33, 'ST_CENTROID' => 33, 'ST_CONTAINS' => 33, 'ST_DISJOINT' => 33, 'ST_DISTANCE' => 33, 'ST_ENDPOINT' => 33, 'ST_ENVELOPE' => 33, 'ST_ISCLOSED' => 33, 'ST_ISSIMPLE' => 33, 'ST_OVERLAPS' => 33, 'ST_SIMPLIFY' => 33, 'ST_VALIDATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'JSON_EXTRACT' => 33, 'JSON_REPLACE' => 33, 'JSON_UNQUOTE' => 33, 'LINEFROMTEXT' => 33, 'MBRCOVEREDBY' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RANDOM_BYTES' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'ST_ASGEOJSON' => 33, 'ST_DIMENSION' => 33, 'ST_GEOMETRYN' => 33, 'ST_NUMPOINTS' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'GTID_SUBTRACT' => 33, 'INTERIORRINGN' => 33, 'JSON_CONTAINS' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'ST_CONVEXHULL' => 33, 'ST_DIFFERENCE' => 33, 'ST_INTERSECTS' => 33, 'ST_STARTPOINT' => 33, 'TIMESTAMPDIFF' => 33, 'WEIGHT_STRING' => 33, 'IS_IPV4_COMPAT' => 33, 'IS_IPV4_MAPPED' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'ST_GEOMFROMWKB' => 33, 'ST_LINEFROMWKB' => 33, 'ST_POLYFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'ST_EXTERIORRING' => 33, 'ST_GEOMETRYTYPE' => 33, 'ST_GEOMFROMTEXT' => 33, 'ST_INTERSECTION' => 33, 'ST_LINEFROMTEXT' => 33, 'ST_MAKEENVELOPE' => 33, 'ST_MLINEFROMWKB' => 33, 'ST_MPOLYFROMWKB' => 33, 'ST_POINTFROMWKB' => 33, 'ST_POLYFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'JSON_MERGE_PATCH' => 33, 'NUMINTERIORRINGS' => 33, 'ST_INTERIORRINGN' => 33, 'ST_MLINEFROMTEXT' => 33, 'ST_MPOINTFROMWKB' => 33, 'ST_MPOLYFROMTEXT' => 33, 'ST_NUMGEOMETRIES' => 33, 'ST_POINTFROMTEXT' => 33, 'ST_SYMDIFFERENCE' => 33, 'JSON_ARRAY_APPEND' => 33, 'JSON_ARRAY_INSERT' => 33, 'JSON_STORAGE_FREE' => 33, 'JSON_STORAGE_SIZE' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'RELEASE_ALL_LOCKS' => 33, 'ST_LATFROMGEOHASH' => 33, 'ST_MPOINTFROMTEXT' => 33, 'ST_POLYGONFROMWKB' => 33, 'JSON_CONTAINS_PATH' => 33, 'MULTIPOINTFROMTEXT' => 33, 'ST_BUFFER_STRATEGY' => 33, 'ST_DISTANCE_SPHERE' => 33, 'ST_GEOMCOLLFROMTXT' => 33, 'ST_GEOMCOLLFROMWKB' => 33, 'ST_GEOMFROMGEOJSON' => 33, 'ST_LONGFROMGEOHASH' => 33, 'ST_POLYGONFROMTEXT' => 33, 'JSON_MERGE_PRESERVE' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'ST_GEOMCOLLFROMTEXT' => 33, 'ST_GEOMETRYFROMTEXT' => 33, 'ST_NUMINTERIORRINGS' => 33, 'ST_POINTFROMGEOHASH' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'ST_LINESTRINGFROMWKB' => 33, 'ST_MULTIPOINTFROMWKB' => 33, 'ST_MULTIPOINTFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'ST_MULTIPOLYGONFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'ST_MULTIPOLYGONFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_MULTILINESTRINGFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'ST_MULTILINESTRINGFROMTEXT' => 33, 'VALIDATE_PASSWORD_STRENGTH' => 33, 'WAIT_FOR_EXECUTED_GTID_SET' => 33, 'ST_GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_GEOMETRYCOLLECTIONFROMTEXT' => 33, 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMariaDb100300.php000066400000000000000000000547411455302707200222550ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'XID' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'ONLY' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'NEVER' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'ALWAYS' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'EXPIRE' => 1, 'EXPORT' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'FILTER' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'NUMBER' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'ACCOUNT' => 1, 'ANALYSE' => 1, 'CHANGED' => 1, 'CHANNEL' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'CURRENT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'FOLLOWS' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STACKED' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'WITHOUT' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXCHANGE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'PRECEDES' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SEQUENCE' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'INVISIBLE' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PLUGIN_DIR' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'VALIDATION' => 1, 'COLUMN_NAME' => 1, 'COMPRESSION' => 1, 'CURSOR_NAME' => 1, 'DIAGNOSTICS' => 1, 'EXTENT_SIZE' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'NONBLOCKING' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'DEFAULT_AUTH' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MASTER_DELAY' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'COLUMN_FORMAT' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_CRL' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'FILE_BLOCK_SIZE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'PARSE_GCOL_EXPR' => 1, 'REPLICATE_DO_DB' => 1, 'SQL_AFTER_GTIDS' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'SQL_BEFORE_GTIDS' => 1, 'STATS_PERSISTENT' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'GROUP_REPLICATION' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'RETURNED_SQLSTATE' => 1, 'SQL_BUFFER_RESULT' => 1, 'STATS_AUTO_RECALC' => 1, 'CONSTRAINT_CATALOG' => 1, 'MASTER_RETRY_COUNT' => 1, 'MASTER_SSL_CRLPATH' => 1, 'MAX_STATEMENT_TIME' => 1, 'REPLICATE_DO_TABLE' => 1, 'SQL_AFTER_MTS_GAPS' => 1, 'STATS_SAMPLE_PAGES' => 1, 'REPLICATE_IGNORE_DB' => 1, 'MASTER_AUTO_POSITION' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'REPLICATE_REWRITE_DB' => 1, 'REPLICATE_IGNORE_TABLE' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'REPLICATE_WILD_DO_TABLE' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'REPLICATE_WILD_IGNORE_TABLE' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'GET' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'OVER' => 3, 'READ' => 3, 'ROWS' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'EXCEPT' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'STORED' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'VIRTUAL' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'GENERATED' => 3, 'INTERSECT' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'RECURSIVE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'MASTER_BIND' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'IO_AFTER_GTIDS' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'IO_BEFORE_GTIDS' => 3, 'OPTIMIZER_COSTS' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'IDENTIFIED WITH' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'ST_X' => 33, 'ST_Y' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'BUFFER' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'IS_IPV4' => 33, 'IS_IPV6' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'ST_AREA' => 33, 'ST_SRID' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'DISTANCE' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'JSON_SET' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'ST_ASWKB' => 33, 'ST_ASWKT' => 33, 'ST_UNION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'ANY_VALUE' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'JSON_KEYS' => 33, 'JSON_TYPE' => 33, 'LOAD_FILE' => 33, 'MBRCOVERS' => 33, 'MBREQUALS' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'ST_ASTEXT' => 33, 'ST_BUFFER' => 33, 'ST_EQUALS' => 33, 'ST_LENGTH' => 33, 'ST_POINTN' => 33, 'ST_WITHIN' => 33, 'SUBSTRING' => 33, 'TO_BASE64' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'CONVEXHULL' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INET6_ATON' => 33, 'INET6_NTOA' => 33, 'INTERSECTS' => 33, 'JSON_ARRAY' => 33, 'JSON_DEPTH' => 33, 'JSON_MERGE' => 33, 'JSON_QUOTE' => 33, 'JSON_VALID' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'ST_CROSSES' => 33, 'ST_GEOHASH' => 33, 'ST_ISEMPTY' => 33, 'ST_ISVALID' => 33, 'ST_TOUCHES' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'FROM_BASE64' => 33, 'GEOMFROMWKB' => 33, 'GTID_SUBSET' => 33, 'JSON_INSERT' => 33, 'JSON_LENGTH' => 33, 'JSON_OBJECT' => 33, 'JSON_PRETTY' => 33, 'JSON_REMOVE' => 33, 'JSON_SEARCH' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'ST_ASBINARY' => 33, 'ST_CENTROID' => 33, 'ST_CONTAINS' => 33, 'ST_DISJOINT' => 33, 'ST_DISTANCE' => 33, 'ST_ENDPOINT' => 33, 'ST_ENVELOPE' => 33, 'ST_ISCLOSED' => 33, 'ST_ISSIMPLE' => 33, 'ST_OVERLAPS' => 33, 'ST_SIMPLIFY' => 33, 'ST_VALIDATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'JSON_EXTRACT' => 33, 'JSON_REPLACE' => 33, 'JSON_UNQUOTE' => 33, 'LINEFROMTEXT' => 33, 'MBRCOVEREDBY' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RANDOM_BYTES' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'ST_ASGEOJSON' => 33, 'ST_DIMENSION' => 33, 'ST_GEOMETRYN' => 33, 'ST_NUMPOINTS' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'GTID_SUBTRACT' => 33, 'INTERIORRINGN' => 33, 'JSON_CONTAINS' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'ST_CONVEXHULL' => 33, 'ST_DIFFERENCE' => 33, 'ST_INTERSECTS' => 33, 'ST_STARTPOINT' => 33, 'TIMESTAMPDIFF' => 33, 'WEIGHT_STRING' => 33, 'IS_IPV4_COMPAT' => 33, 'IS_IPV4_MAPPED' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'ST_GEOMFROMWKB' => 33, 'ST_LINEFROMWKB' => 33, 'ST_POLYFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'ST_EXTERIORRING' => 33, 'ST_GEOMETRYTYPE' => 33, 'ST_GEOMFROMTEXT' => 33, 'ST_INTERSECTION' => 33, 'ST_LINEFROMTEXT' => 33, 'ST_MAKEENVELOPE' => 33, 'ST_MLINEFROMWKB' => 33, 'ST_MPOLYFROMWKB' => 33, 'ST_POINTFROMWKB' => 33, 'ST_POLYFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'JSON_MERGE_PATCH' => 33, 'NUMINTERIORRINGS' => 33, 'ST_INTERIORRINGN' => 33, 'ST_MLINEFROMTEXT' => 33, 'ST_MPOINTFROMWKB' => 33, 'ST_MPOLYFROMTEXT' => 33, 'ST_NUMGEOMETRIES' => 33, 'ST_POINTFROMTEXT' => 33, 'ST_SYMDIFFERENCE' => 33, 'JSON_ARRAY_APPEND' => 33, 'JSON_ARRAY_INSERT' => 33, 'JSON_STORAGE_FREE' => 33, 'JSON_STORAGE_SIZE' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'RELEASE_ALL_LOCKS' => 33, 'ST_LATFROMGEOHASH' => 33, 'ST_MPOINTFROMTEXT' => 33, 'ST_POLYGONFROMWKB' => 33, 'JSON_CONTAINS_PATH' => 33, 'MULTIPOINTFROMTEXT' => 33, 'ST_BUFFER_STRATEGY' => 33, 'ST_DISTANCE_SPHERE' => 33, 'ST_GEOMCOLLFROMTXT' => 33, 'ST_GEOMCOLLFROMWKB' => 33, 'ST_GEOMFROMGEOJSON' => 33, 'ST_LONGFROMGEOHASH' => 33, 'ST_POLYGONFROMTEXT' => 33, 'JSON_MERGE_PRESERVE' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'ST_GEOMCOLLFROMTEXT' => 33, 'ST_GEOMETRYFROMTEXT' => 33, 'ST_NUMINTERIORRINGS' => 33, 'ST_POINTFROMGEOHASH' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'ST_LINESTRINGFROMWKB' => 33, 'ST_MULTIPOINTFROMWKB' => 33, 'ST_MULTIPOINTFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'ST_MULTIPOLYGONFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'ST_MULTIPOLYGONFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_MULTILINESTRINGFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'ST_MULTILINESTRINGFROMTEXT' => 33, 'VALIDATE_PASSWORD_STRENGTH' => 33, 'WAIT_FOR_EXECUTED_GTID_SET' => 33, 'ST_GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_GEOMETRYCOLLECTIONFROMTEXT' => 33, 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMariaDb100400.php000066400000000000000000000547711455302707200222610ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'XID' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'ONLY' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'NEVER' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'ALWAYS' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'EXPIRE' => 1, 'EXPORT' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'FILTER' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'NUMBER' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'ACCOUNT' => 1, 'ANALYSE' => 1, 'CHANGED' => 1, 'CHANNEL' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'CURRENT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'FOLLOWS' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STACKED' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'WITHOUT' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXCHANGE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'PRECEDES' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SEQUENCE' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'INVISIBLE' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PLUGIN_DIR' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'VALIDATION' => 1, 'COLUMN_NAME' => 1, 'COMPRESSION' => 1, 'CURSOR_NAME' => 1, 'DIAGNOSTICS' => 1, 'EXTENT_SIZE' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'NONBLOCKING' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'DEFAULT_AUTH' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MASTER_DELAY' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'COLUMN_FORMAT' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_CRL' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'FILE_BLOCK_SIZE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'PARSE_GCOL_EXPR' => 1, 'REPLICATE_DO_DB' => 1, 'SQL_AFTER_GTIDS' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'SQL_BEFORE_GTIDS' => 1, 'STATS_PERSISTENT' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'GROUP_REPLICATION' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'RETURNED_SQLSTATE' => 1, 'SQL_BUFFER_RESULT' => 1, 'STATS_AUTO_RECALC' => 1, 'CONSTRAINT_CATALOG' => 1, 'MASTER_RETRY_COUNT' => 1, 'MASTER_SSL_CRLPATH' => 1, 'MAX_STATEMENT_TIME' => 1, 'REPLICATE_DO_TABLE' => 1, 'SQL_AFTER_MTS_GAPS' => 1, 'STATS_SAMPLE_PAGES' => 1, 'REPLICATE_IGNORE_DB' => 1, 'MASTER_AUTO_POSITION' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'REPLICATE_REWRITE_DB' => 1, 'REPLICATE_IGNORE_TABLE' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'REPLICATE_WILD_DO_TABLE' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'REPLICATE_WILD_IGNORE_TABLE' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'GET' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'OVER' => 3, 'READ' => 3, 'ROWS' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'EXCEPT' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'STORED' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'VIRTUAL' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'GENERATED' => 3, 'INTERSECT' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'RECURSIVE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'MASTER_BIND' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'IO_AFTER_GTIDS' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'IO_BEFORE_GTIDS' => 3, 'OPTIMIZER_COSTS' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'IDENTIFIED VIA' => 23, 'IDENTIFIED WITH' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'ST_X' => 33, 'ST_Y' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'BUFFER' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'IS_IPV4' => 33, 'IS_IPV6' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'ST_AREA' => 33, 'ST_SRID' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'DISTANCE' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'JSON_SET' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'ST_ASWKB' => 33, 'ST_ASWKT' => 33, 'ST_UNION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'ANY_VALUE' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'JSON_KEYS' => 33, 'JSON_TYPE' => 33, 'LOAD_FILE' => 33, 'MBRCOVERS' => 33, 'MBREQUALS' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'ST_ASTEXT' => 33, 'ST_BUFFER' => 33, 'ST_EQUALS' => 33, 'ST_LENGTH' => 33, 'ST_POINTN' => 33, 'ST_WITHIN' => 33, 'SUBSTRING' => 33, 'TO_BASE64' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'CONVEXHULL' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INET6_ATON' => 33, 'INET6_NTOA' => 33, 'INTERSECTS' => 33, 'JSON_ARRAY' => 33, 'JSON_DEPTH' => 33, 'JSON_MERGE' => 33, 'JSON_QUOTE' => 33, 'JSON_VALID' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'ST_CROSSES' => 33, 'ST_GEOHASH' => 33, 'ST_ISEMPTY' => 33, 'ST_ISVALID' => 33, 'ST_TOUCHES' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'FROM_BASE64' => 33, 'GEOMFROMWKB' => 33, 'GTID_SUBSET' => 33, 'JSON_INSERT' => 33, 'JSON_LENGTH' => 33, 'JSON_OBJECT' => 33, 'JSON_PRETTY' => 33, 'JSON_REMOVE' => 33, 'JSON_SEARCH' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'ST_ASBINARY' => 33, 'ST_CENTROID' => 33, 'ST_CONTAINS' => 33, 'ST_DISJOINT' => 33, 'ST_DISTANCE' => 33, 'ST_ENDPOINT' => 33, 'ST_ENVELOPE' => 33, 'ST_ISCLOSED' => 33, 'ST_ISSIMPLE' => 33, 'ST_OVERLAPS' => 33, 'ST_SIMPLIFY' => 33, 'ST_VALIDATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'JSON_EXTRACT' => 33, 'JSON_REPLACE' => 33, 'JSON_UNQUOTE' => 33, 'LINEFROMTEXT' => 33, 'MBRCOVEREDBY' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RANDOM_BYTES' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'ST_ASGEOJSON' => 33, 'ST_DIMENSION' => 33, 'ST_GEOMETRYN' => 33, 'ST_NUMPOINTS' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'GTID_SUBTRACT' => 33, 'INTERIORRINGN' => 33, 'JSON_CONTAINS' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'ST_CONVEXHULL' => 33, 'ST_DIFFERENCE' => 33, 'ST_INTERSECTS' => 33, 'ST_STARTPOINT' => 33, 'TIMESTAMPDIFF' => 33, 'WEIGHT_STRING' => 33, 'IS_IPV4_COMPAT' => 33, 'IS_IPV4_MAPPED' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'ST_GEOMFROMWKB' => 33, 'ST_LINEFROMWKB' => 33, 'ST_POLYFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'ST_EXTERIORRING' => 33, 'ST_GEOMETRYTYPE' => 33, 'ST_GEOMFROMTEXT' => 33, 'ST_INTERSECTION' => 33, 'ST_LINEFROMTEXT' => 33, 'ST_MAKEENVELOPE' => 33, 'ST_MLINEFROMWKB' => 33, 'ST_MPOLYFROMWKB' => 33, 'ST_POINTFROMWKB' => 33, 'ST_POLYFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'JSON_MERGE_PATCH' => 33, 'NUMINTERIORRINGS' => 33, 'ST_INTERIORRINGN' => 33, 'ST_MLINEFROMTEXT' => 33, 'ST_MPOINTFROMWKB' => 33, 'ST_MPOLYFROMTEXT' => 33, 'ST_NUMGEOMETRIES' => 33, 'ST_POINTFROMTEXT' => 33, 'ST_SYMDIFFERENCE' => 33, 'JSON_ARRAY_APPEND' => 33, 'JSON_ARRAY_INSERT' => 33, 'JSON_STORAGE_FREE' => 33, 'JSON_STORAGE_SIZE' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'RELEASE_ALL_LOCKS' => 33, 'ST_LATFROMGEOHASH' => 33, 'ST_MPOINTFROMTEXT' => 33, 'ST_POLYGONFROMWKB' => 33, 'JSON_CONTAINS_PATH' => 33, 'MULTIPOINTFROMTEXT' => 33, 'ST_BUFFER_STRATEGY' => 33, 'ST_DISTANCE_SPHERE' => 33, 'ST_GEOMCOLLFROMTXT' => 33, 'ST_GEOMCOLLFROMWKB' => 33, 'ST_GEOMFROMGEOJSON' => 33, 'ST_LONGFROMGEOHASH' => 33, 'ST_POLYGONFROMTEXT' => 33, 'JSON_MERGE_PRESERVE' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'ST_GEOMCOLLFROMTEXT' => 33, 'ST_GEOMETRYFROMTEXT' => 33, 'ST_NUMINTERIORRINGS' => 33, 'ST_POINTFROMGEOHASH' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'ST_LINESTRINGFROMWKB' => 33, 'ST_MULTIPOINTFROMWKB' => 33, 'ST_MULTIPOINTFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'ST_MULTIPOLYGONFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'ST_MULTIPOLYGONFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_MULTILINESTRINGFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'ST_MULTILINESTRINGFROMTEXT' => 33, 'VALIDATE_PASSWORD_STRENGTH' => 33, 'WAIT_FOR_EXECUTED_GTID_SET' => 33, 'ST_GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_GEOMETRYCOLLECTIONFROMTEXT' => 33, 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMariaDb100500.php000066400000000000000000000547711455302707200222620ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'XID' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'ONLY' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'NEVER' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'ALWAYS' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'EXPIRE' => 1, 'EXPORT' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'FILTER' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'NUMBER' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'ACCOUNT' => 1, 'ANALYSE' => 1, 'CHANGED' => 1, 'CHANNEL' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'CURRENT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'FOLLOWS' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STACKED' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'WITHOUT' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXCHANGE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'PRECEDES' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SEQUENCE' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'INVISIBLE' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PLUGIN_DIR' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'VALIDATION' => 1, 'COLUMN_NAME' => 1, 'COMPRESSION' => 1, 'CURSOR_NAME' => 1, 'DIAGNOSTICS' => 1, 'EXTENT_SIZE' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'NONBLOCKING' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'DEFAULT_AUTH' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MASTER_DELAY' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'COLUMN_FORMAT' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_CRL' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'FILE_BLOCK_SIZE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'PARSE_GCOL_EXPR' => 1, 'REPLICATE_DO_DB' => 1, 'SQL_AFTER_GTIDS' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'SQL_BEFORE_GTIDS' => 1, 'STATS_PERSISTENT' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'GROUP_REPLICATION' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'RETURNED_SQLSTATE' => 1, 'SQL_BUFFER_RESULT' => 1, 'STATS_AUTO_RECALC' => 1, 'CONSTRAINT_CATALOG' => 1, 'MASTER_RETRY_COUNT' => 1, 'MASTER_SSL_CRLPATH' => 1, 'MAX_STATEMENT_TIME' => 1, 'REPLICATE_DO_TABLE' => 1, 'SQL_AFTER_MTS_GAPS' => 1, 'STATS_SAMPLE_PAGES' => 1, 'REPLICATE_IGNORE_DB' => 1, 'MASTER_AUTO_POSITION' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'REPLICATE_REWRITE_DB' => 1, 'REPLICATE_IGNORE_TABLE' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'REPLICATE_WILD_DO_TABLE' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'REPLICATE_WILD_IGNORE_TABLE' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'GET' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'OVER' => 3, 'READ' => 3, 'ROWS' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'EXCEPT' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'STORED' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'VIRTUAL' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'GENERATED' => 3, 'INTERSECT' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'RECURSIVE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'MASTER_BIND' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'IO_AFTER_GTIDS' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'IO_BEFORE_GTIDS' => 3, 'OPTIMIZER_COSTS' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'IDENTIFIED VIA' => 23, 'IDENTIFIED WITH' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'ST_X' => 33, 'ST_Y' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'BUFFER' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'IS_IPV4' => 33, 'IS_IPV6' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'ST_AREA' => 33, 'ST_SRID' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'DISTANCE' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'JSON_SET' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'ST_ASWKB' => 33, 'ST_ASWKT' => 33, 'ST_UNION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'ANY_VALUE' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'JSON_KEYS' => 33, 'JSON_TYPE' => 33, 'LOAD_FILE' => 33, 'MBRCOVERS' => 33, 'MBREQUALS' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'ST_ASTEXT' => 33, 'ST_BUFFER' => 33, 'ST_EQUALS' => 33, 'ST_LENGTH' => 33, 'ST_POINTN' => 33, 'ST_WITHIN' => 33, 'SUBSTRING' => 33, 'TO_BASE64' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'CONVEXHULL' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INET6_ATON' => 33, 'INET6_NTOA' => 33, 'INTERSECTS' => 33, 'JSON_ARRAY' => 33, 'JSON_DEPTH' => 33, 'JSON_MERGE' => 33, 'JSON_QUOTE' => 33, 'JSON_VALID' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'ST_CROSSES' => 33, 'ST_GEOHASH' => 33, 'ST_ISEMPTY' => 33, 'ST_ISVALID' => 33, 'ST_TOUCHES' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'FROM_BASE64' => 33, 'GEOMFROMWKB' => 33, 'GTID_SUBSET' => 33, 'JSON_INSERT' => 33, 'JSON_LENGTH' => 33, 'JSON_OBJECT' => 33, 'JSON_PRETTY' => 33, 'JSON_REMOVE' => 33, 'JSON_SEARCH' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'ST_ASBINARY' => 33, 'ST_CENTROID' => 33, 'ST_CONTAINS' => 33, 'ST_DISJOINT' => 33, 'ST_DISTANCE' => 33, 'ST_ENDPOINT' => 33, 'ST_ENVELOPE' => 33, 'ST_ISCLOSED' => 33, 'ST_ISSIMPLE' => 33, 'ST_OVERLAPS' => 33, 'ST_SIMPLIFY' => 33, 'ST_VALIDATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'JSON_EXTRACT' => 33, 'JSON_REPLACE' => 33, 'JSON_UNQUOTE' => 33, 'LINEFROMTEXT' => 33, 'MBRCOVEREDBY' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RANDOM_BYTES' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'ST_ASGEOJSON' => 33, 'ST_DIMENSION' => 33, 'ST_GEOMETRYN' => 33, 'ST_NUMPOINTS' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'GTID_SUBTRACT' => 33, 'INTERIORRINGN' => 33, 'JSON_CONTAINS' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'ST_CONVEXHULL' => 33, 'ST_DIFFERENCE' => 33, 'ST_INTERSECTS' => 33, 'ST_STARTPOINT' => 33, 'TIMESTAMPDIFF' => 33, 'WEIGHT_STRING' => 33, 'IS_IPV4_COMPAT' => 33, 'IS_IPV4_MAPPED' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'ST_GEOMFROMWKB' => 33, 'ST_LINEFROMWKB' => 33, 'ST_POLYFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'ST_EXTERIORRING' => 33, 'ST_GEOMETRYTYPE' => 33, 'ST_GEOMFROMTEXT' => 33, 'ST_INTERSECTION' => 33, 'ST_LINEFROMTEXT' => 33, 'ST_MAKEENVELOPE' => 33, 'ST_MLINEFROMWKB' => 33, 'ST_MPOLYFROMWKB' => 33, 'ST_POINTFROMWKB' => 33, 'ST_POLYFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'JSON_MERGE_PATCH' => 33, 'NUMINTERIORRINGS' => 33, 'ST_INTERIORRINGN' => 33, 'ST_MLINEFROMTEXT' => 33, 'ST_MPOINTFROMWKB' => 33, 'ST_MPOLYFROMTEXT' => 33, 'ST_NUMGEOMETRIES' => 33, 'ST_POINTFROMTEXT' => 33, 'ST_SYMDIFFERENCE' => 33, 'JSON_ARRAY_APPEND' => 33, 'JSON_ARRAY_INSERT' => 33, 'JSON_STORAGE_FREE' => 33, 'JSON_STORAGE_SIZE' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'RELEASE_ALL_LOCKS' => 33, 'ST_LATFROMGEOHASH' => 33, 'ST_MPOINTFROMTEXT' => 33, 'ST_POLYGONFROMWKB' => 33, 'JSON_CONTAINS_PATH' => 33, 'MULTIPOINTFROMTEXT' => 33, 'ST_BUFFER_STRATEGY' => 33, 'ST_DISTANCE_SPHERE' => 33, 'ST_GEOMCOLLFROMTXT' => 33, 'ST_GEOMCOLLFROMWKB' => 33, 'ST_GEOMFROMGEOJSON' => 33, 'ST_LONGFROMGEOHASH' => 33, 'ST_POLYGONFROMTEXT' => 33, 'JSON_MERGE_PRESERVE' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'ST_GEOMCOLLFROMTEXT' => 33, 'ST_GEOMETRYFROMTEXT' => 33, 'ST_NUMINTERIORRINGS' => 33, 'ST_POINTFROMGEOHASH' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'ST_LINESTRINGFROMWKB' => 33, 'ST_MULTIPOINTFROMWKB' => 33, 'ST_MULTIPOINTFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'ST_MULTIPOLYGONFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'ST_MULTIPOLYGONFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_MULTILINESTRINGFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'ST_MULTILINESTRINGFROMTEXT' => 33, 'VALIDATE_PASSWORD_STRENGTH' => 33, 'WAIT_FOR_EXECUTED_GTID_SET' => 33, 'ST_GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_GEOMETRYCOLLECTIONFROMTEXT' => 33, 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMariaDb100600.php000066400000000000000000000547711455302707200222630ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'XID' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'ONLY' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'NEVER' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'ALWAYS' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'EXPIRE' => 1, 'EXPORT' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'FILTER' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'NUMBER' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'ACCOUNT' => 1, 'ANALYSE' => 1, 'CHANGED' => 1, 'CHANNEL' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'CURRENT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'FOLLOWS' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STACKED' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'WITHOUT' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXCHANGE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'PRECEDES' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SEQUENCE' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'INVISIBLE' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PLUGIN_DIR' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'VALIDATION' => 1, 'COLUMN_NAME' => 1, 'COMPRESSION' => 1, 'CURSOR_NAME' => 1, 'DIAGNOSTICS' => 1, 'EXTENT_SIZE' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'NONBLOCKING' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'DEFAULT_AUTH' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MASTER_DELAY' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'COLUMN_FORMAT' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_CRL' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'FILE_BLOCK_SIZE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'PARSE_GCOL_EXPR' => 1, 'REPLICATE_DO_DB' => 1, 'SQL_AFTER_GTIDS' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'SQL_BEFORE_GTIDS' => 1, 'STATS_PERSISTENT' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'GROUP_REPLICATION' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'RETURNED_SQLSTATE' => 1, 'SQL_BUFFER_RESULT' => 1, 'STATS_AUTO_RECALC' => 1, 'CONSTRAINT_CATALOG' => 1, 'MASTER_RETRY_COUNT' => 1, 'MASTER_SSL_CRLPATH' => 1, 'MAX_STATEMENT_TIME' => 1, 'REPLICATE_DO_TABLE' => 1, 'SQL_AFTER_MTS_GAPS' => 1, 'STATS_SAMPLE_PAGES' => 1, 'REPLICATE_IGNORE_DB' => 1, 'MASTER_AUTO_POSITION' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'REPLICATE_REWRITE_DB' => 1, 'REPLICATE_IGNORE_TABLE' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'REPLICATE_WILD_DO_TABLE' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'REPLICATE_WILD_IGNORE_TABLE' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'GET' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'OVER' => 3, 'READ' => 3, 'ROWS' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'EXCEPT' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'STORED' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'VIRTUAL' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'GENERATED' => 3, 'INTERSECT' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'RECURSIVE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'MASTER_BIND' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'IO_AFTER_GTIDS' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'IO_BEFORE_GTIDS' => 3, 'OPTIMIZER_COSTS' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'IDENTIFIED VIA' => 23, 'IDENTIFIED WITH' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'ST_X' => 33, 'ST_Y' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'BUFFER' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'IS_IPV4' => 33, 'IS_IPV6' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'ST_AREA' => 33, 'ST_SRID' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'DISTANCE' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'JSON_SET' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'ST_ASWKB' => 33, 'ST_ASWKT' => 33, 'ST_UNION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'ANY_VALUE' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'JSON_KEYS' => 33, 'JSON_TYPE' => 33, 'LOAD_FILE' => 33, 'MBRCOVERS' => 33, 'MBREQUALS' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'ST_ASTEXT' => 33, 'ST_BUFFER' => 33, 'ST_EQUALS' => 33, 'ST_LENGTH' => 33, 'ST_POINTN' => 33, 'ST_WITHIN' => 33, 'SUBSTRING' => 33, 'TO_BASE64' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'CONVEXHULL' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INET6_ATON' => 33, 'INET6_NTOA' => 33, 'INTERSECTS' => 33, 'JSON_ARRAY' => 33, 'JSON_DEPTH' => 33, 'JSON_MERGE' => 33, 'JSON_QUOTE' => 33, 'JSON_VALID' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'ST_CROSSES' => 33, 'ST_GEOHASH' => 33, 'ST_ISEMPTY' => 33, 'ST_ISVALID' => 33, 'ST_TOUCHES' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'FROM_BASE64' => 33, 'GEOMFROMWKB' => 33, 'GTID_SUBSET' => 33, 'JSON_INSERT' => 33, 'JSON_LENGTH' => 33, 'JSON_OBJECT' => 33, 'JSON_PRETTY' => 33, 'JSON_REMOVE' => 33, 'JSON_SEARCH' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'ST_ASBINARY' => 33, 'ST_CENTROID' => 33, 'ST_CONTAINS' => 33, 'ST_DISJOINT' => 33, 'ST_DISTANCE' => 33, 'ST_ENDPOINT' => 33, 'ST_ENVELOPE' => 33, 'ST_ISCLOSED' => 33, 'ST_ISSIMPLE' => 33, 'ST_OVERLAPS' => 33, 'ST_SIMPLIFY' => 33, 'ST_VALIDATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'JSON_EXTRACT' => 33, 'JSON_REPLACE' => 33, 'JSON_UNQUOTE' => 33, 'LINEFROMTEXT' => 33, 'MBRCOVEREDBY' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RANDOM_BYTES' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'ST_ASGEOJSON' => 33, 'ST_DIMENSION' => 33, 'ST_GEOMETRYN' => 33, 'ST_NUMPOINTS' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'GTID_SUBTRACT' => 33, 'INTERIORRINGN' => 33, 'JSON_CONTAINS' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'ST_CONVEXHULL' => 33, 'ST_DIFFERENCE' => 33, 'ST_INTERSECTS' => 33, 'ST_STARTPOINT' => 33, 'TIMESTAMPDIFF' => 33, 'WEIGHT_STRING' => 33, 'IS_IPV4_COMPAT' => 33, 'IS_IPV4_MAPPED' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'ST_GEOMFROMWKB' => 33, 'ST_LINEFROMWKB' => 33, 'ST_POLYFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'ST_EXTERIORRING' => 33, 'ST_GEOMETRYTYPE' => 33, 'ST_GEOMFROMTEXT' => 33, 'ST_INTERSECTION' => 33, 'ST_LINEFROMTEXT' => 33, 'ST_MAKEENVELOPE' => 33, 'ST_MLINEFROMWKB' => 33, 'ST_MPOLYFROMWKB' => 33, 'ST_POINTFROMWKB' => 33, 'ST_POLYFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'JSON_MERGE_PATCH' => 33, 'NUMINTERIORRINGS' => 33, 'ST_INTERIORRINGN' => 33, 'ST_MLINEFROMTEXT' => 33, 'ST_MPOINTFROMWKB' => 33, 'ST_MPOLYFROMTEXT' => 33, 'ST_NUMGEOMETRIES' => 33, 'ST_POINTFROMTEXT' => 33, 'ST_SYMDIFFERENCE' => 33, 'JSON_ARRAY_APPEND' => 33, 'JSON_ARRAY_INSERT' => 33, 'JSON_STORAGE_FREE' => 33, 'JSON_STORAGE_SIZE' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'RELEASE_ALL_LOCKS' => 33, 'ST_LATFROMGEOHASH' => 33, 'ST_MPOINTFROMTEXT' => 33, 'ST_POLYGONFROMWKB' => 33, 'JSON_CONTAINS_PATH' => 33, 'MULTIPOINTFROMTEXT' => 33, 'ST_BUFFER_STRATEGY' => 33, 'ST_DISTANCE_SPHERE' => 33, 'ST_GEOMCOLLFROMTXT' => 33, 'ST_GEOMCOLLFROMWKB' => 33, 'ST_GEOMFROMGEOJSON' => 33, 'ST_LONGFROMGEOHASH' => 33, 'ST_POLYGONFROMTEXT' => 33, 'JSON_MERGE_PRESERVE' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'ST_GEOMCOLLFROMTEXT' => 33, 'ST_GEOMETRYFROMTEXT' => 33, 'ST_NUMINTERIORRINGS' => 33, 'ST_POINTFROMGEOHASH' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'ST_LINESTRINGFROMWKB' => 33, 'ST_MULTIPOINTFROMWKB' => 33, 'ST_MULTIPOINTFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'ST_MULTIPOLYGONFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'ST_MULTIPOLYGONFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_MULTILINESTRINGFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'ST_MULTILINESTRINGFROMTEXT' => 33, 'VALIDATE_PASSWORD_STRENGTH' => 33, 'WAIT_FOR_EXECUTED_GTID_SET' => 33, 'ST_GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_GEOMETRYCOLLECTIONFROMTEXT' => 33, 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMariaDb100700.php000066400000000000000000000547711455302707200222640ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'XID' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'ONLY' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'NEVER' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'ALWAYS' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'EXPIRE' => 1, 'EXPORT' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'FILTER' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'NUMBER' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'ACCOUNT' => 1, 'ANALYSE' => 1, 'CHANGED' => 1, 'CHANNEL' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'CURRENT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'FOLLOWS' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STACKED' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'WITHOUT' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXCHANGE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'PRECEDES' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SEQUENCE' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'INVISIBLE' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PLUGIN_DIR' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'VALIDATION' => 1, 'COLUMN_NAME' => 1, 'COMPRESSION' => 1, 'CURSOR_NAME' => 1, 'DIAGNOSTICS' => 1, 'EXTENT_SIZE' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'NONBLOCKING' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'DEFAULT_AUTH' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MASTER_DELAY' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'COLUMN_FORMAT' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_CRL' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'FILE_BLOCK_SIZE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'PARSE_GCOL_EXPR' => 1, 'REPLICATE_DO_DB' => 1, 'SQL_AFTER_GTIDS' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'SQL_BEFORE_GTIDS' => 1, 'STATS_PERSISTENT' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'GROUP_REPLICATION' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'RETURNED_SQLSTATE' => 1, 'SQL_BUFFER_RESULT' => 1, 'STATS_AUTO_RECALC' => 1, 'CONSTRAINT_CATALOG' => 1, 'MASTER_RETRY_COUNT' => 1, 'MASTER_SSL_CRLPATH' => 1, 'MAX_STATEMENT_TIME' => 1, 'REPLICATE_DO_TABLE' => 1, 'SQL_AFTER_MTS_GAPS' => 1, 'STATS_SAMPLE_PAGES' => 1, 'REPLICATE_IGNORE_DB' => 1, 'MASTER_AUTO_POSITION' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'REPLICATE_REWRITE_DB' => 1, 'REPLICATE_IGNORE_TABLE' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'REPLICATE_WILD_DO_TABLE' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'REPLICATE_WILD_IGNORE_TABLE' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'GET' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'OVER' => 3, 'READ' => 3, 'ROWS' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'EXCEPT' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'STORED' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'VIRTUAL' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'GENERATED' => 3, 'INTERSECT' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'RECURSIVE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'MASTER_BIND' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'IO_AFTER_GTIDS' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'IO_BEFORE_GTIDS' => 3, 'OPTIMIZER_COSTS' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'IDENTIFIED VIA' => 23, 'IDENTIFIED WITH' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'ST_X' => 33, 'ST_Y' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'BUFFER' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'IS_IPV4' => 33, 'IS_IPV6' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'ST_AREA' => 33, 'ST_SRID' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'DISTANCE' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'JSON_SET' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'ST_ASWKB' => 33, 'ST_ASWKT' => 33, 'ST_UNION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'ANY_VALUE' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'JSON_KEYS' => 33, 'JSON_TYPE' => 33, 'LOAD_FILE' => 33, 'MBRCOVERS' => 33, 'MBREQUALS' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'ST_ASTEXT' => 33, 'ST_BUFFER' => 33, 'ST_EQUALS' => 33, 'ST_LENGTH' => 33, 'ST_POINTN' => 33, 'ST_WITHIN' => 33, 'SUBSTRING' => 33, 'TO_BASE64' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'CONVEXHULL' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INET6_ATON' => 33, 'INET6_NTOA' => 33, 'INTERSECTS' => 33, 'JSON_ARRAY' => 33, 'JSON_DEPTH' => 33, 'JSON_MERGE' => 33, 'JSON_QUOTE' => 33, 'JSON_VALID' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'ST_CROSSES' => 33, 'ST_GEOHASH' => 33, 'ST_ISEMPTY' => 33, 'ST_ISVALID' => 33, 'ST_TOUCHES' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'FROM_BASE64' => 33, 'GEOMFROMWKB' => 33, 'GTID_SUBSET' => 33, 'JSON_INSERT' => 33, 'JSON_LENGTH' => 33, 'JSON_OBJECT' => 33, 'JSON_PRETTY' => 33, 'JSON_REMOVE' => 33, 'JSON_SEARCH' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'ST_ASBINARY' => 33, 'ST_CENTROID' => 33, 'ST_CONTAINS' => 33, 'ST_DISJOINT' => 33, 'ST_DISTANCE' => 33, 'ST_ENDPOINT' => 33, 'ST_ENVELOPE' => 33, 'ST_ISCLOSED' => 33, 'ST_ISSIMPLE' => 33, 'ST_OVERLAPS' => 33, 'ST_SIMPLIFY' => 33, 'ST_VALIDATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'JSON_EXTRACT' => 33, 'JSON_REPLACE' => 33, 'JSON_UNQUOTE' => 33, 'LINEFROMTEXT' => 33, 'MBRCOVEREDBY' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RANDOM_BYTES' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'ST_ASGEOJSON' => 33, 'ST_DIMENSION' => 33, 'ST_GEOMETRYN' => 33, 'ST_NUMPOINTS' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'GTID_SUBTRACT' => 33, 'INTERIORRINGN' => 33, 'JSON_CONTAINS' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'ST_CONVEXHULL' => 33, 'ST_DIFFERENCE' => 33, 'ST_INTERSECTS' => 33, 'ST_STARTPOINT' => 33, 'TIMESTAMPDIFF' => 33, 'WEIGHT_STRING' => 33, 'IS_IPV4_COMPAT' => 33, 'IS_IPV4_MAPPED' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'ST_GEOMFROMWKB' => 33, 'ST_LINEFROMWKB' => 33, 'ST_POLYFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'ST_EXTERIORRING' => 33, 'ST_GEOMETRYTYPE' => 33, 'ST_GEOMFROMTEXT' => 33, 'ST_INTERSECTION' => 33, 'ST_LINEFROMTEXT' => 33, 'ST_MAKEENVELOPE' => 33, 'ST_MLINEFROMWKB' => 33, 'ST_MPOLYFROMWKB' => 33, 'ST_POINTFROMWKB' => 33, 'ST_POLYFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'JSON_MERGE_PATCH' => 33, 'NUMINTERIORRINGS' => 33, 'ST_INTERIORRINGN' => 33, 'ST_MLINEFROMTEXT' => 33, 'ST_MPOINTFROMWKB' => 33, 'ST_MPOLYFROMTEXT' => 33, 'ST_NUMGEOMETRIES' => 33, 'ST_POINTFROMTEXT' => 33, 'ST_SYMDIFFERENCE' => 33, 'JSON_ARRAY_APPEND' => 33, 'JSON_ARRAY_INSERT' => 33, 'JSON_STORAGE_FREE' => 33, 'JSON_STORAGE_SIZE' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'RELEASE_ALL_LOCKS' => 33, 'ST_LATFROMGEOHASH' => 33, 'ST_MPOINTFROMTEXT' => 33, 'ST_POLYGONFROMWKB' => 33, 'JSON_CONTAINS_PATH' => 33, 'MULTIPOINTFROMTEXT' => 33, 'ST_BUFFER_STRATEGY' => 33, 'ST_DISTANCE_SPHERE' => 33, 'ST_GEOMCOLLFROMTXT' => 33, 'ST_GEOMCOLLFROMWKB' => 33, 'ST_GEOMFROMGEOJSON' => 33, 'ST_LONGFROMGEOHASH' => 33, 'ST_POLYGONFROMTEXT' => 33, 'JSON_MERGE_PRESERVE' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'ST_GEOMCOLLFROMTEXT' => 33, 'ST_GEOMETRYFROMTEXT' => 33, 'ST_NUMINTERIORRINGS' => 33, 'ST_POINTFROMGEOHASH' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'ST_LINESTRINGFROMWKB' => 33, 'ST_MULTIPOINTFROMWKB' => 33, 'ST_MULTIPOINTFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'ST_MULTIPOLYGONFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'ST_MULTIPOLYGONFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_MULTILINESTRINGFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'ST_MULTILINESTRINGFROMTEXT' => 33, 'VALIDATE_PASSWORD_STRENGTH' => 33, 'WAIT_FOR_EXECUTED_GTID_SET' => 33, 'ST_GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_GEOMETRYCOLLECTIONFROMTEXT' => 33, 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMariaDb100800.php000066400000000000000000000547711455302707200222650ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'XID' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'ONLY' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'NEVER' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'ALWAYS' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'EXPIRE' => 1, 'EXPORT' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'FILTER' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'NUMBER' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'ACCOUNT' => 1, 'ANALYSE' => 1, 'CHANGED' => 1, 'CHANNEL' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'CURRENT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'FOLLOWS' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STACKED' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'WITHOUT' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXCHANGE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'PRECEDES' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SEQUENCE' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'INVISIBLE' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PLUGIN_DIR' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'VALIDATION' => 1, 'COLUMN_NAME' => 1, 'COMPRESSION' => 1, 'CURSOR_NAME' => 1, 'DIAGNOSTICS' => 1, 'EXTENT_SIZE' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'NONBLOCKING' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'DEFAULT_AUTH' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MASTER_DELAY' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'COLUMN_FORMAT' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_CRL' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'FILE_BLOCK_SIZE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'PARSE_GCOL_EXPR' => 1, 'REPLICATE_DO_DB' => 1, 'SQL_AFTER_GTIDS' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'SQL_BEFORE_GTIDS' => 1, 'STATS_PERSISTENT' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'GROUP_REPLICATION' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'RETURNED_SQLSTATE' => 1, 'SQL_BUFFER_RESULT' => 1, 'STATS_AUTO_RECALC' => 1, 'CONSTRAINT_CATALOG' => 1, 'MASTER_RETRY_COUNT' => 1, 'MASTER_SSL_CRLPATH' => 1, 'MAX_STATEMENT_TIME' => 1, 'REPLICATE_DO_TABLE' => 1, 'SQL_AFTER_MTS_GAPS' => 1, 'STATS_SAMPLE_PAGES' => 1, 'REPLICATE_IGNORE_DB' => 1, 'MASTER_AUTO_POSITION' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'REPLICATE_REWRITE_DB' => 1, 'REPLICATE_IGNORE_TABLE' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'REPLICATE_WILD_DO_TABLE' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'REPLICATE_WILD_IGNORE_TABLE' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'GET' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'OVER' => 3, 'READ' => 3, 'ROWS' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'EXCEPT' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'STORED' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'VIRTUAL' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'GENERATED' => 3, 'INTERSECT' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'RECURSIVE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'MASTER_BIND' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'IO_AFTER_GTIDS' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'IO_BEFORE_GTIDS' => 3, 'OPTIMIZER_COSTS' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'IDENTIFIED VIA' => 23, 'IDENTIFIED WITH' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'ST_X' => 33, 'ST_Y' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'BUFFER' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'IS_IPV4' => 33, 'IS_IPV6' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'ST_AREA' => 33, 'ST_SRID' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'DISTANCE' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'JSON_SET' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'ST_ASWKB' => 33, 'ST_ASWKT' => 33, 'ST_UNION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'ANY_VALUE' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'JSON_KEYS' => 33, 'JSON_TYPE' => 33, 'LOAD_FILE' => 33, 'MBRCOVERS' => 33, 'MBREQUALS' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'ST_ASTEXT' => 33, 'ST_BUFFER' => 33, 'ST_EQUALS' => 33, 'ST_LENGTH' => 33, 'ST_POINTN' => 33, 'ST_WITHIN' => 33, 'SUBSTRING' => 33, 'TO_BASE64' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'CONVEXHULL' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INET6_ATON' => 33, 'INET6_NTOA' => 33, 'INTERSECTS' => 33, 'JSON_ARRAY' => 33, 'JSON_DEPTH' => 33, 'JSON_MERGE' => 33, 'JSON_QUOTE' => 33, 'JSON_VALID' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'ST_CROSSES' => 33, 'ST_GEOHASH' => 33, 'ST_ISEMPTY' => 33, 'ST_ISVALID' => 33, 'ST_TOUCHES' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'FROM_BASE64' => 33, 'GEOMFROMWKB' => 33, 'GTID_SUBSET' => 33, 'JSON_INSERT' => 33, 'JSON_LENGTH' => 33, 'JSON_OBJECT' => 33, 'JSON_PRETTY' => 33, 'JSON_REMOVE' => 33, 'JSON_SEARCH' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'ST_ASBINARY' => 33, 'ST_CENTROID' => 33, 'ST_CONTAINS' => 33, 'ST_DISJOINT' => 33, 'ST_DISTANCE' => 33, 'ST_ENDPOINT' => 33, 'ST_ENVELOPE' => 33, 'ST_ISCLOSED' => 33, 'ST_ISSIMPLE' => 33, 'ST_OVERLAPS' => 33, 'ST_SIMPLIFY' => 33, 'ST_VALIDATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'JSON_EXTRACT' => 33, 'JSON_REPLACE' => 33, 'JSON_UNQUOTE' => 33, 'LINEFROMTEXT' => 33, 'MBRCOVEREDBY' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RANDOM_BYTES' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'ST_ASGEOJSON' => 33, 'ST_DIMENSION' => 33, 'ST_GEOMETRYN' => 33, 'ST_NUMPOINTS' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'GTID_SUBTRACT' => 33, 'INTERIORRINGN' => 33, 'JSON_CONTAINS' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'ST_CONVEXHULL' => 33, 'ST_DIFFERENCE' => 33, 'ST_INTERSECTS' => 33, 'ST_STARTPOINT' => 33, 'TIMESTAMPDIFF' => 33, 'WEIGHT_STRING' => 33, 'IS_IPV4_COMPAT' => 33, 'IS_IPV4_MAPPED' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'ST_GEOMFROMWKB' => 33, 'ST_LINEFROMWKB' => 33, 'ST_POLYFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'ST_EXTERIORRING' => 33, 'ST_GEOMETRYTYPE' => 33, 'ST_GEOMFROMTEXT' => 33, 'ST_INTERSECTION' => 33, 'ST_LINEFROMTEXT' => 33, 'ST_MAKEENVELOPE' => 33, 'ST_MLINEFROMWKB' => 33, 'ST_MPOLYFROMWKB' => 33, 'ST_POINTFROMWKB' => 33, 'ST_POLYFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'JSON_MERGE_PATCH' => 33, 'NUMINTERIORRINGS' => 33, 'ST_INTERIORRINGN' => 33, 'ST_MLINEFROMTEXT' => 33, 'ST_MPOINTFROMWKB' => 33, 'ST_MPOLYFROMTEXT' => 33, 'ST_NUMGEOMETRIES' => 33, 'ST_POINTFROMTEXT' => 33, 'ST_SYMDIFFERENCE' => 33, 'JSON_ARRAY_APPEND' => 33, 'JSON_ARRAY_INSERT' => 33, 'JSON_STORAGE_FREE' => 33, 'JSON_STORAGE_SIZE' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'RELEASE_ALL_LOCKS' => 33, 'ST_LATFROMGEOHASH' => 33, 'ST_MPOINTFROMTEXT' => 33, 'ST_POLYGONFROMWKB' => 33, 'JSON_CONTAINS_PATH' => 33, 'MULTIPOINTFROMTEXT' => 33, 'ST_BUFFER_STRATEGY' => 33, 'ST_DISTANCE_SPHERE' => 33, 'ST_GEOMCOLLFROMTXT' => 33, 'ST_GEOMCOLLFROMWKB' => 33, 'ST_GEOMFROMGEOJSON' => 33, 'ST_LONGFROMGEOHASH' => 33, 'ST_POLYGONFROMTEXT' => 33, 'JSON_MERGE_PRESERVE' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'ST_GEOMCOLLFROMTEXT' => 33, 'ST_GEOMETRYFROMTEXT' => 33, 'ST_NUMINTERIORRINGS' => 33, 'ST_POINTFROMGEOHASH' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'ST_LINESTRINGFROMWKB' => 33, 'ST_MULTIPOINTFROMWKB' => 33, 'ST_MULTIPOINTFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'ST_MULTIPOLYGONFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'ST_MULTIPOLYGONFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_MULTILINESTRINGFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'ST_MULTILINESTRINGFROMTEXT' => 33, 'VALIDATE_PASSWORD_STRENGTH' => 33, 'WAIT_FOR_EXECUTED_GTID_SET' => 33, 'ST_GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_GEOMETRYCOLLECTIONFROMTEXT' => 33, 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMariaDb100900.php000066400000000000000000000547711455302707200222660ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'XID' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'ONLY' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'NEVER' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'ALWAYS' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'EXPIRE' => 1, 'EXPORT' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'FILTER' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'NUMBER' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'ACCOUNT' => 1, 'ANALYSE' => 1, 'CHANGED' => 1, 'CHANNEL' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'CURRENT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'FOLLOWS' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STACKED' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'WITHOUT' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXCHANGE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'PRECEDES' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SEQUENCE' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'INVISIBLE' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PLUGIN_DIR' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'VALIDATION' => 1, 'COLUMN_NAME' => 1, 'COMPRESSION' => 1, 'CURSOR_NAME' => 1, 'DIAGNOSTICS' => 1, 'EXTENT_SIZE' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'NONBLOCKING' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'DEFAULT_AUTH' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MASTER_DELAY' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'COLUMN_FORMAT' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_CRL' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'FILE_BLOCK_SIZE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'PARSE_GCOL_EXPR' => 1, 'REPLICATE_DO_DB' => 1, 'SQL_AFTER_GTIDS' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'SQL_BEFORE_GTIDS' => 1, 'STATS_PERSISTENT' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'GROUP_REPLICATION' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'RETURNED_SQLSTATE' => 1, 'SQL_BUFFER_RESULT' => 1, 'STATS_AUTO_RECALC' => 1, 'CONSTRAINT_CATALOG' => 1, 'MASTER_RETRY_COUNT' => 1, 'MASTER_SSL_CRLPATH' => 1, 'MAX_STATEMENT_TIME' => 1, 'REPLICATE_DO_TABLE' => 1, 'SQL_AFTER_MTS_GAPS' => 1, 'STATS_SAMPLE_PAGES' => 1, 'REPLICATE_IGNORE_DB' => 1, 'MASTER_AUTO_POSITION' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'REPLICATE_REWRITE_DB' => 1, 'REPLICATE_IGNORE_TABLE' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'REPLICATE_WILD_DO_TABLE' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'REPLICATE_WILD_IGNORE_TABLE' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'GET' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'OVER' => 3, 'READ' => 3, 'ROWS' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'EXCEPT' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'STORED' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'VIRTUAL' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'GENERATED' => 3, 'INTERSECT' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'RECURSIVE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'MASTER_BIND' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'IO_AFTER_GTIDS' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'IO_BEFORE_GTIDS' => 3, 'OPTIMIZER_COSTS' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'IDENTIFIED VIA' => 23, 'IDENTIFIED WITH' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'ST_X' => 33, 'ST_Y' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'BUFFER' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'IS_IPV4' => 33, 'IS_IPV6' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'ST_AREA' => 33, 'ST_SRID' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'DISTANCE' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'JSON_SET' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'ST_ASWKB' => 33, 'ST_ASWKT' => 33, 'ST_UNION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'ANY_VALUE' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'JSON_KEYS' => 33, 'JSON_TYPE' => 33, 'LOAD_FILE' => 33, 'MBRCOVERS' => 33, 'MBREQUALS' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'ST_ASTEXT' => 33, 'ST_BUFFER' => 33, 'ST_EQUALS' => 33, 'ST_LENGTH' => 33, 'ST_POINTN' => 33, 'ST_WITHIN' => 33, 'SUBSTRING' => 33, 'TO_BASE64' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'CONVEXHULL' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INET6_ATON' => 33, 'INET6_NTOA' => 33, 'INTERSECTS' => 33, 'JSON_ARRAY' => 33, 'JSON_DEPTH' => 33, 'JSON_MERGE' => 33, 'JSON_QUOTE' => 33, 'JSON_VALID' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'ST_CROSSES' => 33, 'ST_GEOHASH' => 33, 'ST_ISEMPTY' => 33, 'ST_ISVALID' => 33, 'ST_TOUCHES' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'FROM_BASE64' => 33, 'GEOMFROMWKB' => 33, 'GTID_SUBSET' => 33, 'JSON_INSERT' => 33, 'JSON_LENGTH' => 33, 'JSON_OBJECT' => 33, 'JSON_PRETTY' => 33, 'JSON_REMOVE' => 33, 'JSON_SEARCH' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'ST_ASBINARY' => 33, 'ST_CENTROID' => 33, 'ST_CONTAINS' => 33, 'ST_DISJOINT' => 33, 'ST_DISTANCE' => 33, 'ST_ENDPOINT' => 33, 'ST_ENVELOPE' => 33, 'ST_ISCLOSED' => 33, 'ST_ISSIMPLE' => 33, 'ST_OVERLAPS' => 33, 'ST_SIMPLIFY' => 33, 'ST_VALIDATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'JSON_EXTRACT' => 33, 'JSON_REPLACE' => 33, 'JSON_UNQUOTE' => 33, 'LINEFROMTEXT' => 33, 'MBRCOVEREDBY' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RANDOM_BYTES' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'ST_ASGEOJSON' => 33, 'ST_DIMENSION' => 33, 'ST_GEOMETRYN' => 33, 'ST_NUMPOINTS' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'GTID_SUBTRACT' => 33, 'INTERIORRINGN' => 33, 'JSON_CONTAINS' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'ST_CONVEXHULL' => 33, 'ST_DIFFERENCE' => 33, 'ST_INTERSECTS' => 33, 'ST_STARTPOINT' => 33, 'TIMESTAMPDIFF' => 33, 'WEIGHT_STRING' => 33, 'IS_IPV4_COMPAT' => 33, 'IS_IPV4_MAPPED' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'ST_GEOMFROMWKB' => 33, 'ST_LINEFROMWKB' => 33, 'ST_POLYFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'ST_EXTERIORRING' => 33, 'ST_GEOMETRYTYPE' => 33, 'ST_GEOMFROMTEXT' => 33, 'ST_INTERSECTION' => 33, 'ST_LINEFROMTEXT' => 33, 'ST_MAKEENVELOPE' => 33, 'ST_MLINEFROMWKB' => 33, 'ST_MPOLYFROMWKB' => 33, 'ST_POINTFROMWKB' => 33, 'ST_POLYFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'JSON_MERGE_PATCH' => 33, 'NUMINTERIORRINGS' => 33, 'ST_INTERIORRINGN' => 33, 'ST_MLINEFROMTEXT' => 33, 'ST_MPOINTFROMWKB' => 33, 'ST_MPOLYFROMTEXT' => 33, 'ST_NUMGEOMETRIES' => 33, 'ST_POINTFROMTEXT' => 33, 'ST_SYMDIFFERENCE' => 33, 'JSON_ARRAY_APPEND' => 33, 'JSON_ARRAY_INSERT' => 33, 'JSON_STORAGE_FREE' => 33, 'JSON_STORAGE_SIZE' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'RELEASE_ALL_LOCKS' => 33, 'ST_LATFROMGEOHASH' => 33, 'ST_MPOINTFROMTEXT' => 33, 'ST_POLYGONFROMWKB' => 33, 'JSON_CONTAINS_PATH' => 33, 'MULTIPOINTFROMTEXT' => 33, 'ST_BUFFER_STRATEGY' => 33, 'ST_DISTANCE_SPHERE' => 33, 'ST_GEOMCOLLFROMTXT' => 33, 'ST_GEOMCOLLFROMWKB' => 33, 'ST_GEOMFROMGEOJSON' => 33, 'ST_LONGFROMGEOHASH' => 33, 'ST_POLYGONFROMTEXT' => 33, 'JSON_MERGE_PRESERVE' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'ST_GEOMCOLLFROMTEXT' => 33, 'ST_GEOMETRYFROMTEXT' => 33, 'ST_NUMINTERIORRINGS' => 33, 'ST_POINTFROMGEOHASH' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'ST_LINESTRINGFROMWKB' => 33, 'ST_MULTIPOINTFROMWKB' => 33, 'ST_MULTIPOINTFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'ST_MULTIPOLYGONFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'ST_MULTIPOLYGONFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_MULTILINESTRINGFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'ST_MULTILINESTRINGFROMTEXT' => 33, 'VALIDATE_PASSWORD_STRENGTH' => 33, 'WAIT_FOR_EXECUTED_GTID_SET' => 33, 'ST_GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_GEOMETRYCOLLECTIONFROMTEXT' => 33, 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMariaDb101000.php000066400000000000000000000547721455302707200222570ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'XID' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'ONLY' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'NEVER' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'ALWAYS' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'EXPIRE' => 1, 'EXPORT' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'FILTER' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'NUMBER' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'ACCOUNT' => 1, 'ANALYSE' => 1, 'CHANGED' => 1, 'CHANNEL' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'CURRENT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'FOLLOWS' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STACKED' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'WITHOUT' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXCHANGE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'PRECEDES' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SEQUENCE' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'INVISIBLE' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PLUGIN_DIR' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'VALIDATION' => 1, 'COLUMN_NAME' => 1, 'COMPRESSION' => 1, 'CURSOR_NAME' => 1, 'DIAGNOSTICS' => 1, 'EXTENT_SIZE' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'NONBLOCKING' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'DEFAULT_AUTH' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MASTER_DELAY' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'COLUMN_FORMAT' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_CRL' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'FILE_BLOCK_SIZE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'PARSE_GCOL_EXPR' => 1, 'REPLICATE_DO_DB' => 1, 'SQL_AFTER_GTIDS' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'SQL_BEFORE_GTIDS' => 1, 'STATS_PERSISTENT' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'GROUP_REPLICATION' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'RETURNED_SQLSTATE' => 1, 'SQL_BUFFER_RESULT' => 1, 'STATS_AUTO_RECALC' => 1, 'CONSTRAINT_CATALOG' => 1, 'MASTER_RETRY_COUNT' => 1, 'MASTER_SSL_CRLPATH' => 1, 'MAX_STATEMENT_TIME' => 1, 'REPLICATE_DO_TABLE' => 1, 'SQL_AFTER_MTS_GAPS' => 1, 'STATS_SAMPLE_PAGES' => 1, 'REPLICATE_IGNORE_DB' => 1, 'MASTER_AUTO_POSITION' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'REPLICATE_REWRITE_DB' => 1, 'REPLICATE_IGNORE_TABLE' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'REPLICATE_WILD_DO_TABLE' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'REPLICATE_WILD_IGNORE_TABLE' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'GET' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'OVER' => 3, 'READ' => 3, 'ROWS' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'EXCEPT' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'STORED' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'VIRTUAL' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'GENERATED' => 3, 'INTERSECT' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'RECURSIVE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'MASTER_BIND' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'IO_AFTER_GTIDS' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'IO_BEFORE_GTIDS' => 3, 'OPTIMIZER_COSTS' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'IDENTIFIED VIA' => 23, 'IDENTIFIED WITH' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'ST_X' => 33, 'ST_Y' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'BUFFER' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'IS_IPV4' => 33, 'IS_IPV6' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'ST_AREA' => 33, 'ST_SRID' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'DISTANCE' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'JSON_SET' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'ST_ASWKB' => 33, 'ST_ASWKT' => 33, 'ST_UNION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'ANY_VALUE' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'JSON_KEYS' => 33, 'JSON_TYPE' => 33, 'LOAD_FILE' => 33, 'MBRCOVERS' => 33, 'MBREQUALS' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'ST_ASTEXT' => 33, 'ST_BUFFER' => 33, 'ST_EQUALS' => 33, 'ST_LENGTH' => 33, 'ST_POINTN' => 33, 'ST_WITHIN' => 33, 'SUBSTRING' => 33, 'TO_BASE64' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'CONVEXHULL' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INET6_ATON' => 33, 'INET6_NTOA' => 33, 'INTERSECTS' => 33, 'JSON_ARRAY' => 33, 'JSON_DEPTH' => 33, 'JSON_MERGE' => 33, 'JSON_QUOTE' => 33, 'JSON_VALID' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'ST_CROSSES' => 33, 'ST_GEOHASH' => 33, 'ST_ISEMPTY' => 33, 'ST_ISVALID' => 33, 'ST_TOUCHES' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'FROM_BASE64' => 33, 'GEOMFROMWKB' => 33, 'GTID_SUBSET' => 33, 'JSON_INSERT' => 33, 'JSON_LENGTH' => 33, 'JSON_OBJECT' => 33, 'JSON_PRETTY' => 33, 'JSON_REMOVE' => 33, 'JSON_SEARCH' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'ST_ASBINARY' => 33, 'ST_CENTROID' => 33, 'ST_CONTAINS' => 33, 'ST_DISJOINT' => 33, 'ST_DISTANCE' => 33, 'ST_ENDPOINT' => 33, 'ST_ENVELOPE' => 33, 'ST_ISCLOSED' => 33, 'ST_ISSIMPLE' => 33, 'ST_OVERLAPS' => 33, 'ST_SIMPLIFY' => 33, 'ST_VALIDATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'JSON_EXTRACT' => 33, 'JSON_REPLACE' => 33, 'JSON_UNQUOTE' => 33, 'LINEFROMTEXT' => 33, 'MBRCOVEREDBY' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RANDOM_BYTES' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'ST_ASGEOJSON' => 33, 'ST_DIMENSION' => 33, 'ST_GEOMETRYN' => 33, 'ST_NUMPOINTS' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'GTID_SUBTRACT' => 33, 'INTERIORRINGN' => 33, 'JSON_CONTAINS' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'ST_CONVEXHULL' => 33, 'ST_DIFFERENCE' => 33, 'ST_INTERSECTS' => 33, 'ST_STARTPOINT' => 33, 'TIMESTAMPDIFF' => 33, 'WEIGHT_STRING' => 33, 'IS_IPV4_COMPAT' => 33, 'IS_IPV4_MAPPED' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'ST_GEOMFROMWKB' => 33, 'ST_LINEFROMWKB' => 33, 'ST_POLYFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'ST_EXTERIORRING' => 33, 'ST_GEOMETRYTYPE' => 33, 'ST_GEOMFROMTEXT' => 33, 'ST_INTERSECTION' => 33, 'ST_LINEFROMTEXT' => 33, 'ST_MAKEENVELOPE' => 33, 'ST_MLINEFROMWKB' => 33, 'ST_MPOLYFROMWKB' => 33, 'ST_POINTFROMWKB' => 33, 'ST_POLYFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'JSON_MERGE_PATCH' => 33, 'NUMINTERIORRINGS' => 33, 'ST_INTERIORRINGN' => 33, 'ST_MLINEFROMTEXT' => 33, 'ST_MPOINTFROMWKB' => 33, 'ST_MPOLYFROMTEXT' => 33, 'ST_NUMGEOMETRIES' => 33, 'ST_POINTFROMTEXT' => 33, 'ST_SYMDIFFERENCE' => 33, 'JSON_ARRAY_APPEND' => 33, 'JSON_ARRAY_INSERT' => 33, 'JSON_STORAGE_FREE' => 33, 'JSON_STORAGE_SIZE' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'RELEASE_ALL_LOCKS' => 33, 'ST_LATFROMGEOHASH' => 33, 'ST_MPOINTFROMTEXT' => 33, 'ST_POLYGONFROMWKB' => 33, 'JSON_CONTAINS_PATH' => 33, 'MULTIPOINTFROMTEXT' => 33, 'ST_BUFFER_STRATEGY' => 33, 'ST_DISTANCE_SPHERE' => 33, 'ST_GEOMCOLLFROMTXT' => 33, 'ST_GEOMCOLLFROMWKB' => 33, 'ST_GEOMFROMGEOJSON' => 33, 'ST_LONGFROMGEOHASH' => 33, 'ST_POLYGONFROMTEXT' => 33, 'JSON_MERGE_PRESERVE' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'ST_GEOMCOLLFROMTEXT' => 33, 'ST_GEOMETRYFROMTEXT' => 33, 'ST_NUMINTERIORRINGS' => 33, 'ST_POINTFROMGEOHASH' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'ST_LINESTRINGFROMWKB' => 33, 'ST_MULTIPOINTFROMWKB' => 33, 'ST_MULTIPOINTFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'ST_MULTIPOLYGONFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'ST_MULTIPOLYGONFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_MULTILINESTRINGFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'ST_MULTILINESTRINGFROMTEXT' => 33, 'VALIDATE_PASSWORD_STRENGTH' => 33, 'WAIT_FOR_EXECUTED_GTID_SET' => 33, 'ST_GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_GEOMETRYCOLLECTIONFROMTEXT' => 33, 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMariaDb101100.php000066400000000000000000000547721455302707200222600ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'XID' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'ONLY' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'NEVER' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'ALWAYS' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'EXPIRE' => 1, 'EXPORT' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'FILTER' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'NUMBER' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'ACCOUNT' => 1, 'ANALYSE' => 1, 'CHANGED' => 1, 'CHANNEL' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'CURRENT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'FOLLOWS' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STACKED' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'WITHOUT' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXCHANGE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'PRECEDES' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SEQUENCE' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'INVISIBLE' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PLUGIN_DIR' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'VALIDATION' => 1, 'COLUMN_NAME' => 1, 'COMPRESSION' => 1, 'CURSOR_NAME' => 1, 'DIAGNOSTICS' => 1, 'EXTENT_SIZE' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'NONBLOCKING' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'DEFAULT_AUTH' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MASTER_DELAY' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'COLUMN_FORMAT' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_CRL' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'FILE_BLOCK_SIZE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'PARSE_GCOL_EXPR' => 1, 'REPLICATE_DO_DB' => 1, 'SQL_AFTER_GTIDS' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'SQL_BEFORE_GTIDS' => 1, 'STATS_PERSISTENT' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'GROUP_REPLICATION' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'RETURNED_SQLSTATE' => 1, 'SQL_BUFFER_RESULT' => 1, 'STATS_AUTO_RECALC' => 1, 'CONSTRAINT_CATALOG' => 1, 'MASTER_RETRY_COUNT' => 1, 'MASTER_SSL_CRLPATH' => 1, 'MAX_STATEMENT_TIME' => 1, 'REPLICATE_DO_TABLE' => 1, 'SQL_AFTER_MTS_GAPS' => 1, 'STATS_SAMPLE_PAGES' => 1, 'REPLICATE_IGNORE_DB' => 1, 'MASTER_AUTO_POSITION' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'REPLICATE_REWRITE_DB' => 1, 'REPLICATE_IGNORE_TABLE' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'REPLICATE_WILD_DO_TABLE' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'REPLICATE_WILD_IGNORE_TABLE' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'GET' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'OVER' => 3, 'READ' => 3, 'ROWS' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'EXCEPT' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'STORED' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'VIRTUAL' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'GENERATED' => 3, 'INTERSECT' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'RECURSIVE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'MASTER_BIND' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'IO_AFTER_GTIDS' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'IO_BEFORE_GTIDS' => 3, 'OPTIMIZER_COSTS' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'IDENTIFIED VIA' => 23, 'IDENTIFIED WITH' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'ST_X' => 33, 'ST_Y' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'BUFFER' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'IS_IPV4' => 33, 'IS_IPV6' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'ST_AREA' => 33, 'ST_SRID' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'DISTANCE' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'JSON_SET' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'ST_ASWKB' => 33, 'ST_ASWKT' => 33, 'ST_UNION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'ANY_VALUE' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'JSON_KEYS' => 33, 'JSON_TYPE' => 33, 'LOAD_FILE' => 33, 'MBRCOVERS' => 33, 'MBREQUALS' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'ST_ASTEXT' => 33, 'ST_BUFFER' => 33, 'ST_EQUALS' => 33, 'ST_LENGTH' => 33, 'ST_POINTN' => 33, 'ST_WITHIN' => 33, 'SUBSTRING' => 33, 'TO_BASE64' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'CONVEXHULL' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INET6_ATON' => 33, 'INET6_NTOA' => 33, 'INTERSECTS' => 33, 'JSON_ARRAY' => 33, 'JSON_DEPTH' => 33, 'JSON_MERGE' => 33, 'JSON_QUOTE' => 33, 'JSON_VALID' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'ST_CROSSES' => 33, 'ST_GEOHASH' => 33, 'ST_ISEMPTY' => 33, 'ST_ISVALID' => 33, 'ST_TOUCHES' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'FROM_BASE64' => 33, 'GEOMFROMWKB' => 33, 'GTID_SUBSET' => 33, 'JSON_INSERT' => 33, 'JSON_LENGTH' => 33, 'JSON_OBJECT' => 33, 'JSON_PRETTY' => 33, 'JSON_REMOVE' => 33, 'JSON_SEARCH' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'ST_ASBINARY' => 33, 'ST_CENTROID' => 33, 'ST_CONTAINS' => 33, 'ST_DISJOINT' => 33, 'ST_DISTANCE' => 33, 'ST_ENDPOINT' => 33, 'ST_ENVELOPE' => 33, 'ST_ISCLOSED' => 33, 'ST_ISSIMPLE' => 33, 'ST_OVERLAPS' => 33, 'ST_SIMPLIFY' => 33, 'ST_VALIDATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'JSON_EXTRACT' => 33, 'JSON_REPLACE' => 33, 'JSON_UNQUOTE' => 33, 'LINEFROMTEXT' => 33, 'MBRCOVEREDBY' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RANDOM_BYTES' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'ST_ASGEOJSON' => 33, 'ST_DIMENSION' => 33, 'ST_GEOMETRYN' => 33, 'ST_NUMPOINTS' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'GTID_SUBTRACT' => 33, 'INTERIORRINGN' => 33, 'JSON_CONTAINS' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'ST_CONVEXHULL' => 33, 'ST_DIFFERENCE' => 33, 'ST_INTERSECTS' => 33, 'ST_STARTPOINT' => 33, 'TIMESTAMPDIFF' => 33, 'WEIGHT_STRING' => 33, 'IS_IPV4_COMPAT' => 33, 'IS_IPV4_MAPPED' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'ST_GEOMFROMWKB' => 33, 'ST_LINEFROMWKB' => 33, 'ST_POLYFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'ST_EXTERIORRING' => 33, 'ST_GEOMETRYTYPE' => 33, 'ST_GEOMFROMTEXT' => 33, 'ST_INTERSECTION' => 33, 'ST_LINEFROMTEXT' => 33, 'ST_MAKEENVELOPE' => 33, 'ST_MLINEFROMWKB' => 33, 'ST_MPOLYFROMWKB' => 33, 'ST_POINTFROMWKB' => 33, 'ST_POLYFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'JSON_MERGE_PATCH' => 33, 'NUMINTERIORRINGS' => 33, 'ST_INTERIORRINGN' => 33, 'ST_MLINEFROMTEXT' => 33, 'ST_MPOINTFROMWKB' => 33, 'ST_MPOLYFROMTEXT' => 33, 'ST_NUMGEOMETRIES' => 33, 'ST_POINTFROMTEXT' => 33, 'ST_SYMDIFFERENCE' => 33, 'JSON_ARRAY_APPEND' => 33, 'JSON_ARRAY_INSERT' => 33, 'JSON_STORAGE_FREE' => 33, 'JSON_STORAGE_SIZE' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'RELEASE_ALL_LOCKS' => 33, 'ST_LATFROMGEOHASH' => 33, 'ST_MPOINTFROMTEXT' => 33, 'ST_POLYGONFROMWKB' => 33, 'JSON_CONTAINS_PATH' => 33, 'MULTIPOINTFROMTEXT' => 33, 'ST_BUFFER_STRATEGY' => 33, 'ST_DISTANCE_SPHERE' => 33, 'ST_GEOMCOLLFROMTXT' => 33, 'ST_GEOMCOLLFROMWKB' => 33, 'ST_GEOMFROMGEOJSON' => 33, 'ST_LONGFROMGEOHASH' => 33, 'ST_POLYGONFROMTEXT' => 33, 'JSON_MERGE_PRESERVE' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'ST_GEOMCOLLFROMTEXT' => 33, 'ST_GEOMETRYFROMTEXT' => 33, 'ST_NUMINTERIORRINGS' => 33, 'ST_POINTFROMGEOHASH' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'ST_LINESTRINGFROMWKB' => 33, 'ST_MULTIPOINTFROMWKB' => 33, 'ST_MULTIPOINTFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'ST_MULTIPOLYGONFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'ST_MULTIPOLYGONFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_MULTILINESTRINGFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'ST_MULTILINESTRINGFROMTEXT' => 33, 'VALIDATE_PASSWORD_STRENGTH' => 33, 'WAIT_FOR_EXECUTED_GTID_SET' => 33, 'ST_GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_GEOMETRYCOLLECTIONFROMTEXT' => 33, 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMariaDb110000.php000066400000000000000000000547711455302707200222560ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'XID' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'ONLY' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'NEVER' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'ALWAYS' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'EXPIRE' => 1, 'EXPORT' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'FILTER' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'NUMBER' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'ACCOUNT' => 1, 'ANALYSE' => 1, 'CHANGED' => 1, 'CHANNEL' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'CURRENT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'FOLLOWS' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STACKED' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'WITHOUT' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXCHANGE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'PRECEDES' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SEQUENCE' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'INVISIBLE' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PLUGIN_DIR' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'VALIDATION' => 1, 'COLUMN_NAME' => 1, 'COMPRESSION' => 1, 'CURSOR_NAME' => 1, 'DIAGNOSTICS' => 1, 'EXTENT_SIZE' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'NONBLOCKING' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'DEFAULT_AUTH' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MASTER_DELAY' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'COLUMN_FORMAT' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_CRL' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'FILE_BLOCK_SIZE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'PARSE_GCOL_EXPR' => 1, 'REPLICATE_DO_DB' => 1, 'SQL_AFTER_GTIDS' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'SQL_BEFORE_GTIDS' => 1, 'STATS_PERSISTENT' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'GROUP_REPLICATION' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'RETURNED_SQLSTATE' => 1, 'SQL_BUFFER_RESULT' => 1, 'STATS_AUTO_RECALC' => 1, 'CONSTRAINT_CATALOG' => 1, 'MASTER_RETRY_COUNT' => 1, 'MASTER_SSL_CRLPATH' => 1, 'MAX_STATEMENT_TIME' => 1, 'REPLICATE_DO_TABLE' => 1, 'SQL_AFTER_MTS_GAPS' => 1, 'STATS_SAMPLE_PAGES' => 1, 'REPLICATE_IGNORE_DB' => 1, 'MASTER_AUTO_POSITION' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'REPLICATE_REWRITE_DB' => 1, 'REPLICATE_IGNORE_TABLE' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'REPLICATE_WILD_DO_TABLE' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'REPLICATE_WILD_IGNORE_TABLE' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'GET' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'OVER' => 3, 'READ' => 3, 'ROWS' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'EXCEPT' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'STORED' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'VIRTUAL' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'GENERATED' => 3, 'INTERSECT' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'RECURSIVE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'MASTER_BIND' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'IO_AFTER_GTIDS' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'IO_BEFORE_GTIDS' => 3, 'OPTIMIZER_COSTS' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'IDENTIFIED VIA' => 23, 'IDENTIFIED WITH' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'ST_X' => 33, 'ST_Y' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'BUFFER' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'IS_IPV4' => 33, 'IS_IPV6' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'ST_AREA' => 33, 'ST_SRID' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'DISTANCE' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'JSON_SET' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'ST_ASWKB' => 33, 'ST_ASWKT' => 33, 'ST_UNION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'ANY_VALUE' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'JSON_KEYS' => 33, 'JSON_TYPE' => 33, 'LOAD_FILE' => 33, 'MBRCOVERS' => 33, 'MBREQUALS' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'ST_ASTEXT' => 33, 'ST_BUFFER' => 33, 'ST_EQUALS' => 33, 'ST_LENGTH' => 33, 'ST_POINTN' => 33, 'ST_WITHIN' => 33, 'SUBSTRING' => 33, 'TO_BASE64' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'CONVEXHULL' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INET6_ATON' => 33, 'INET6_NTOA' => 33, 'INTERSECTS' => 33, 'JSON_ARRAY' => 33, 'JSON_DEPTH' => 33, 'JSON_MERGE' => 33, 'JSON_QUOTE' => 33, 'JSON_VALID' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'ST_CROSSES' => 33, 'ST_GEOHASH' => 33, 'ST_ISEMPTY' => 33, 'ST_ISVALID' => 33, 'ST_TOUCHES' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'FROM_BASE64' => 33, 'GEOMFROMWKB' => 33, 'GTID_SUBSET' => 33, 'JSON_INSERT' => 33, 'JSON_LENGTH' => 33, 'JSON_OBJECT' => 33, 'JSON_PRETTY' => 33, 'JSON_REMOVE' => 33, 'JSON_SEARCH' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'ST_ASBINARY' => 33, 'ST_CENTROID' => 33, 'ST_CONTAINS' => 33, 'ST_DISJOINT' => 33, 'ST_DISTANCE' => 33, 'ST_ENDPOINT' => 33, 'ST_ENVELOPE' => 33, 'ST_ISCLOSED' => 33, 'ST_ISSIMPLE' => 33, 'ST_OVERLAPS' => 33, 'ST_SIMPLIFY' => 33, 'ST_VALIDATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'JSON_EXTRACT' => 33, 'JSON_REPLACE' => 33, 'JSON_UNQUOTE' => 33, 'LINEFROMTEXT' => 33, 'MBRCOVEREDBY' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RANDOM_BYTES' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'ST_ASGEOJSON' => 33, 'ST_DIMENSION' => 33, 'ST_GEOMETRYN' => 33, 'ST_NUMPOINTS' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'GTID_SUBTRACT' => 33, 'INTERIORRINGN' => 33, 'JSON_CONTAINS' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'ST_CONVEXHULL' => 33, 'ST_DIFFERENCE' => 33, 'ST_INTERSECTS' => 33, 'ST_STARTPOINT' => 33, 'TIMESTAMPDIFF' => 33, 'WEIGHT_STRING' => 33, 'IS_IPV4_COMPAT' => 33, 'IS_IPV4_MAPPED' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'ST_GEOMFROMWKB' => 33, 'ST_LINEFROMWKB' => 33, 'ST_POLYFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'ST_EXTERIORRING' => 33, 'ST_GEOMETRYTYPE' => 33, 'ST_GEOMFROMTEXT' => 33, 'ST_INTERSECTION' => 33, 'ST_LINEFROMTEXT' => 33, 'ST_MAKEENVELOPE' => 33, 'ST_MLINEFROMWKB' => 33, 'ST_MPOLYFROMWKB' => 33, 'ST_POINTFROMWKB' => 33, 'ST_POLYFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'JSON_MERGE_PATCH' => 33, 'NUMINTERIORRINGS' => 33, 'ST_INTERIORRINGN' => 33, 'ST_MLINEFROMTEXT' => 33, 'ST_MPOINTFROMWKB' => 33, 'ST_MPOLYFROMTEXT' => 33, 'ST_NUMGEOMETRIES' => 33, 'ST_POINTFROMTEXT' => 33, 'ST_SYMDIFFERENCE' => 33, 'JSON_ARRAY_APPEND' => 33, 'JSON_ARRAY_INSERT' => 33, 'JSON_STORAGE_FREE' => 33, 'JSON_STORAGE_SIZE' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'RELEASE_ALL_LOCKS' => 33, 'ST_LATFROMGEOHASH' => 33, 'ST_MPOINTFROMTEXT' => 33, 'ST_POLYGONFROMWKB' => 33, 'JSON_CONTAINS_PATH' => 33, 'MULTIPOINTFROMTEXT' => 33, 'ST_BUFFER_STRATEGY' => 33, 'ST_DISTANCE_SPHERE' => 33, 'ST_GEOMCOLLFROMTXT' => 33, 'ST_GEOMCOLLFROMWKB' => 33, 'ST_GEOMFROMGEOJSON' => 33, 'ST_LONGFROMGEOHASH' => 33, 'ST_POLYGONFROMTEXT' => 33, 'JSON_MERGE_PRESERVE' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'ST_GEOMCOLLFROMTEXT' => 33, 'ST_GEOMETRYFROMTEXT' => 33, 'ST_NUMINTERIORRINGS' => 33, 'ST_POINTFROMGEOHASH' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'ST_LINESTRINGFROMWKB' => 33, 'ST_MULTIPOINTFROMWKB' => 33, 'ST_MULTIPOINTFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'ST_MULTIPOLYGONFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'ST_MULTIPOLYGONFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_MULTILINESTRINGFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'ST_MULTILINESTRINGFROMTEXT' => 33, 'VALIDATE_PASSWORD_STRENGTH' => 33, 'WAIT_FOR_EXECUTED_GTID_SET' => 33, 'ST_GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_GEOMETRYCOLLECTIONFROMTEXT' => 33, 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMariaDb110100.php000066400000000000000000000547711455302707200222570ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'XID' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'ONLY' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'NEVER' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'ALWAYS' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'EXPIRE' => 1, 'EXPORT' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'FILTER' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'NUMBER' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'ACCOUNT' => 1, 'ANALYSE' => 1, 'CHANGED' => 1, 'CHANNEL' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'CURRENT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'FOLLOWS' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STACKED' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'WITHOUT' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXCHANGE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'PRECEDES' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SEQUENCE' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'INVISIBLE' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PLUGIN_DIR' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'VALIDATION' => 1, 'COLUMN_NAME' => 1, 'COMPRESSION' => 1, 'CURSOR_NAME' => 1, 'DIAGNOSTICS' => 1, 'EXTENT_SIZE' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'NONBLOCKING' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'DEFAULT_AUTH' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MASTER_DELAY' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'COLUMN_FORMAT' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_CRL' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'FILE_BLOCK_SIZE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'PARSE_GCOL_EXPR' => 1, 'REPLICATE_DO_DB' => 1, 'SQL_AFTER_GTIDS' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'SQL_BEFORE_GTIDS' => 1, 'STATS_PERSISTENT' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'GROUP_REPLICATION' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'RETURNED_SQLSTATE' => 1, 'SQL_BUFFER_RESULT' => 1, 'STATS_AUTO_RECALC' => 1, 'CONSTRAINT_CATALOG' => 1, 'MASTER_RETRY_COUNT' => 1, 'MASTER_SSL_CRLPATH' => 1, 'MAX_STATEMENT_TIME' => 1, 'REPLICATE_DO_TABLE' => 1, 'SQL_AFTER_MTS_GAPS' => 1, 'STATS_SAMPLE_PAGES' => 1, 'REPLICATE_IGNORE_DB' => 1, 'MASTER_AUTO_POSITION' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'REPLICATE_REWRITE_DB' => 1, 'REPLICATE_IGNORE_TABLE' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'REPLICATE_WILD_DO_TABLE' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'REPLICATE_WILD_IGNORE_TABLE' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'GET' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'OVER' => 3, 'READ' => 3, 'ROWS' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'EXCEPT' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'STORED' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'VIRTUAL' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'GENERATED' => 3, 'INTERSECT' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'RECURSIVE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'MASTER_BIND' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'IO_AFTER_GTIDS' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'IO_BEFORE_GTIDS' => 3, 'OPTIMIZER_COSTS' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'IDENTIFIED VIA' => 23, 'IDENTIFIED WITH' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'ST_X' => 33, 'ST_Y' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'BUFFER' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'IS_IPV4' => 33, 'IS_IPV6' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'ST_AREA' => 33, 'ST_SRID' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'DISTANCE' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'JSON_SET' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'ST_ASWKB' => 33, 'ST_ASWKT' => 33, 'ST_UNION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'ANY_VALUE' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'JSON_KEYS' => 33, 'JSON_TYPE' => 33, 'LOAD_FILE' => 33, 'MBRCOVERS' => 33, 'MBREQUALS' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'ST_ASTEXT' => 33, 'ST_BUFFER' => 33, 'ST_EQUALS' => 33, 'ST_LENGTH' => 33, 'ST_POINTN' => 33, 'ST_WITHIN' => 33, 'SUBSTRING' => 33, 'TO_BASE64' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'CONVEXHULL' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INET6_ATON' => 33, 'INET6_NTOA' => 33, 'INTERSECTS' => 33, 'JSON_ARRAY' => 33, 'JSON_DEPTH' => 33, 'JSON_MERGE' => 33, 'JSON_QUOTE' => 33, 'JSON_VALID' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'ST_CROSSES' => 33, 'ST_GEOHASH' => 33, 'ST_ISEMPTY' => 33, 'ST_ISVALID' => 33, 'ST_TOUCHES' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'FROM_BASE64' => 33, 'GEOMFROMWKB' => 33, 'GTID_SUBSET' => 33, 'JSON_INSERT' => 33, 'JSON_LENGTH' => 33, 'JSON_OBJECT' => 33, 'JSON_PRETTY' => 33, 'JSON_REMOVE' => 33, 'JSON_SEARCH' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'ST_ASBINARY' => 33, 'ST_CENTROID' => 33, 'ST_CONTAINS' => 33, 'ST_DISJOINT' => 33, 'ST_DISTANCE' => 33, 'ST_ENDPOINT' => 33, 'ST_ENVELOPE' => 33, 'ST_ISCLOSED' => 33, 'ST_ISSIMPLE' => 33, 'ST_OVERLAPS' => 33, 'ST_SIMPLIFY' => 33, 'ST_VALIDATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'JSON_EXTRACT' => 33, 'JSON_REPLACE' => 33, 'JSON_UNQUOTE' => 33, 'LINEFROMTEXT' => 33, 'MBRCOVEREDBY' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RANDOM_BYTES' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'ST_ASGEOJSON' => 33, 'ST_DIMENSION' => 33, 'ST_GEOMETRYN' => 33, 'ST_NUMPOINTS' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'GTID_SUBTRACT' => 33, 'INTERIORRINGN' => 33, 'JSON_CONTAINS' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'ST_CONVEXHULL' => 33, 'ST_DIFFERENCE' => 33, 'ST_INTERSECTS' => 33, 'ST_STARTPOINT' => 33, 'TIMESTAMPDIFF' => 33, 'WEIGHT_STRING' => 33, 'IS_IPV4_COMPAT' => 33, 'IS_IPV4_MAPPED' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'ST_GEOMFROMWKB' => 33, 'ST_LINEFROMWKB' => 33, 'ST_POLYFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'ST_EXTERIORRING' => 33, 'ST_GEOMETRYTYPE' => 33, 'ST_GEOMFROMTEXT' => 33, 'ST_INTERSECTION' => 33, 'ST_LINEFROMTEXT' => 33, 'ST_MAKEENVELOPE' => 33, 'ST_MLINEFROMWKB' => 33, 'ST_MPOLYFROMWKB' => 33, 'ST_POINTFROMWKB' => 33, 'ST_POLYFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'JSON_MERGE_PATCH' => 33, 'NUMINTERIORRINGS' => 33, 'ST_INTERIORRINGN' => 33, 'ST_MLINEFROMTEXT' => 33, 'ST_MPOINTFROMWKB' => 33, 'ST_MPOLYFROMTEXT' => 33, 'ST_NUMGEOMETRIES' => 33, 'ST_POINTFROMTEXT' => 33, 'ST_SYMDIFFERENCE' => 33, 'JSON_ARRAY_APPEND' => 33, 'JSON_ARRAY_INSERT' => 33, 'JSON_STORAGE_FREE' => 33, 'JSON_STORAGE_SIZE' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'RELEASE_ALL_LOCKS' => 33, 'ST_LATFROMGEOHASH' => 33, 'ST_MPOINTFROMTEXT' => 33, 'ST_POLYGONFROMWKB' => 33, 'JSON_CONTAINS_PATH' => 33, 'MULTIPOINTFROMTEXT' => 33, 'ST_BUFFER_STRATEGY' => 33, 'ST_DISTANCE_SPHERE' => 33, 'ST_GEOMCOLLFROMTXT' => 33, 'ST_GEOMCOLLFROMWKB' => 33, 'ST_GEOMFROMGEOJSON' => 33, 'ST_LONGFROMGEOHASH' => 33, 'ST_POLYGONFROMTEXT' => 33, 'JSON_MERGE_PRESERVE' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'ST_GEOMCOLLFROMTEXT' => 33, 'ST_GEOMETRYFROMTEXT' => 33, 'ST_NUMINTERIORRINGS' => 33, 'ST_POINTFROMGEOHASH' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'ST_LINESTRINGFROMWKB' => 33, 'ST_MULTIPOINTFROMWKB' => 33, 'ST_MULTIPOINTFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'ST_MULTIPOLYGONFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'ST_MULTIPOLYGONFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_MULTILINESTRINGFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'ST_MULTILINESTRINGFROMTEXT' => 33, 'VALIDATE_PASSWORD_STRENGTH' => 33, 'WAIT_FOR_EXECUTED_GTID_SET' => 33, 'ST_GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_GEOMETRYCOLLECTIONFROMTEXT' => 33, 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMariaDb110200.php000066400000000000000000000547711455302707200222600ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'XID' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'ONLY' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'NEVER' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'ALWAYS' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'EXPIRE' => 1, 'EXPORT' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'FILTER' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'NUMBER' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'ACCOUNT' => 1, 'ANALYSE' => 1, 'CHANGED' => 1, 'CHANNEL' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'CURRENT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'FOLLOWS' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STACKED' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'WITHOUT' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXCHANGE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'PRECEDES' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SEQUENCE' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'INVISIBLE' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PLUGIN_DIR' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'VALIDATION' => 1, 'COLUMN_NAME' => 1, 'COMPRESSION' => 1, 'CURSOR_NAME' => 1, 'DIAGNOSTICS' => 1, 'EXTENT_SIZE' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'NONBLOCKING' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'DEFAULT_AUTH' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MASTER_DELAY' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'COLUMN_FORMAT' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_CRL' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'FILE_BLOCK_SIZE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'PARSE_GCOL_EXPR' => 1, 'REPLICATE_DO_DB' => 1, 'SQL_AFTER_GTIDS' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'SQL_BEFORE_GTIDS' => 1, 'STATS_PERSISTENT' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'GROUP_REPLICATION' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'RETURNED_SQLSTATE' => 1, 'SQL_BUFFER_RESULT' => 1, 'STATS_AUTO_RECALC' => 1, 'CONSTRAINT_CATALOG' => 1, 'MASTER_RETRY_COUNT' => 1, 'MASTER_SSL_CRLPATH' => 1, 'MAX_STATEMENT_TIME' => 1, 'REPLICATE_DO_TABLE' => 1, 'SQL_AFTER_MTS_GAPS' => 1, 'STATS_SAMPLE_PAGES' => 1, 'REPLICATE_IGNORE_DB' => 1, 'MASTER_AUTO_POSITION' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'REPLICATE_REWRITE_DB' => 1, 'REPLICATE_IGNORE_TABLE' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'REPLICATE_WILD_DO_TABLE' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'REPLICATE_WILD_IGNORE_TABLE' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'GET' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'OVER' => 3, 'READ' => 3, 'ROWS' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'EXCEPT' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'STORED' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'VIRTUAL' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'GENERATED' => 3, 'INTERSECT' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'RECURSIVE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'MASTER_BIND' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'IO_AFTER_GTIDS' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'IO_BEFORE_GTIDS' => 3, 'OPTIMIZER_COSTS' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'IDENTIFIED VIA' => 23, 'IDENTIFIED WITH' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'ST_X' => 33, 'ST_Y' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'BUFFER' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'IS_IPV4' => 33, 'IS_IPV6' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'ST_AREA' => 33, 'ST_SRID' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'DISTANCE' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'JSON_SET' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'ST_ASWKB' => 33, 'ST_ASWKT' => 33, 'ST_UNION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'ANY_VALUE' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'JSON_KEYS' => 33, 'JSON_TYPE' => 33, 'LOAD_FILE' => 33, 'MBRCOVERS' => 33, 'MBREQUALS' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'ST_ASTEXT' => 33, 'ST_BUFFER' => 33, 'ST_EQUALS' => 33, 'ST_LENGTH' => 33, 'ST_POINTN' => 33, 'ST_WITHIN' => 33, 'SUBSTRING' => 33, 'TO_BASE64' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'CONVEXHULL' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INET6_ATON' => 33, 'INET6_NTOA' => 33, 'INTERSECTS' => 33, 'JSON_ARRAY' => 33, 'JSON_DEPTH' => 33, 'JSON_MERGE' => 33, 'JSON_QUOTE' => 33, 'JSON_VALID' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'ST_CROSSES' => 33, 'ST_GEOHASH' => 33, 'ST_ISEMPTY' => 33, 'ST_ISVALID' => 33, 'ST_TOUCHES' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'FROM_BASE64' => 33, 'GEOMFROMWKB' => 33, 'GTID_SUBSET' => 33, 'JSON_INSERT' => 33, 'JSON_LENGTH' => 33, 'JSON_OBJECT' => 33, 'JSON_PRETTY' => 33, 'JSON_REMOVE' => 33, 'JSON_SEARCH' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'ST_ASBINARY' => 33, 'ST_CENTROID' => 33, 'ST_CONTAINS' => 33, 'ST_DISJOINT' => 33, 'ST_DISTANCE' => 33, 'ST_ENDPOINT' => 33, 'ST_ENVELOPE' => 33, 'ST_ISCLOSED' => 33, 'ST_ISSIMPLE' => 33, 'ST_OVERLAPS' => 33, 'ST_SIMPLIFY' => 33, 'ST_VALIDATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'JSON_EXTRACT' => 33, 'JSON_REPLACE' => 33, 'JSON_UNQUOTE' => 33, 'LINEFROMTEXT' => 33, 'MBRCOVEREDBY' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RANDOM_BYTES' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'ST_ASGEOJSON' => 33, 'ST_DIMENSION' => 33, 'ST_GEOMETRYN' => 33, 'ST_NUMPOINTS' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'GTID_SUBTRACT' => 33, 'INTERIORRINGN' => 33, 'JSON_CONTAINS' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'ST_CONVEXHULL' => 33, 'ST_DIFFERENCE' => 33, 'ST_INTERSECTS' => 33, 'ST_STARTPOINT' => 33, 'TIMESTAMPDIFF' => 33, 'WEIGHT_STRING' => 33, 'IS_IPV4_COMPAT' => 33, 'IS_IPV4_MAPPED' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'ST_GEOMFROMWKB' => 33, 'ST_LINEFROMWKB' => 33, 'ST_POLYFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'ST_EXTERIORRING' => 33, 'ST_GEOMETRYTYPE' => 33, 'ST_GEOMFROMTEXT' => 33, 'ST_INTERSECTION' => 33, 'ST_LINEFROMTEXT' => 33, 'ST_MAKEENVELOPE' => 33, 'ST_MLINEFROMWKB' => 33, 'ST_MPOLYFROMWKB' => 33, 'ST_POINTFROMWKB' => 33, 'ST_POLYFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'JSON_MERGE_PATCH' => 33, 'NUMINTERIORRINGS' => 33, 'ST_INTERIORRINGN' => 33, 'ST_MLINEFROMTEXT' => 33, 'ST_MPOINTFROMWKB' => 33, 'ST_MPOLYFROMTEXT' => 33, 'ST_NUMGEOMETRIES' => 33, 'ST_POINTFROMTEXT' => 33, 'ST_SYMDIFFERENCE' => 33, 'JSON_ARRAY_APPEND' => 33, 'JSON_ARRAY_INSERT' => 33, 'JSON_STORAGE_FREE' => 33, 'JSON_STORAGE_SIZE' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'RELEASE_ALL_LOCKS' => 33, 'ST_LATFROMGEOHASH' => 33, 'ST_MPOINTFROMTEXT' => 33, 'ST_POLYGONFROMWKB' => 33, 'JSON_CONTAINS_PATH' => 33, 'MULTIPOINTFROMTEXT' => 33, 'ST_BUFFER_STRATEGY' => 33, 'ST_DISTANCE_SPHERE' => 33, 'ST_GEOMCOLLFROMTXT' => 33, 'ST_GEOMCOLLFROMWKB' => 33, 'ST_GEOMFROMGEOJSON' => 33, 'ST_LONGFROMGEOHASH' => 33, 'ST_POLYGONFROMTEXT' => 33, 'JSON_MERGE_PRESERVE' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'ST_GEOMCOLLFROMTEXT' => 33, 'ST_GEOMETRYFROMTEXT' => 33, 'ST_NUMINTERIORRINGS' => 33, 'ST_POINTFROMGEOHASH' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'ST_LINESTRINGFROMWKB' => 33, 'ST_MULTIPOINTFROMWKB' => 33, 'ST_MULTIPOINTFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'ST_MULTIPOLYGONFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'ST_MULTIPOLYGONFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_MULTILINESTRINGFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'ST_MULTILINESTRINGFROMTEXT' => 33, 'VALIDATE_PASSWORD_STRENGTH' => 33, 'WAIT_FOR_EXECUTED_GTID_SET' => 33, 'ST_GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_GEOMETRYCOLLECTIONFROMTEXT' => 33, 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMariaDb110300.php000066400000000000000000000547711455302707200222610ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'XID' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'ONLY' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'NEVER' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'ALWAYS' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'EXPIRE' => 1, 'EXPORT' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'FILTER' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'NUMBER' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'ACCOUNT' => 1, 'ANALYSE' => 1, 'CHANGED' => 1, 'CHANNEL' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'CURRENT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'FOLLOWS' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STACKED' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'WITHOUT' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXCHANGE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'PRECEDES' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SEQUENCE' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'INVISIBLE' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PLUGIN_DIR' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'VALIDATION' => 1, 'COLUMN_NAME' => 1, 'COMPRESSION' => 1, 'CURSOR_NAME' => 1, 'DIAGNOSTICS' => 1, 'EXTENT_SIZE' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'NONBLOCKING' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'DEFAULT_AUTH' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MASTER_DELAY' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'COLUMN_FORMAT' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_CRL' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'FILE_BLOCK_SIZE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'PARSE_GCOL_EXPR' => 1, 'REPLICATE_DO_DB' => 1, 'SQL_AFTER_GTIDS' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'SQL_BEFORE_GTIDS' => 1, 'STATS_PERSISTENT' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'GROUP_REPLICATION' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'RETURNED_SQLSTATE' => 1, 'SQL_BUFFER_RESULT' => 1, 'STATS_AUTO_RECALC' => 1, 'CONSTRAINT_CATALOG' => 1, 'MASTER_RETRY_COUNT' => 1, 'MASTER_SSL_CRLPATH' => 1, 'MAX_STATEMENT_TIME' => 1, 'REPLICATE_DO_TABLE' => 1, 'SQL_AFTER_MTS_GAPS' => 1, 'STATS_SAMPLE_PAGES' => 1, 'REPLICATE_IGNORE_DB' => 1, 'MASTER_AUTO_POSITION' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'REPLICATE_REWRITE_DB' => 1, 'REPLICATE_IGNORE_TABLE' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'REPLICATE_WILD_DO_TABLE' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'REPLICATE_WILD_IGNORE_TABLE' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'GET' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'OVER' => 3, 'READ' => 3, 'ROWS' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'EXCEPT' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'STORED' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'VIRTUAL' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'GENERATED' => 3, 'INTERSECT' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'RECURSIVE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'MASTER_BIND' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'IO_AFTER_GTIDS' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'IO_BEFORE_GTIDS' => 3, 'OPTIMIZER_COSTS' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'IDENTIFIED VIA' => 23, 'IDENTIFIED WITH' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'ST_X' => 33, 'ST_Y' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'BUFFER' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'IS_IPV4' => 33, 'IS_IPV6' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'ST_AREA' => 33, 'ST_SRID' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'DISTANCE' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'JSON_SET' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'ST_ASWKB' => 33, 'ST_ASWKT' => 33, 'ST_UNION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'ANY_VALUE' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'JSON_KEYS' => 33, 'JSON_TYPE' => 33, 'LOAD_FILE' => 33, 'MBRCOVERS' => 33, 'MBREQUALS' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'ST_ASTEXT' => 33, 'ST_BUFFER' => 33, 'ST_EQUALS' => 33, 'ST_LENGTH' => 33, 'ST_POINTN' => 33, 'ST_WITHIN' => 33, 'SUBSTRING' => 33, 'TO_BASE64' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'CONVEXHULL' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INET6_ATON' => 33, 'INET6_NTOA' => 33, 'INTERSECTS' => 33, 'JSON_ARRAY' => 33, 'JSON_DEPTH' => 33, 'JSON_MERGE' => 33, 'JSON_QUOTE' => 33, 'JSON_VALID' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'ST_CROSSES' => 33, 'ST_GEOHASH' => 33, 'ST_ISEMPTY' => 33, 'ST_ISVALID' => 33, 'ST_TOUCHES' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'FROM_BASE64' => 33, 'GEOMFROMWKB' => 33, 'GTID_SUBSET' => 33, 'JSON_INSERT' => 33, 'JSON_LENGTH' => 33, 'JSON_OBJECT' => 33, 'JSON_PRETTY' => 33, 'JSON_REMOVE' => 33, 'JSON_SEARCH' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'ST_ASBINARY' => 33, 'ST_CENTROID' => 33, 'ST_CONTAINS' => 33, 'ST_DISJOINT' => 33, 'ST_DISTANCE' => 33, 'ST_ENDPOINT' => 33, 'ST_ENVELOPE' => 33, 'ST_ISCLOSED' => 33, 'ST_ISSIMPLE' => 33, 'ST_OVERLAPS' => 33, 'ST_SIMPLIFY' => 33, 'ST_VALIDATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'JSON_EXTRACT' => 33, 'JSON_REPLACE' => 33, 'JSON_UNQUOTE' => 33, 'LINEFROMTEXT' => 33, 'MBRCOVEREDBY' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RANDOM_BYTES' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'ST_ASGEOJSON' => 33, 'ST_DIMENSION' => 33, 'ST_GEOMETRYN' => 33, 'ST_NUMPOINTS' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'GTID_SUBTRACT' => 33, 'INTERIORRINGN' => 33, 'JSON_CONTAINS' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'ST_CONVEXHULL' => 33, 'ST_DIFFERENCE' => 33, 'ST_INTERSECTS' => 33, 'ST_STARTPOINT' => 33, 'TIMESTAMPDIFF' => 33, 'WEIGHT_STRING' => 33, 'IS_IPV4_COMPAT' => 33, 'IS_IPV4_MAPPED' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'ST_GEOMFROMWKB' => 33, 'ST_LINEFROMWKB' => 33, 'ST_POLYFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'ST_EXTERIORRING' => 33, 'ST_GEOMETRYTYPE' => 33, 'ST_GEOMFROMTEXT' => 33, 'ST_INTERSECTION' => 33, 'ST_LINEFROMTEXT' => 33, 'ST_MAKEENVELOPE' => 33, 'ST_MLINEFROMWKB' => 33, 'ST_MPOLYFROMWKB' => 33, 'ST_POINTFROMWKB' => 33, 'ST_POLYFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'JSON_MERGE_PATCH' => 33, 'NUMINTERIORRINGS' => 33, 'ST_INTERIORRINGN' => 33, 'ST_MLINEFROMTEXT' => 33, 'ST_MPOINTFROMWKB' => 33, 'ST_MPOLYFROMTEXT' => 33, 'ST_NUMGEOMETRIES' => 33, 'ST_POINTFROMTEXT' => 33, 'ST_SYMDIFFERENCE' => 33, 'JSON_ARRAY_APPEND' => 33, 'JSON_ARRAY_INSERT' => 33, 'JSON_STORAGE_FREE' => 33, 'JSON_STORAGE_SIZE' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'RELEASE_ALL_LOCKS' => 33, 'ST_LATFROMGEOHASH' => 33, 'ST_MPOINTFROMTEXT' => 33, 'ST_POLYGONFROMWKB' => 33, 'JSON_CONTAINS_PATH' => 33, 'MULTIPOINTFROMTEXT' => 33, 'ST_BUFFER_STRATEGY' => 33, 'ST_DISTANCE_SPHERE' => 33, 'ST_GEOMCOLLFROMTXT' => 33, 'ST_GEOMCOLLFROMWKB' => 33, 'ST_GEOMFROMGEOJSON' => 33, 'ST_LONGFROMGEOHASH' => 33, 'ST_POLYGONFROMTEXT' => 33, 'JSON_MERGE_PRESERVE' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'ST_GEOMCOLLFROMTEXT' => 33, 'ST_GEOMETRYFROMTEXT' => 33, 'ST_NUMINTERIORRINGS' => 33, 'ST_POINTFROMGEOHASH' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'ST_LINESTRINGFROMWKB' => 33, 'ST_MULTIPOINTFROMWKB' => 33, 'ST_MULTIPOINTFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'ST_MULTIPOLYGONFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'ST_MULTIPOLYGONFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_MULTILINESTRINGFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'ST_MULTILINESTRINGFROMTEXT' => 33, 'VALIDATE_PASSWORD_STRENGTH' => 33, 'WAIT_FOR_EXECUTED_GTID_SET' => 33, 'ST_GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_GEOMETRYCOLLECTIONFROMTEXT' => 33, 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMariaDb110400.php000066400000000000000000000547711455302707200222620ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'XID' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'ONLY' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'NEVER' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'ALWAYS' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'EXPIRE' => 1, 'EXPORT' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'FILTER' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'NUMBER' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'ACCOUNT' => 1, 'ANALYSE' => 1, 'CHANGED' => 1, 'CHANNEL' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'CURRENT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'FOLLOWS' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STACKED' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'WITHOUT' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXCHANGE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'PRECEDES' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SEQUENCE' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'INVISIBLE' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PLUGIN_DIR' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'VALIDATION' => 1, 'COLUMN_NAME' => 1, 'COMPRESSION' => 1, 'CURSOR_NAME' => 1, 'DIAGNOSTICS' => 1, 'EXTENT_SIZE' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'NONBLOCKING' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'DEFAULT_AUTH' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MASTER_DELAY' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'COLUMN_FORMAT' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_CRL' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'FILE_BLOCK_SIZE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'PARSE_GCOL_EXPR' => 1, 'REPLICATE_DO_DB' => 1, 'SQL_AFTER_GTIDS' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'SQL_BEFORE_GTIDS' => 1, 'STATS_PERSISTENT' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'GROUP_REPLICATION' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'RETURNED_SQLSTATE' => 1, 'SQL_BUFFER_RESULT' => 1, 'STATS_AUTO_RECALC' => 1, 'CONSTRAINT_CATALOG' => 1, 'MASTER_RETRY_COUNT' => 1, 'MASTER_SSL_CRLPATH' => 1, 'MAX_STATEMENT_TIME' => 1, 'REPLICATE_DO_TABLE' => 1, 'SQL_AFTER_MTS_GAPS' => 1, 'STATS_SAMPLE_PAGES' => 1, 'REPLICATE_IGNORE_DB' => 1, 'MASTER_AUTO_POSITION' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'REPLICATE_REWRITE_DB' => 1, 'REPLICATE_IGNORE_TABLE' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'REPLICATE_WILD_DO_TABLE' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'REPLICATE_WILD_IGNORE_TABLE' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'GET' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'OVER' => 3, 'READ' => 3, 'ROWS' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'EXCEPT' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'STORED' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'VIRTUAL' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'GENERATED' => 3, 'INTERSECT' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'RECURSIVE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'MASTER_BIND' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'IO_AFTER_GTIDS' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'IO_BEFORE_GTIDS' => 3, 'OPTIMIZER_COSTS' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'IDENTIFIED VIA' => 23, 'IDENTIFIED WITH' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'ST_X' => 33, 'ST_Y' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'BUFFER' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'IS_IPV4' => 33, 'IS_IPV6' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'ST_AREA' => 33, 'ST_SRID' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'DISTANCE' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'JSON_SET' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'ST_ASWKB' => 33, 'ST_ASWKT' => 33, 'ST_UNION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'ANY_VALUE' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'JSON_KEYS' => 33, 'JSON_TYPE' => 33, 'LOAD_FILE' => 33, 'MBRCOVERS' => 33, 'MBREQUALS' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'ST_ASTEXT' => 33, 'ST_BUFFER' => 33, 'ST_EQUALS' => 33, 'ST_LENGTH' => 33, 'ST_POINTN' => 33, 'ST_WITHIN' => 33, 'SUBSTRING' => 33, 'TO_BASE64' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'CONVEXHULL' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INET6_ATON' => 33, 'INET6_NTOA' => 33, 'INTERSECTS' => 33, 'JSON_ARRAY' => 33, 'JSON_DEPTH' => 33, 'JSON_MERGE' => 33, 'JSON_QUOTE' => 33, 'JSON_VALID' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'ST_CROSSES' => 33, 'ST_GEOHASH' => 33, 'ST_ISEMPTY' => 33, 'ST_ISVALID' => 33, 'ST_TOUCHES' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'FROM_BASE64' => 33, 'GEOMFROMWKB' => 33, 'GTID_SUBSET' => 33, 'JSON_INSERT' => 33, 'JSON_LENGTH' => 33, 'JSON_OBJECT' => 33, 'JSON_PRETTY' => 33, 'JSON_REMOVE' => 33, 'JSON_SEARCH' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'ST_ASBINARY' => 33, 'ST_CENTROID' => 33, 'ST_CONTAINS' => 33, 'ST_DISJOINT' => 33, 'ST_DISTANCE' => 33, 'ST_ENDPOINT' => 33, 'ST_ENVELOPE' => 33, 'ST_ISCLOSED' => 33, 'ST_ISSIMPLE' => 33, 'ST_OVERLAPS' => 33, 'ST_SIMPLIFY' => 33, 'ST_VALIDATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'JSON_EXTRACT' => 33, 'JSON_REPLACE' => 33, 'JSON_UNQUOTE' => 33, 'LINEFROMTEXT' => 33, 'MBRCOVEREDBY' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RANDOM_BYTES' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'ST_ASGEOJSON' => 33, 'ST_DIMENSION' => 33, 'ST_GEOMETRYN' => 33, 'ST_NUMPOINTS' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'GTID_SUBTRACT' => 33, 'INTERIORRINGN' => 33, 'JSON_CONTAINS' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'ST_CONVEXHULL' => 33, 'ST_DIFFERENCE' => 33, 'ST_INTERSECTS' => 33, 'ST_STARTPOINT' => 33, 'TIMESTAMPDIFF' => 33, 'WEIGHT_STRING' => 33, 'IS_IPV4_COMPAT' => 33, 'IS_IPV4_MAPPED' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'ST_GEOMFROMWKB' => 33, 'ST_LINEFROMWKB' => 33, 'ST_POLYFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'ST_EXTERIORRING' => 33, 'ST_GEOMETRYTYPE' => 33, 'ST_GEOMFROMTEXT' => 33, 'ST_INTERSECTION' => 33, 'ST_LINEFROMTEXT' => 33, 'ST_MAKEENVELOPE' => 33, 'ST_MLINEFROMWKB' => 33, 'ST_MPOLYFROMWKB' => 33, 'ST_POINTFROMWKB' => 33, 'ST_POLYFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'JSON_MERGE_PATCH' => 33, 'NUMINTERIORRINGS' => 33, 'ST_INTERIORRINGN' => 33, 'ST_MLINEFROMTEXT' => 33, 'ST_MPOINTFROMWKB' => 33, 'ST_MPOLYFROMTEXT' => 33, 'ST_NUMGEOMETRIES' => 33, 'ST_POINTFROMTEXT' => 33, 'ST_SYMDIFFERENCE' => 33, 'JSON_ARRAY_APPEND' => 33, 'JSON_ARRAY_INSERT' => 33, 'JSON_STORAGE_FREE' => 33, 'JSON_STORAGE_SIZE' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'RELEASE_ALL_LOCKS' => 33, 'ST_LATFROMGEOHASH' => 33, 'ST_MPOINTFROMTEXT' => 33, 'ST_POLYGONFROMWKB' => 33, 'JSON_CONTAINS_PATH' => 33, 'MULTIPOINTFROMTEXT' => 33, 'ST_BUFFER_STRATEGY' => 33, 'ST_DISTANCE_SPHERE' => 33, 'ST_GEOMCOLLFROMTXT' => 33, 'ST_GEOMCOLLFROMWKB' => 33, 'ST_GEOMFROMGEOJSON' => 33, 'ST_LONGFROMGEOHASH' => 33, 'ST_POLYGONFROMTEXT' => 33, 'JSON_MERGE_PRESERVE' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'ST_GEOMCOLLFROMTEXT' => 33, 'ST_GEOMETRYFROMTEXT' => 33, 'ST_NUMINTERIORRINGS' => 33, 'ST_POINTFROMGEOHASH' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'ST_LINESTRINGFROMWKB' => 33, 'ST_MULTIPOINTFROMWKB' => 33, 'ST_MULTIPOINTFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'ST_MULTIPOLYGONFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'ST_MULTIPOLYGONFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_MULTILINESTRINGFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'ST_MULTILINESTRINGFROMTEXT' => 33, 'VALIDATE_PASSWORD_STRENGTH' => 33, 'WAIT_FOR_EXECUTED_GTID_SET' => 33, 'ST_GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_GEOMETRYCOLLECTIONFROMTEXT' => 33, 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMySql50000.php000066400000000000000000000377311455302707200217440ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'BDB' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'LAST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PREV' => 1, 'ROWS' => 1, 'SOME' => 1, 'STOP' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'PHASE' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RAID0' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'INNODB' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'OFFSET' => 1, 'RELOAD' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'CHANGED' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INVOKER' => 1, 'MIGRATE' => 1, 'PARTIAL' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STORAGE' => 1, 'STRIPED' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'VIRTUAL' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DUMPFILE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'INNOBASE' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'ONE_SHOT' => 1, 'PROFILES' => 1, 'ROLLBACK' => 1, 'SECURITY' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'PACK_KEYS' => 1, 'RAID_TYPE' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'VARIABLES' => 1, 'BERKELEYDB' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PRIVILEGES' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'FRAC_SECOND' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'PROCESSLIST' => 1, 'RAID_CHUNKS' => 1, 'REPLICATION' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'DES_KEY_FILE' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_KEY' => 1, 'RAID_CHUNKSIZE' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'USER_RESOURCES' => 1, 'DELAY_KEY_WRITE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'SQL_TSI_QUARTER' => 1, 'MASTER_SERVER_ID' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'SQL_BUFFER_RESULT' => 1, 'SQL_TSI_FRAC_SECOND' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'READ' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SONAME' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'LOAD_FILE' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'SUBSTRING' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INTERSECTS' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'UNCOMPRESS' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'GEOMFROMWKB' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'LINEFROMTEXT' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'INTERIORRINGN' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'TIMESTAMPDIFF' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'NUMINTERIORRINGS' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMySql50100.php000066400000000000000000000433301455302707200217350ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'BDB' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'GOTO' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'ROWS' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LABEL' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'OWNER' => 1, 'PHASE' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RAID0' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'INNODB' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'AUTHORS' => 1, 'CHANGED' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STORAGE' => 1, 'STRIPED' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'VIRTUAL' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'INNOBASE' => 1, 'LANGUAGE' => 1, 'MAXVALUE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'ONE_SHOT' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'PARTITION' => 1, 'RAID_TYPE' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SCHEDULER' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'BERKELEYDB' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PRIVILEGES' => 1, 'REORGANISE' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'EXTENT_SIZE' => 1, 'FRAC_SECOND' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'PROCESSLIST' => 1, 'RAID_CHUNKS' => 1, 'REPLICATION' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CONTRIBUTORS' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'PARTITIONING' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'PAGE_CHECKSUM' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'TRANSACTIONAL' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_KEY' => 1, 'RAID_CHUNKSIZE' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'DELAY_KEY_WRITE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'SQL_TSI_QUARTER' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'UNDO_BUFFER_SIZE' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'SQL_BUFFER_RESULT' => 1, 'SQL_TSI_FRAC_SECOND' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'READ' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'DECOD' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'CONCAT' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'LOAD_FILE' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'SUBSTRING' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INTERSECTS' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'GEOMFROMWKB' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'LINEFROMTEXT' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'INTERIORRINGN' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'TIMESTAMPDIFF' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'NUMINTERIORRINGS' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'MULTIPOINTFROMTEXT' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMySql50500.php000066400000000000000000000437661455302707200217560ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'ROWS' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'INNODB' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'AUTHORS' => 1, 'CHANGED' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'VIRTUAL' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'INNOBASE' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'ONE_SHOT' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'PARTITION' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'COLUMN_NAME' => 1, 'CURSOR_NAME' => 1, 'EXTENT_SIZE' => 1, 'FRAC_SECOND' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'CONTRIBUTORS' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'SQL_BUFFER_RESULT' => 1, 'CONSTRAINT_CATALOG' => 1, 'SQL_TSI_FRAC_SECOND' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'READ' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'LOAD_FILE' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'SUBSTRING' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INTERSECTS' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'GEOMFROMWKB' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'LINEFROMTEXT' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'INTERIORRINGN' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'TIMESTAMPDIFF' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'NUMINTERIORRINGS' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'MULTIPOINTFROMTEXT' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMySql50600.php000066400000000000000000000510571455302707200217470ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'ONLY' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'ROWS' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'EXPIRE' => 1, 'EXPORT' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'NUMBER' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'ANALYSE' => 1, 'AUTHORS' => 1, 'CHANGED' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'CURRENT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'VIRTUAL' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXCHANGE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'ONE_SHOT' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PLUGIN_DIR' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'COLUMN_NAME' => 1, 'CURSOR_NAME' => 1, 'DIAGNOSTICS' => 1, 'EXTENT_SIZE' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'CONTRIBUTORS' => 1, 'DEFAULT_AUTH' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MASTER_DELAY' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'COLUMN_FORMAT' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_CRL' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'SQL_AFTER_GTIDS' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'SQL_BEFORE_GTIDS' => 1, 'STATS_PERSISTENT' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'RETURNED_SQLSTATE' => 1, 'SQL_BUFFER_RESULT' => 1, 'STATS_AUTO_RECALC' => 1, 'CONSTRAINT_CATALOG' => 1, 'MASTER_RETRY_COUNT' => 1, 'MASTER_SSL_CRLPATH' => 1, 'SQL_AFTER_MTS_GAPS' => 1, 'STATS_SAMPLE_PAGES' => 1, 'MASTER_AUTO_POSITION' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'GET' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'READ' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'MASTER_BIND' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'IO_AFTER_GTIDS' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'IO_BEFORE_GTIDS' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'ST_X' => 33, 'ST_Y' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'BUFFER' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'IS_IPV4' => 33, 'IS_IPV6' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'ST_AREA' => 33, 'ST_SRID' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'ST_ASWKB' => 33, 'ST_ASWKT' => 33, 'ST_UNION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'LOAD_FILE' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'ST_ASTEXT' => 33, 'ST_BUFFER' => 33, 'ST_EQUALS' => 33, 'ST_POINTN' => 33, 'ST_WITHIN' => 33, 'SUBSTRING' => 33, 'TO_BASE64' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INET6_ATON' => 33, 'INET6_NTOA' => 33, 'INTERSECTS' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'ST_CROSSES' => 33, 'ST_ISEMPTY' => 33, 'ST_TOUCHES' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'FROM_BASE64' => 33, 'GEOMFROMWKB' => 33, 'GTID_SUBSET' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'ST_ASBINARY' => 33, 'ST_CENTROID' => 33, 'ST_CONTAINS' => 33, 'ST_DISJOINT' => 33, 'ST_DISTANCE' => 33, 'ST_ENDPOINT' => 33, 'ST_ENVELOPE' => 33, 'ST_ISCLOSED' => 33, 'ST_ISSIMPLE' => 33, 'ST_OVERLAPS' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'LINEFROMTEXT' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RANDOM_BYTES' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'ST_DIMENSION' => 33, 'ST_GEOMETRYN' => 33, 'ST_NUMPOINTS' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'CREATE_DIGEST' => 33, 'FROM_UNIXTIME' => 33, 'GTID_SUBTRACT' => 33, 'INTERIORRINGN' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'ST_DIFFERENCE' => 33, 'ST_INTERSECTS' => 33, 'ST_STARTPOINT' => 33, 'TIMESTAMPDIFF' => 33, 'WEIGHT_STRING' => 33, 'IS_IPV4_COMPAT' => 33, 'IS_IPV4_MAPPED' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'ST_GEOMFROMWKB' => 33, 'ST_LINEFROMWKB' => 33, 'ST_POLYFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'ASYMMETRIC_SIGN' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'ST_EXTERIORRING' => 33, 'ST_GEOMETRYTYPE' => 33, 'ST_GEOMFROMTEXT' => 33, 'ST_INTERSECTION' => 33, 'ST_LINEFROMTEXT' => 33, 'ST_POINTFROMWKB' => 33, 'ST_POLYFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'NUMINTERIORRINGS' => 33, 'ST_INTERIORRINGN' => 33, 'ST_NUMGEOMETRIES' => 33, 'ST_POINTFROMTEXT' => 33, 'ST_SYMDIFFERENCE' => 33, 'ASYMMETRIC_DERIVE' => 33, 'ASYMMETRIC_VERIFY' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'ST_POLYGONFROMWKB' => 33, 'ASYMMETRIC_DECRYPT' => 33, 'ASYMMETRIC_ENCRYPT' => 33, 'MULTIPOINTFROMTEXT' => 33, 'ST_GEOMCOLLFROMTXT' => 33, 'ST_GEOMCOLLFROMWKB' => 33, 'ST_POLYGONFROMTEXT' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'ST_GEOMCOLLFROMTEXT' => 33, 'ST_GEOMETRYFROMTEXT' => 33, 'ST_NUMINTERIORRINGS' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'CREATE_DH_PARAMETERS' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'ST_LINESTRINGFROMWKB' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'CREATE_ASYMMETRIC_PUB_KEY' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'CREATE_ASYMMETRIC_PRIV_KEY' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'VALIDATE_PASSWORD_STRENGTH' => 33, 'SQL_THREAD_WAIT_AFTER_GTIDS' => 33, 'ST_GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_GEOMETRYCOLLECTIONFROMTEXT' => 33, 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMySql50700.php000066400000000000000000000545741455302707200217570ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'XID' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'ONLY' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'ROWS' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'NEVER' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'ALWAYS' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'EXPIRE' => 1, 'EXPORT' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'FILTER' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'NUMBER' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'ACCOUNT' => 1, 'ANALYSE' => 1, 'CHANGED' => 1, 'CHANNEL' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'CURRENT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'FOLLOWS' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STACKED' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'WITHOUT' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXCHANGE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'PRECEDES' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PLUGIN_DIR' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'VALIDATION' => 1, 'COLUMN_NAME' => 1, 'COMPRESSION' => 1, 'CURSOR_NAME' => 1, 'DIAGNOSTICS' => 1, 'EXTENT_SIZE' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'NONBLOCKING' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'DEFAULT_AUTH' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MASTER_DELAY' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'COLUMN_FORMAT' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_CRL' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'FILE_BLOCK_SIZE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'PARSE_GCOL_EXPR' => 1, 'REPLICATE_DO_DB' => 1, 'SQL_AFTER_GTIDS' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'SQL_BEFORE_GTIDS' => 1, 'STATS_PERSISTENT' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'GROUP_REPLICATION' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'RETURNED_SQLSTATE' => 1, 'SQL_BUFFER_RESULT' => 1, 'STATS_AUTO_RECALC' => 1, 'CONSTRAINT_CATALOG' => 1, 'MASTER_RETRY_COUNT' => 1, 'MASTER_SSL_CRLPATH' => 1, 'MAX_STATEMENT_TIME' => 1, 'REPLICATE_DO_TABLE' => 1, 'SQL_AFTER_MTS_GAPS' => 1, 'STATS_SAMPLE_PAGES' => 1, 'REPLICATE_IGNORE_DB' => 1, 'MASTER_AUTO_POSITION' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'REPLICATE_REWRITE_DB' => 1, 'REPLICATE_IGNORE_TABLE' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'REPLICATE_WILD_DO_TABLE' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'REPLICATE_WILD_IGNORE_TABLE' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'GET' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'READ' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'STORED' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'VIRTUAL' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'GENERATED' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'MASTER_BIND' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'IO_AFTER_GTIDS' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'IO_BEFORE_GTIDS' => 3, 'OPTIMIZER_COSTS' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'IDENTIFIED WITH' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'ST_X' => 33, 'ST_Y' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'BUFFER' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'IS_IPV4' => 33, 'IS_IPV6' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'ST_AREA' => 33, 'ST_SRID' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'DISTANCE' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'JSON_SET' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'ST_ASWKB' => 33, 'ST_ASWKT' => 33, 'ST_UNION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'ANY_VALUE' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'JSON_KEYS' => 33, 'JSON_TYPE' => 33, 'LOAD_FILE' => 33, 'MBRCOVERS' => 33, 'MBREQUALS' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'ST_ASTEXT' => 33, 'ST_BUFFER' => 33, 'ST_EQUALS' => 33, 'ST_LENGTH' => 33, 'ST_POINTN' => 33, 'ST_WITHIN' => 33, 'SUBSTRING' => 33, 'TO_BASE64' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'CONVEXHULL' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INET6_ATON' => 33, 'INET6_NTOA' => 33, 'INTERSECTS' => 33, 'JSON_ARRAY' => 33, 'JSON_DEPTH' => 33, 'JSON_MERGE' => 33, 'JSON_QUOTE' => 33, 'JSON_VALID' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'ST_CROSSES' => 33, 'ST_GEOHASH' => 33, 'ST_ISEMPTY' => 33, 'ST_ISVALID' => 33, 'ST_TOUCHES' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'FROM_BASE64' => 33, 'GEOMFROMWKB' => 33, 'GTID_SUBSET' => 33, 'JSON_INSERT' => 33, 'JSON_LENGTH' => 33, 'JSON_OBJECT' => 33, 'JSON_PRETTY' => 33, 'JSON_REMOVE' => 33, 'JSON_SEARCH' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'ST_ASBINARY' => 33, 'ST_CENTROID' => 33, 'ST_CONTAINS' => 33, 'ST_DISJOINT' => 33, 'ST_DISTANCE' => 33, 'ST_ENDPOINT' => 33, 'ST_ENVELOPE' => 33, 'ST_ISCLOSED' => 33, 'ST_ISSIMPLE' => 33, 'ST_OVERLAPS' => 33, 'ST_SIMPLIFY' => 33, 'ST_VALIDATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'JSON_EXTRACT' => 33, 'JSON_REPLACE' => 33, 'JSON_UNQUOTE' => 33, 'LINEFROMTEXT' => 33, 'MBRCOVEREDBY' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RANDOM_BYTES' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'ST_ASGEOJSON' => 33, 'ST_DIMENSION' => 33, 'ST_GEOMETRYN' => 33, 'ST_NUMPOINTS' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'GTID_SUBTRACT' => 33, 'INTERIORRINGN' => 33, 'JSON_CONTAINS' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'ST_CONVEXHULL' => 33, 'ST_DIFFERENCE' => 33, 'ST_INTERSECTS' => 33, 'ST_STARTPOINT' => 33, 'TIMESTAMPDIFF' => 33, 'WEIGHT_STRING' => 33, 'IS_IPV4_COMPAT' => 33, 'IS_IPV4_MAPPED' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'ST_GEOMFROMWKB' => 33, 'ST_LINEFROMWKB' => 33, 'ST_POLYFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'ST_EXTERIORRING' => 33, 'ST_GEOMETRYTYPE' => 33, 'ST_GEOMFROMTEXT' => 33, 'ST_INTERSECTION' => 33, 'ST_LINEFROMTEXT' => 33, 'ST_MAKEENVELOPE' => 33, 'ST_MLINEFROMWKB' => 33, 'ST_MPOLYFROMWKB' => 33, 'ST_POINTFROMWKB' => 33, 'ST_POLYFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'JSON_MERGE_PATCH' => 33, 'NUMINTERIORRINGS' => 33, 'ST_INTERIORRINGN' => 33, 'ST_MLINEFROMTEXT' => 33, 'ST_MPOINTFROMWKB' => 33, 'ST_MPOLYFROMTEXT' => 33, 'ST_NUMGEOMETRIES' => 33, 'ST_POINTFROMTEXT' => 33, 'ST_SYMDIFFERENCE' => 33, 'JSON_ARRAY_APPEND' => 33, 'JSON_ARRAY_INSERT' => 33, 'JSON_STORAGE_FREE' => 33, 'JSON_STORAGE_SIZE' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'RELEASE_ALL_LOCKS' => 33, 'ST_LATFROMGEOHASH' => 33, 'ST_MPOINTFROMTEXT' => 33, 'ST_POLYGONFROMWKB' => 33, 'JSON_CONTAINS_PATH' => 33, 'MULTIPOINTFROMTEXT' => 33, 'ST_BUFFER_STRATEGY' => 33, 'ST_DISTANCE_SPHERE' => 33, 'ST_GEOMCOLLFROMTXT' => 33, 'ST_GEOMCOLLFROMWKB' => 33, 'ST_GEOMFROMGEOJSON' => 33, 'ST_LONGFROMGEOHASH' => 33, 'ST_POLYGONFROMTEXT' => 33, 'JSON_MERGE_PRESERVE' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'ST_GEOMCOLLFROMTEXT' => 33, 'ST_GEOMETRYFROMTEXT' => 33, 'ST_NUMINTERIORRINGS' => 33, 'ST_POINTFROMGEOHASH' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'ST_LINESTRINGFROMWKB' => 33, 'ST_MULTIPOINTFROMWKB' => 33, 'ST_MULTIPOINTFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'ST_MULTIPOLYGONFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'ST_MULTIPOLYGONFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_MULTILINESTRINGFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'ST_MULTILINESTRINGFROMTEXT' => 33, 'VALIDATE_PASSWORD_STRENGTH' => 33, 'WAIT_FOR_EXECUTED_GTID_SET' => 33, 'ST_GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_GEOMETRYCOLLECTIONFROMTEXT' => 33, 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMySql80000.php000066400000000000000000000550031455302707200217370ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'XID' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'ONLY' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'ROWS' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'NEVER' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'ALWAYS' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'EXPIRE' => 1, 'EXPORT' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'FILTER' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'NUMBER' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'ACCOUNT' => 1, 'ANALYSE' => 1, 'CHANGED' => 1, 'CHANNEL' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'CURRENT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'FOLLOWS' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PERSIST' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STACKED' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'WITHOUT' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXCHANGE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'PRECEDES' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'INVISIBLE' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PLUGIN_DIR' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'VALIDATION' => 1, 'COLUMN_NAME' => 1, 'COMPRESSION' => 1, 'CURSOR_NAME' => 1, 'DIAGNOSTICS' => 1, 'EXTENT_SIZE' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'NONBLOCKING' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'DEFAULT_AUTH' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MASTER_DELAY' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'PERSIST_ONLY' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'COLUMN_FORMAT' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_CRL' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'FILE_BLOCK_SIZE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'PARSE_GCOL_EXPR' => 1, 'REPLICATE_DO_DB' => 1, 'SQL_AFTER_GTIDS' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'SQL_BEFORE_GTIDS' => 1, 'STATS_PERSISTENT' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'GROUP_REPLICATION' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'RETURNED_SQLSTATE' => 1, 'SQL_BUFFER_RESULT' => 1, 'STATS_AUTO_RECALC' => 1, 'CONSTRAINT_CATALOG' => 1, 'MASTER_RETRY_COUNT' => 1, 'MASTER_SSL_CRLPATH' => 1, 'MAX_STATEMENT_TIME' => 1, 'REPLICATE_DO_TABLE' => 1, 'SQL_AFTER_MTS_GAPS' => 1, 'STATS_SAMPLE_PAGES' => 1, 'REPLICATE_IGNORE_DB' => 1, 'MASTER_AUTO_POSITION' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'REPLICATE_REWRITE_DB' => 1, 'REPLICATE_IGNORE_TABLE' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'REPLICATE_WILD_DO_TABLE' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'REPLICATE_WILD_IGNORE_TABLE' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'GET' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'OVER' => 3, 'READ' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'STORED' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'VIRTUAL' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'GENERATED' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'MASTER_BIND' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'IO_AFTER_GTIDS' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'IO_BEFORE_GTIDS' => 3, 'OPTIMIZER_COSTS' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'IDENTIFIED WITH' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'ST_X' => 33, 'ST_Y' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'BUFFER' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'IS_IPV4' => 33, 'IS_IPV6' => 33, 'IS_UUID' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'ST_AREA' => 33, 'ST_SRID' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'DISTANCE' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'JSON_SET' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'ST_ASWKB' => 33, 'ST_ASWKT' => 33, 'ST_UNION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'ANY_VALUE' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'JSON_KEYS' => 33, 'JSON_TYPE' => 33, 'LOAD_FILE' => 33, 'MBRCOVERS' => 33, 'MBREQUALS' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'ST_ASTEXT' => 33, 'ST_BUFFER' => 33, 'ST_EQUALS' => 33, 'ST_LENGTH' => 33, 'ST_POINTN' => 33, 'ST_WITHIN' => 33, 'SUBSTRING' => 33, 'TO_BASE64' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'CONVEXHULL' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INET6_ATON' => 33, 'INET6_NTOA' => 33, 'INTERSECTS' => 33, 'JSON_ARRAY' => 33, 'JSON_DEPTH' => 33, 'JSON_MERGE' => 33, 'JSON_QUOTE' => 33, 'JSON_VALID' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'ST_CROSSES' => 33, 'ST_GEOHASH' => 33, 'ST_ISEMPTY' => 33, 'ST_ISVALID' => 33, 'ST_TOUCHES' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'BIN_TO_UUID' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'FROM_BASE64' => 33, 'GEOMFROMWKB' => 33, 'GTID_SUBSET' => 33, 'JSON_INSERT' => 33, 'JSON_LENGTH' => 33, 'JSON_OBJECT' => 33, 'JSON_PRETTY' => 33, 'JSON_REMOVE' => 33, 'JSON_SEARCH' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'ST_ASBINARY' => 33, 'ST_CENTROID' => 33, 'ST_CONTAINS' => 33, 'ST_DISJOINT' => 33, 'ST_DISTANCE' => 33, 'ST_ENDPOINT' => 33, 'ST_ENVELOPE' => 33, 'ST_ISCLOSED' => 33, 'ST_ISSIMPLE' => 33, 'ST_OVERLAPS' => 33, 'ST_SIMPLIFY' => 33, 'ST_VALIDATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'UUID_TO_BIN' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'JSON_EXTRACT' => 33, 'JSON_REPLACE' => 33, 'JSON_UNQUOTE' => 33, 'LINEFROMTEXT' => 33, 'MBRCOVEREDBY' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RANDOM_BYTES' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'ST_ASGEOJSON' => 33, 'ST_DIMENSION' => 33, 'ST_GEOMETRYN' => 33, 'ST_NUMPOINTS' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'GTID_SUBTRACT' => 33, 'INTERIORRINGN' => 33, 'JSON_CONTAINS' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'ST_CONVEXHULL' => 33, 'ST_DIFFERENCE' => 33, 'ST_INTERSECTS' => 33, 'ST_STARTPOINT' => 33, 'TIMESTAMPDIFF' => 33, 'WEIGHT_STRING' => 33, 'IS_IPV4_COMPAT' => 33, 'IS_IPV4_MAPPED' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'ST_GEOMFROMWKB' => 33, 'ST_LINEFROMWKB' => 33, 'ST_POLYFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'ST_EXTERIORRING' => 33, 'ST_GEOMETRYTYPE' => 33, 'ST_GEOMFROMTEXT' => 33, 'ST_INTERSECTION' => 33, 'ST_LINEFROMTEXT' => 33, 'ST_MAKEENVELOPE' => 33, 'ST_MLINEFROMWKB' => 33, 'ST_MPOLYFROMWKB' => 33, 'ST_POINTFROMWKB' => 33, 'ST_POLYFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'JSON_MERGE_PATCH' => 33, 'NUMINTERIORRINGS' => 33, 'ST_INTERIORRINGN' => 33, 'ST_MLINEFROMTEXT' => 33, 'ST_MPOINTFROMWKB' => 33, 'ST_MPOLYFROMTEXT' => 33, 'ST_NUMGEOMETRIES' => 33, 'ST_POINTFROMTEXT' => 33, 'ST_SYMDIFFERENCE' => 33, 'JSON_ARRAY_APPEND' => 33, 'JSON_ARRAY_INSERT' => 33, 'JSON_STORAGE_FREE' => 33, 'JSON_STORAGE_SIZE' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'RELEASE_ALL_LOCKS' => 33, 'ST_LATFROMGEOHASH' => 33, 'ST_MPOINTFROMTEXT' => 33, 'ST_POLYGONFROMWKB' => 33, 'JSON_CONTAINS_PATH' => 33, 'MULTIPOINTFROMTEXT' => 33, 'ST_BUFFER_STRATEGY' => 33, 'ST_DISTANCE_SPHERE' => 33, 'ST_GEOMCOLLFROMTXT' => 33, 'ST_GEOMCOLLFROMWKB' => 33, 'ST_GEOMFROMGEOJSON' => 33, 'ST_LONGFROMGEOHASH' => 33, 'ST_POLYGONFROMTEXT' => 33, 'JSON_MERGE_PRESERVE' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'ST_GEOMCOLLFROMTEXT' => 33, 'ST_GEOMETRYFROMTEXT' => 33, 'ST_NUMINTERIORRINGS' => 33, 'ST_POINTFROMGEOHASH' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'ST_LINESTRINGFROMWKB' => 33, 'ST_MULTIPOINTFROMWKB' => 33, 'ST_MULTIPOINTFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'ST_MULTIPOLYGONFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'ST_MULTIPOLYGONFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_MULTILINESTRINGFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'ST_MULTILINESTRINGFROMTEXT' => 33, 'VALIDATE_PASSWORD_STRENGTH' => 33, 'WAIT_FOR_EXECUTED_GTID_SET' => 33, 'ST_GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_GEOMETRYCOLLECTIONFROMTEXT' => 33, 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMySql80100.php000066400000000000000000000550031455302707200217400ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'XID' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'ONLY' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'ROWS' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'NEVER' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'ALWAYS' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'EXPIRE' => 1, 'EXPORT' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'FILTER' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'NUMBER' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'ACCOUNT' => 1, 'ANALYSE' => 1, 'CHANGED' => 1, 'CHANNEL' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'CURRENT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'FOLLOWS' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PERSIST' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STACKED' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'WITHOUT' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXCHANGE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'PRECEDES' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'INVISIBLE' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PLUGIN_DIR' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'VALIDATION' => 1, 'COLUMN_NAME' => 1, 'COMPRESSION' => 1, 'CURSOR_NAME' => 1, 'DIAGNOSTICS' => 1, 'EXTENT_SIZE' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'NONBLOCKING' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'DEFAULT_AUTH' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MASTER_DELAY' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'PERSIST_ONLY' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'COLUMN_FORMAT' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_CRL' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'FILE_BLOCK_SIZE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'PARSE_GCOL_EXPR' => 1, 'REPLICATE_DO_DB' => 1, 'SQL_AFTER_GTIDS' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'SQL_BEFORE_GTIDS' => 1, 'STATS_PERSISTENT' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'GROUP_REPLICATION' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'RETURNED_SQLSTATE' => 1, 'SQL_BUFFER_RESULT' => 1, 'STATS_AUTO_RECALC' => 1, 'CONSTRAINT_CATALOG' => 1, 'MASTER_RETRY_COUNT' => 1, 'MASTER_SSL_CRLPATH' => 1, 'MAX_STATEMENT_TIME' => 1, 'REPLICATE_DO_TABLE' => 1, 'SQL_AFTER_MTS_GAPS' => 1, 'STATS_SAMPLE_PAGES' => 1, 'REPLICATE_IGNORE_DB' => 1, 'MASTER_AUTO_POSITION' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'REPLICATE_REWRITE_DB' => 1, 'REPLICATE_IGNORE_TABLE' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'REPLICATE_WILD_DO_TABLE' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'REPLICATE_WILD_IGNORE_TABLE' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'GET' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'OVER' => 3, 'READ' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'STORED' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'VIRTUAL' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'GENERATED' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'MASTER_BIND' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'IO_AFTER_GTIDS' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'IO_BEFORE_GTIDS' => 3, 'OPTIMIZER_COSTS' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'IDENTIFIED WITH' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'ST_X' => 33, 'ST_Y' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'BUFFER' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'IS_IPV4' => 33, 'IS_IPV6' => 33, 'IS_UUID' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'ST_AREA' => 33, 'ST_SRID' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'DISTANCE' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'JSON_SET' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'ST_ASWKB' => 33, 'ST_ASWKT' => 33, 'ST_UNION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'ANY_VALUE' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'JSON_KEYS' => 33, 'JSON_TYPE' => 33, 'LOAD_FILE' => 33, 'MBRCOVERS' => 33, 'MBREQUALS' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'ST_ASTEXT' => 33, 'ST_BUFFER' => 33, 'ST_EQUALS' => 33, 'ST_LENGTH' => 33, 'ST_POINTN' => 33, 'ST_WITHIN' => 33, 'SUBSTRING' => 33, 'TO_BASE64' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'CONVEXHULL' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INET6_ATON' => 33, 'INET6_NTOA' => 33, 'INTERSECTS' => 33, 'JSON_ARRAY' => 33, 'JSON_DEPTH' => 33, 'JSON_MERGE' => 33, 'JSON_QUOTE' => 33, 'JSON_VALID' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'ST_CROSSES' => 33, 'ST_GEOHASH' => 33, 'ST_ISEMPTY' => 33, 'ST_ISVALID' => 33, 'ST_TOUCHES' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'BIN_TO_UUID' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'FROM_BASE64' => 33, 'GEOMFROMWKB' => 33, 'GTID_SUBSET' => 33, 'JSON_INSERT' => 33, 'JSON_LENGTH' => 33, 'JSON_OBJECT' => 33, 'JSON_PRETTY' => 33, 'JSON_REMOVE' => 33, 'JSON_SEARCH' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'ST_ASBINARY' => 33, 'ST_CENTROID' => 33, 'ST_CONTAINS' => 33, 'ST_DISJOINT' => 33, 'ST_DISTANCE' => 33, 'ST_ENDPOINT' => 33, 'ST_ENVELOPE' => 33, 'ST_ISCLOSED' => 33, 'ST_ISSIMPLE' => 33, 'ST_OVERLAPS' => 33, 'ST_SIMPLIFY' => 33, 'ST_VALIDATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'UUID_TO_BIN' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'JSON_EXTRACT' => 33, 'JSON_REPLACE' => 33, 'JSON_UNQUOTE' => 33, 'LINEFROMTEXT' => 33, 'MBRCOVEREDBY' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RANDOM_BYTES' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'ST_ASGEOJSON' => 33, 'ST_DIMENSION' => 33, 'ST_GEOMETRYN' => 33, 'ST_NUMPOINTS' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'GTID_SUBTRACT' => 33, 'INTERIORRINGN' => 33, 'JSON_CONTAINS' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'ST_CONVEXHULL' => 33, 'ST_DIFFERENCE' => 33, 'ST_INTERSECTS' => 33, 'ST_STARTPOINT' => 33, 'TIMESTAMPDIFF' => 33, 'WEIGHT_STRING' => 33, 'IS_IPV4_COMPAT' => 33, 'IS_IPV4_MAPPED' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'ST_GEOMFROMWKB' => 33, 'ST_LINEFROMWKB' => 33, 'ST_POLYFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'ST_EXTERIORRING' => 33, 'ST_GEOMETRYTYPE' => 33, 'ST_GEOMFROMTEXT' => 33, 'ST_INTERSECTION' => 33, 'ST_LINEFROMTEXT' => 33, 'ST_MAKEENVELOPE' => 33, 'ST_MLINEFROMWKB' => 33, 'ST_MPOLYFROMWKB' => 33, 'ST_POINTFROMWKB' => 33, 'ST_POLYFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'JSON_MERGE_PATCH' => 33, 'NUMINTERIORRINGS' => 33, 'ST_INTERIORRINGN' => 33, 'ST_MLINEFROMTEXT' => 33, 'ST_MPOINTFROMWKB' => 33, 'ST_MPOLYFROMTEXT' => 33, 'ST_NUMGEOMETRIES' => 33, 'ST_POINTFROMTEXT' => 33, 'ST_SYMDIFFERENCE' => 33, 'JSON_ARRAY_APPEND' => 33, 'JSON_ARRAY_INSERT' => 33, 'JSON_STORAGE_FREE' => 33, 'JSON_STORAGE_SIZE' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'RELEASE_ALL_LOCKS' => 33, 'ST_LATFROMGEOHASH' => 33, 'ST_MPOINTFROMTEXT' => 33, 'ST_POLYGONFROMWKB' => 33, 'JSON_CONTAINS_PATH' => 33, 'MULTIPOINTFROMTEXT' => 33, 'ST_BUFFER_STRATEGY' => 33, 'ST_DISTANCE_SPHERE' => 33, 'ST_GEOMCOLLFROMTXT' => 33, 'ST_GEOMCOLLFROMWKB' => 33, 'ST_GEOMFROMGEOJSON' => 33, 'ST_LONGFROMGEOHASH' => 33, 'ST_POLYGONFROMTEXT' => 33, 'JSON_MERGE_PRESERVE' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'ST_GEOMCOLLFROMTEXT' => 33, 'ST_GEOMETRYFROMTEXT' => 33, 'ST_NUMINTERIORRINGS' => 33, 'ST_POINTFROMGEOHASH' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'ST_LINESTRINGFROMWKB' => 33, 'ST_MULTIPOINTFROMWKB' => 33, 'ST_MULTIPOINTFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'ST_MULTIPOLYGONFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'ST_MULTIPOLYGONFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_MULTILINESTRINGFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'ST_MULTILINESTRINGFROMTEXT' => 33, 'VALIDATE_PASSWORD_STRENGTH' => 33, 'WAIT_FOR_EXECUTED_GTID_SET' => 33, 'ST_GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_GEOMETRYCOLLECTIONFROMTEXT' => 33, 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMySql80200.php000066400000000000000000000550031455302707200217410ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'XID' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'ONLY' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'ROWS' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'NEVER' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'ALWAYS' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'EXPIRE' => 1, 'EXPORT' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'FILTER' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'NUMBER' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'ACCOUNT' => 1, 'ANALYSE' => 1, 'CHANGED' => 1, 'CHANNEL' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'CURRENT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'FOLLOWS' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PERSIST' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STACKED' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'WITHOUT' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXCHANGE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'PRECEDES' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'INVISIBLE' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PLUGIN_DIR' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'VALIDATION' => 1, 'COLUMN_NAME' => 1, 'COMPRESSION' => 1, 'CURSOR_NAME' => 1, 'DIAGNOSTICS' => 1, 'EXTENT_SIZE' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'NONBLOCKING' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'DEFAULT_AUTH' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MASTER_DELAY' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'PERSIST_ONLY' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'COLUMN_FORMAT' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_CRL' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'FILE_BLOCK_SIZE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'PARSE_GCOL_EXPR' => 1, 'REPLICATE_DO_DB' => 1, 'SQL_AFTER_GTIDS' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'SQL_BEFORE_GTIDS' => 1, 'STATS_PERSISTENT' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'GROUP_REPLICATION' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'RETURNED_SQLSTATE' => 1, 'SQL_BUFFER_RESULT' => 1, 'STATS_AUTO_RECALC' => 1, 'CONSTRAINT_CATALOG' => 1, 'MASTER_RETRY_COUNT' => 1, 'MASTER_SSL_CRLPATH' => 1, 'MAX_STATEMENT_TIME' => 1, 'REPLICATE_DO_TABLE' => 1, 'SQL_AFTER_MTS_GAPS' => 1, 'STATS_SAMPLE_PAGES' => 1, 'REPLICATE_IGNORE_DB' => 1, 'MASTER_AUTO_POSITION' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'REPLICATE_REWRITE_DB' => 1, 'REPLICATE_IGNORE_TABLE' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'REPLICATE_WILD_DO_TABLE' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'REPLICATE_WILD_IGNORE_TABLE' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'GET' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'OVER' => 3, 'READ' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'STORED' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'VIRTUAL' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'GENERATED' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'MASTER_BIND' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'IO_AFTER_GTIDS' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'IO_BEFORE_GTIDS' => 3, 'OPTIMIZER_COSTS' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'IDENTIFIED WITH' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'ST_X' => 33, 'ST_Y' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'BUFFER' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'IS_IPV4' => 33, 'IS_IPV6' => 33, 'IS_UUID' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'ST_AREA' => 33, 'ST_SRID' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'DISTANCE' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'JSON_SET' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'ST_ASWKB' => 33, 'ST_ASWKT' => 33, 'ST_UNION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'ANY_VALUE' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'JSON_KEYS' => 33, 'JSON_TYPE' => 33, 'LOAD_FILE' => 33, 'MBRCOVERS' => 33, 'MBREQUALS' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'ST_ASTEXT' => 33, 'ST_BUFFER' => 33, 'ST_EQUALS' => 33, 'ST_LENGTH' => 33, 'ST_POINTN' => 33, 'ST_WITHIN' => 33, 'SUBSTRING' => 33, 'TO_BASE64' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'CONVEXHULL' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INET6_ATON' => 33, 'INET6_NTOA' => 33, 'INTERSECTS' => 33, 'JSON_ARRAY' => 33, 'JSON_DEPTH' => 33, 'JSON_MERGE' => 33, 'JSON_QUOTE' => 33, 'JSON_VALID' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'ST_CROSSES' => 33, 'ST_GEOHASH' => 33, 'ST_ISEMPTY' => 33, 'ST_ISVALID' => 33, 'ST_TOUCHES' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'BIN_TO_UUID' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'FROM_BASE64' => 33, 'GEOMFROMWKB' => 33, 'GTID_SUBSET' => 33, 'JSON_INSERT' => 33, 'JSON_LENGTH' => 33, 'JSON_OBJECT' => 33, 'JSON_PRETTY' => 33, 'JSON_REMOVE' => 33, 'JSON_SEARCH' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'ST_ASBINARY' => 33, 'ST_CENTROID' => 33, 'ST_CONTAINS' => 33, 'ST_DISJOINT' => 33, 'ST_DISTANCE' => 33, 'ST_ENDPOINT' => 33, 'ST_ENVELOPE' => 33, 'ST_ISCLOSED' => 33, 'ST_ISSIMPLE' => 33, 'ST_OVERLAPS' => 33, 'ST_SIMPLIFY' => 33, 'ST_VALIDATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'UUID_TO_BIN' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'JSON_EXTRACT' => 33, 'JSON_REPLACE' => 33, 'JSON_UNQUOTE' => 33, 'LINEFROMTEXT' => 33, 'MBRCOVEREDBY' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RANDOM_BYTES' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'ST_ASGEOJSON' => 33, 'ST_DIMENSION' => 33, 'ST_GEOMETRYN' => 33, 'ST_NUMPOINTS' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'GTID_SUBTRACT' => 33, 'INTERIORRINGN' => 33, 'JSON_CONTAINS' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'ST_CONVEXHULL' => 33, 'ST_DIFFERENCE' => 33, 'ST_INTERSECTS' => 33, 'ST_STARTPOINT' => 33, 'TIMESTAMPDIFF' => 33, 'WEIGHT_STRING' => 33, 'IS_IPV4_COMPAT' => 33, 'IS_IPV4_MAPPED' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'ST_GEOMFROMWKB' => 33, 'ST_LINEFROMWKB' => 33, 'ST_POLYFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'ST_EXTERIORRING' => 33, 'ST_GEOMETRYTYPE' => 33, 'ST_GEOMFROMTEXT' => 33, 'ST_INTERSECTION' => 33, 'ST_LINEFROMTEXT' => 33, 'ST_MAKEENVELOPE' => 33, 'ST_MLINEFROMWKB' => 33, 'ST_MPOLYFROMWKB' => 33, 'ST_POINTFROMWKB' => 33, 'ST_POLYFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'JSON_MERGE_PATCH' => 33, 'NUMINTERIORRINGS' => 33, 'ST_INTERIORRINGN' => 33, 'ST_MLINEFROMTEXT' => 33, 'ST_MPOINTFROMWKB' => 33, 'ST_MPOLYFROMTEXT' => 33, 'ST_NUMGEOMETRIES' => 33, 'ST_POINTFROMTEXT' => 33, 'ST_SYMDIFFERENCE' => 33, 'JSON_ARRAY_APPEND' => 33, 'JSON_ARRAY_INSERT' => 33, 'JSON_STORAGE_FREE' => 33, 'JSON_STORAGE_SIZE' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'RELEASE_ALL_LOCKS' => 33, 'ST_LATFROMGEOHASH' => 33, 'ST_MPOINTFROMTEXT' => 33, 'ST_POLYGONFROMWKB' => 33, 'JSON_CONTAINS_PATH' => 33, 'MULTIPOINTFROMTEXT' => 33, 'ST_BUFFER_STRATEGY' => 33, 'ST_DISTANCE_SPHERE' => 33, 'ST_GEOMCOLLFROMTXT' => 33, 'ST_GEOMCOLLFROMWKB' => 33, 'ST_GEOMFROMGEOJSON' => 33, 'ST_LONGFROMGEOHASH' => 33, 'ST_POLYGONFROMTEXT' => 33, 'JSON_MERGE_PRESERVE' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'ST_GEOMCOLLFROMTEXT' => 33, 'ST_GEOMETRYFROMTEXT' => 33, 'ST_NUMINTERIORRINGS' => 33, 'ST_POINTFROMGEOHASH' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'ST_LINESTRINGFROMWKB' => 33, 'ST_MULTIPOINTFROMWKB' => 33, 'ST_MULTIPOINTFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'ST_MULTIPOLYGONFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'ST_MULTIPOLYGONFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_MULTILINESTRINGFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'ST_MULTILINESTRINGFROMTEXT' => 33, 'VALIDATE_PASSWORD_STRENGTH' => 33, 'WAIT_FOR_EXECUTED_GTID_SET' => 33, 'ST_GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_GEOMETRYCOLLECTIONFROMTEXT' => 33, 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Contexts/ContextMySql80300.php000066400000000000000000000550031455302707200217420ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'AT' => 1, 'DO' => 1, 'IO' => 1, 'NO' => 1, 'XA' => 1, 'ANY' => 1, 'CPU' => 1, 'END' => 1, 'IPC' => 1, 'NDB' => 1, 'NEW' => 1, 'ONE' => 1, 'ROW' => 1, 'XID' => 1, 'BYTE' => 1, 'CODE' => 1, 'CUBE' => 1, 'DATA' => 1, 'DISK' => 1, 'ENDS' => 1, 'FAST' => 1, 'FILE' => 1, 'FULL' => 1, 'HASH' => 1, 'HELP' => 1, 'HOST' => 1, 'LAST' => 1, 'LESS' => 1, 'LIST' => 1, 'LOGS' => 1, 'MODE' => 1, 'NAME' => 1, 'NEXT' => 1, 'NONE' => 1, 'ONLY' => 1, 'OPEN' => 1, 'PAGE' => 1, 'PORT' => 1, 'PREV' => 1, 'ROWS' => 1, 'SLOW' => 1, 'SOME' => 1, 'STOP' => 1, 'THAN' => 1, 'TYPE' => 1, 'VIEW' => 1, 'WAIT' => 1, 'WORK' => 1, 'X509' => 1, 'AFTER' => 1, 'BEGIN' => 1, 'BLOCK' => 1, 'BTREE' => 1, 'CACHE' => 1, 'CHAIN' => 1, 'CLOSE' => 1, 'ERROR' => 1, 'EVENT' => 1, 'EVERY' => 1, 'FIRST' => 1, 'FLUSH' => 1, 'FOUND' => 1, 'HOSTS' => 1, 'LEVEL' => 1, 'LOCAL' => 1, 'LOCKS' => 1, 'MERGE' => 1, 'MUTEX' => 1, 'NAMES' => 1, 'NCHAR' => 1, 'NEVER' => 1, 'OWNER' => 1, 'PHASE' => 1, 'PROXY' => 1, 'QUERY' => 1, 'QUICK' => 1, 'RELAY' => 1, 'RESET' => 1, 'RTREE' => 1, 'SHARE' => 1, 'SLAVE' => 1, 'START' => 1, 'SUPER' => 1, 'SWAPS' => 1, 'TYPES' => 1, 'UNTIL' => 1, 'VALUE' => 1, 'ACTION' => 1, 'ALWAYS' => 1, 'BACKUP' => 1, 'BINLOG' => 1, 'CIPHER' => 1, 'CLIENT' => 1, 'COMMIT' => 1, 'ENABLE' => 1, 'ENGINE' => 1, 'ERRORS' => 1, 'ESCAPE' => 1, 'EVENTS' => 1, 'EXPIRE' => 1, 'EXPORT' => 1, 'FAULTS' => 1, 'FIELDS' => 1, 'FILTER' => 1, 'GLOBAL' => 1, 'GRANTS' => 1, 'IMPORT' => 1, 'ISSUER' => 1, 'LEAVES' => 1, 'MASTER' => 1, 'MEDIUM' => 1, 'MEMORY' => 1, 'MODIFY' => 1, 'NUMBER' => 1, 'OFFSET' => 1, 'PARSER' => 1, 'PLUGIN' => 1, 'RELOAD' => 1, 'REMOVE' => 1, 'REPAIR' => 1, 'RESUME' => 1, 'ROLLUP' => 1, 'SERVER' => 1, 'SIGNED' => 1, 'SIMPLE' => 1, 'SOCKET' => 1, 'SONAME' => 1, 'SOUNDS' => 1, 'SOURCE' => 1, 'STARTS' => 1, 'STATUS' => 1, 'STRING' => 1, 'TABLES' => 1, 'ACCOUNT' => 1, 'ANALYSE' => 1, 'CHANGED' => 1, 'CHANNEL' => 1, 'COLUMNS' => 1, 'COMMENT' => 1, 'COMPACT' => 1, 'CONTEXT' => 1, 'CURRENT' => 1, 'DEFINER' => 1, 'DISABLE' => 1, 'DISCARD' => 1, 'DYNAMIC' => 1, 'ENGINES' => 1, 'EXECUTE' => 1, 'FOLLOWS' => 1, 'GENERAL' => 1, 'HANDLER' => 1, 'INDEXES' => 1, 'INSTALL' => 1, 'INVOKER' => 1, 'LOGFILE' => 1, 'MIGRATE' => 1, 'NO_WAIT' => 1, 'OPTIONS' => 1, 'PARTIAL' => 1, 'PERSIST' => 1, 'PLUGINS' => 1, 'PREPARE' => 1, 'PROFILE' => 1, 'REBUILD' => 1, 'RECOVER' => 1, 'RESTORE' => 1, 'RETURNS' => 1, 'ROUTINE' => 1, 'SESSION' => 1, 'STACKED' => 1, 'STORAGE' => 1, 'SUBJECT' => 1, 'SUSPEND' => 1, 'UNICODE' => 1, 'UNKNOWN' => 1, 'UPGRADE' => 1, 'USE_FRM' => 1, 'WITHOUT' => 1, 'WRAPPER' => 1, 'CASCADED' => 1, 'CHECKSUM' => 1, 'DATAFILE' => 1, 'DUMPFILE' => 1, 'EXCHANGE' => 1, 'EXTENDED' => 1, 'FUNCTION' => 1, 'LANGUAGE' => 1, 'MAX_ROWS' => 1, 'MAX_SIZE' => 1, 'MIN_ROWS' => 1, 'NATIONAL' => 1, 'NVARCHAR' => 1, 'PRECEDES' => 1, 'PRESERVE' => 1, 'PROFILES' => 1, 'REDOFILE' => 1, 'RELAYLOG' => 1, 'ROLLBACK' => 1, 'SCHEDULE' => 1, 'SECURITY' => 1, 'SHUTDOWN' => 1, 'SNAPSHOT' => 1, 'SWITCHES' => 1, 'TRIGGERS' => 1, 'UNDOFILE' => 1, 'WARNINGS' => 1, 'AGGREGATE' => 1, 'ALGORITHM' => 1, 'COMMITTED' => 1, 'DIRECTORY' => 1, 'DUPLICATE' => 1, 'EXPANSION' => 1, 'INVISIBLE' => 1, 'IO_THREAD' => 1, 'ISOLATION' => 1, 'NODEGROUP' => 1, 'PACK_KEYS' => 1, 'READ_ONLY' => 1, 'REDUNDANT' => 1, 'SAVEPOINT' => 1, 'SQL_CACHE' => 1, 'TEMPORARY' => 1, 'TEMPTABLE' => 1, 'UNDEFINED' => 1, 'UNINSTALL' => 1, 'VARIABLES' => 1, 'COMPLETION' => 1, 'COMPRESSED' => 1, 'CONCURRENT' => 1, 'CONNECTION' => 1, 'CONSISTENT' => 1, 'DEALLOCATE' => 1, 'IDENTIFIED' => 1, 'MASTER_SSL' => 1, 'NDBCLUSTER' => 1, 'PARTITIONS' => 1, 'PERSISTENT' => 1, 'PLUGIN_DIR' => 1, 'PRIVILEGES' => 1, 'REORGANIZE' => 1, 'REPEATABLE' => 1, 'ROW_FORMAT' => 1, 'SQL_THREAD' => 1, 'TABLESPACE' => 1, 'TABLE_NAME' => 1, 'VALIDATION' => 1, 'COLUMN_NAME' => 1, 'COMPRESSION' => 1, 'CURSOR_NAME' => 1, 'DIAGNOSTICS' => 1, 'EXTENT_SIZE' => 1, 'MASTER_HOST' => 1, 'MASTER_PORT' => 1, 'MASTER_USER' => 1, 'MYSQL_ERRNO' => 1, 'NONBLOCKING' => 1, 'PROCESSLIST' => 1, 'REPLICATION' => 1, 'SCHEMA_NAME' => 1, 'SQL_TSI_DAY' => 1, 'TRANSACTION' => 1, 'UNCOMMITTED' => 1, 'CATALOG_NAME' => 1, 'CLASS_ORIGIN' => 1, 'DEFAULT_AUTH' => 1, 'DES_KEY_FILE' => 1, 'INITIAL_SIZE' => 1, 'MASTER_DELAY' => 1, 'MESSAGE_TEXT' => 1, 'PARTITIONING' => 1, 'PERSIST_ONLY' => 1, 'RELAY_THREAD' => 1, 'SERIALIZABLE' => 1, 'SQL_NO_CACHE' => 1, 'SQL_TSI_HOUR' => 1, 'SQL_TSI_WEEK' => 1, 'SQL_TSI_YEAR' => 1, 'SUBPARTITION' => 1, 'COLUMN_FORMAT' => 1, 'INSERT_METHOD' => 1, 'MASTER_SSL_CA' => 1, 'RELAY_LOG_POS' => 1, 'SQL_TSI_MONTH' => 1, 'SUBPARTITIONS' => 1, 'AUTO_INCREMENT' => 1, 'AVG_ROW_LENGTH' => 1, 'KEY_BLOCK_SIZE' => 1, 'MASTER_LOG_POS' => 1, 'MASTER_SSL_CRL' => 1, 'MASTER_SSL_KEY' => 1, 'RELAY_LOG_FILE' => 1, 'SQL_TSI_MINUTE' => 1, 'SQL_TSI_SECOND' => 1, 'TABLE_CHECKSUM' => 1, 'USER_RESOURCES' => 1, 'AUTOEXTEND_SIZE' => 1, 'CONSTRAINT_NAME' => 1, 'DELAY_KEY_WRITE' => 1, 'FILE_BLOCK_SIZE' => 1, 'MASTER_LOG_FILE' => 1, 'MASTER_PASSWORD' => 1, 'MASTER_SSL_CERT' => 1, 'PARSE_GCOL_EXPR' => 1, 'REPLICATE_DO_DB' => 1, 'SQL_AFTER_GTIDS' => 1, 'SQL_TSI_QUARTER' => 1, 'SUBCLASS_ORIGIN' => 1, 'MASTER_SERVER_ID' => 1, 'REDO_BUFFER_SIZE' => 1, 'SQL_BEFORE_GTIDS' => 1, 'STATS_PERSISTENT' => 1, 'UNDO_BUFFER_SIZE' => 1, 'CONSTRAINT_SCHEMA' => 1, 'GROUP_REPLICATION' => 1, 'IGNORE_SERVER_IDS' => 1, 'MASTER_SSL_CAPATH' => 1, 'MASTER_SSL_CIPHER' => 1, 'RETURNED_SQLSTATE' => 1, 'SQL_BUFFER_RESULT' => 1, 'STATS_AUTO_RECALC' => 1, 'CONSTRAINT_CATALOG' => 1, 'MASTER_RETRY_COUNT' => 1, 'MASTER_SSL_CRLPATH' => 1, 'MAX_STATEMENT_TIME' => 1, 'REPLICATE_DO_TABLE' => 1, 'SQL_AFTER_MTS_GAPS' => 1, 'STATS_SAMPLE_PAGES' => 1, 'REPLICATE_IGNORE_DB' => 1, 'MASTER_AUTO_POSITION' => 1, 'MASTER_CONNECT_RETRY' => 1, 'MAX_QUERIES_PER_HOUR' => 1, 'MAX_UPDATES_PER_HOUR' => 1, 'MAX_USER_CONNECTIONS' => 1, 'REPLICATE_REWRITE_DB' => 1, 'REPLICATE_IGNORE_TABLE' => 1, 'MASTER_HEARTBEAT_PERIOD' => 1, 'REPLICATE_WILD_DO_TABLE' => 1, 'MAX_CONNECTIONS_PER_HOUR' => 1, 'REPLICATE_WILD_IGNORE_TABLE' => 1, 'AS' => 3, 'BY' => 3, 'IS' => 3, 'ON' => 3, 'OR' => 3, 'TO' => 3, 'ADD' => 3, 'ALL' => 3, 'AND' => 3, 'ASC' => 3, 'DEC' => 3, 'DIV' => 3, 'FOR' => 3, 'GET' => 3, 'NOT' => 3, 'OUT' => 3, 'SQL' => 3, 'SSL' => 3, 'USE' => 3, 'XOR' => 3, 'BOTH' => 3, 'CALL' => 3, 'CASE' => 3, 'DESC' => 3, 'DROP' => 3, 'DUAL' => 3, 'EACH' => 3, 'ELSE' => 3, 'EXIT' => 3, 'FROM' => 3, 'INTO' => 3, 'JOIN' => 3, 'KEYS' => 3, 'KILL' => 3, 'LIKE' => 3, 'LOAD' => 3, 'LOCK' => 3, 'LOOP' => 3, 'NULL' => 3, 'OVER' => 3, 'READ' => 3, 'SHOW' => 3, 'THEN' => 3, 'TRUE' => 3, 'UNDO' => 3, 'WHEN' => 3, 'WITH' => 3, 'ALTER' => 3, 'CHECK' => 3, 'CROSS' => 3, 'FALSE' => 3, 'FETCH' => 3, 'FORCE' => 3, 'GRANT' => 3, 'GROUP' => 3, 'INNER' => 3, 'INOUT' => 3, 'LEAVE' => 3, 'LIMIT' => 3, 'LINES' => 3, 'ORDER' => 3, 'OUTER' => 3, 'PURGE' => 3, 'RANGE' => 3, 'READS' => 3, 'RLIKE' => 3, 'TABLE' => 3, 'UNION' => 3, 'USAGE' => 3, 'USING' => 3, 'WHERE' => 3, 'WHILE' => 3, 'WRITE' => 3, 'BEFORE' => 3, 'CHANGE' => 3, 'COLUMN' => 3, 'CREATE' => 3, 'CURSOR' => 3, 'DELETE' => 3, 'ELSEIF' => 3, 'HAVING' => 3, 'IGNORE' => 3, 'INFILE' => 3, 'LINEAR' => 3, 'OPTION' => 3, 'REGEXP' => 3, 'RENAME' => 3, 'RETURN' => 3, 'REVOKE' => 3, 'SELECT' => 3, 'SIGNAL' => 3, 'STORED' => 3, 'UNLOCK' => 3, 'UPDATE' => 3, 'ANALYZE' => 3, 'BETWEEN' => 3, 'CASCADE' => 3, 'COLLATE' => 3, 'DECLARE' => 3, 'DELAYED' => 3, 'ESCAPED' => 3, 'EXPLAIN' => 3, 'FOREIGN' => 3, 'ITERATE' => 3, 'LEADING' => 3, 'NATURAL' => 3, 'OUTFILE' => 3, 'PRIMARY' => 3, 'RELEASE' => 3, 'REQUIRE' => 3, 'SCHEMAS' => 3, 'TRIGGER' => 3, 'VARYING' => 3, 'VIRTUAL' => 3, 'CONTINUE' => 3, 'DAY_HOUR' => 3, 'DESCRIBE' => 3, 'DISTINCT' => 3, 'ENCLOSED' => 3, 'MAXVALUE' => 3, 'MODIFIES' => 3, 'OPTIMIZE' => 3, 'RESIGNAL' => 3, 'RESTRICT' => 3, 'SPECIFIC' => 3, 'SQLSTATE' => 3, 'STARTING' => 3, 'TRAILING' => 3, 'UNSIGNED' => 3, 'ZEROFILL' => 3, 'CONDITION' => 3, 'DATABASES' => 3, 'GENERATED' => 3, 'PARTITION' => 3, 'PRECISION' => 3, 'PROCEDURE' => 3, 'SENSITIVE' => 3, 'SEPARATOR' => 3, 'ACCESSIBLE' => 3, 'ASENSITIVE' => 3, 'CONSTRAINT' => 3, 'DAY_MINUTE' => 3, 'DAY_SECOND' => 3, 'OPTIONALLY' => 3, 'READ_WRITE' => 3, 'REFERENCES' => 3, 'SQLWARNING' => 3, 'TERMINATED' => 3, 'YEAR_MONTH' => 3, 'DISTINCTROW' => 3, 'HOUR_MINUTE' => 3, 'HOUR_SECOND' => 3, 'INSENSITIVE' => 3, 'MASTER_BIND' => 3, 'LOW_PRIORITY' => 3, 'SQLEXCEPTION' => 3, 'VARCHARACTER' => 3, 'DETERMINISTIC' => 3, 'HIGH_PRIORITY' => 3, 'MINUTE_SECOND' => 3, 'STRAIGHT_JOIN' => 3, 'IO_AFTER_GTIDS' => 3, 'SQL_BIG_RESULT' => 3, 'DAY_MICROSECOND' => 3, 'IO_BEFORE_GTIDS' => 3, 'OPTIMIZER_COSTS' => 3, 'HOUR_MICROSECOND' => 3, 'SQL_SMALL_RESULT' => 3, 'MINUTE_MICROSECOND' => 3, 'NO_WRITE_TO_BINLOG' => 3, 'SECOND_MICROSECOND' => 3, 'SQL_CALC_FOUND_ROWS' => 3, 'MASTER_SSL_VERIFY_SERVER_CERT' => 3, 'NO SQL' => 7, 'GROUP BY' => 7, 'NOT NULL' => 7, 'ORDER BY' => 7, 'SET NULL' => 7, 'AND CHAIN' => 7, 'FULL JOIN' => 7, 'IF EXISTS' => 7, 'LEFT JOIN' => 7, 'LESS THAN' => 7, 'LOAD DATA' => 7, 'NO ACTION' => 7, 'ON DELETE' => 7, 'ON UPDATE' => 7, 'UNION ALL' => 7, 'CROSS JOIN' => 7, 'ESCAPED BY' => 7, 'FOR UPDATE' => 7, 'INNER JOIN' => 7, 'LINEAR KEY' => 7, 'NO RELEASE' => 7, 'OR REPLACE' => 7, 'RIGHT JOIN' => 7, 'ENCLOSED BY' => 7, 'LINEAR HASH' => 7, 'ON SCHEDULE' => 7, 'STARTING BY' => 7, 'WITH ROLLUP' => 7, 'AND NO CHAIN' => 7, 'CONTAINS SQL' => 7, 'FOR EACH ROW' => 7, 'NATURAL JOIN' => 7, 'PARTITION BY' => 7, 'SET PASSWORD' => 7, 'SQL SECURITY' => 7, 'CHARACTER SET' => 7, 'IF NOT EXISTS' => 7, 'TERMINATED BY' => 7, 'DATA DIRECTORY' => 7, 'READS SQL DATA' => 7, 'UNION DISTINCT' => 7, 'DEFAULT CHARSET' => 7, 'DEFAULT COLLATE' => 7, 'FULL OUTER JOIN' => 7, 'INDEX DIRECTORY' => 7, 'LEFT OUTER JOIN' => 7, 'SUBPARTITION BY' => 7, 'DISABLE ON SLAVE' => 7, 'GENERATED ALWAYS' => 7, 'RIGHT OUTER JOIN' => 7, 'MODIFIES SQL DATA' => 7, 'NATURAL LEFT JOIN' => 7, 'START TRANSACTION' => 7, 'COALESCE PARTITION' => 7, 'LOCK IN SHARE MODE' => 7, 'NATURAL RIGHT JOIN' => 7, 'SELECT TRANSACTION' => 7, 'DEFAULT CHARACTER SET' => 7, 'ON COMPLETION PRESERVE' => 7, 'NATURAL LEFT OUTER JOIN' => 7, 'NATURAL RIGHT OUTER JOIN' => 7, 'WITH CONSISTENT SNAPSHOT' => 7, 'ON COMPLETION NOT PRESERVE' => 7, 'BIT' => 9, 'XML' => 9, 'BOOL' => 9, 'ENUM' => 9, 'JSON' => 9, 'TEXT' => 9, 'ARRAY' => 9, 'FIXED' => 9, 'SERIAL' => 9, 'BOOLEAN' => 9, 'DATETIME' => 9, 'GEOMETRY' => 9, 'MULTISET' => 9, 'MULTILINEPOINT' => 9, 'MULTILINEPOLYGON' => 9, 'INT' => 11, 'SET' => 11, 'BLOB' => 11, 'INT1' => 11, 'INT2' => 11, 'INT3' => 11, 'INT4' => 11, 'INT8' => 11, 'LONG' => 11, 'REAL' => 11, 'FLOAT' => 11, 'BIGINT' => 11, 'DOUBLE' => 11, 'FLOAT4' => 11, 'FLOAT8' => 11, 'DECIMAL' => 11, 'INTEGER' => 11, 'NUMERIC' => 11, 'TINYINT' => 11, 'VARCHAR' => 11, 'LONGBLOB' => 11, 'LONGTEXT' => 11, 'SMALLINT' => 11, 'TINYBLOB' => 11, 'TINYTEXT' => 11, 'CHARACTER' => 11, 'MEDIUMINT' => 11, 'MIDDLEINT' => 11, 'VARBINARY' => 11, 'MEDIUMBLOB' => 11, 'MEDIUMTEXT' => 11, 'LONG VARCHAR' => 15, 'BINARY VARYING' => 15, 'LONG VARBINARY' => 15, 'CHARACTER VARYING' => 15, 'KEY' => 19, 'INDEX' => 19, 'UNIQUE' => 19, 'SPATIAL' => 19, 'FULLTEXT' => 19, 'INDEX KEY' => 23, 'UNIQUE KEY' => 23, 'FOREIGN KEY' => 23, 'PRIMARY KEY' => 23, 'SPATIAL KEY' => 23, 'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23, 'SPATIAL INDEX' => 23, 'FULLTEXT INDEX' => 23, 'IDENTIFIED WITH' => 23, 'X' => 33, 'Y' => 33, 'LN' => 33, 'PI' => 33, 'ABS' => 33, 'AVG' => 33, 'BIN' => 33, 'COS' => 33, 'COT' => 33, 'DAY' => 33, 'ELT' => 33, 'EXP' => 33, 'HEX' => 33, 'LOG' => 33, 'MAX' => 33, 'MD5' => 33, 'MID' => 33, 'MIN' => 33, 'NOW' => 33, 'OCT' => 33, 'ORD' => 33, 'POW' => 33, 'SHA' => 33, 'SIN' => 33, 'STD' => 33, 'SUM' => 33, 'TAN' => 33, 'ACOS' => 33, 'AREA' => 33, 'ASIN' => 33, 'ATAN' => 33, 'CAST' => 33, 'CEIL' => 33, 'CONV' => 33, 'HOUR' => 33, 'LOG2' => 33, 'LPAD' => 33, 'RAND' => 33, 'RPAD' => 33, 'SHA1' => 33, 'SHA2' => 33, 'SIGN' => 33, 'SQRT' => 33, 'SRID' => 33, 'ST_X' => 33, 'ST_Y' => 33, 'TRIM' => 33, 'USER' => 33, 'UUID' => 33, 'WEEK' => 33, 'ASCII' => 33, 'ASWKB' => 33, 'ASWKT' => 33, 'ATAN2' => 33, 'COUNT' => 33, 'CRC32' => 33, 'FIELD' => 33, 'FLOOR' => 33, 'INSTR' => 33, 'LCASE' => 33, 'LEAST' => 33, 'LOG10' => 33, 'LOWER' => 33, 'LTRIM' => 33, 'MONTH' => 33, 'POWER' => 33, 'QUOTE' => 33, 'ROUND' => 33, 'RTRIM' => 33, 'SLEEP' => 33, 'SPACE' => 33, 'UCASE' => 33, 'UNHEX' => 33, 'UPPER' => 33, 'ASTEXT' => 33, 'BIT_OR' => 33, 'BUFFER' => 33, 'CONCAT' => 33, 'DECODE' => 33, 'ENCODE' => 33, 'EQUALS' => 33, 'FORMAT' => 33, 'IFNULL' => 33, 'ISNULL' => 33, 'LENGTH' => 33, 'LOCATE' => 33, 'MINUTE' => 33, 'NULLIF' => 33, 'POINTN' => 33, 'SECOND' => 33, 'STDDEV' => 33, 'STRCMP' => 33, 'SUBSTR' => 33, 'WITHIN' => 33, 'ADDDATE' => 33, 'ADDTIME' => 33, 'AGAINST' => 33, 'BIT_AND' => 33, 'BIT_XOR' => 33, 'CEILING' => 33, 'CHARSET' => 33, 'CROSSES' => 33, 'CURDATE' => 33, 'CURTIME' => 33, 'DAYNAME' => 33, 'DEGREES' => 33, 'ENCRYPT' => 33, 'EXTRACT' => 33, 'GLENGTH' => 33, 'ISEMPTY' => 33, 'IS_IPV4' => 33, 'IS_IPV6' => 33, 'IS_UUID' => 33, 'QUARTER' => 33, 'RADIANS' => 33, 'REVERSE' => 33, 'SOUNDEX' => 33, 'ST_AREA' => 33, 'ST_SRID' => 33, 'SUBDATE' => 33, 'SUBTIME' => 33, 'SYSDATE' => 33, 'TOUCHES' => 33, 'TO_DAYS' => 33, 'VAR_POP' => 33, 'VERSION' => 33, 'WEEKDAY' => 33, 'ASBINARY' => 33, 'CENTROID' => 33, 'COALESCE' => 33, 'COMPRESS' => 33, 'CONTAINS' => 33, 'DATEDIFF' => 33, 'DATE_ADD' => 33, 'DATE_SUB' => 33, 'DISJOINT' => 33, 'DISTANCE' => 33, 'ENDPOINT' => 33, 'ENVELOPE' => 33, 'GET_LOCK' => 33, 'GREATEST' => 33, 'ISCLOSED' => 33, 'ISSIMPLE' => 33, 'JSON_SET' => 33, 'MAKEDATE' => 33, 'MAKETIME' => 33, 'MAKE_SET' => 33, 'MBREQUAL' => 33, 'OVERLAPS' => 33, 'PASSWORD' => 33, 'POSITION' => 33, 'ST_ASWKB' => 33, 'ST_ASWKT' => 33, 'ST_UNION' => 33, 'TIMEDIFF' => 33, 'TRUNCATE' => 33, 'VARIANCE' => 33, 'VAR_SAMP' => 33, 'YEARWEEK' => 33, 'ANY_VALUE' => 33, 'BENCHMARK' => 33, 'BIT_COUNT' => 33, 'COLLATION' => 33, 'CONCAT_WS' => 33, 'DAYOFWEEK' => 33, 'DAYOFYEAR' => 33, 'DIMENSION' => 33, 'FROM_DAYS' => 33, 'GEOMETRYN' => 33, 'INET_ATON' => 33, 'INET_NTOA' => 33, 'JSON_KEYS' => 33, 'JSON_TYPE' => 33, 'LOAD_FILE' => 33, 'MBRCOVERS' => 33, 'MBREQUALS' => 33, 'MBRWITHIN' => 33, 'MONTHNAME' => 33, 'NUMPOINTS' => 33, 'ROW_COUNT' => 33, 'ST_ASTEXT' => 33, 'ST_BUFFER' => 33, 'ST_EQUALS' => 33, 'ST_LENGTH' => 33, 'ST_POINTN' => 33, 'ST_WITHIN' => 33, 'SUBSTRING' => 33, 'TO_BASE64' => 33, 'UPDATEXML' => 33, 'BIT_LENGTH' => 33, 'CONVERT_TZ' => 33, 'CONVEXHULL' => 33, 'DAYOFMONTH' => 33, 'EXPORT_SET' => 33, 'FOUND_ROWS' => 33, 'GET_FORMAT' => 33, 'INET6_ATON' => 33, 'INET6_NTOA' => 33, 'INTERSECTS' => 33, 'JSON_ARRAY' => 33, 'JSON_DEPTH' => 33, 'JSON_MERGE' => 33, 'JSON_QUOTE' => 33, 'JSON_VALID' => 33, 'MBRTOUCHES' => 33, 'NAME_CONST' => 33, 'PERIOD_ADD' => 33, 'STARTPOINT' => 33, 'STDDEV_POP' => 33, 'ST_CROSSES' => 33, 'ST_GEOHASH' => 33, 'ST_ISEMPTY' => 33, 'ST_ISVALID' => 33, 'ST_TOUCHES' => 33, 'TO_SECONDS' => 33, 'UNCOMPRESS' => 33, 'UUID_SHORT' => 33, 'WEEKOFYEAR' => 33, 'AES_DECRYPT' => 33, 'AES_ENCRYPT' => 33, 'BIN_TO_UUID' => 33, 'CHAR_LENGTH' => 33, 'DATE_FORMAT' => 33, 'DES_DECRYPT' => 33, 'DES_ENCRYPT' => 33, 'FIND_IN_SET' => 33, 'FROM_BASE64' => 33, 'GEOMFROMWKB' => 33, 'GTID_SUBSET' => 33, 'JSON_INSERT' => 33, 'JSON_LENGTH' => 33, 'JSON_OBJECT' => 33, 'JSON_PRETTY' => 33, 'JSON_REMOVE' => 33, 'JSON_SEARCH' => 33, 'LINEFROMWKB' => 33, 'MBRCONTAINS' => 33, 'MBRDISJOINT' => 33, 'MBROVERLAPS' => 33, 'MICROSECOND' => 33, 'PERIOD_DIFF' => 33, 'POLYFROMWKB' => 33, 'SEC_TO_TIME' => 33, 'STDDEV_SAMP' => 33, 'STR_TO_DATE' => 33, 'ST_ASBINARY' => 33, 'ST_CENTROID' => 33, 'ST_CONTAINS' => 33, 'ST_DISJOINT' => 33, 'ST_DISTANCE' => 33, 'ST_ENDPOINT' => 33, 'ST_ENVELOPE' => 33, 'ST_ISCLOSED' => 33, 'ST_ISSIMPLE' => 33, 'ST_OVERLAPS' => 33, 'ST_SIMPLIFY' => 33, 'ST_VALIDATE' => 33, 'SYSTEM_USER' => 33, 'TIME_FORMAT' => 33, 'TIME_TO_SEC' => 33, 'UUID_TO_BIN' => 33, 'COERCIBILITY' => 33, 'EXTERIORRING' => 33, 'EXTRACTVALUE' => 33, 'GEOMETRYTYPE' => 33, 'GEOMFROMTEXT' => 33, 'GROUP_CONCAT' => 33, 'IS_FREE_LOCK' => 33, 'IS_USED_LOCK' => 33, 'JSON_EXTRACT' => 33, 'JSON_REPLACE' => 33, 'JSON_UNQUOTE' => 33, 'LINEFROMTEXT' => 33, 'MBRCOVEREDBY' => 33, 'MLINEFROMWKB' => 33, 'MPOLYFROMWKB' => 33, 'OCTET_LENGTH' => 33, 'OLD_PASSWORD' => 33, 'POINTFROMWKB' => 33, 'POLYFROMTEXT' => 33, 'RANDOM_BYTES' => 33, 'RELEASE_LOCK' => 33, 'SESSION_USER' => 33, 'ST_ASGEOJSON' => 33, 'ST_DIMENSION' => 33, 'ST_GEOMETRYN' => 33, 'ST_NUMPOINTS' => 33, 'TIMESTAMPADD' => 33, 'CONNECTION_ID' => 33, 'FROM_UNIXTIME' => 33, 'GTID_SUBTRACT' => 33, 'INTERIORRINGN' => 33, 'JSON_CONTAINS' => 33, 'MBRINTERSECTS' => 33, 'MLINEFROMTEXT' => 33, 'MPOINTFROMWKB' => 33, 'MPOLYFROMTEXT' => 33, 'NUMGEOMETRIES' => 33, 'POINTFROMTEXT' => 33, 'ST_CONVEXHULL' => 33, 'ST_DIFFERENCE' => 33, 'ST_INTERSECTS' => 33, 'ST_STARTPOINT' => 33, 'TIMESTAMPDIFF' => 33, 'WEIGHT_STRING' => 33, 'IS_IPV4_COMPAT' => 33, 'IS_IPV4_MAPPED' => 33, 'LAST_INSERT_ID' => 33, 'MPOINTFROMTEXT' => 33, 'POLYGONFROMWKB' => 33, 'ST_GEOMFROMWKB' => 33, 'ST_LINEFROMWKB' => 33, 'ST_POLYFROMWKB' => 33, 'UNIX_TIMESTAMP' => 33, 'GEOMCOLLFROMWKB' => 33, 'MASTER_POS_WAIT' => 33, 'POLYGONFROMTEXT' => 33, 'ST_EXTERIORRING' => 33, 'ST_GEOMETRYTYPE' => 33, 'ST_GEOMFROMTEXT' => 33, 'ST_INTERSECTION' => 33, 'ST_LINEFROMTEXT' => 33, 'ST_MAKEENVELOPE' => 33, 'ST_MLINEFROMWKB' => 33, 'ST_MPOLYFROMWKB' => 33, 'ST_POINTFROMWKB' => 33, 'ST_POLYFROMTEXT' => 33, 'SUBSTRING_INDEX' => 33, 'CHARACTER_LENGTH' => 33, 'GEOMCOLLFROMTEXT' => 33, 'GEOMETRYFROMTEXT' => 33, 'JSON_MERGE_PATCH' => 33, 'NUMINTERIORRINGS' => 33, 'ST_INTERIORRINGN' => 33, 'ST_MLINEFROMTEXT' => 33, 'ST_MPOINTFROMWKB' => 33, 'ST_MPOLYFROMTEXT' => 33, 'ST_NUMGEOMETRIES' => 33, 'ST_POINTFROMTEXT' => 33, 'ST_SYMDIFFERENCE' => 33, 'JSON_ARRAY_APPEND' => 33, 'JSON_ARRAY_INSERT' => 33, 'JSON_STORAGE_FREE' => 33, 'JSON_STORAGE_SIZE' => 33, 'LINESTRINGFROMWKB' => 33, 'MULTIPOINTFROMWKB' => 33, 'RELEASE_ALL_LOCKS' => 33, 'ST_LATFROMGEOHASH' => 33, 'ST_MPOINTFROMTEXT' => 33, 'ST_POLYGONFROMWKB' => 33, 'JSON_CONTAINS_PATH' => 33, 'MULTIPOINTFROMTEXT' => 33, 'ST_BUFFER_STRATEGY' => 33, 'ST_DISTANCE_SPHERE' => 33, 'ST_GEOMCOLLFROMTXT' => 33, 'ST_GEOMCOLLFROMWKB' => 33, 'ST_GEOMFROMGEOJSON' => 33, 'ST_LONGFROMGEOHASH' => 33, 'ST_POLYGONFROMTEXT' => 33, 'JSON_MERGE_PRESERVE' => 33, 'MULTIPOLYGONFROMWKB' => 33, 'ST_GEOMCOLLFROMTEXT' => 33, 'ST_GEOMETRYFROMTEXT' => 33, 'ST_NUMINTERIORRINGS' => 33, 'ST_POINTFROMGEOHASH' => 33, 'UNCOMPRESSED_LENGTH' => 33, 'MULTIPOLYGONFROMTEXT' => 33, 'ST_LINESTRINGFROMWKB' => 33, 'ST_MULTIPOINTFROMWKB' => 33, 'ST_MULTIPOINTFROMTEXT' => 33, 'MULTILINESTRINGFROMWKB' => 33, 'ST_MULTIPOLYGONFROMWKB' => 33, 'MULTILINESTRINGFROMTEXT' => 33, 'ST_MULTIPOLYGONFROMTEXT' => 33, 'GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_MULTILINESTRINGFROMWKB' => 33, 'GEOMETRYCOLLECTIONFROMTEXT' => 33, 'ST_MULTILINESTRINGFROMTEXT' => 33, 'VALIDATE_PASSWORD_STRENGTH' => 33, 'WAIT_FOR_EXECUTED_GTID_SET' => 33, 'ST_GEOMETRYCOLLECTIONFROMWKB' => 33, 'ST_GEOMETRYCOLLECTIONFROMTEXT' => 33, 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' => 33, 'IF' => 35, 'IN' => 35, 'MOD' => 35, 'LEFT' => 35, 'MATCH' => 35, 'RIGHT' => 35, 'EXISTS' => 35, 'INSERT' => 35, 'REPEAT' => 35, 'SCHEMA' => 35, 'VALUES' => 35, 'CONVERT' => 35, 'DEFAULT' => 35, 'REPLACE' => 35, 'DATABASE' => 35, 'UTC_DATE' => 35, 'UTC_TIME' => 35, 'LOCALTIME' => 35, 'CURRENT_DATE' => 35, 'CURRENT_TIME' => 35, 'CURRENT_USER' => 35, 'UTC_TIMESTAMP' => 35, 'LOCALTIMESTAMP' => 35, 'CURRENT_TIMESTAMP' => 35, 'NOT IN' => 39, 'DATE' => 41, 'TIME' => 41, 'YEAR' => 41, 'POINT' => 41, 'POLYGON' => 41, 'TIMESTAMP' => 41, 'LINESTRING' => 41, 'MULTIPOINT' => 41, 'MULTIPOLYGON' => 41, 'MULTILINESTRING' => 41, 'GEOMETRYCOLLECTION' => 41, 'CHAR' => 43, 'BINARY' => 43, 'INTERVAL' => 43, ]; } sql-parser-5.9.0/src/Core.php000066400000000000000000000020071455302707200160120ustar00rootroot00000000000000strict) { throw $error; } $this->errors[] = $error; } } sql-parser-5.9.0/src/Exceptions/000077500000000000000000000000001455302707200165335ustar00rootroot00000000000000sql-parser-5.9.0/src/Exceptions/LexerException.php000066400000000000000000000014771455302707200222130ustar00rootroot00000000000000ch = $ch; $this->pos = $pos; } } sql-parser-5.9.0/src/Exceptions/LoaderException.php000066400000000000000000000011431455302707200223300ustar00rootroot00000000000000name = $name; } } sql-parser-5.9.0/src/Exceptions/ParserException.php000066400000000000000000000012561455302707200223630ustar00rootroot00000000000000token = $token; } } sql-parser-5.9.0/src/Lexer.php000066400000000000000000001063721455302707200162130ustar00rootroot00000000000000list; } /** * @param string|UtfString $str the query to be lexed * @param bool $strict whether strict mode should be * enabled or not * @param string $delimiter the delimiter to be used */ public function __construct($str, $strict = false, $delimiter = null) { // `strlen` is used instead of `mb_strlen` because the lexer needs to // parse each byte of the input. $len = $str instanceof UtfString ? $str->length() : strlen($str); // For multi-byte strings, a new instance of `UtfString` is // initialized (only if `UtfString` usage is forced. if (! $str instanceof UtfString && USE_UTF_STRINGS && $len !== mb_strlen($str, 'UTF-8')) { $str = new UtfString($str); } $this->str = $str; $this->len = $str instanceof UtfString ? $str->length() : $len; $this->strict = $strict; // Setting the delimiter. $this->setDelimiter(! empty($delimiter) ? $delimiter : static::$DEFAULT_DELIMITER); $this->lex(); } /** * Sets the delimiter. * * @param string $delimiter the new delimiter * * @return void */ public function setDelimiter($delimiter) { $this->delimiter = $delimiter; $this->delimiterLen = strlen($delimiter); } /** * Parses the string and extracts lexemes. * * @return void */ public function lex() { // TODO: Sometimes, static::parse* functions make unnecessary calls to // is* functions. For a better performance, some rules can be deduced // from context. // For example, in `parseBool` there is no need to compare the token // every time with `true` and `false`. The first step would be to // compare with 'true' only and just after that add another letter from // context and compare again with `false`. // Another example is `parseComment`. $list = new TokensList(); /** * Last processed token. * * @var Token */ $lastToken = null; for ($this->last = 0, $lastIdx = 0; $this->last < $this->len; $lastIdx = ++$this->last) { /** * The new token. * * @var Token */ $token = null; foreach (static::$PARSER_METHODS as $method) { $token = $this->$method(); if ($token) { break; } } if ($token === null) { // @assert($this->last === $lastIdx); $token = new Token($this->str[$this->last]); $this->error('Unexpected character.', $this->str[$this->last], $this->last); } elseif ( $lastToken !== null && $token->type === Token::TYPE_SYMBOL && $token->flags & Token::FLAG_SYMBOL_VARIABLE && ( $lastToken->type === Token::TYPE_STRING || ( $lastToken->type === Token::TYPE_SYMBOL && $lastToken->flags & Token::FLAG_SYMBOL_BACKTICK ) ) ) { // Handles ```... FROM 'user'@'%' ...```. $lastToken->token .= $token->token; $lastToken->type = Token::TYPE_SYMBOL; $lastToken->flags = Token::FLAG_SYMBOL_USER; $lastToken->value .= '@' . $token->value; continue; } elseif ( $lastToken !== null && $token->type === Token::TYPE_KEYWORD && $lastToken->type === Token::TYPE_OPERATOR && $lastToken->value === '.' ) { // Handles ```... tbl.FROM ...```. In this case, FROM is not // a reserved word. $token->type = Token::TYPE_NONE; $token->flags = 0; $token->value = $token->token; } $token->position = $lastIdx; $list->tokens[$list->count++] = $token; // Handling delimiters. if ($token->type === Token::TYPE_NONE && $token->value === 'DELIMITER') { if ($this->last + 1 >= $this->len) { $this->error('Expected whitespace(s) before delimiter.', '', $this->last + 1); continue; } // Skipping last R (from `delimiteR`) and whitespaces between // the keyword `DELIMITER` and the actual delimiter. $pos = ++$this->last; $token = $this->parseWhitespace(); if ($token !== null) { $token->position = $pos; $list->tokens[$list->count++] = $token; } // Preparing the token that holds the new delimiter. if ($this->last + 1 >= $this->len) { $this->error('Expected delimiter.', '', $this->last + 1); continue; } $pos = $this->last + 1; // Parsing the delimiter. $this->delimiter = null; $delimiterLen = 0; while ( ++$this->last < $this->len && ! Context::isWhitespace($this->str[$this->last]) && $delimiterLen < 15 ) { $this->delimiter .= $this->str[$this->last]; ++$delimiterLen; } if (empty($this->delimiter)) { $this->error('Expected delimiter.', '', $this->last); $this->delimiter = ';'; } --$this->last; // Saving the delimiter and its token. $this->delimiterLen = strlen($this->delimiter); $token = new Token($this->delimiter, Token::TYPE_DELIMITER); $token->position = $pos; $list->tokens[$list->count++] = $token; } $lastToken = $token; } // Adding a final delimiter to mark the ending. $list->tokens[$list->count++] = new Token(null, Token::TYPE_DELIMITER); // Saving the tokens list. $this->list = $list; $this->solveAmbiguityOnStarOperator(); $this->solveAmbiguityOnFunctionKeywords(); } /** * Resolves the ambiguity when dealing with the "*" operator. * * In SQL statements, the "*" operator can be an arithmetic operator (like in 2*3) or an SQL wildcard (like in * SELECT a.* FROM ...). To solve this ambiguity, the solution is to find the next token, excluding whitespaces and * comments, right after the "*" position. The "*" is for sure an SQL wildcard if the next token found is any of: * - "FROM" (the FROM keyword like in "SELECT * FROM..."); * - "USING" (the USING keyword like in "DELETE table_name.* USING..."); * - "," (a comma separator like in "SELECT *, field FROM..."); * - ")" (a closing parenthesis like in "COUNT(*)"). * This methods will change the flag of the "*" tokens when any of those condition above is true. Otherwise, the * default flag (arithmetic) will be kept. */ private function solveAmbiguityOnStarOperator(): void { $iBak = $this->list->idx; while (($starToken = $this->list->getNextOfTypeAndValue(Token::TYPE_OPERATOR, '*')) !== null) { // getNext() already gets rid of whitespaces and comments. $next = $this->list->getNext(); if ($next === null) { continue; } if ( ($next->type !== Token::TYPE_KEYWORD || ! in_array($next->value, ['FROM', 'USING'], true)) && ($next->type !== Token::TYPE_OPERATOR || ! in_array($next->value, [',', ')'], true)) ) { continue; } $starToken->flags = Token::FLAG_OPERATOR_SQL; } $this->list->idx = $iBak; } /** * Resolves the ambiguity when dealing with the functions keywords. * * In SQL statements, the function keywords might be used as table names or columns names. * To solve this ambiguity, the solution is to find the next token, excluding whitespaces and * comments, right after the function keyword position. The function keyword is for sure used * as column name or table name if the next token found is any of: * * - "FROM" (the FROM keyword like in "SELECT Country x, AverageSalary avg FROM..."); * - "WHERE" (the WHERE keyword like in "DELETE FROM emp x WHERE x.salary = 20"); * - "SET" (the SET keyword like in "UPDATE Country x, City y set x.Name=x.Name"); * - "," (a comma separator like 'x,' in "UPDATE Country x, City y set x.Name=x.Name"); * - "." (a dot separator like in "x.asset_id FROM (SELECT evt.asset_id FROM evt)". * - "NULL" (when used as a table alias like in "avg.col FROM (SELECT ev.col FROM ev) avg"). * * This method will change the flag of the function keyword tokens when any of those * condition above is true. Otherwise, the * default flag (function keyword) will be kept. */ private function solveAmbiguityOnFunctionKeywords(): void { $iBak = $this->list->idx; $keywordFunction = Token::TYPE_KEYWORD | Token::FLAG_KEYWORD_FUNCTION; while (($keywordToken = $this->list->getNextOfTypeAndFlag(Token::TYPE_KEYWORD, $keywordFunction)) !== null) { $next = $this->list->getNext(); if ( ($next->type !== Token::TYPE_KEYWORD || ! in_array($next->value, $this->KEYWORD_NAME_INDICATORS, true) ) && ($next->type !== Token::TYPE_OPERATOR || ! in_array($next->value, $this->OPERATOR_NAME_INDICATORS, true) ) && ($next->value !== null) ) { continue; } $keywordToken->type = Token::TYPE_NONE; $keywordToken->flags = Token::TYPE_NONE; $keywordToken->keyword = $keywordToken->value; } $this->list->idx = $iBak; } /** * Creates a new error log. * * @param string $msg the error message * @param string $str the character that produced the error * @param int $pos the position of the character * @param int $code the code of the error * * @return void * * @throws LexerException throws the exception, if strict mode is enabled. */ public function error($msg, $str = '', $pos = 0, $code = 0) { $error = new LexerException( Translator::gettext($msg), $str, $pos, $code ); parent::error($error); } /** * Parses a keyword. * * @return Token|null */ public function parseKeyword() { $token = ''; /** * Value to be returned. * * @var Token */ $ret = null; /** * The value of `$this->last` where `$token` ends in `$this->str`. */ $iEnd = $this->last; /** * Whether last parsed character is a whitespace. * * @var bool */ $lastSpace = false; for ($j = 1; $j < Context::KEYWORD_MAX_LENGTH && $this->last < $this->len; ++$j, ++$this->last) { // Composed keywords shouldn't have more than one whitespace between // keywords. if (Context::isWhitespace($this->str[$this->last])) { if ($lastSpace) { --$j; // The size of the keyword didn't increase. continue; } $lastSpace = true; } else { $lastSpace = false; } $token .= $this->str[$this->last]; $flags = Context::isKeyword($token); if (($this->last + 1 !== $this->len && ! Context::isSeparator($this->str[$this->last + 1])) || ! $flags) { continue; } $ret = new Token($token, Token::TYPE_KEYWORD, $flags); $iEnd = $this->last; // We don't break so we find longest keyword. // For example, `OR` and `ORDER` have a common prefix `OR`. // If we stopped at `OR`, the parsing would be invalid. } $this->last = $iEnd; return $ret; } /** * Parses a label. * * @return Token|null */ public function parseLabel() { $token = ''; /** * Value to be returned. * * @var Token */ $ret = null; /** * The value of `$this->last` where `$token` ends in `$this->str`. */ $iEnd = $this->last; for ($j = 1; $j < Context::LABEL_MAX_LENGTH && $this->last < $this->len; ++$j, ++$this->last) { if ($this->str[$this->last] === ':' && $j > 1) { // End of label $token .= $this->str[$this->last]; $ret = new Token($token, Token::TYPE_LABEL); $iEnd = $this->last; break; } if (Context::isWhitespace($this->str[$this->last]) && $j > 1) { // Whitespace between label and : // The size of the keyword didn't increase. --$j; } elseif (Context::isSeparator($this->str[$this->last])) { // Any other separator break; } $token .= $this->str[$this->last]; } $this->last = $iEnd; return $ret; } /** * Parses an operator. * * @return Token|null */ public function parseOperator() { $token = ''; /** * Value to be returned. * * @var Token */ $ret = null; /** * The value of `$this->last` where `$token` ends in `$this->str`. */ $iEnd = $this->last; for ($j = 1; $j < Context::OPERATOR_MAX_LENGTH && $this->last < $this->len; ++$j, ++$this->last) { $token .= $this->str[$this->last]; $flags = Context::isOperator($token); if (! $flags) { continue; } $ret = new Token($token, Token::TYPE_OPERATOR, $flags); $iEnd = $this->last; } $this->last = $iEnd; return $ret; } /** * Parses a whitespace. * * @return Token|null */ public function parseWhitespace() { $token = $this->str[$this->last]; if (! Context::isWhitespace($token)) { return null; } while (++$this->last < $this->len && Context::isWhitespace($this->str[$this->last])) { $token .= $this->str[$this->last]; } --$this->last; return new Token($token, Token::TYPE_WHITESPACE); } /** * Parses a comment. * * @return Token|null */ public function parseComment() { $iBak = $this->last; $token = $this->str[$this->last]; // Bash style comments. (#comment\n) if (Context::isComment($token)) { while (++$this->last < $this->len && $this->str[$this->last] !== "\n") { $token .= $this->str[$this->last]; } // Include trailing \n as whitespace token if ($this->last < $this->len) { --$this->last; } return new Token($token, Token::TYPE_COMMENT, Token::FLAG_COMMENT_BASH); } // C style comments. (/*comment*\/) if (++$this->last < $this->len) { $token .= $this->str[$this->last]; if (Context::isComment($token)) { // There might be a conflict with "*" operator here, when string is "*/*". // This can occurs in the following statements: // - "SELECT */* comment */ FROM ..." // - "SELECT 2*/* comment */3 AS `six`;" $next = $this->last + 1; if (($next < $this->len) && $this->str[$next] === '*') { // Conflict in "*/*": first "*" was not for ending a comment. // Stop here and let other parsing method define the true behavior of that first star. $this->last = $iBak; return null; } $flags = Token::FLAG_COMMENT_C; // This comment already ended. It may be a part of a // previous MySQL specific command. if ($token === '*/') { return new Token($token, Token::TYPE_COMMENT, $flags); } // Checking if this is a MySQL-specific command. if ($this->last + 1 < $this->len && $this->str[$this->last + 1] === '!') { $flags |= Token::FLAG_COMMENT_MYSQL_CMD; $token .= $this->str[++$this->last]; while ( ++$this->last < $this->len && $this->str[$this->last] >= '0' && $this->str[$this->last] <= '9' ) { $token .= $this->str[$this->last]; } --$this->last; // We split this comment and parse only its beginning // here. return new Token($token, Token::TYPE_COMMENT, $flags); } // Parsing the comment. while ( ++$this->last < $this->len && ( $this->str[$this->last - 1] !== '*' || $this->str[$this->last] !== '/' ) ) { $token .= $this->str[$this->last]; } // Adding the ending. if ($this->last < $this->len) { $token .= $this->str[$this->last]; } return new Token($token, Token::TYPE_COMMENT, $flags); } } // SQL style comments. (-- comment\n) if (++$this->last < $this->len) { $token .= $this->str[$this->last]; $end = false; } else { --$this->last; $end = true; } if (Context::isComment($token, $end)) { // Checking if this comment did not end already (```--\n```). if ($this->str[$this->last] !== "\n") { while (++$this->last < $this->len && $this->str[$this->last] !== "\n") { $token .= $this->str[$this->last]; } } // Include trailing \n as whitespace token if ($this->last < $this->len) { --$this->last; } return new Token($token, Token::TYPE_COMMENT, Token::FLAG_COMMENT_SQL); } $this->last = $iBak; return null; } /** * Parses a boolean. * * @return Token|null */ public function parseBool() { if ($this->last + 3 >= $this->len) { // At least `min(strlen('TRUE'), strlen('FALSE'))` characters are // required. return null; } $iBak = $this->last; $token = $this->str[$this->last] . $this->str[++$this->last] . $this->str[++$this->last] . $this->str[++$this->last]; // _TRUE_ or _FALS_e if (Context::isBool($token)) { return new Token($token, Token::TYPE_BOOL); } if (++$this->last < $this->len) { $token .= $this->str[$this->last]; // fals_E_ if (Context::isBool($token)) { return new Token($token, Token::TYPE_BOOL, 1); } } $this->last = $iBak; return null; } /** * Parses a number. * * @return Token|null */ public function parseNumber() { // A rudimentary state machine is being used to parse numbers due to // the various forms of their notation. // // Below are the states of the machines and the conditions to change // the state. // // 1 --------------------[ + or - ]-------------------> 1 // 1 -------------------[ 0x or 0X ]------------------> 2 // 1 --------------------[ 0 to 9 ]-------------------> 3 // 1 -----------------------[ . ]---------------------> 4 // 1 -----------------------[ b ]---------------------> 7 // // 2 --------------------[ 0 to F ]-------------------> 2 // // 3 --------------------[ 0 to 9 ]-------------------> 3 // 3 -----------------------[ . ]---------------------> 4 // 3 --------------------[ e or E ]-------------------> 5 // // 4 --------------------[ 0 to 9 ]-------------------> 4 // 4 --------------------[ e or E ]-------------------> 5 // // 5 ---------------[ + or - or 0 to 9 ]--------------> 6 // // 7 -----------------------[ ' ]---------------------> 8 // // 8 --------------------[ 0 or 1 ]-------------------> 8 // 8 -----------------------[ ' ]---------------------> 9 // // State 1 may be reached by negative numbers. // State 2 is reached only by hex numbers. // State 4 is reached only by float numbers. // State 5 is reached only by numbers in approximate form. // State 7 is reached only by numbers in bit representation. // // Valid final states are: 2, 3, 4 and 6. Any parsing that finished in a // state other than these is invalid. // Also, negative states are invalid states. $iBak = $this->last; $token = ''; $flags = 0; $state = 1; for (; $this->last < $this->len; ++$this->last) { if ($state === 1) { if ($this->str[$this->last] === '-') { $flags |= Token::FLAG_NUMBER_NEGATIVE; } elseif ( $this->last + 1 < $this->len && $this->str[$this->last] === '0' && $this->str[$this->last + 1] === 'x' ) { $token .= $this->str[$this->last++]; $state = 2; } elseif ($this->str[$this->last] >= '0' && $this->str[$this->last] <= '9') { $state = 3; } elseif ($this->str[$this->last] === '.') { $state = 4; } elseif ($this->str[$this->last] === 'b') { $state = 7; } elseif ($this->str[$this->last] !== '+') { // `+` is a valid character in a number. break; } } elseif ($state === 2) { $flags |= Token::FLAG_NUMBER_HEX; if ( ! ( ($this->str[$this->last] >= '0' && $this->str[$this->last] <= '9') || ($this->str[$this->last] >= 'A' && $this->str[$this->last] <= 'F') || ($this->str[$this->last] >= 'a' && $this->str[$this->last] <= 'f') ) ) { break; } } elseif ($state === 3) { if ($this->str[$this->last] === '.') { $state = 4; } elseif ($this->str[$this->last] === 'e' || $this->str[$this->last] === 'E') { $state = 5; } elseif ( ($this->str[$this->last] >= 'a' && $this->str[$this->last] <= 'z') || ($this->str[$this->last] >= 'A' && $this->str[$this->last] <= 'Z') ) { // A number can't be directly followed by a letter $state = -$state; } elseif ($this->str[$this->last] < '0' || $this->str[$this->last] > '9') { // Just digits and `.`, `e` and `E` are valid characters. break; } } elseif ($state === 4) { $flags |= Token::FLAG_NUMBER_FLOAT; if ($this->str[$this->last] === 'e' || $this->str[$this->last] === 'E') { $state = 5; } elseif ( ($this->str[$this->last] >= 'a' && $this->str[$this->last] <= 'z') || ($this->str[$this->last] >= 'A' && $this->str[$this->last] <= 'Z') ) { // A number can't be directly followed by a letter $state = -$state; } elseif ($this->str[$this->last] < '0' || $this->str[$this->last] > '9') { // Just digits, `e` and `E` are valid characters. break; } } elseif ($state === 5) { $flags |= Token::FLAG_NUMBER_APPROXIMATE; if ( $this->str[$this->last] === '+' || $this->str[$this->last] === '-' || ($this->str[$this->last] >= '0' && $this->str[$this->last] <= '9') ) { $state = 6; } elseif ( ($this->str[$this->last] >= 'a' && $this->str[$this->last] <= 'z') || ($this->str[$this->last] >= 'A' && $this->str[$this->last] <= 'Z') ) { // A number can't be directly followed by a letter $state = -$state; } else { break; } } elseif ($state === 6) { if ($this->str[$this->last] < '0' || $this->str[$this->last] > '9') { // Just digits are valid characters. break; } } elseif ($state === 7) { $flags |= Token::FLAG_NUMBER_BINARY; if ($this->str[$this->last] !== '\'') { break; } $state = 8; } elseif ($state === 8) { if ($this->str[$this->last] === '\'') { $state = 9; } elseif ($this->str[$this->last] !== '0' && $this->str[$this->last] !== '1') { break; } } elseif ($state === 9) { break; } $token .= $this->str[$this->last]; } if ($state === 2 || $state === 3 || ($token !== '.' && $state === 4) || $state === 6 || $state === 9) { --$this->last; return new Token($token, Token::TYPE_NUMBER, $flags); } $this->last = $iBak; return null; } /** * Parses a string. * * @param string $quote additional starting symbol * * @return Token|null * * @throws LexerException */ public function parseString($quote = '') { $token = $this->str[$this->last]; $flags = Context::isString($token); if (! $flags && $token !== $quote) { return null; } $quote = $token; while (++$this->last < $this->len) { if ( $this->last + 1 < $this->len && ( ($this->str[$this->last] === $quote && $this->str[$this->last + 1] === $quote) || ($this->str[$this->last] === '\\' && $quote !== '`') ) ) { $token .= $this->str[$this->last] . $this->str[++$this->last]; } else { if ($this->str[$this->last] === $quote) { break; } $token .= $this->str[$this->last]; } } if ($this->last >= $this->len || $this->str[$this->last] !== $quote) { $this->error( sprintf( Translator::gettext('Ending quote %1$s was expected.'), $quote ), '', $this->last ); } else { $token .= $this->str[$this->last]; } return new Token($token, Token::TYPE_STRING, $flags); } /** * Parses a symbol. * * @return Token|null * * @throws LexerException */ public function parseSymbol() { $token = $this->str[$this->last]; $flags = Context::isSymbol($token); if (! $flags) { return null; } if ($flags & Token::FLAG_SYMBOL_VARIABLE) { if ($this->last + 1 < $this->len && $this->str[++$this->last] === '@') { // This is a system variable (e.g. `@@hostname`). $token .= $this->str[$this->last++]; $flags |= Token::FLAG_SYMBOL_SYSTEM; } } elseif ($flags & Token::FLAG_SYMBOL_PARAMETER) { if ($token !== '?' && $this->last + 1 < $this->len) { ++$this->last; } } else { $token = ''; } $str = null; if ($this->last < $this->len) { $str = $this->parseString('`'); if ($str === null) { $str = $this->parseUnknown(); if ($str === null && ! ($flags & Token::FLAG_SYMBOL_PARAMETER)) { $this->error('Variable name was expected.', $this->str[$this->last], $this->last); } } } if ($str !== null) { $token .= $str->token; } return new Token($token, Token::TYPE_SYMBOL, $flags); } /** * Parses unknown parts of the query. * * @return Token|null */ public function parseUnknown() { $token = $this->str[$this->last]; if (Context::isSeparator($token)) { return null; } while (++$this->last < $this->len && ! Context::isSeparator($this->str[$this->last])) { $token .= $this->str[$this->last]; // Test if end of token equals the current delimiter. If so, remove it from the token. if (str_ends_with($token, $this->delimiter)) { $token = substr($token, 0, -$this->delimiterLen); $this->last -= $this->delimiterLen - 1; break; } } --$this->last; return new Token($token); } /** * Parses the delimiter of the query. * * @return Token|null */ public function parseDelimiter() { $idx = 0; while ($idx < $this->delimiterLen && $this->last + $idx < $this->len) { if ($this->delimiter[$idx] !== $this->str[$this->last + $idx]) { return null; } ++$idx; } $this->last += $this->delimiterLen - 1; return new Token($this->delimiter, Token::TYPE_DELIMITER); } } sql-parser-5.9.0/src/Parser.php000066400000000000000000000537151455302707200163720ustar00rootroot00000000000000 */ public static $STATEMENT_PARSERS = [ // MySQL Utility Statements 'DESCRIBE' => 'PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement', 'DESC' => 'PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement', 'EXPLAIN' => 'PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement', 'FLUSH' => '', 'GRANT' => '', 'HELP' => '', 'SET PASSWORD' => '', 'STATUS' => '', 'USE' => '', // Table Maintenance Statements // https://dev.mysql.com/doc/refman/5.7/en/table-maintenance-sql.html 'ANALYZE' => 'PhpMyAdmin\\SqlParser\\Statements\\AnalyzeStatement', 'BACKUP' => 'PhpMyAdmin\\SqlParser\\Statements\\BackupStatement', 'CHECK' => 'PhpMyAdmin\\SqlParser\\Statements\\CheckStatement', 'CHECKSUM' => 'PhpMyAdmin\\SqlParser\\Statements\\ChecksumStatement', 'OPTIMIZE' => 'PhpMyAdmin\\SqlParser\\Statements\\OptimizeStatement', 'REPAIR' => 'PhpMyAdmin\\SqlParser\\Statements\\RepairStatement', 'RESTORE' => 'PhpMyAdmin\\SqlParser\\Statements\\RestoreStatement', // Database Administration Statements // https://dev.mysql.com/doc/refman/5.7/en/sql-syntax-server-administration.html 'SET' => 'PhpMyAdmin\\SqlParser\\Statements\\SetStatement', 'SHOW' => 'PhpMyAdmin\\SqlParser\\Statements\\ShowStatement', // Data Definition Statements. // https://dev.mysql.com/doc/refman/5.7/en/sql-syntax-data-definition.html 'ALTER' => 'PhpMyAdmin\\SqlParser\\Statements\\AlterStatement', 'CREATE' => 'PhpMyAdmin\\SqlParser\\Statements\\CreateStatement', 'DROP' => 'PhpMyAdmin\\SqlParser\\Statements\\DropStatement', 'RENAME' => 'PhpMyAdmin\\SqlParser\\Statements\\RenameStatement', 'TRUNCATE' => 'PhpMyAdmin\\SqlParser\\Statements\\TruncateStatement', // Data Manipulation Statements. // https://dev.mysql.com/doc/refman/5.7/en/sql-syntax-data-manipulation.html 'CALL' => 'PhpMyAdmin\\SqlParser\\Statements\\CallStatement', 'DELETE' => 'PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement', 'DO' => '', 'HANDLER' => '', 'INSERT' => 'PhpMyAdmin\\SqlParser\\Statements\\InsertStatement', 'LOAD DATA' => 'PhpMyAdmin\\SqlParser\\Statements\\LoadStatement', 'REPLACE' => 'PhpMyAdmin\\SqlParser\\Statements\\ReplaceStatement', 'SELECT' => 'PhpMyAdmin\\SqlParser\\Statements\\SelectStatement', 'UPDATE' => 'PhpMyAdmin\\SqlParser\\Statements\\UpdateStatement', 'WITH' => 'PhpMyAdmin\\SqlParser\\Statements\\WithStatement', // Prepared Statements. // https://dev.mysql.com/doc/refman/5.7/en/sql-syntax-prepared-statements.html 'DEALLOCATE' => '', 'EXECUTE' => '', 'PREPARE' => '', // Transactional and Locking Statements // https://dev.mysql.com/doc/refman/5.7/en/commit.html 'BEGIN' => 'PhpMyAdmin\\SqlParser\\Statements\\TransactionStatement', 'COMMIT' => 'PhpMyAdmin\\SqlParser\\Statements\\TransactionStatement', 'ROLLBACK' => 'PhpMyAdmin\\SqlParser\\Statements\\TransactionStatement', 'START TRANSACTION' => 'PhpMyAdmin\\SqlParser\\Statements\\TransactionStatement', 'PURGE' => 'PhpMyAdmin\\SqlParser\\Statements\\PurgeStatement', // Lock statements // https://dev.mysql.com/doc/refman/5.7/en/lock-tables.html 'LOCK' => 'PhpMyAdmin\\SqlParser\\Statements\\LockStatement', 'UNLOCK' => 'PhpMyAdmin\\SqlParser\\Statements\\LockStatement', ]; /** * Array of classes that are used in parsing SQL components. * * @var array>> * @psalm-var array}> */ public static $KEYWORD_PARSERS = [ // This is not a proper keyword and was added here to help the // formatter. 'PARTITION BY' => [], 'SUBPARTITION BY' => [], // This is not a proper keyword and was added here to help the // builder. '_OPTIONS' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\OptionsArray', 'field' => 'options', ], '_END_OPTIONS' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\OptionsArray', 'field' => 'end_options', ], '_GROUP_OPTIONS' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\OptionsArray', 'field' => 'group_options', ], 'INTERSECT' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\UnionKeyword', 'field' => 'union', ], 'EXCEPT' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\UnionKeyword', 'field' => 'union', ], 'UNION' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\UnionKeyword', 'field' => 'union', ], 'UNION ALL' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\UnionKeyword', 'field' => 'union', ], 'UNION DISTINCT' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\UnionKeyword', 'field' => 'union', ], // Actual clause parsers. 'ALTER' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\Expression', 'field' => 'table', 'options' => ['parseField' => 'table'], ], 'ANALYZE' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\ExpressionArray', 'field' => 'tables', 'options' => ['parseField' => 'table'], ], 'BACKUP' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\ExpressionArray', 'field' => 'tables', 'options' => ['parseField' => 'table'], ], 'CALL' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\FunctionCall', 'field' => 'call', ], 'CHECK' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\ExpressionArray', 'field' => 'tables', 'options' => ['parseField' => 'table'], ], 'CHECKSUM' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\ExpressionArray', 'field' => 'tables', 'options' => ['parseField' => 'table'], ], 'CROSS JOIN' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\JoinKeyword', 'field' => 'join', ], 'DROP' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\ExpressionArray', 'field' => 'fields', 'options' => ['parseField' => 'table'], ], 'FORCE' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\IndexHint', 'field' => 'index_hints', ], 'FROM' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\ExpressionArray', 'field' => 'from', 'options' => ['field' => 'table'], ], 'GROUP BY' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\GroupKeyword', 'field' => 'group', ], 'HAVING' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\Condition', 'field' => 'having', ], 'IGNORE' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\IndexHint', 'field' => 'index_hints', ], 'INTO' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\IntoKeyword', 'field' => 'into', ], 'JOIN' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\JoinKeyword', 'field' => 'join', ], 'LEFT JOIN' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\JoinKeyword', 'field' => 'join', ], 'LEFT OUTER JOIN' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\JoinKeyword', 'field' => 'join', ], 'ON' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\Expression', 'field' => 'table', 'options' => ['parseField' => 'table'], ], 'RIGHT JOIN' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\JoinKeyword', 'field' => 'join', ], 'RIGHT OUTER JOIN' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\JoinKeyword', 'field' => 'join', ], 'INNER JOIN' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\JoinKeyword', 'field' => 'join', ], 'FULL JOIN' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\JoinKeyword', 'field' => 'join', ], 'FULL OUTER JOIN' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\JoinKeyword', 'field' => 'join', ], 'NATURAL JOIN' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\JoinKeyword', 'field' => 'join', ], 'NATURAL LEFT JOIN' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\JoinKeyword', 'field' => 'join', ], 'NATURAL RIGHT JOIN' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\JoinKeyword', 'field' => 'join', ], 'NATURAL LEFT OUTER JOIN' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\JoinKeyword', 'field' => 'join', ], 'NATURAL RIGHT OUTER JOIN' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\JoinKeyword', 'field' => 'join', ], 'STRAIGHT_JOIN' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\JoinKeyword', 'field' => 'join', ], 'LIMIT' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\Limit', 'field' => 'limit', ], 'OPTIMIZE' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\ExpressionArray', 'field' => 'tables', 'options' => ['parseField' => 'table'], ], 'ORDER BY' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\OrderKeyword', 'field' => 'order', ], 'PARTITION' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\ArrayObj', 'field' => 'partition', ], 'PROCEDURE' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\FunctionCall', 'field' => 'procedure', ], 'RENAME' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\RenameOperation', 'field' => 'renames', ], 'REPAIR' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\ExpressionArray', 'field' => 'tables', 'options' => ['parseField' => 'table'], ], 'RESTORE' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\ExpressionArray', 'field' => 'tables', 'options' => ['parseField' => 'table'], ], 'SET' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\SetOperation', 'field' => 'set', ], 'SELECT' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\ExpressionArray', 'field' => 'expr', ], 'TRUNCATE' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\Expression', 'field' => 'table', 'options' => ['parseField' => 'table'], ], 'UPDATE' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\ExpressionArray', 'field' => 'tables', 'options' => ['parseField' => 'table'], ], 'USE' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\IndexHint', 'field' => 'index_hints', ], 'VALUE' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\Array2d', 'field' => 'values', ], 'VALUES' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\Array2d', 'field' => 'values', ], 'WHERE' => [ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\Condition', 'field' => 'where', ], ]; /** * The list of tokens that are parsed. * * @var TokensList|null */ public $list; /** * List of statements parsed. * * @var Statement[] */ public $statements = []; /** * The number of opened brackets. * * @var int */ public $brackets = 0; /** * @param string|UtfString|TokensList|null $list the list of tokens to be parsed * @param bool $strict whether strict mode should be enabled or not */ public function __construct($list = null, $strict = false) { if (is_string($list) || ($list instanceof UtfString)) { $lexer = new Lexer($list, $strict); $this->list = $lexer->list; } elseif ($list instanceof TokensList) { $this->list = $list; } $this->strict = $strict; if ($list === null) { return; } $this->parse(); } /** * Builds the parse trees. * * @return void * * @throws ParserException */ public function parse() { /** * Last transaction. * * @var TransactionStatement */ $lastTransaction = null; /** * Last parsed statement. * * @var Statement */ $lastStatement = null; /** * Union's type or false for no union. * * @var bool|string */ $unionType = false; /** * The index of the last token from the last statement. * * @var int */ $prevLastIdx = -1; /** * The list of tokens. */ $list = &$this->list; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // `DELIMITER` is not an actual statement and it requires // special handling. if (($token->type === Token::TYPE_NONE) && (strtoupper($token->token) === 'DELIMITER')) { // Skipping to the end of this statement. $list->getNextOfType(Token::TYPE_DELIMITER); $prevLastIdx = $list->idx; continue; } // Counting the brackets around statements. if ($token->value === '(') { ++$this->brackets; continue; } // Statements can start with keywords only. // Comments, whitespaces, etc. are ignored. if ($token->type !== Token::TYPE_KEYWORD) { if ( ($token->type !== Token::TYPE_COMMENT) && ($token->type !== Token::TYPE_WHITESPACE) && ($token->type !== Token::TYPE_OPERATOR) // `(` and `)` && ($token->type !== Token::TYPE_DELIMITER) ) { $this->error('Unexpected beginning of statement.', $token); } continue; } if ( ($token->keyword === 'UNION') || ($token->keyword === 'UNION ALL') || ($token->keyword === 'UNION DISTINCT') || ($token->keyword === 'EXCEPT') || ($token->keyword === 'INTERSECT') ) { $unionType = $token->keyword; continue; } $lastIdx = $list->idx; $statementName = null; if ($token->keyword === 'ANALYZE') { ++$list->idx; // Skip ANALYZE $first = $list->getNextOfType(Token::TYPE_KEYWORD); $second = $list->getNextOfType(Token::TYPE_KEYWORD); // ANALYZE keyword can be an indication of two cases: // 1 - ANALYZE TABLE statements, in both MariaDB and MySQL // 2 - Explain statement, in case of MariaDB https://mariadb.com/kb/en/explain-analyze/ // We need to point case 2 to use the EXPLAIN Parser. $statementName = 'EXPLAIN'; if (($first && $first->keyword === 'TABLE') || ($second && $second->keyword === 'TABLE')) { $statementName = 'ANALYZE'; } $list->idx = $lastIdx; } else { // Checking if it is a known statement that can be parsed. if (empty(static::$STATEMENT_PARSERS[$token->keyword])) { if (! isset(static::$STATEMENT_PARSERS[$token->keyword])) { // A statement is considered recognized if the parser // is aware that it is a statement, but it does not have // a parser for it yet. $this->error('Unrecognized statement type.', $token); } // Skipping to the end of this statement. $list->getNextOfType(Token::TYPE_DELIMITER); $prevLastIdx = $list->idx; continue; } } /** * The name of the class that is used for parsing. * * @var string */ $class = static::$STATEMENT_PARSERS[$statementName ?? $token->keyword]; /** * Processed statement. * * @var Statement */ $statement = new $class($this, $this->list); // The first token that is a part of this token is the next token // unprocessed by the previous statement. // There might be brackets around statements and this shouldn't // affect the parser $statement->first = $prevLastIdx + 1; // Storing the index of the last token parsed and updating the old // index. $statement->last = $list->idx; $prevLastIdx = $list->idx; // Handles unions. if ( ! empty($unionType) && ($lastStatement instanceof SelectStatement) && ($statement instanceof SelectStatement) ) { /* * This SELECT statement. * * @var SelectStatement $statement */ /* * Last SELECT statement. * * @var SelectStatement $lastStatement */ $lastStatement->union[] = [ $unionType, $statement, ]; // if there are no no delimiting brackets, the `ORDER` and // `LIMIT` keywords actually belong to the first statement. $lastStatement->order = $statement->order; $lastStatement->limit = $statement->limit; $statement->order = []; $statement->limit = null; // The statement actually ends where the last statement in // union ends. $lastStatement->last = $statement->last; $unionType = false; // Validate clause order $statement->validateClauseOrder($this, $list); continue; } // Handles transactions. if ($statement instanceof TransactionStatement) { /* * @var TransactionStatement */ if ($statement->type === TransactionStatement::TYPE_BEGIN) { $lastTransaction = $statement; $this->statements[] = $statement; } elseif ($statement->type === TransactionStatement::TYPE_END) { if ($lastTransaction === null) { // Even though an error occurred, the query is being // saved. $this->statements[] = $statement; $this->error('No transaction was previously started.', $token); } else { $lastTransaction->end = $statement; } $lastTransaction = null; } // Validate clause order $statement->validateClauseOrder($this, $list); continue; } // Validate clause order $statement->validateClauseOrder($this, $list); // Finally, storing the statement. if ($lastTransaction !== null) { $lastTransaction->statements[] = $statement; } else { $this->statements[] = $statement; } $lastStatement = $statement; } } /** * Creates a new error log. * * @param string $msg the error message * @param Token $token the token that produced the error * @param int $code the code of the error * * @return void * * @throws ParserException throws the exception, if strict mode is enabled. */ public function error($msg, ?Token $token = null, $code = 0) { $error = new ParserException( Translator::gettext($msg), $token, $code ); parent::error($error); } } sql-parser-5.9.0/src/Statement.php000066400000000000000000000442201455302707200170710ustar00rootroot00000000000000> * @psalm-var arrayfield`) was used in building. */ $built = []; /** * Statement's clauses. */ $clauses = $this->getClauses(); foreach ($clauses as $clause) { /** * The name of the clause. * * @var string */ $name = $clause[0]; /** * The type of the clause. * * @see self::$CLAUSES * * @var int */ $type = $clause[1]; /** * The builder (parser) of this clause. * * @var Component */ $class = Parser::$KEYWORD_PARSERS[$name]['class']; /** * The name of the field that is used as source for the builder. * Same field is used to store the result of parsing. * * @var string */ $field = Parser::$KEYWORD_PARSERS[$name]['field']; // The field is empty, there is nothing to be built. if (empty($this->$field)) { continue; } // Checking if this field was already built. if ($type & 1) { if (! empty($built[$field])) { continue; } $built[$field] = true; } // Checking if the name of the clause should be added. if ($type & 2) { $query = trim($query) . ' ' . $name; } // Checking if the result of the builder should be added. if (! ($type & 1)) { continue; } $query = trim($query) . ' ' . $class::build($this->$field); } return $query; } /** * Parses the statements defined by the tokens list. * * @param Parser $parser the instance that requests parsing * @param TokensList $list the list of tokens to be parsed * * @return void * * @throws Exceptions\ParserException */ public function parse(Parser $parser, TokensList $list) { /** * Array containing all list of clauses parsed. * This is used to check for duplicates. */ $parsedClauses = []; // This may be corrected by the parser. $this->first = $list->idx; /** * Whether options were parsed or not. * For statements that do not have any options this is set to `true` by * default. */ $parsedOptions = empty(static::$OPTIONS); for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Checking if this closing bracket is the pair for a bracket // outside the statement. if (($token->value === ')') && ($parser->brackets > 0)) { --$parser->brackets; continue; } // Only keywords are relevant here. Other parts of the query are // processed in the functions below. if ($token->type !== Token::TYPE_KEYWORD) { if (($token->type !== Token::TYPE_COMMENT) && ($token->type !== Token::TYPE_WHITESPACE)) { $parser->error('Unexpected token.', $token); } continue; } // Unions are parsed by the parser because they represent more than // one statement. if ( ($token->keyword === 'UNION') || ($token->keyword === 'UNION ALL') || ($token->keyword === 'UNION DISTINCT') || ($token->keyword === 'EXCEPT') || ($token->keyword === 'INTERSECT') ) { break; } $lastIdx = $list->idx; // ON DUPLICATE KEY UPDATE ... // has to be parsed in parent statement (INSERT or REPLACE) // so look for it and break if ($this instanceof Statements\SelectStatement && $token->value === 'ON') { ++$list->idx; // Skip ON // look for ON DUPLICATE KEY UPDATE $first = $list->getNextOfType(Token::TYPE_KEYWORD); $second = $list->getNextOfType(Token::TYPE_KEYWORD); $third = $list->getNextOfType(Token::TYPE_KEYWORD); if ( $first && $second && $third && $first->value === 'DUPLICATE' && $second->value === 'KEY' && $third->value === 'UPDATE' ) { $list->idx = $lastIdx; break; } } $list->idx = $lastIdx; /** * The name of the class that is used for parsing. * * @var Component */ $class = null; /** * The name of the field where the result of the parsing is stored. * * @var string */ $field = null; /** * Parser's options. */ $options = []; // Looking for duplicated clauses. if ( ! empty(Parser::$KEYWORD_PARSERS[$token->value]) || ! empty(Parser::$STATEMENT_PARSERS[$token->value]) ) { if (! empty($parsedClauses[$token->value])) { $parser->error('This type of clause was previously parsed.', $token); break; } $parsedClauses[$token->value] = true; } // Checking if this is the beginning of a clause. // Fix Issue #221: As `truncate` is not a keyword // but it might be the beginning of a statement of truncate, // so let the value use the keyword field for truncate type. $tokenValue = in_array($token->keyword, ['TRUNCATE']) ? $token->keyword : $token->value; if (! empty(Parser::$KEYWORD_PARSERS[$tokenValue]) && $list->idx < $list->count) { $class = Parser::$KEYWORD_PARSERS[$tokenValue]['class']; $field = Parser::$KEYWORD_PARSERS[$tokenValue]['field']; if (! empty(Parser::$KEYWORD_PARSERS[$tokenValue]['options'])) { $options = Parser::$KEYWORD_PARSERS[$tokenValue]['options']; } } // Checking if this is the beginning of the statement. if (! empty(Parser::$STATEMENT_PARSERS[$token->keyword])) { if ( ! empty(static::$CLAUSES) // Undefined for some statements. && empty(static::$CLAUSES[$token->value]) ) { // Some keywords (e.g. `SET`) may be the beginning of a // statement and a clause. // If such keyword was found and it cannot be a clause of // this statement it means it is a new statement, but no // delimiter was found between them. $parser->error( 'A new statement was found, but no delimiter between it and the previous one.', $token ); break; } if (! $parsedOptions) { if (empty(static::$OPTIONS[$token->value])) { // Skipping keyword because if it is not a option. ++$list->idx; } $this->options = OptionsArray::parse($parser, $list, static::$OPTIONS); $parsedOptions = true; } } elseif ($class === null) { if ($this instanceof Statements\SelectStatement && $token->value === 'WITH ROLLUP') { // Handle group options in Select statement // See Statements\SelectStatement::$GROUP_OPTIONS $this->group_options = OptionsArray::parse($parser, $list, static::$GROUP_OPTIONS); } elseif ( $this instanceof Statements\SelectStatement && ($token->value === 'FOR UPDATE' || $token->value === 'LOCK IN SHARE MODE') ) { // Handle special end options in Select statement // See Statements\SelectStatement::$END_OPTIONS $this->end_options = OptionsArray::parse($parser, $list, static::$END_OPTIONS); } elseif ( $this instanceof Statements\SetStatement && ($token->value === 'COLLATE' || $token->value === 'DEFAULT') ) { // Handle special end options in SET statement // See Statements\SetStatement::$END_OPTIONS $this->end_options = OptionsArray::parse($parser, $list, static::$END_OPTIONS); } else { // There is no parser for this keyword and isn't the beginning // of a statement (so no options) either. $parser->error('Unrecognized keyword.', $token); continue; } } $this->before($parser, $list, $token); // Parsing this keyword. if ($class !== null) { // We can't parse keyword at the end of statement if ($list->idx >= $list->count) { $parser->error('Keyword at end of statement.', $token); continue; } ++$list->idx; // Skipping keyword or last option. $this->$field = $class::parse($parser, $list, $options); } $this->after($parser, $list, $token); } // This may be corrected by the parser. $this->last = --$list->idx; // Go back to last used token. } /** * Function called before the token is processed. * * @param Parser $parser the instance that requests parsing * @param TokensList $list the list of tokens to be parsed * @param Token $token the token that is being parsed * * @return void */ public function before(Parser $parser, TokensList $list, Token $token) { } /** * Function called after the token was processed. * * @param Parser $parser the instance that requests parsing * @param TokensList $list the list of tokens to be parsed * @param Token $token the token that is being parsed * * @return void */ public function after(Parser $parser, TokensList $list, Token $token) { } /** * Gets the clauses of this statement. * * @return array> * @psalm-return array */ public function getClauses() { return static::$CLAUSES; } /** * Builds the string representation of this statement. * * @see static::build * * @return string */ public function __toString() { return $this->build(); } /** * Validates the order of the clauses in parsed statement * Ideally this should be called after successfully * completing the parsing of each statement. * * @param Parser $parser the instance that requests parsing * @param TokensList $list the list of tokens to be parsed * * @return bool * * @throws Exceptions\ParserException */ public function validateClauseOrder($parser, $list) { $clauses = array_flip(array_keys($this->getClauses())); if (empty($clauses) || count($clauses) === 0) { return true; } $minIdx = -1; /** * For tracking JOIN clauses in a query * = 0 - JOIN not found till now * > 0 - Index of first JOIN clause in the statement. * * @var int */ $minJoin = 0; /** * For tracking JOIN clauses in a query * = 0 - JOIN not found till now * > 0 - Index of last JOIN clause * (which appears together with other JOINs) * in the statement. * * @var int */ $maxJoin = 0; $error = 0; $lastIdx = 0; foreach ($clauses as $clauseType => $index) { $clauseStartIdx = Utils\Query::getClauseStartOffset($this, $list, $clauseType); if ( $clauseStartIdx !== -1 && $this instanceof Statements\SelectStatement && ($clauseType === 'FORCE' || $clauseType === 'IGNORE' || $clauseType === 'USE') ) { // TODO: ordering of clauses in a SELECT statement with // Index hints is not supported return true; } // Handle ordering of Multiple Joins in a query if ($clauseStartIdx !== -1) { if ($minJoin === 0 && stripos($clauseType, 'JOIN')) { // First JOIN clause is detected $minJoin = $maxJoin = $clauseStartIdx; } elseif ($minJoin !== 0 && ! stripos($clauseType, 'JOIN')) { // After a previous JOIN clause, a non-JOIN clause has been detected $maxJoin = $lastIdx; } elseif ($maxJoin < $clauseStartIdx && stripos($clauseType, 'JOIN')) { $error = 1; } } if ($clauseStartIdx !== -1 && $clauseStartIdx < $minIdx) { if ($minJoin === 0 || $error === 1) { $token = $list->tokens[$clauseStartIdx]; $parser->error('Unexpected ordering of clauses.', $token); return false; } $minIdx = $clauseStartIdx; } elseif ($clauseStartIdx !== -1) { $minIdx = $clauseStartIdx; } $lastIdx = $clauseStartIdx !== -1 ? $clauseStartIdx : $lastIdx; } return true; } } sql-parser-5.9.0/src/Statements/000077500000000000000000000000001455302707200165415ustar00rootroot00000000000000sql-parser-5.9.0/src/Statements/AlterStatement.php000066400000000000000000000105141455302707200222070ustar00rootroot00000000000000> * @psalm-var array 1, 'OFFLINE' => 1, 'IGNORE' => 2, // `DEFINER` is also used for `ALTER EVENT` 'DEFINER' => [ 2, 'expr=', ], 'DATABASE' => 3, 'EVENT' => 3, 'FUNCTION' => 3, 'PROCEDURE' => 3, 'SERVER' => 3, 'TABLE' => 3, 'TABLESPACE' => 3, 'USER' => 3, 'VIEW' => 3, ]; /** * @param Parser $parser the instance that requests parsing * @param TokensList $list the list of tokens to be parsed */ public function parse(Parser $parser, TokensList $list) { ++$list->idx; // Skipping `ALTER`. $parsedOptions = OptionsArray::parse($parser, $list, static::$OPTIONS); if ($parsedOptions->isEmpty()) { $parser->error('Unrecognized alter operation.', $list->tokens[$list->idx]); return; } $this->options = $parsedOptions; ++$list->idx; // Parsing affected table. $this->table = Expression::parse( $parser, $list, [ 'parseField' => 'table', 'breakOnAlias' => true, ] ); ++$list->idx; // Skipping field. /** * The state of the parser. * * Below are the states of the parser. * * 0 -----------------[ alter operation ]-----------------> 1 * * 1 -------------------------[ , ]-----------------------> 0 * * @var int */ $state = 0; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } if ($state === 0) { $options = []; if ($this->options->has('DATABASE')) { $options = AlterOperation::$DB_OPTIONS; } elseif ($this->options->has('TABLE')) { $options = AlterOperation::$TABLE_OPTIONS; } elseif ($this->options->has('VIEW')) { $options = AlterOperation::$VIEW_OPTIONS; } elseif ($this->options->has('USER')) { $options = AlterOperation::$USER_OPTIONS; } elseif ($this->options->has('EVENT')) { $options = AlterOperation::$EVENT_OPTIONS; } $this->altered[] = AlterOperation::parse($parser, $list, $options); $state = 1; } elseif ($state === 1) { if (($token->type === Token::TYPE_OPERATOR) && ($token->value === ',')) { $state = 0; } } } } /** * @return string */ public function build() { $tmp = []; foreach ($this->altered as $altered) { $tmp[] = $altered::build($altered); } return trim( 'ALTER ' . OptionsArray::build($this->options) . ' ' . Expression::build($this->table) . ' ' . implode(', ', $tmp) ); } } sql-parser-5.9.0/src/Statements/AnalyzeStatement.php000066400000000000000000000013501455302707200225410ustar00rootroot00000000000000> * @psalm-var array 1, 'NO_WRITE_TO_BINLOG' => 2, 'LOCAL' => 3, ]; /** * Analyzed tables. * * @var Expression[]|null */ public $tables; } sql-parser-5.9.0/src/Statements/BackupStatement.php000066400000000000000000000011671455302707200223510ustar00rootroot00000000000000> * @psalm-var array 1, 'NO_WRITE_TO_BINLOG' => 2, 'LOCAL' => 3, 'TO' => [ 4, 'var', ], ]; } sql-parser-5.9.0/src/Statements/CallStatement.php000066400000000000000000000013141455302707200220110ustar00rootroot00000000000000call->name . '(' . ($this->call->parameters ? implode(',', $this->call->parameters->raw) : '') . ')'; } } sql-parser-5.9.0/src/Statements/CheckStatement.php000066400000000000000000000011701455302707200221530ustar00rootroot00000000000000> * @psalm-var array 1, 'FOR UPGRADE' => 2, 'QUICK' => 3, 'FAST' => 4, 'MEDIUM' => 5, 'EXTENDED' => 6, 'CHANGED' => 7, ]; } sql-parser-5.9.0/src/Statements/ChecksumStatement.php000066400000000000000000000010511455302707200226760ustar00rootroot00000000000000> * @psalm-var array 1, 'QUICK' => 2, 'EXTENDED' => 3, ]; } sql-parser-5.9.0/src/Statements/CreateStatement.php000066400000000000000000000603451455302707200223520ustar00rootroot00000000000000> * @psalm-var array 1, // CREATE VIEW 'OR REPLACE' => 2, 'ALGORITHM' => [ 3, 'var=', ], // `DEFINER` is also used for `CREATE FUNCTION / PROCEDURE` 'DEFINER' => [ 4, 'expr=', ], // Used in `CREATE VIEW` 'SQL SECURITY' => [ 5, 'var', ], 'DATABASE' => 6, 'EVENT' => 6, 'FUNCTION' => 6, 'INDEX' => 6, 'UNIQUE INDEX' => 6, 'FULLTEXT INDEX' => 6, 'SPATIAL INDEX' => 6, 'PROCEDURE' => 6, 'SERVER' => 6, 'TABLE' => 6, 'TABLESPACE' => 6, 'TRIGGER' => 6, 'USER' => 6, 'VIEW' => 6, 'SCHEMA' => 6, // CREATE TABLE 'IF NOT EXISTS' => 7, ]; /** * All database options. * * @var array> * @psalm-var array [ 1, 'var=', ], 'CHARSET' => [ 1, 'var=', ], 'DEFAULT CHARACTER SET' => [ 1, 'var=', ], 'DEFAULT CHARSET' => [ 1, 'var=', ], 'DEFAULT COLLATE' => [ 2, 'var=', ], 'COLLATE' => [ 2, 'var=', ], ]; /** * All table options. * * @var array> * @psalm-var array [ 1, 'var=', ], 'AUTO_INCREMENT' => [ 2, 'var=', ], 'AVG_ROW_LENGTH' => [ 3, 'var', ], 'CHARACTER SET' => [ 4, 'var=', ], 'CHARSET' => [ 4, 'var=', ], 'DEFAULT CHARACTER SET' => [ 4, 'var=', ], 'DEFAULT CHARSET' => [ 4, 'var=', ], 'CHECKSUM' => [ 5, 'var', ], 'DEFAULT COLLATE' => [ 6, 'var=', ], 'COLLATE' => [ 6, 'var=', ], 'COMMENT' => [ 7, 'var=', ], 'CONNECTION' => [ 8, 'var', ], 'DATA DIRECTORY' => [ 9, 'var', ], 'DELAY_KEY_WRITE' => [ 10, 'var', ], 'INDEX DIRECTORY' => [ 11, 'var', ], 'INSERT_METHOD' => [ 12, 'var', ], 'KEY_BLOCK_SIZE' => [ 13, 'var', ], 'MAX_ROWS' => [ 14, 'var', ], 'MIN_ROWS' => [ 15, 'var', ], 'PACK_KEYS' => [ 16, 'var', ], 'PASSWORD' => [ 17, 'var', ], 'ROW_FORMAT' => [ 18, 'var', ], 'TABLESPACE' => [ 19, 'var', ], 'STORAGE' => [ 20, 'var', ], 'UNION' => [ 21, 'var', ], 'PAGE_COMPRESSED' => [ 22, 'var', ], 'PAGE_COMPRESSION_LEVEL' => [ 23, 'var', ], ]; /** * All function options. * * @var array> * @psalm-var array [ 2, 'var', ], 'FUNCTION' => [ 3, 'var=', ], 'PROCEDURE' => [ 3, 'var=', ], 'CONTAINS SQL' => 4, 'NO SQL' => 4, 'READS SQL DATA' => 4, 'MODIFIES SQL DATA' => 4, 'SQL SECURITY' => [ 6, 'var', ], 'LANGUAGE' => [ 7, 'var', ], 'COMMENT' => [ 8, 'var', ], 'CREATE' => 1, 'DETERMINISTIC' => 2, ]; /** * All trigger options. * * @var array> * @psalm-var array 1, 'AFTER' => 1, 'INSERT' => 2, 'UPDATE' => 2, 'DELETE' => 2, ]; /** * The name of the entity that is created. * * Used by all `CREATE` statements. * * @var Expression|null */ public $name; /** * The options of the entity (table, procedure, function, etc.). * * Used by `CREATE TABLE`, `CREATE FUNCTION` and `CREATE PROCEDURE`. * * @see static::$TABLE_OPTIONS * @see static::$FUNC_OPTIONS * @see static::$TRIGGER_OPTIONS * * @var OptionsArray|null */ public $entityOptions; /** * If `CREATE TABLE`, a list of columns and keys. * If `CREATE VIEW`, a list of columns. * * Used by `CREATE TABLE` and `CREATE VIEW`. * * @var CreateDefinition[]|ArrayObj|null */ public $fields; /** * If `CREATE TABLE WITH`. * If `CREATE TABLE AS WITH`. * If `CREATE VIEW AS WITH`. * * Used by `CREATE TABLE`, `CREATE VIEW` * * @var WithStatement|null */ public $with; /** * If `CREATE TABLE ... SELECT`. * If `CREATE VIEW AS ` ... SELECT`. * * Used by `CREATE TABLE`, `CREATE VIEW` * * @var SelectStatement|null */ public $select; /** * If `CREATE TABLE ... LIKE`. * * Used by `CREATE TABLE` * * @var Expression|null */ public $like; /** * Expression used for partitioning. * * @var string|null */ public $partitionBy; /** * The number of partitions. * * @var int|null */ public $partitionsNum; /** * Expression used for subpartitioning. * * @var string|null */ public $subpartitionBy; /** * The number of subpartitions. * * @var int|null */ public $subpartitionsNum; /** * The partition of the new table. * * @var PartitionDefinition[]|null */ public $partitions; /** * If `CREATE TRIGGER` the name of the table. * * Used by `CREATE TRIGGER`. * * @var Expression|null */ public $table; /** * The return data type of this routine. * * Used by `CREATE FUNCTION`. * * @var DataType|null */ public $return; /** * The parameters of this routine. * * Used by `CREATE FUNCTION` and `CREATE PROCEDURE`. * * @var ParameterDefinition[]|null */ public $parameters; /** * The body of this function or procedure. * For views, it is the select statement that creates the view. * Used by `CREATE FUNCTION`, `CREATE PROCEDURE` and `CREATE VIEW`. * * @var Token[]|string */ public $body = []; /** * @return string */ public function build() { $fields = ''; if (! empty($this->fields)) { if (is_array($this->fields)) { $fields = CreateDefinition::build($this->fields) . ' '; } elseif ($this->fields instanceof ArrayObj) { $fields = ArrayObj::build($this->fields); } } if ($this->options->has('DATABASE') || $this->options->has('SCHEMA')) { return 'CREATE ' . OptionsArray::build($this->options) . ' ' . Expression::build($this->name) . ' ' . OptionsArray::build($this->entityOptions); } if ($this->options->has('TABLE')) { if ($this->select !== null) { return 'CREATE ' . OptionsArray::build($this->options) . ' ' . Expression::build($this->name) . ' ' . $this->select->build(); } if ($this->like !== null) { return 'CREATE ' . OptionsArray::build($this->options) . ' ' . Expression::build($this->name) . ' LIKE ' . Expression::build($this->like); } if ($this->with !== null) { return 'CREATE ' . OptionsArray::build($this->options) . ' ' . Expression::build($this->name) . ' ' . $this->with->build(); } $partition = ''; if (! empty($this->partitionBy)) { $partition .= "\nPARTITION BY " . $this->partitionBy; } if (! empty($this->partitionsNum)) { $partition .= "\nPARTITIONS " . $this->partitionsNum; } if (! empty($this->subpartitionBy)) { $partition .= "\nSUBPARTITION BY " . $this->subpartitionBy; } if (! empty($this->subpartitionsNum)) { $partition .= "\nSUBPARTITIONS " . $this->subpartitionsNum; } if (! empty($this->partitions)) { $partition .= "\n" . PartitionDefinition::build($this->partitions); } return 'CREATE ' . OptionsArray::build($this->options) . ' ' . Expression::build($this->name) . ' ' . $fields . OptionsArray::build($this->entityOptions) . $partition; } elseif ($this->options->has('VIEW')) { $builtStatement = ''; if ($this->select !== null) { $builtStatement = $this->select->build(); } elseif ($this->with !== null) { $builtStatement = $this->with->build(); } return 'CREATE ' . OptionsArray::build($this->options) . ' ' . Expression::build($this->name) . ' ' . $fields . ' AS ' . $builtStatement . (! empty($this->body) ? TokensList::build($this->body) : '') . ' ' . OptionsArray::build($this->entityOptions); } elseif ($this->options->has('TRIGGER')) { return 'CREATE ' . OptionsArray::build($this->options) . ' ' . Expression::build($this->name) . ' ' . OptionsArray::build($this->entityOptions) . ' ' . 'ON ' . Expression::build($this->table) . ' ' . 'FOR EACH ROW ' . TokensList::build($this->body); } elseif ($this->options->has('PROCEDURE') || $this->options->has('FUNCTION')) { $tmp = ''; if ($this->options->has('FUNCTION')) { $tmp = 'RETURNS ' . DataType::build($this->return); } return 'CREATE ' . OptionsArray::build($this->options) . ' ' . Expression::build($this->name) . ' ' . ParameterDefinition::build($this->parameters) . ' ' . $tmp . ' ' . OptionsArray::build($this->entityOptions) . ' ' . TokensList::build($this->body); } return 'CREATE ' . OptionsArray::build($this->options) . ' ' . Expression::build($this->name) . ' ' . TokensList::build($this->body); } /** * @param Parser $parser the instance that requests parsing * @param TokensList $list the list of tokens to be parsed */ public function parse(Parser $parser, TokensList $list) { ++$list->idx; // Skipping `CREATE`. // Parsing options. $this->options = OptionsArray::parse($parser, $list, static::$OPTIONS); ++$list->idx; // Skipping last option. $isDatabase = $this->options->has('DATABASE') || $this->options->has('SCHEMA'); $fieldName = $isDatabase ? 'database' : 'table'; // Parsing the field name. $this->name = Expression::parse( $parser, $list, [ 'parseField' => $fieldName, 'breakOnAlias' => true, ] ); if (! isset($this->name) || ($this->name === '')) { $parser->error('The name of the entity was expected.', $list->tokens[$list->idx]); } else { ++$list->idx; // Skipping field. } /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; $nextidx = $list->idx + 1; while ($nextidx < $list->count && $list->tokens[$nextidx]->type === Token::TYPE_WHITESPACE) { ++$nextidx; } if ($isDatabase) { $this->entityOptions = OptionsArray::parse($parser, $list, static::$DB_OPTIONS); } elseif ($this->options->has('TABLE')) { if (($token->type === Token::TYPE_KEYWORD) && ($token->keyword === 'SELECT')) { /* CREATE TABLE ... SELECT */ $this->select = new SelectStatement($parser, $list); } elseif ($token->type === Token::TYPE_KEYWORD && ($token->keyword === 'WITH')) { /* CREATE TABLE WITH */ $this->with = new WithStatement($parser, $list); } elseif ( ($token->type === Token::TYPE_KEYWORD) && ($token->keyword === 'AS') && ($list->tokens[$nextidx]->type === Token::TYPE_KEYWORD) ) { if ($list->tokens[$nextidx]->value === 'SELECT') { /* CREATE TABLE ... AS SELECT */ $list->idx = $nextidx; $this->select = new SelectStatement($parser, $list); } elseif ($list->tokens[$nextidx]->value === 'WITH') { /* CREATE TABLE WITH */ $list->idx = $nextidx; $this->with = new WithStatement($parser, $list); } } elseif ($token->type === Token::TYPE_KEYWORD && $token->keyword === 'LIKE') { /* CREATE TABLE `new_tbl` LIKE 'orig_tbl' */ $list->idx = $nextidx; $this->like = Expression::parse( $parser, $list, [ 'parseField' => 'table', 'breakOnAlias' => true, ] ); // The 'LIKE' keyword was found, but no table_name was found next to it if ($this->like === null) { $parser->error('A table name was expected.', $list->tokens[$list->idx]); } } else { $this->fields = CreateDefinition::parse($parser, $list); if (empty($this->fields)) { $parser->error('At least one column definition was expected.', $list->tokens[$list->idx]); } ++$list->idx; $this->entityOptions = OptionsArray::parse($parser, $list, static::$TABLE_OPTIONS); /** * The field that is being filled (`partitionBy` or * `subpartitionBy`). * * @var string */ $field = null; /** * The number of brackets. `false` means no bracket was found * previously. At least one bracket is required to validate the * expression. * * @var int|bool */ $brackets = false; /* * Handles partitions. */ for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping comments. if ($token->type === Token::TYPE_COMMENT) { continue; } if (($token->type === Token::TYPE_KEYWORD) && ($token->keyword === 'PARTITION BY')) { $field = 'partitionBy'; $brackets = false; } elseif (($token->type === Token::TYPE_KEYWORD) && ($token->keyword === 'SUBPARTITION BY')) { $field = 'subpartitionBy'; $brackets = false; } elseif (($token->type === Token::TYPE_KEYWORD) && ($token->keyword === 'PARTITIONS')) { $token = $list->getNextOfType(Token::TYPE_NUMBER); --$list->idx; // `getNextOfType` also advances one position. $this->partitionsNum = $token->value; } elseif (($token->type === Token::TYPE_KEYWORD) && ($token->keyword === 'SUBPARTITIONS')) { $token = $list->getNextOfType(Token::TYPE_NUMBER); --$list->idx; // `getNextOfType` also advances one position. $this->subpartitionsNum = $token->value; } elseif (! empty($field)) { /* * Handling the content of `PARTITION BY` and `SUBPARTITION BY`. */ // Counting brackets. if ($token->type === Token::TYPE_OPERATOR) { if ($token->value === '(') { // This is used instead of `++$brackets` because, // initially, `$brackets` is `false` cannot be // incremented. $brackets += 1; } elseif ($token->value === ')') { --$brackets; } } // Building the expression used for partitioning. $this->$field .= $token->type === Token::TYPE_WHITESPACE ? ' ' : $token->token; // Last bracket was read, the expression ended. // Comparing with `0` and not `false`, because `false` means // that no bracket was found and at least one must is // required. if ($brackets === 0) { $this->$field = trim($this->$field); $field = null; } } elseif (($token->type === Token::TYPE_OPERATOR) && ($token->value === '(')) { if (! empty($this->partitionBy)) { $this->partitions = ArrayObj::parse( $parser, $list, ['type' => 'PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition'] ); } break; } } } } elseif ($this->options->has('PROCEDURE') || $this->options->has('FUNCTION')) { $this->parameters = ParameterDefinition::parse($parser, $list); if ($this->options->has('FUNCTION')) { $prevToken = $token; $token = $list->getNextOfType(Token::TYPE_KEYWORD); if ($token === null || $token->keyword !== 'RETURNS') { $parser->error('A "RETURNS" keyword was expected.', $token ?? $prevToken); } else { ++$list->idx; $this->return = DataType::parse($parser, $list); } } ++$list->idx; $this->entityOptions = OptionsArray::parse($parser, $list, static::$FUNC_OPTIONS); ++$list->idx; for (; $list->idx < $list->count; ++$list->idx) { $token = $list->tokens[$list->idx]; if ($token->type === Token::TYPE_DELIMITER) { break; } $this->body[] = $token; } } elseif ($this->options->has('VIEW')) { /** @var Token $token */ $token = $list->getNext(); // Skipping whitespaces and comments. // Parsing columns list. if (($token->type === Token::TYPE_OPERATOR) && ($token->value === '(')) { --$list->idx; // getNext() also goes forward one field. $this->fields = ArrayObj::parse($parser, $list); ++$list->idx; // Skipping last token from the array. $list->getNext(); } // Parsing the SELECT expression if the view started with it. if ( $token->type === Token::TYPE_KEYWORD && $token->keyword === 'AS' && $list->tokens[$nextidx]->type === Token::TYPE_KEYWORD ) { if ($list->tokens[$nextidx]->value === 'SELECT') { $list->idx = $nextidx; $this->select = new SelectStatement($parser, $list); ++$list->idx; // Skipping last token from the select. } elseif ($list->tokens[$nextidx]->value === 'WITH') { ++$list->idx; $this->with = new WithStatement($parser, $list); } } // Parsing all other tokens for (; $list->idx < $list->count; ++$list->idx) { $token = $list->tokens[$list->idx]; if ($token->type === Token::TYPE_DELIMITER) { break; } $this->body[] = $token; } } elseif ($this->options->has('TRIGGER')) { // Parsing the time and the event. $this->entityOptions = OptionsArray::parse($parser, $list, static::$TRIGGER_OPTIONS); ++$list->idx; $list->getNextOfTypeAndValue(Token::TYPE_KEYWORD, 'ON'); ++$list->idx; // Skipping `ON`. // Parsing the name of the table. $this->table = Expression::parse( $parser, $list, [ 'parseField' => 'table', 'breakOnAlias' => true, ] ); ++$list->idx; $list->getNextOfTypeAndValue(Token::TYPE_KEYWORD, 'FOR EACH ROW'); ++$list->idx; // Skipping `FOR EACH ROW`. for (; $list->idx < $list->count; ++$list->idx) { $token = $list->tokens[$list->idx]; if ($token->type === Token::TYPE_DELIMITER) { break; } $this->body[] = $token; } } else { for (; $list->idx < $list->count; ++$list->idx) { $token = $list->tokens[$list->idx]; if ($token->type === Token::TYPE_DELIMITER) { break; } $this->body[] = $token; } } } } sql-parser-5.9.0/src/Statements/DeleteStatement.php000066400000000000000000000263011455302707200223430ustar00rootroot00000000000000> * @psalm-var array 1, 'QUICK' => 2, 'IGNORE' => 3, ]; /** * The clauses of this statement, in order. * * @see Statement::$CLAUSES * * @var array> * @psalm-var array */ public static $CLAUSES = [ 'DELETE' => [ 'DELETE', 2, ], // Used for options. '_OPTIONS' => [ '_OPTIONS', 1, ], 'FROM' => [ 'FROM', 3, ], 'PARTITION' => [ 'PARTITION', 3, ], 'USING' => [ 'USING', 3, ], 'WHERE' => [ 'WHERE', 3, ], 'ORDER BY' => [ 'ORDER BY', 3, ], 'LIMIT' => [ 'LIMIT', 3, ], ]; /** * Table(s) used as sources for this statement. * * @var Expression[]|null */ public $from; /** * Joins. * * @var JoinKeyword[]|null */ public $join; /** * Tables used as sources for this statement. * * @var Expression[]|null */ public $using; /** * Columns used in this statement. * * @var Expression[]|null */ public $columns; /** * Partitions used as source for this statement. * * @var ArrayObj|null */ public $partition; /** * Conditions used for filtering each row of the result set. * * @var Condition[]|null */ public $where; /** * Specifies the order of the rows in the result set. * * @var OrderKeyword[]|null */ public $order; /** * Conditions used for limiting the size of the result set. * * @var Limit|null */ public $limit; /** * @return string */ public function build() { $ret = 'DELETE ' . OptionsArray::build($this->options); if ($this->columns !== null && count($this->columns) > 0) { $ret .= ' ' . ExpressionArray::build($this->columns); } if ($this->from !== null && count($this->from) > 0) { $ret .= ' FROM ' . ExpressionArray::build($this->from); } if ($this->join !== null && count($this->join) > 0) { $ret .= ' ' . JoinKeyword::build($this->join); } if ($this->using !== null && count($this->using) > 0) { $ret .= ' USING ' . ExpressionArray::build($this->using); } if ($this->where !== null && count($this->where) > 0) { $ret .= ' WHERE ' . Condition::build($this->where); } if ($this->order !== null && count($this->order) > 0) { $ret .= ' ORDER BY ' . ExpressionArray::build($this->order); } if ($this->limit !== null && strlen((string) $this->limit) > 0) { $ret .= ' LIMIT ' . Limit::build($this->limit); } return $ret; } /** * @param Parser $parser the instance that requests parsing * @param TokensList $list the list of tokens to be parsed */ public function parse(Parser $parser, TokensList $list) { ++$list->idx; // Skipping `DELETE`. // parse any options if provided $this->options = OptionsArray::parse($parser, $list, static::$OPTIONS); ++$list->idx; /** * The state of the parser. * * Below are the states of the parser. * * 0 ---------------------------------[ FROM ]----------------------------------> 2 * 0 ------------------------------[ table[.*] ]--------------------------------> 1 * 1 ---------------------------------[ FROM ]----------------------------------> 2 * 2 --------------------------------[ USING ]----------------------------------> 3 * 2 --------------------------------[ WHERE ]----------------------------------> 4 * 2 --------------------------------[ ORDER ]----------------------------------> 5 * 2 --------------------------------[ LIMIT ]----------------------------------> 6 * * @var int */ $state = 0; /** * If the query is multi-table or not. * * @var bool */ $multiTable = false; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } if ($state === 0) { if ($token->type === Token::TYPE_KEYWORD) { if ($token->keyword !== 'FROM') { $parser->error('Unexpected keyword.', $token); break; } ++$list->idx; // Skip 'FROM' $this->from = ExpressionArray::parse($parser, $list); $state = 2; } else { $this->columns = ExpressionArray::parse($parser, $list); $state = 1; } } elseif ($state === 1) { if ($token->type !== Token::TYPE_KEYWORD) { $parser->error('Unexpected token.', $token); break; } if ($token->keyword !== 'FROM') { $parser->error('Unexpected keyword.', $token); break; } ++$list->idx; // Skip 'FROM' $this->from = ExpressionArray::parse($parser, $list); $state = 2; } elseif ($state === 2) { if ($token->type === Token::TYPE_KEYWORD) { if (stripos($token->keyword, 'JOIN') !== false) { ++$list->idx; $this->join = JoinKeyword::parse($parser, $list); // remain in state = 2 } else { switch ($token->keyword) { case 'USING': ++$list->idx; // Skip 'USING' $this->using = ExpressionArray::parse($parser, $list); $state = 3; $multiTable = true; break; case 'WHERE': ++$list->idx; // Skip 'WHERE' $this->where = Condition::parse($parser, $list); $state = 4; break; case 'ORDER BY': ++$list->idx; // Skip 'ORDER BY' $this->order = OrderKeyword::parse($parser, $list); $state = 5; break; case 'LIMIT': ++$list->idx; // Skip 'LIMIT' $this->limit = Limit::parse($parser, $list); $state = 6; break; default: $parser->error('Unexpected keyword.', $token); break 2; } } } } elseif ($state === 3) { if ($token->type !== Token::TYPE_KEYWORD) { $parser->error('Unexpected token.', $token); break; } if ($token->keyword !== 'WHERE') { $parser->error('Unexpected keyword.', $token); break; } ++$list->idx; // Skip 'WHERE' $this->where = Condition::parse($parser, $list); $state = 4; } elseif ($state === 4) { if ($multiTable === true && $token->type === Token::TYPE_KEYWORD) { $parser->error('This type of clause is not valid in Multi-table queries.', $token); break; } if ($token->type === Token::TYPE_KEYWORD) { switch ($token->keyword) { case 'ORDER BY': ++$list->idx; // Skip 'ORDER BY' $this->order = OrderKeyword::parse($parser, $list); $state = 5; break; case 'LIMIT': ++$list->idx; // Skip 'LIMIT' $this->limit = Limit::parse($parser, $list); $state = 6; break; default: $parser->error('Unexpected keyword.', $token); break 2; } } } elseif ($state === 5) { if ($token->type === Token::TYPE_KEYWORD) { if ($token->keyword !== 'LIMIT') { $parser->error('Unexpected keyword.', $token); break; } ++$list->idx; // Skip 'LIMIT' $this->limit = Limit::parse($parser, $list); $state = 6; } } } if ($state >= 2) { foreach ($this->from as $fromExpr) { $fromExpr->database = $fromExpr->table; $fromExpr->table = $fromExpr->column; $fromExpr->column = null; } } --$list->idx; } } sql-parser-5.9.0/src/Statements/DropStatement.php000066400000000000000000000031571455302707200220510ustar00rootroot00000000000000> * @psalm-var array 1, 'EVENT' => 1, 'FUNCTION' => 1, 'INDEX' => 1, 'LOGFILE' => 1, 'PROCEDURE' => 1, 'SCHEMA' => 1, 'SERVER' => 1, 'TABLE' => 1, 'VIEW' => 1, 'TABLESPACE' => 1, 'TRIGGER' => 1, 'USER' => 1, 'TEMPORARY' => 2, 'IF EXISTS' => 3, ]; /** * The clauses of this statement, in order. * * @see Statement::$CLAUSES * * @var array> * @psalm-var array */ public static $CLAUSES = [ 'DROP' => [ 'DROP', 2, ], // Used for options. '_OPTIONS' => [ '_OPTIONS', 1, ], // Used for select expressions. 'DROP_' => [ 'DROP', 1, ], 'ON' => [ 'ON', 3, ], ]; /** * Dropped elements. * * @var Expression[]|null */ public $fields; /** * Table of the dropped index. * * @var Expression|null */ public $table; } sql-parser-5.9.0/src/Statements/ExplainStatement.php000066400000000000000000000221121455302707200225350ustar00rootroot00000000000000> * @psalm-var array 1, 'PARTITIONS' => 1, 'FORMAT' => [ 1, 'var', ], ]; /** * The parser of the statement to be explained * * @var Parser|null */ public $bodyParser = null; /** * The statement alias, could be any of the following: * - {EXPLAIN | DESCRIBE | DESC} * - {EXPLAIN | DESCRIBE | DESC} ANALYZE * - ANALYZE * * @var string */ public $statementAlias; /** * The connection identifier, if used. * * @var int|null */ public $connectionId = null; /** * The explained database for the table's name, if used. * * @var string|null */ public $explainedDatabase = null; /** * The explained table's name, if used. * * @var string|null */ public $explainedTable = null; /** * The explained column's name, if used. * * @var string|null */ public $explainedColumn = null; /** * @param Parser $parser the instance that requests parsing * @param TokensList $list the list of tokens to be parsed */ public function parse(Parser $parser, TokensList $list) { /** * The state of the parser. * * Below are the states of the parser. * * 0 -------------------[ EXPLAIN/EXPLAIN ANALYZE/ANALYZE ]-----------------------> 1 * * 0 ------------------------[ EXPLAIN/DESC/DESCRIBE ]----------------------------> 3 * * 1 ------------------------------[ OPTIONS ]------------------------------------> 2 * * 2 --------------[ tablename / STATEMENT / FOR CONNECTION ]---------------------> 2 * * 3 -----------------------------[ tablename ]-----------------------------------> 3 * * @var int */ $state = 0; /** * To Differentiate between ANALYZE / EXPLAIN / EXPLAIN ANALYZE * 0 -> ANALYZE ( used by mariaDB https://mariadb.com/kb/en/analyze-statement) * 1 -> {EXPLAIN | DESCRIBE | DESC} * 2 -> {EXPLAIN | DESCRIBE | DESC} ANALYZE */ $miniState = 0; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { --$list->idx; // Back up one token, no real reasons to document break; } // Skipping whitespaces and comments. if ($token->type === Token::TYPE_WHITESPACE || $token->type === Token::TYPE_COMMENT) { continue; } if ($state === 0) { if ($token->keyword === 'ANALYZE' && $miniState === 0) { $state = 1; $this->statementAlias = 'ANALYZE'; } elseif ( $token->keyword === 'EXPLAIN' || $token->keyword === 'DESC' || $token->keyword === 'DESCRIBE' ) { $this->statementAlias = $token->keyword; $lastIdx = $list->idx; $list->idx++; // Ignore the current token $nextKeyword = $list->getNextOfType(Token::TYPE_KEYWORD); $list->idx = $lastIdx; // There is no other keyword, we must be describing a table if ($nextKeyword === null) { $state = 3; continue; } $miniState = 1; $lastIdx = $list->idx; $nextKeyword = $list->getNextOfTypeAndValue(Token::TYPE_KEYWORD, 'ANALYZE'); if ($nextKeyword && $nextKeyword->keyword !== null) { $miniState = 2; $this->statementAlias .= ' ANALYZE'; } else { $list->idx = $lastIdx; } $state = 1; } } elseif ($state === 1) { // Parsing options. $this->options = OptionsArray::parse($parser, $list, static::$OPTIONS); $state = 2; } elseif ($state === 2) { $currIdx = $list->idx; $list->idx++; // Ignore the current token $nextToken = $list->getNext(); $list->idx = $currIdx; if ($token->keyword === 'FOR' && $nextToken->keyword === 'CONNECTION') { $list->idx++; // Ignore the current token $list->getNext(); // CONNECTION $nextToken = $list->getNext(); // Identifier $this->connectionId = $nextToken->value; break; } if ( $token->keyword !== 'SELECT' && $token->keyword !== 'TABLE' && $token->keyword !== 'INSERT' && $token->keyword !== 'REPLACE' && $token->keyword !== 'UPDATE' && $token->keyword !== 'DELETE' ) { $parser->error('Unexpected token.', $token); break; } // Index of the last parsed token by default would be the last token in the $list, because we're // assuming that all remaining tokens at state 2, are related to the to-be-explained statement. $idxOfLastParsedToken = $list->count - 1; $subList = new TokensList(array_slice($list->tokens, $list->idx)); $this->bodyParser = new Parser($subList); if (count($this->bodyParser->errors)) { foreach ($this->bodyParser->errors as $error) { $parser->errors[] = $error; } break; } $list->idx = $idxOfLastParsedToken; break; } elseif ($state === 3) { if (($token->type === Token::TYPE_OPERATOR) && ($token->value === '.')) { continue; } if ($this->explainedDatabase === null) { $lastIdx = $list->idx; $nextDot = $list->getNextOfTypeAndValue(Token::TYPE_OPERATOR, '.'); $list->idx = $lastIdx; if ($nextDot !== null) {// We found a dot, so it must be a db.table name format $this->explainedDatabase = $token->value; continue; } } if ($this->explainedTable === null) { $this->explainedTable = $token->value; continue; } if ($this->explainedColumn === null) { $this->explainedColumn = $token->value; } } } if ($state !== 3 || $this->explainedTable !== null) { return; } // We reached end of the state 3 and no table name was found /** Token parsed at this moment. */ $token = $list->tokens[$list->idx]; $parser->error('Expected a table name.', $token); } public function build(): string { $str = $this->statementAlias; if ($this->options !== null) { if (count($this->options->options)) { $str .= ' '; } $str .= OptionsArray::build($this->options) . ' '; } if ($this->options === null) { $str .= ' '; } if ($this->bodyParser) { foreach ($this->bodyParser->statements as $statement) { $str .= $statement->build(); } } elseif ($this->connectionId) { $str .= 'FOR CONNECTION ' . $this->connectionId; } if ($this->explainedDatabase !== null && $this->explainedTable !== null) { $str .= Context::escape($this->explainedDatabase) . '.' . Context::escape($this->explainedTable); } elseif ($this->explainedTable !== null) { $str .= Context::escape($this->explainedTable); } if ($this->explainedColumn !== null) { $str .= ' ' . Context::escape($this->explainedColumn); } return $str; } } sql-parser-5.9.0/src/Statements/InsertStatement.php000066400000000000000000000163151455302707200224110ustar00rootroot00000000000000> * @psalm-var array 1, 'DELAYED' => 2, 'HIGH_PRIORITY' => 3, 'IGNORE' => 4, ]; /** * Tables used as target for this statement. * * @var IntoKeyword|null */ public $into; /** * Values to be inserted. * * @var ArrayObj[]|null */ public $values; /** * If SET clause is present * holds the SetOperation. * * @var SetOperation[]|null */ public $set; /** * If SELECT clause is present * holds the SelectStatement. * * @var SelectStatement|null */ public $select; /** * If WITH CTE is present * holds the WithStatement. * * @var WithStatement|null */ public $with; /** * If ON DUPLICATE KEY UPDATE clause is present * holds the SetOperation. * * @var SetOperation[]|null */ public $onDuplicateSet; /** * @return string */ public function build() { $ret = 'INSERT ' . $this->options; $ret = trim($ret) . ' INTO ' . $this->into; if ($this->values !== null && count($this->values) > 0) { $ret .= ' VALUES ' . Array2d::build($this->values); } elseif ($this->set !== null && count($this->set) > 0) { $ret .= ' SET ' . SetOperation::build($this->set); } elseif ($this->select !== null && strlen((string) $this->select) > 0) { $ret .= ' ' . $this->select->build(); } if ($this->onDuplicateSet !== null && count($this->onDuplicateSet) > 0) { $ret .= ' ON DUPLICATE KEY UPDATE ' . SetOperation::build($this->onDuplicateSet); } return $ret; } /** * @param Parser $parser the instance that requests parsing * @param TokensList $list the list of tokens to be parsed */ public function parse(Parser $parser, TokensList $list) { ++$list->idx; // Skipping `INSERT`. // parse any options if provided $this->options = OptionsArray::parse($parser, $list, static::$OPTIONS); ++$list->idx; /** * The state of the parser. * * Below are the states of the parser. * * 0 ---------------------------------[ INTO ]----------------------------------> 1 * * 1 -------------------------[ VALUES/VALUE/SET/SELECT ]-----------------------> 2 * * 2 -------------------------[ ON DUPLICATE KEY UPDATE ]-----------------------> 3 * * @var int */ $state = 0; /** * For keeping track of semi-states on encountering * ON DUPLICATE KEY UPDATE ... */ $miniState = 0; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } if ($state === 0) { if ($token->type === Token::TYPE_KEYWORD && $token->keyword !== 'INTO') { $parser->error('Unexpected keyword.', $token); break; } ++$list->idx; $this->into = IntoKeyword::parse( $parser, $list, ['fromInsert' => true] ); $state = 1; } elseif ($state === 1) { if ($token->type !== Token::TYPE_KEYWORD) { $parser->error('Unexpected token.', $token); break; } if ($token->keyword === 'VALUE' || $token->keyword === 'VALUES') { ++$list->idx; // skip VALUES $this->values = Array2d::parse($parser, $list); } elseif ($token->keyword === 'SET') { ++$list->idx; // skip SET $this->set = SetOperation::parse($parser, $list); } elseif ($token->keyword === 'SELECT') { $this->select = new SelectStatement($parser, $list); } elseif ($token->keyword === 'WITH') { $this->with = new WithStatement($parser, $list); } else { $parser->error('Unexpected keyword.', $token); break; } $state = 2; $miniState = 1; } elseif ($state === 2) { $lastCount = $miniState; if ($miniState === 1 && $token->keyword === 'ON') { ++$miniState; } elseif ($miniState === 2 && $token->keyword === 'DUPLICATE') { ++$miniState; } elseif ($miniState === 3 && $token->keyword === 'KEY') { ++$miniState; } elseif ($miniState === 4 && $token->keyword === 'UPDATE') { ++$miniState; } if ($lastCount === $miniState) { $parser->error('Unexpected token.', $token); break; } if ($miniState === 5) { ++$list->idx; $this->onDuplicateSet = SetOperation::parse($parser, $list); $state = 3; } } } --$list->idx; } } sql-parser-5.9.0/src/Statements/LoadStatement.php000066400000000000000000000261151455302707200220230ustar00rootroot00000000000000> * @psalm-var array 1, 'CONCURRENT' => 1, 'LOCAL' => 2, ]; /** * FIELDS/COLUMNS Options for `LOAD DATA...INFILE` statements. * * @var array> * @psalm-var array [ 1, 'expr', ], 'OPTIONALLY' => 2, 'ENCLOSED BY' => [ 3, 'expr', ], 'ESCAPED BY' => [ 4, 'expr', ], ]; /** * LINES Options for `LOAD DATA...INFILE` statements. * * @var array> * @psalm-var array [ 1, 'expr', ], 'TERMINATED BY' => [ 2, 'expr', ], ]; /** * File name being used to load data. * * @var Expression|null */ public $file_name; /** * Table used as destination for this statement. * * @var Expression|null */ public $table; /** * Partitions used as source for this statement. * * @var ArrayObj|null */ public $partition; /** * Character set used in this statement. * * @var Expression|null */ public $charset_name; /** * Options for FIELDS/COLUMNS keyword. * * @see static::$FIELDS_OPTIONS * * @var OptionsArray|null */ public $fields_options; /** * Whether to use `FIELDS` or `COLUMNS` while building. * * @var string|null */ public $fields_keyword; /** * Options for OPTIONS keyword. * * @see static::$LINES_OPTIONS * * @var OptionsArray|null */ public $lines_options; /** * Column names or user variables. * * @var Expression[]|null */ public $col_name_or_user_var; /** * SET clause's updated values(optional). * * @var SetOperation[]|null */ public $set; /** * Ignore 'number' LINES/ROWS. * * @var Expression|null */ public $ignore_number; /** * REPLACE/IGNORE Keyword. * * @var string|null */ public $replace_ignore; /** * LINES/ROWS Keyword. * * @var string|null */ public $lines_rows; /** * @return string */ public function build() { $ret = 'LOAD DATA ' . $this->options . ' INFILE ' . $this->file_name; if ($this->replace_ignore !== null) { $ret .= ' ' . trim($this->replace_ignore); } $ret .= ' INTO TABLE ' . $this->table; if ($this->partition !== null && strlen((string) $this->partition) > 0) { $ret .= ' PARTITION ' . ArrayObj::build($this->partition); } if ($this->charset_name !== null) { $ret .= ' CHARACTER SET ' . $this->charset_name; } if ($this->fields_keyword !== null) { $ret .= ' ' . $this->fields_keyword . ' ' . $this->fields_options; } if ($this->lines_options !== null && strlen((string) $this->lines_options) > 0) { $ret .= ' LINES ' . $this->lines_options; } if ($this->ignore_number !== null) { $ret .= ' IGNORE ' . $this->ignore_number . ' ' . $this->lines_rows; } if ($this->col_name_or_user_var !== null && count($this->col_name_or_user_var) > 0) { $ret .= ' ' . ExpressionArray::build($this->col_name_or_user_var); } if ($this->set !== null && count($this->set) > 0) { $ret .= ' SET ' . SetOperation::build($this->set); } return $ret; } /** * @param Parser $parser the instance that requests parsing * @param TokensList $list the list of tokens to be parsed */ public function parse(Parser $parser, TokensList $list) { ++$list->idx; // Skipping `LOAD DATA`. // parse any options if provided $this->options = OptionsArray::parse($parser, $list, static::$OPTIONS); ++$list->idx; /** * The state of the parser. * * @var int */ $state = 0; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } if ($state === 0) { if ($token->type === Token::TYPE_KEYWORD && $token->keyword !== 'INFILE') { $parser->error('Unexpected keyword.', $token); break; } if ($token->type !== Token::TYPE_KEYWORD) { $parser->error('Unexpected token.', $token); break; } ++$list->idx; $this->file_name = Expression::parse( $parser, $list, ['parseField' => 'file'] ); $state = 1; } elseif ($state === 1) { if ($token->type === Token::TYPE_KEYWORD) { if ($token->keyword === 'REPLACE' || $token->keyword === 'IGNORE') { $this->replace_ignore = trim($token->keyword); } elseif ($token->keyword === 'INTO') { $state = 2; } } } elseif ($state === 2) { if ($token->type !== Token::TYPE_KEYWORD || $token->keyword !== 'TABLE') { $parser->error('Unexpected token.', $token); break; } ++$list->idx; $this->table = Expression::parse($parser, $list, ['parseField' => 'table', 'breakOnAlias' => true]); $state = 3; } elseif ($state >= 3 && $state <= 7) { if ($token->type === Token::TYPE_KEYWORD) { $newState = $this->parseKeywordsAccordingToState($parser, $list, $state); if ($newState === $state) { // Avoid infinite loop break; } } elseif ($token->type === Token::TYPE_OPERATOR && $token->token === '(') { $this->col_name_or_user_var = ExpressionArray::parse($parser, $list); $state = 7; } else { $parser->error('Unexpected token.', $token); break; } } } --$list->idx; } /** * @param Parser $parser The parser * @param TokensList $list A token list * @param string $keyword The keyword */ public function parseFileOptions(Parser $parser, TokensList $list, $keyword = 'FIELDS'): void { ++$list->idx; if ($keyword === 'FIELDS' || $keyword === 'COLUMNS') { // parse field options $this->fields_options = OptionsArray::parse($parser, $list, static::$FIELDS_OPTIONS); $this->fields_keyword = $keyword; } else { // parse line options $this->lines_options = OptionsArray::parse($parser, $list, static::$LINES_OPTIONS); } } /** * @param Parser $parser * @param TokensList $list * @param int $state * * @return int */ public function parseKeywordsAccordingToState($parser, $list, $state) { $token = $list->tokens[$list->idx]; switch ($state) { case 3: if ($token->keyword === 'PARTITION') { ++$list->idx; $this->partition = ArrayObj::parse($parser, $list); return 4; } // no break case 4: if ($token->keyword === 'CHARACTER SET') { ++$list->idx; $this->charset_name = Expression::parse($parser, $list); return 5; } // no break case 5: if ($token->keyword === 'FIELDS' || $token->keyword === 'COLUMNS' || $token->keyword === 'LINES') { $this->parseFileOptions($parser, $list, $token->value); return 6; } // no break case 6: if ($token->keyword === 'IGNORE') { ++$list->idx; $this->ignore_number = Expression::parse($parser, $list); $nextToken = $list->getNextOfType(Token::TYPE_KEYWORD); if ( $nextToken->type === Token::TYPE_KEYWORD && (($nextToken->keyword === 'LINES') || ($nextToken->keyword === 'ROWS')) ) { $this->lines_rows = $nextToken->token; } return 7; } // no break case 7: if ($token->keyword === 'SET') { ++$list->idx; $this->set = SetOperation::parse($parser, $list); return 8; } // no break default: } return $state; } } sql-parser-5.9.0/src/Statements/LockStatement.php000066400000000000000000000065631455302707200220410ustar00rootroot00000000000000tokens[$list->idx]->value === 'UNLOCK') { // this is in fact an UNLOCK statement $this->isLock = false; } ++$list->idx; // Skipping `LOCK`. /** * The state of the parser. * * Below are the states of the parser. * * 0 ---------------- [ TABLES ] -----------------> 1 * 1 -------------- [ lock_expr ] ----------------> 2 * 2 ------------------ [ , ] --------------------> 1 * * @var int */ $state = 0; /** * Previous parsed token */ $prevToken = null; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } if ($state === 0) { if ($token->type === Token::TYPE_KEYWORD) { if ($token->keyword !== 'TABLES') { $parser->error('Unexpected keyword.', $token); break; } $state = 1; continue; } $parser->error('Unexpected token.', $token); break; } if ($state === 1) { if (! $this->isLock) { // UNLOCK statement should not have any more tokens $parser->error('Unexpected token.', $token); break; } $this->locked[] = LockExpression::parse($parser, $list); $state = 2; } elseif ($state === 2) { if ($token->value === ',') { // move over to parsing next lock expression $state = 1; } } $prevToken = $token; } if ($state === 2 || $prevToken === null) { return; } $parser->error('Unexpected end of LOCK statement.', $prevToken); } /** * @return string */ public function build() { return trim(($this->isLock ? 'LOCK' : 'UNLOCK') . ' TABLES ' . LockExpression::build($this->locked)); } } sql-parser-5.9.0/src/Statements/MaintenanceStatement.php000066400000000000000000000027351455302707200233700ustar00rootroot00000000000000idx; $this->options->merge( OptionsArray::parse( $parser, $list, static::$OPTIONS ) ); } } sql-parser-5.9.0/src/Statements/NotImplementedStatement.php000066400000000000000000000024611455302707200240660ustar00rootroot00000000000000unknown as $token) { $query .= $token->token; } return $query; } /** * @param Parser $parser the instance that requests parsing * @param TokensList $list the list of tokens to be parsed */ public function parse(Parser $parser, TokensList $list) { for (; $list->idx < $list->count; ++$list->idx) { if ($list->tokens[$list->idx]->type === Token::TYPE_DELIMITER) { break; } $this->unknown[] = $list->tokens[$list->idx]; } } } sql-parser-5.9.0/src/Statements/OptimizeStatement.php000066400000000000000000000013541455302707200227420ustar00rootroot00000000000000> * @psalm-var array 1, 'NO_WRITE_TO_BINLOG' => 2, 'LOCAL' => 3, ]; /** * Optimized tables. * * @var Expression[]|null */ public $tables; } sql-parser-5.9.0/src/Statements/PurgeStatement.php000066400000000000000000000073611455302707200222300ustar00rootroot00000000000000log_type . ' LOGS ' . ($this->end_option !== null ? ($this->end_option . ' ' . $this->end_expr) : ''); return trim($ret); } /** * @param Parser $parser the instance that requests parsing * @param TokensList $list the list of tokens to be parsed */ public function parse(Parser $parser, TokensList $list) { ++$list->idx; // Skipping `PURGE`. /** * The state of the parser. * * @var int */ $state = 0; $prevToken = null; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } switch ($state) { case 0: // parse `{ BINARY | MASTER }` $this->log_type = self::parseExpectedKeyword($parser, $token, ['BINARY', 'MASTER']); break; case 1: // parse `LOGS` self::parseExpectedKeyword($parser, $token, ['LOGS']); break; case 2: // parse `{ TO | BEFORE }` $this->end_option = self::parseExpectedKeyword($parser, $token, ['TO', 'BEFORE']); break; case 3: // parse `expr` $this->end_expr = Expression::parse($parser, $list, []); break; default: $parser->error('Unexpected token.', $token); break; } $state++; $prevToken = $token; } // Only one possible end state if ($state === 4) { return; } $parser->error('Unexpected token.', $prevToken); } /** * Parse expected keyword (or throw relevant error) * * @param Parser $parser the instance that requests parsing * @param Token $token token to be parsed * @param string[] $expectedKeywords array of possibly expected keywords at this point * * @return mixed|null */ private static function parseExpectedKeyword($parser, $token, $expectedKeywords) { if ($token->type === Token::TYPE_KEYWORD) { if (in_array($token->keyword, $expectedKeywords)) { return $token->keyword; } $parser->error('Unexpected keyword', $token); } else { $parser->error('Unexpected token.', $token); } return null; } } sql-parser-5.9.0/src/Statements/RenameStatement.php000066400000000000000000000025571455302707200223570ustar00rootroot00000000000000type !== Token::TYPE_KEYWORD) || ($token->keyword !== 'RENAME')) { return; } // Checking if it is the beginning of the query. $list->getNextOfTypeAndValue(Token::TYPE_KEYWORD, 'TABLE'); } /** * @return string */ public function build() { return 'RENAME TABLE ' . RenameOperation::build($this->renames); } } sql-parser-5.9.0/src/Statements/RepairStatement.php000066400000000000000000000012421455302707200223600ustar00rootroot00000000000000> * @psalm-var array 1, 'NO_WRITE_TO_BINLOG' => 2, 'LOCAL' => 3, 'QUICK' => 4, 'EXTENDED' => 5, 'USE_FRM' => 6, ]; } sql-parser-5.9.0/src/Statements/ReplaceStatement.php000066400000000000000000000117431455302707200225200ustar00rootroot00000000000000> * @psalm-var array 1, 'DELAYED' => 1, ]; /** * Tables used as target for this statement. * * @var IntoKeyword|null */ public $into; /** * Values to be replaced. * * @var Array2d[]|null */ public $values; /** * If SET clause is present * holds the SetOperation. * * @var SetOperation[]|null */ public $set; /** * If SELECT clause is present * holds the SelectStatement. * * @var SelectStatement|null */ public $select; /** * @return string */ public function build() { $ret = 'REPLACE ' . $this->options; $ret = trim($ret) . ' INTO ' . $this->into; if ($this->values !== null && count($this->values) > 0) { $ret .= ' VALUES ' . Array2d::build($this->values); } elseif ($this->set !== null && count($this->set) > 0) { $ret .= ' SET ' . SetOperation::build($this->set); } elseif ($this->select !== null && strlen((string) $this->select) > 0) { $ret .= ' ' . $this->select->build(); } return $ret; } /** * @param Parser $parser the instance that requests parsing * @param TokensList $list the list of tokens to be parsed * * @return void */ public function parse(Parser $parser, TokensList $list) { ++$list->idx; // Skipping `REPLACE`. // parse any options if provided $this->options = OptionsArray::parse($parser, $list, static::$OPTIONS); ++$list->idx; /** * The state of the parser. * * Below are the states of the parser. * * 0 ---------------------------------[ INTO ]----------------------------------> 1 * * 1 -------------------------[ VALUES/VALUE/SET/SELECT ]-----------------------> 2 * * @var int */ $state = 0; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } if ($state === 0) { if ($token->type === Token::TYPE_KEYWORD && $token->keyword !== 'INTO') { $parser->error('Unexpected keyword.', $token); break; } ++$list->idx; $this->into = IntoKeyword::parse( $parser, $list, ['fromReplace' => true] ); $state = 1; } elseif ($state === 1) { if ($token->type !== Token::TYPE_KEYWORD) { $parser->error('Unexpected token.', $token); break; } if ($token->keyword === 'VALUE' || $token->keyword === 'VALUES') { ++$list->idx; // skip VALUES $this->values = Array2d::parse($parser, $list); } elseif ($token->keyword === 'SET') { ++$list->idx; // skip SET $this->set = SetOperation::parse($parser, $list); } elseif ($token->keyword === 'SELECT') { $this->select = new SelectStatement($parser, $list); } else { $parser->error('Unexpected keyword.', $token); break; } $state = 2; } } --$list->idx; } } sql-parser-5.9.0/src/Statements/RestoreStatement.php000066400000000000000000000011041455302707200225560ustar00rootroot00000000000000> * @psalm-var array 1, 'FROM' => [ 2, 'var', ], ]; } sql-parser-5.9.0/src/Statements/SelectStatement.php000066400000000000000000000204231455302707200223570ustar00rootroot00000000000000> * @psalm-var array 1, 'DISTINCT' => 1, 'DISTINCTROW' => 1, 'HIGH_PRIORITY' => 2, 'MAX_STATEMENT_TIME' => [ 3, 'var=', ], 'STRAIGHT_JOIN' => 4, 'SQL_SMALL_RESULT' => 5, 'SQL_BIG_RESULT' => 6, 'SQL_BUFFER_RESULT' => 7, 'SQL_CACHE' => 8, 'SQL_NO_CACHE' => 8, 'SQL_CALC_FOUND_ROWS' => 9, ]; /** * @var array> * @psalm-var array 1]; /** * @var array> * @psalm-var array 1, 'LOCK IN SHARE MODE' => 1, ]; /** * The clauses of this statement, in order. * * @see Statement::$CLAUSES * * @var array> * @psalm-var array */ public static $CLAUSES = [ 'SELECT' => [ 'SELECT', 2, ], // Used for options. '_OPTIONS' => [ '_OPTIONS', 1, ], // Used for selected expressions. '_SELECT' => [ 'SELECT', 1, ], 'INTO' => [ 'INTO', 3, ], 'FROM' => [ 'FROM', 3, ], 'FORCE' => [ 'FORCE', 1, ], 'USE' => [ 'USE', 1, ], 'IGNORE' => [ 'IGNORE', 3, ], 'PARTITION' => [ 'PARTITION', 3, ], 'JOIN' => [ 'JOIN', 1, ], 'FULL JOIN' => [ 'FULL JOIN', 1, ], 'INNER JOIN' => [ 'INNER JOIN', 1, ], 'LEFT JOIN' => [ 'LEFT JOIN', 1, ], 'LEFT OUTER JOIN' => [ 'LEFT OUTER JOIN', 1, ], 'RIGHT JOIN' => [ 'RIGHT JOIN', 1, ], 'RIGHT OUTER JOIN' => [ 'RIGHT OUTER JOIN', 1, ], 'NATURAL JOIN' => [ 'NATURAL JOIN', 1, ], 'NATURAL LEFT JOIN' => [ 'NATURAL LEFT JOIN', 1, ], 'NATURAL RIGHT JOIN' => [ 'NATURAL RIGHT JOIN', 1, ], 'NATURAL LEFT OUTER JOIN' => [ 'NATURAL LEFT OUTER JOIN', 1, ], 'NATURAL RIGHT OUTER JOIN' => [ 'NATURAL RIGHT JOIN', 1, ], 'WHERE' => [ 'WHERE', 3, ], 'GROUP BY' => [ 'GROUP BY', 3, ], '_GROUP_OPTIONS' => [ '_GROUP_OPTIONS', 1, ], 'HAVING' => [ 'HAVING', 3, ], 'ORDER BY' => [ 'ORDER BY', 3, ], 'LIMIT' => [ 'LIMIT', 3, ], 'PROCEDURE' => [ 'PROCEDURE', 3, ], 'UNION' => [ 'UNION', 1, ], 'EXCEPT' => [ 'EXCEPT', 1, ], 'INTERSECT' => [ 'INTERSECT', 1, ], '_END_OPTIONS' => [ '_END_OPTIONS', 1, ], // These are available only when `UNION` is present. // 'ORDER BY' => ['ORDER BY', 3], // 'LIMIT' => ['LIMIT', 3], ]; /** * Expressions that are being selected by this statement. * * @var Expression[] */ public $expr = []; /** * Tables used as sources for this statement. * * @var Expression[] */ public $from = []; /** * Index hints * * @var IndexHint[]|null */ public $index_hints; /** * Partitions used as source for this statement. * * @var ArrayObj|null */ public $partition; /** * Conditions used for filtering each row of the result set. * * @var Condition[]|null */ public $where; /** * Conditions used for grouping the result set. * * @var GroupKeyword[]|null */ public $group; /** * List of options available for the GROUP BY component. * * @var OptionsArray|null */ public $group_options; /** * Conditions used for filtering the result set. * * @var Condition[]|null */ public $having; /** * Specifies the order of the rows in the result set. * * @var OrderKeyword[]|null */ public $order; /** * Conditions used for limiting the size of the result set. * * @var Limit|null */ public $limit; /** * Procedure that should process the data in the result set. * * @var FunctionCall|null */ public $procedure; /** * Destination of this result set. * * @var IntoKeyword|null */ public $into; /** * Joins. * * @var JoinKeyword[]|null */ public $join; /** * Unions. * * @var SelectStatement[] */ public $union = []; /** * The end options of this query. * * @see static::$END_OPTIONS * * @var OptionsArray|null */ public $end_options; /** * Gets the clauses of this statement. * * @return array> * @psalm-return array */ public function getClauses() { // This is a cheap fix for `SELECT` statements that contain `UNION`. // The `ORDER BY` and `LIMIT` clauses should be at the end of the // statement. if (! empty($this->union)) { $clauses = static::$CLAUSES; unset($clauses['ORDER BY'], $clauses['LIMIT']); $clauses['ORDER BY'] = [ 'ORDER BY', 3, ]; $clauses['LIMIT'] = [ 'LIMIT', 3, ]; return $clauses; } return static::$CLAUSES; } } sql-parser-5.9.0/src/Statements/SetStatement.php000066400000000000000000000045611455302707200217000ustar00rootroot00000000000000> * @psalm-var array */ public static $CLAUSES = [ 'SET' => [ 'SET', 3, ], '_END_OPTIONS' => [ '_END_OPTIONS', 1, ], ]; /** * Possible exceptions in SET statement. * * @var array> * @psalm-var array [ 3, 'var', ], 'CHARACTER SET' => [ 3, 'var', ], 'NAMES' => [ 3, 'var', ], 'PASSWORD' => [ 3, 'expr', ], 'SESSION' => 3, 'GLOBAL' => 3, 'PERSIST' => 3, 'PERSIST_ONLY' => 3, '@@SESSION' => 3, '@@GLOBAL' => 3, '@@PERSIST' => 3, '@@PERSIST_ONLY' => 3, ]; /** * @var array> * @psalm-var array [ 1, 'var', ], 'DEFAULT' => 1, ]; /** * Options used in current statement. * * @var OptionsArray|null */ public $options; /** * The end options of this query. * * @see static::$END_OPTIONS * * @var OptionsArray|null */ public $end_options; /** * The updated values. * * @var SetOperation[]|null */ public $set; /** * @return string */ public function build() { $ret = 'SET ' . OptionsArray::build($this->options) . ' ' . SetOperation::build($this->set) . ' ' . OptionsArray::build($this->end_options); return trim($ret); } } sql-parser-5.9.0/src/Statements/ShowStatement.php000066400000000000000000000025521455302707200220630ustar00rootroot00000000000000> * @psalm-var array 1, 'AUTHORS' => 2, 'BINARY' => 2, 'BINLOG' => 2, 'CHARACTER' => 2, 'CODE' => 2, 'COLLATION' => 2, 'COLUMNS' => 2, 'CONTRIBUTORS' => 2, 'DATABASE' => 2, 'DATABASES' => 2, 'ENGINE' => 2, 'ENGINES' => 2, 'ERRORS' => 2, 'EVENT' => 2, 'EVENTS' => 2, 'FUNCTION' => 2, 'GRANTS' => 2, 'HOSTS' => 2, 'INDEX' => 2, 'INNODB' => 2, 'LOGS' => 2, 'MASTER' => 2, 'OPEN' => 2, 'PLUGINS' => 2, 'PRIVILEGES' => 2, 'PROCEDURE' => 2, 'PROCESSLIST' => 2, 'PROFILE' => 2, 'PROFILES' => 2, 'SCHEDULER' => 2, 'SET' => 2, 'SLAVE' => 2, 'STATUS' => 2, 'TABLE' => 2, 'TABLES' => 2, 'TRIGGER' => 2, 'TRIGGERS' => 2, 'VARIABLES' => 2, 'VIEW' => 2, 'WARNINGS' => 2, ]; } sql-parser-5.9.0/src/Statements/TransactionStatement.php000066400000000000000000000047351455302707200234350ustar00rootroot00000000000000> * @psalm-var array 1, 'BEGIN' => 1, 'COMMIT' => 1, 'ROLLBACK' => 1, 'WITH CONSISTENT SNAPSHOT' => 2, 'WORK' => 2, 'AND NO CHAIN' => 3, 'AND CHAIN' => 3, 'RELEASE' => 4, 'NO RELEASE' => 4, ]; /** * @param Parser $parser the instance that requests parsing * @param TokensList $list the list of tokens to be parsed * * @return void */ public function parse(Parser $parser, TokensList $list) { parent::parse($parser, $list); // Checks the type of this query. if ($this->options->has('START TRANSACTION') || $this->options->has('BEGIN')) { $this->type = self::TYPE_BEGIN; } elseif ($this->options->has('COMMIT') || $this->options->has('ROLLBACK')) { $this->type = self::TYPE_END; } } /** * @return string */ public function build() { $ret = OptionsArray::build($this->options); if ($this->type === self::TYPE_BEGIN) { foreach ($this->statements as $statement) { /* * @var SelectStatement $statement */ $ret .= ';' . $statement->build(); } $ret .= ';'; if ($this->end !== null) { $ret .= $this->end->build(); } } return $ret; } } sql-parser-5.9.0/src/Statements/TruncateStatement.php000066400000000000000000000015261455302707200227300ustar00rootroot00000000000000> * @psalm-var array 1]; /** * The name of the truncated table. * * @var Expression|null */ public $table; /** * Special build method for truncate statement as Statement::build would return empty string. * * @return string */ public function build() { return 'TRUNCATE TABLE ' . $this->table . ';'; } } sql-parser-5.9.0/src/Statements/UpdateStatement.php000066400000000000000000000056401455302707200223660ustar00rootroot00000000000000> * @psalm-var array 1, 'IGNORE' => 2, ]; /** * The clauses of this statement, in order. * * @see Statement::$CLAUSES * * @var array> * @psalm-var array */ public static $CLAUSES = [ 'UPDATE' => [ 'UPDATE', 2, ], // Used for options. '_OPTIONS' => [ '_OPTIONS', 1, ], // Used for updated tables. '_UPDATE' => [ 'UPDATE', 1, ], 'JOIN' => [ 'JOIN', 1, ], 'LEFT JOIN' => [ 'LEFT JOIN', 1, ], 'INNER JOIN' => [ 'INNER JOIN', 1, ], 'SET' => [ 'SET', 3, ], 'WHERE' => [ 'WHERE', 3, ], 'ORDER BY' => [ 'ORDER BY', 3, ], 'LIMIT' => [ 'LIMIT', 3, ], ]; /** * Tables used as sources for this statement. * * @var Expression[]|null */ public $tables; /** * The updated values. * * @var SetOperation[]|null */ public $set; /** * Conditions used for filtering each row of the result set. * * @var Condition[]|null */ public $where; /** * Specifies the order of the rows in the result set. * * @var OrderKeyword[]|null */ public $order; /** * Conditions used for limiting the size of the result set. * * @var Limit|null */ public $limit; /** * Joins. * * @var JoinKeyword[]|null */ public $join; } sql-parser-5.9.0/src/Statements/WithStatement.php000066400000000000000000000264501455302707200220610ustar00rootroot00000000000000> * @psalm-var array 1]; /** * The clauses of this statement, in order. * * @see Statement::$CLAUSES * * @var array> * @psalm-var array */ public static $CLAUSES = [ 'WITH' => [ 'WITH', 2, ], // Used for options. '_OPTIONS' => [ '_OPTIONS', 1, ], 'AS' => [ 'AS', 2, ], ]; /** @var WithKeyword[] */ public $withers = []; /** * holds the CTE parser. * * @var Parser|null */ public $cteStatementParser; /** * @param Parser $parser the instance that requests parsing * @param TokensList $list the list of tokens to be parsed * * @return void */ public function parse(Parser $parser, TokensList $list) { /** * The state of the parser. * * Below are the states of the parser. * * 0 ---------------- [ name ] -----------------> 1 * * 1 ------------------ [ ( ] ------------------> 2 * * 2 ------------------ [ AS ] -----------------> 3 * * 3 ------------------ [ ( ] ------------------> 4 * * 4 ------------------ [ , ] ------------------> 1 * * 4 ----- [ SELECT/UPDATE/DELETE/INSERT ] -----> 5 * * @var int */ $state = 0; $wither = null; ++$list->idx; // Skipping `WITH`. // parse any options if provided $this->options = OptionsArray::parse($parser, $list, static::$OPTIONS); ++$list->idx; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // Skipping whitespaces and comments. if ($token->type === Token::TYPE_WHITESPACE || $token->type === Token::TYPE_COMMENT) { continue; } if ($state === 0) { if ($token->type !== Token::TYPE_NONE || ! preg_match('/^[a-zA-Z0-9_$]+$/', $token->token)) { $parser->error('The name of the CTE was expected.', $token); break; } $wither = $token->value; $this->withers[$wither] = new WithKeyword($wither); $state = 1; } elseif ($state === 1) { if ($token->type === Token::TYPE_OPERATOR && $token->value === '(') { $columns = Array2d::parse($parser, $list); if ($parser->errors !== []) { break; } $this->withers[$wither]->columns = $columns; $state = 2; } elseif ($token->type === Token::TYPE_KEYWORD && $token->keyword === 'AS') { $state = 3; } else { $parser->error('Unexpected token.', $token); break; } } elseif ($state === 2) { if (! ($token->type === Token::TYPE_KEYWORD && $token->keyword === 'AS')) { $parser->error('AS keyword was expected.', $token); break; } $state = 3; } elseif ($state === 3) { $idxBeforeGetNext = $list->idx; $list->idx++; // Ignore the current token $nextKeyword = $list->getNext(); if (! ($token->value === '(' && ($nextKeyword && $nextKeyword->value === 'SELECT'))) { $parser->error('Subquery of the CTE was expected.', $token); $list->idx = $idxBeforeGetNext; break; } // Restore the index $list->idx = $idxBeforeGetNext; ++$list->idx; $subList = $this->getSubTokenList($list); if ($subList instanceof ParserException) { $parser->errors[] = $subList; break; } $subParser = new Parser($subList); if (count($subParser->errors)) { foreach ($subParser->errors as $error) { $parser->errors[] = $error; } break; } $this->withers[$wither]->statement = $subParser; $state = 4; } elseif ($state === 4) { if ($token->value === ',') { // There's another WITH expression to parse, go back to state=0 $state = 0; continue; } if ( $token->type === Token::TYPE_KEYWORD && ( $token->value === 'SELECT' || $token->value === 'INSERT' || $token->value === 'UPDATE' || $token->value === 'DELETE' ) ) { $state = 5; --$list->idx; continue; } $parser->error('An expression was expected.', $token); break; } elseif ($state === 5) { /** * We need to parse all of the remaining tokens becuase mostly, they are only the CTE expression * which's mostly is SELECT, or INSERT, UPDATE, or delete statement. * e.g: INSERT .. ( SELECT 1 ) SELECT col1 FROM cte ON DUPLICATE KEY UPDATE col_name = 3. * The issue is that, `ON DUPLICATE KEY UPDATE col_name = 3` is related to the main INSERT query * not the cte expression (SELECT col1 FROM cte) we need to determine the end of the expression * to parse `ON DUPLICATE KEY UPDATE` from the InsertStatement parser instead. */ // Index of the last parsed token by default would be the last token in the $list, because we're // assuming that all remaining tokens at state 4, are related to the expression. $idxOfLastParsedToken = $list->count - 1; // Index before search to be able to restore the index. $idxBeforeSearch = $list->idx; // Length of expression tokens is null by default, in order for the $subList to start // from $list->idx to the end of the $list. $lengthOfExpressionTokens = null; if ($list->getNextOfTypeAndValue(Token::TYPE_KEYWORD, 'ON')) { // (-1) because getNextOfTypeAndValue returned ON and increased the index. $idxOfOn = $list->idx - 1; // We want to make sure that it's `ON DUPLICATE KEY UPDATE` $dubplicateToken = $list->getNext(); $keyToken = $list->getNext(); $updateToken = $list->getNext(); if ( $dubplicateToken && $dubplicateToken->keyword === 'DUPLICATE' && ($keyToken && $keyToken->keyword === 'KEY') && ($updateToken && $updateToken->keyword === 'UPDATE') ) { // Index of the last parsed token will be the token before the ON Keyword $idxOfLastParsedToken = $idxOfOn - 1; // The length of the expression tokens would be the difference // between the first unrelated token `ON` and the idx // before skipping the CTE tokens. $lengthOfExpressionTokens = $idxOfOn - $idxBeforeSearch; } } // Restore the index $list->idx = $idxBeforeSearch; $subList = new TokensList(array_slice($list->tokens, $list->idx, $lengthOfExpressionTokens)); $subParser = new Parser($subList); if (count($subParser->errors)) { foreach ($subParser->errors as $error) { $parser->errors[] = $error; } break; } $this->cteStatementParser = $subParser; $list->idx = $idxOfLastParsedToken; break; } } // 5 is the only valid end state if ($state !== 5) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; $parser->error('Unexpected end of the WITH CTE.', $token); } --$list->idx; } /** * {@inheritdoc} */ public function build() { $str = 'WITH '; foreach ($this->withers as $wither) { $str .= $str === 'WITH ' ? '' : ', '; $str .= WithKeyword::build($wither); } $str .= ' '; if ($this->cteStatementParser) { foreach ($this->cteStatementParser->statements as $statement) { $str .= $statement->build(); } } return $str; } /** * Get tokens within the WITH expression to use them in another parser * * @return ParserException|TokensList */ private function getSubTokenList(TokensList $list) { $idx = $list->idx; $token = $list->tokens[$list->idx]; $openParenthesis = 0; while ($list->idx < $list->count) { if ($token->value === '(') { ++$openParenthesis; } elseif ($token->value === ')') { if (--$openParenthesis === -1) { break; } } ++$list->idx; if (! isset($list->tokens[$list->idx])) { break; } $token = $list->tokens[$list->idx]; } // performance improvement: return the error to avoid a try/catch in the loop if ($list->idx === $list->count) { --$list->idx; return new ParserException( Translator::gettext('A closing bracket was expected.'), $token ); } $length = $list->idx - $idx; return new TokensList(array_slice($list->tokens, $idx, $length), $length); } } sql-parser-5.9.0/src/Token.php000066400000000000000000000232221455302707200162040ustar00rootroot00000000000000, !==, etc. * Bitwise operators: &, |, ^, etc. * Assignment operators: =, +=, -=, etc. * SQL specific operators: . (e.g. .. WHERE database.table ..), * * (e.g. SELECT * FROM ..) */ public const TYPE_OPERATOR = 2; /** * Spaces, tabs, new lines, etc. */ public const TYPE_WHITESPACE = 3; /** * Any type of legal comment. * * Bash (#), C (/* *\/) or SQL (--) comments: * * -- SQL-comment * * #Bash-like comment * * /*C-like comment*\/ * * or: * * /*C-like * comment*\/ * * Backslashes were added to respect PHP's comments syntax. */ public const TYPE_COMMENT = 4; /** * Boolean values: true or false. */ public const TYPE_BOOL = 5; /** * Numbers: 4, 0x8, 15.16, 23e42, etc. */ public const TYPE_NUMBER = 6; /** * Literal strings: 'string', "test". * Some of these strings are actually symbols. */ public const TYPE_STRING = 7; /** * Database, table names, variables, etc. * For example: ```SELECT `foo`, `bar` FROM `database`.`table`;```. */ public const TYPE_SYMBOL = 8; /** * Delimits an unknown string. * For example: ```SELECT * FROM test;```, `test` is a delimiter. */ public const TYPE_DELIMITER = 9; /** * Labels in LOOP statement, ITERATE statement etc. * For example (only for begin label): * begin_label: BEGIN [statement_list] END [end_label] * begin_label: LOOP [statement_list] END LOOP [end_label] * begin_label: REPEAT [statement_list] ... END REPEAT [end_label] * begin_label: WHILE ... DO [statement_list] END WHILE [end_label]. */ public const TYPE_LABEL = 10; /** * All tokens types */ public const TYPE_ALL = [ self::TYPE_NONE, self::TYPE_KEYWORD, self::TYPE_OPERATOR, self::TYPE_WHITESPACE, self::TYPE_COMMENT, self::TYPE_BOOL, self::TYPE_NUMBER, self::TYPE_STRING, self::TYPE_SYMBOL, self::TYPE_DELIMITER, self::TYPE_LABEL, ]; // Flags that describe the tokens in more detail. // All keywords must have flag 1 so `Context::isKeyword` method doesn't // require strict comparison. public const FLAG_KEYWORD_RESERVED = 2; public const FLAG_KEYWORD_COMPOSED = 4; public const FLAG_KEYWORD_DATA_TYPE = 8; public const FLAG_KEYWORD_KEY = 16; public const FLAG_KEYWORD_FUNCTION = 32; // Numbers related flags. public const FLAG_NUMBER_HEX = 1; public const FLAG_NUMBER_FLOAT = 2; public const FLAG_NUMBER_APPROXIMATE = 4; public const FLAG_NUMBER_NEGATIVE = 8; public const FLAG_NUMBER_BINARY = 16; // Strings related flags. public const FLAG_STRING_SINGLE_QUOTES = 1; public const FLAG_STRING_DOUBLE_QUOTES = 2; // Comments related flags. public const FLAG_COMMENT_BASH = 1; public const FLAG_COMMENT_C = 2; public const FLAG_COMMENT_SQL = 4; public const FLAG_COMMENT_MYSQL_CMD = 8; // Operators related flags. public const FLAG_OPERATOR_ARITHMETIC = 1; public const FLAG_OPERATOR_LOGICAL = 2; public const FLAG_OPERATOR_BITWISE = 4; public const FLAG_OPERATOR_ASSIGNMENT = 8; public const FLAG_OPERATOR_SQL = 16; // Symbols related flags. public const FLAG_SYMBOL_VARIABLE = 1; public const FLAG_SYMBOL_BACKTICK = 2; public const FLAG_SYMBOL_USER = 4; public const FLAG_SYMBOL_SYSTEM = 8; public const FLAG_SYMBOL_PARAMETER = 16; /** * The token it its raw string representation. * * @var string */ public $token; /** * The value this token contains (i.e. token after some evaluation). * * @var mixed */ public $value; /** * The keyword value this token contains, always uppercase. * * @var mixed|string|null */ public $keyword; /** * The type of this token. * * @var int */ public $type; /** * The flags of this token. * * @var int */ public $flags; /** * The position in the initial string where this token started. * * The position is counted in chars, not bytes, so you should * use mb_* functions to properly handle utf-8 multibyte chars. * * @var int|null */ public $position; /** * @param string $token the value of the token * @param int $type the type of the token * @param int $flags the flags of the token */ public function __construct($token, $type = 0, $flags = 0) { $this->token = $token; $this->type = $type; $this->flags = $flags; $this->keyword = null; $this->value = $this->extract(); } /** * Does little processing to the token to extract a value. * * If no processing can be done it will return the initial string. * * @return mixed */ public function extract() { switch ($this->type) { case self::TYPE_KEYWORD: $this->keyword = strtoupper($this->token); if (! ($this->flags & self::FLAG_KEYWORD_RESERVED)) { // Unreserved keywords should stay the way they are because they // might represent field names. return $this->token; } return $this->keyword; case self::TYPE_WHITESPACE: return ' '; case self::TYPE_BOOL: return strtoupper($this->token) === 'TRUE'; case self::TYPE_NUMBER: $ret = str_replace('--', '', $this->token); // e.g. ---42 === -42 if ($this->flags & self::FLAG_NUMBER_HEX) { $ret = str_replace(['-', '+'], '', $this->token); if ($this->flags & self::FLAG_NUMBER_NEGATIVE) { $ret = -hexdec($ret); } else { $ret = hexdec($ret); } } elseif (($this->flags & self::FLAG_NUMBER_APPROXIMATE) || ($this->flags & self::FLAG_NUMBER_FLOAT)) { $ret = (float) $ret; } elseif (! ($this->flags & self::FLAG_NUMBER_BINARY)) { $ret = (int) $ret; } return $ret; case self::TYPE_STRING: // Trims quotes. $str = $this->token; $str = mb_substr($str, 1, -1, 'UTF-8'); // Removes surrounding quotes. $quote = $this->token[0]; $str = str_replace($quote . $quote, $quote, $str); // Finally unescapes the string. // // `stripcslashes` replaces escape sequences with their // representation. // // NOTE: In MySQL, `\f` and `\v` have no representation, // even they usually represent: form-feed and vertical tab. $str = str_replace('\f', 'f', $str); $str = str_replace('\v', 'v', $str); $str = stripcslashes($str); return $str; case self::TYPE_SYMBOL: $str = $this->token; if (isset($str[0]) && ($str[0] === '@')) { // `mb_strlen($str)` must be used instead of `null` because // in PHP 5.3- the `null` parameter isn't handled correctly. $str = mb_substr( $str, ! empty($str[1]) && ($str[1] === '@') ? 2 : 1, mb_strlen($str), 'UTF-8' ); } if (isset($str[0]) && ($str[0] === ':')) { $str = mb_substr($str, 1, mb_strlen($str), 'UTF-8'); } if (isset($str[0]) && (($str[0] === '`') || ($str[0] === '"') || ($str[0] === '\''))) { $quote = $str[0]; $str = mb_substr($str, 1, -1, 'UTF-8'); $str = str_replace($quote . $quote, $quote, $str); } return $str; } return $this->token; } /** * Converts the token into an inline token by replacing tabs and new lines. * * @return string */ public function getInlineToken() { return str_replace( [ "\r", "\n", "\t", ], [ '\r', '\n', '\t', ], $this->token ); } } sql-parser-5.9.0/src/TokensList.php000066400000000000000000000142551455302707200172310ustar00rootroot00000000000000 */ class TokensList implements ArrayAccess { /** * The array of tokens. * * @var Token[] */ public $tokens = []; /** * The count of tokens. * * @var int */ public $count = 0; /** * The index of the next token to be returned. * * @var int */ public $idx = 0; /** * @param Token[] $tokens the initial array of tokens * @param int $count the count of tokens in the initial array */ public function __construct(array $tokens = [], $count = -1) { if (empty($tokens)) { return; } $this->tokens = $tokens; $this->count = $count === -1 ? count($tokens) : $count; } /** * Builds an array of tokens by merging their raw value. * * @param string|Token[]|TokensList $list the tokens to be built * * @return string */ public static function build($list) { if (is_string($list)) { return $list; } if ($list instanceof self) { $list = $list->tokens; } $ret = ''; if (is_array($list)) { foreach ($list as $tok) { $ret .= $tok->token; } } return $ret; } /** * Adds a new token. * * @param Token $token token to be added in list * * @return void */ public function add(Token $token) { $this->tokens[$this->count++] = $token; } /** * Gets the next token. Skips any irrelevant token (whitespaces and * comments). * * @return Token|null */ public function getNext() { for (; $this->idx < $this->count; ++$this->idx) { if ( ($this->tokens[$this->idx]->type !== Token::TYPE_WHITESPACE) && ($this->tokens[$this->idx]->type !== Token::TYPE_COMMENT) ) { return $this->tokens[$this->idx++]; } } return null; } /** * Gets the previous token. Skips any irrelevant token (whitespaces and * comments). */ public function getPrevious(): ?Token { for (; $this->idx >= 0; --$this->idx) { if ( ($this->tokens[$this->idx]->type !== Token::TYPE_WHITESPACE) && ($this->tokens[$this->idx]->type !== Token::TYPE_COMMENT) ) { return $this->tokens[$this->idx--]; } } return null; } /** * Gets the previous token. * * @param int|int[] $type the type * * @return Token|null */ public function getPreviousOfType($type) { if (! is_array($type)) { $type = [$type]; } for (; $this->idx >= 0; --$this->idx) { if (in_array($this->tokens[$this->idx]->type, $type, true)) { return $this->tokens[$this->idx--]; } } return null; } /** * Gets the next token. * * @param int|int[] $type the type * * @return Token|null */ public function getNextOfType($type) { if (! is_array($type)) { $type = [$type]; } for (; $this->idx < $this->count; ++$this->idx) { if (in_array($this->tokens[$this->idx]->type, $type, true)) { return $this->tokens[$this->idx++]; } } return null; } /** * Gets the next token. * * @param int $type the type of the token * @param string $value the value of the token * * @return Token|null */ public function getNextOfTypeAndValue($type, $value) { for (; $this->idx < $this->count; ++$this->idx) { if (($this->tokens[$this->idx]->type === $type) && ($this->tokens[$this->idx]->value === $value)) { return $this->tokens[$this->idx++]; } } return null; } /** * Gets the next token. * * @param int $type the type of the token * @param int $flag the flag of the token */ public function getNextOfTypeAndFlag(int $type, int $flag): ?Token { for (; $this->idx < $this->count; ++$this->idx) { if (($this->tokens[$this->idx]->type === $type) && ($this->tokens[$this->idx]->flags === $flag)) { return $this->tokens[$this->idx++]; } } return null; } /** * Sets an value inside the container. * * @param int|null $offset the offset to be set * @param Token $value the token to be saved * * @return void */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if ($offset === null) { $this->tokens[$this->count++] = $value; } else { $this->tokens[$offset] = $value; } } /** * Gets a value from the container. * * @param int $offset the offset to be returned * * @return Token|null */ #[\ReturnTypeWillChange] public function offsetGet($offset) { return $offset < $this->count ? $this->tokens[$offset] : null; } /** * Checks if an offset was previously set. * * @param int $offset the offset to be checked * * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) { return $offset < $this->count; } /** * Unsets the value of an offset. * * @param int $offset the offset to be unset * * @return void */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->tokens[$offset]); --$this->count; for ($i = $offset; $i < $this->count; ++$i) { $this->tokens[$i] = $this->tokens[$i + 1]; } unset($this->tokens[$this->count]); } } sql-parser-5.9.0/src/Tools/000077500000000000000000000000001455302707200155125ustar00rootroot00000000000000sql-parser-5.9.0/src/Tools/ContextGenerator.php000066400000000000000000000300501455302707200215140ustar00rootroot00000000000000 */ public static $LABELS_FLAGS = [ '(R)' => 2, // reserved '(D)' => 8, // data type '(K)' => 16, // keyword '(F)' => 32, // function name ]; /** * Documentation links for each context. * * @var array */ public static $LINKS = [ 'MySql50000' => 'https://dev.mysql.com/doc/refman/5.0/en/keywords.html', 'MySql50100' => 'https://dev.mysql.com/doc/refman/5.1/en/keywords.html', 'MySql50500' => 'https://dev.mysql.com/doc/refman/5.5/en/keywords.html', 'MySql50600' => 'https://dev.mysql.com/doc/refman/5.6/en/keywords.html', 'MySql50700' => 'https://dev.mysql.com/doc/refman/5.7/en/keywords.html', 'MySql80000' => 'https://dev.mysql.com/doc/refman/8.0/en/keywords.html', 'MySql80100' => 'https://dev.mysql.com/doc/refman/8.1/en/keywords.html', 'MySql80200' => 'https://dev.mysql.com/doc/refman/8.2/en/keywords.html', 'MySql80300' => 'https://dev.mysql.com/doc/refman/8.3/en/keywords.html', 'MariaDb100000' => 'https://mariadb.com/kb/en/reserved-words/', 'MariaDb100100' => 'https://mariadb.com/kb/en/reserved-words/', 'MariaDb100200' => 'https://mariadb.com/kb/en/reserved-words/', 'MariaDb100300' => 'https://mariadb.com/kb/en/reserved-words/', 'MariaDb100400' => 'https://mariadb.com/kb/en/reserved-words/', 'MariaDb100500' => 'https://mariadb.com/kb/en/reserved-words/', 'MariaDb100600' => 'https://mariadb.com/kb/en/reserved-words/', 'MariaDb100700' => 'https://mariadb.com/kb/en/reserved-words/', 'MariaDb100800' => 'https://mariadb.com/kb/en/reserved-words/', 'MariaDb100900' => 'https://mariadb.com/kb/en/reserved-words/', 'MariaDb101000' => 'https://mariadb.com/kb/en/reserved-words/', 'MariaDb101100' => 'https://mariadb.com/kb/en/reserved-words/', 'MariaDb110000' => 'https://mariadb.com/kb/en/reserved-words/', 'MariaDb110100' => 'https://mariadb.com/kb/en/reserved-words/', 'MariaDb110200' => 'https://mariadb.com/kb/en/reserved-words/', 'MariaDb110300' => 'https://mariadb.com/kb/en/reserved-words/', 'MariaDb110400' => 'https://mariadb.com/kb/en/reserved-words/', ]; /** * The template of a context. * * Parameters: * 1 - name * 2 - class * 3 - link * 4 - keywords array */ public const TEMPLATE = <<<'PHP' * @phpstan-var non-empty-array */ public static $KEYWORDS = [ %4$s ]; } PHP; /** * Sorts an array of words. * * @param array>> $arr * * @return array>> */ public static function sortWords(array &$arr) { ksort($arr); foreach ($arr as &$wordsByLen) { ksort($wordsByLen); foreach ($wordsByLen as &$words) { sort($words, SORT_STRING); } } return $arr; } /** * Reads a list of words and sorts it by type, length and keyword. * * @param string[] $files * * @return array>> */ public static function readWords(array $files) { $words = []; foreach ($files as $file) { $words = array_merge($words, file($file, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES)); } /** @var array $types */ $types = []; for ($i = 0, $count = count($words); $i !== $count; ++$i) { $type = 1; $value = trim($words[$i]); // Reserved, data types, keys, functions, etc. keywords. foreach (static::$LABELS_FLAGS as $label => $flags) { if (strstr($value, $label) === false) { continue; } $type |= $flags; $value = trim(str_replace($label, '', $value)); } // Composed keyword. if (strstr($value, ' ') !== false) { $type |= 2; // Reserved keyword. $type |= 4; // Composed keyword. } $len = strlen($words[$i]); if ($len === 0) { continue; } $value = strtoupper($value); if (! isset($types[$value])) { $types[$value] = $type; } else { $types[$value] |= $type; } } $ret = []; foreach ($types as $word => $type) { $len = strlen($word); if (! isset($ret[$type])) { $ret[$type] = []; } if (! isset($ret[$type][$len])) { $ret[$type][$len] = []; } $ret[$type][$len][] = $word; } return static::sortWords($ret); } /** * Prints an array of a words in PHP format. * * @param array>> $words the list of words to be formatted * @param int $spaces the number of spaces that starts every line * @param int $line the length of a line * * @return string */ public static function printWords($words, $spaces = 8, $line = 140) { $typesCount = count($words); $ret = ''; $j = 0; foreach ($words as $type => $wordsByType) { foreach ($wordsByType as $len => $wordsByLen) { $count = round(($line - $spaces) / ($len + 9)); // strlen("'' => 1, ") = 9 $i = 0; foreach ($wordsByLen as $word) { if ($i === 0) { $ret .= str_repeat(' ', $spaces); } $ret .= sprintf('\'%s\' => %s, ', $word, $type); if (++$i !== $count && ++$i <= $count) { continue; } $ret .= "\n"; $i = 0; } if ($i === 0) { continue; } $ret .= "\n"; } if (++$j >= $typesCount) { continue; } $ret .= "\n"; } // Trim trailing spaces and return. return str_replace(" \n", "\n", $ret); } /** * Generates a context's class. * * @param array>>> $options the options for this context * @psalm-param array{ * name: string, * class: string, * link: string, * keywords: array>> * } $options * * @return string */ public static function generate($options) { if (isset($options['keywords'])) { $options['keywords'] = static::printWords($options['keywords']); } return sprintf(self::TEMPLATE, $options['name'], $options['class'], $options['link'], $options['keywords']); } /** * Formats context name. * * @param string $name name to format * * @return string */ public static function formatName($name) { /* Split name and version */ $parts = []; if (preg_match('/([^[0-9]*)([0-9]*)/', $name, $parts) === false) { return $name; } /* Format name */ $base = $parts[1]; switch ($base) { case 'MySql': $base = 'MySQL'; break; case 'MariaDb': $base = 'MariaDB'; break; } /* Parse version to array */ $versionString = $parts[2]; if (strlen($versionString) % 2 === 1) { $versionString = '0' . $versionString; } $version = array_map('intval', str_split($versionString, 2)); /* Remove trailing zero */ if ($version[count($version) - 1] === 0) { $version = array_slice($version, 0, count($version) - 1); } /* Create name */ return $base . ' ' . implode('.', $version); } /** * Builds a test. * * Reads the input file, generates the data and writes it back. * * @param string $input the input file * @param string $output the output directory * * @return void */ public static function build($input, $output) { /** * The directory that contains the input file. * * Used to include common files. * * @var string */ $directory = dirname($input) . '/'; /** * The name of the file that contains the context. */ $file = basename($input); /** * The name of the context. * * @var string */ $name = substr($file, 0, -4); /** * The name of the class that defines this context. * * @var string */ $class = 'Context' . $name; /** * The formatted name of this context. */ $formattedName = static::formatName($name); file_put_contents( $output . '/' . $class . '.php', static::generate( [ 'name' => $formattedName, 'class' => $class, 'link' => static::$LINKS[$name], 'keywords' => static::readWords( [ $directory . '_common.txt', $directory . '_functions' . $file, $directory . $file, ] ), ] ) ); } /** * Generates recursively all tests preserving the directory structure. * * @param string $input the input directory * @param string $output the output directory * * @return void */ public static function buildAll($input, $output) { $files = scandir($input); foreach ($files as $file) { // Skipping current and parent directories. // Skipping _functions* and _common.txt files if (($file[0] === '.') || ($file[0] === '_')) { continue; } // Skipping README.md if ($file === 'README.md') { continue; } // Building the context. echo sprintf("Building context for %s...\n", $file); static::build($input . '/' . $file, $output); } } } sql-parser-5.9.0/src/Tools/CustomJsonSerializer.php000066400000000000000000000034211455302707200223610ustar00rootroot00000000000000 */ protected function extractObjectData($value, $ref, $properties) { $data = []; foreach ($properties as $property) { if (in_array($property, self::SKIP_PROPERTIES, true)) { continue; } try { $propRef = $ref->getProperty($property); $propRef->setAccessible(true); $data[$property] = $propRef->getValue($value); } catch (ReflectionException $e) { $data[$property] = $value->$property; } } return $data; } } sql-parser-5.9.0/src/Tools/TestGenerator.php000066400000000000000000000175141455302707200210210ustar00rootroot00000000000000>>|null> */ public static function generate($query, $type = 'parser') { /** * Lexer used for tokenizing the query. */ $lexer = new Lexer($query); /** * Parsed used for analyzing the query. * A new instance of parser is generated only if the test requires. * * @var Parser */ $parser = $type === 'parser' ? new Parser($lexer->list) : null; /** * Lexer's errors. * * @var array> */ $lexerErrors = []; /** * Parser's errors. */ $parserErrors = []; // Both the lexer and the parser construct exception for errors. // Usually, exceptions contain a full stack trace and other details that // are not required. // The code below extracts only the relevant information. // Extracting lexer's errors. if (! empty($lexer->errors)) { /** @var LexerException $err */ foreach ($lexer->errors as $err) { $lexerErrors[] = [ $err->getMessage(), $err->ch, $err->pos, $err->getCode(), ]; } $lexer->errors = []; } // Extracting parser's errors. if (! empty($parser->errors)) { /** @var ParserException $err */ foreach ($parser->errors as $err) { $parserErrors[] = [ $err->getMessage(), $err->token, $err->getCode(), ]; } $parser->errors = []; } return [ 'query' => $query, 'lexer' => $lexer, 'parser' => $parser, 'errors' => [ 'lexer' => $lexerErrors, 'parser' => $parserErrors, ], ]; } /** * Builds a test. * * Reads the input file, generates the data and writes it back. * * @param string $type the type of this test * @param string $input the input file * @param string $output the output file * @param string $debug the debug file * @param bool $ansi activate quotes ANSI mode * * @return void */ public static function build($type, $input, $output, $debug = null, $ansi = false) { // Support query types: `lexer` / `parser`. if (! in_array($type, ['lexer', 'parser'])) { throw new Exception('Unknown test type (expected `lexer` or `parser`).'); } /** * The query that is used to generate the test. * * @var string */ $query = file_get_contents($input); // There is no point in generating a test without a query. if (empty($query)) { throw new Exception('No input query specified.'); } if ($ansi === true) { // set ANSI_QUOTES for ansi tests Context::setMode(Context::SQL_MODE_ANSI_QUOTES); } $mariaDbPos = strpos($input, '_mariadb_'); if ($mariaDbPos !== false) {// Keep in sync with TestCase.php // set context $mariaDbVersion = (int) substr($input, $mariaDbPos + 9, 6); Context::load('MariaDb' . $mariaDbVersion); } else { // Load the default context to be sure there is no side effects Context::load(''); } $test = static::generate($query, $type); // unset mode, reset to default every time, to be sure Context::setMode(); $serializer = new CustomJsonSerializer(); // Writing test's data. $encoded = $serializer->serialize($test); $encoded = (string) json_encode( json_decode($encoded), JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_PRESERVE_ZERO_FRACTION | JSON_UNESCAPED_SLASHES ); // Remove the project path from .out file, it changes for each dev $projectFolder = dirname(__DIR__, 2);// Jump to root $encoded = str_replace($projectFolder, '', $encoded); file_put_contents($output, $encoded); // Dumping test's data in human readable format too (if required). if (empty($debug)) { return; } file_put_contents($debug, print_r($test, true)); } /** * Generates recursively all tests preserving the directory structure. * * @param string $input the input directory * @param string $output the output directory * @param mixed|null $debug * * @return void */ public static function buildAll($input, $output, $debug = null) { $files = scandir($input); foreach ($files as $file) { // Skipping current and parent directories. if (($file === '.') || ($file === '..')) { continue; } // Appending the filename to directories. $inputFile = $input . '/' . $file; $outputFile = $output . '/' . $file; $debugFile = $debug !== null ? $debug . '/' . $file : null; if (is_dir($inputFile)) { // Creating required directories to maintain the structure. // Ignoring errors if the folder structure exists already. if (! is_dir($outputFile)) { mkdir($outputFile); } if (($debug !== null) && (! is_dir($debugFile))) { mkdir($debugFile); } // Generating tests recursively. static::buildAll($inputFile, $outputFile, $debugFile); } elseif (str_ends_with($inputFile, '.in')) { // Generating file names by replacing `.in` with `.out` and // `.debug`. $outputFile = substr($outputFile, 0, -3) . '.out'; if ($debug !== null) { $debugFile = substr($debugFile, 0, -3) . '.debug'; } // Building the test. if (! file_exists($outputFile)) { echo sprintf("Building test for %s...\n", $inputFile); static::build( str_contains($inputFile, 'lex') ? 'lexer' : 'parser', $inputFile, $outputFile, $debugFile, str_contains($inputFile, 'ansi') ); } else { echo sprintf("Test for %s already built!\n", $inputFile); } } } } } sql-parser-5.9.0/src/Translator.php000066400000000000000000000031631455302707200172570ustar00rootroot00000000000000setlocale( self::$loader->detectlocale() ); // Set default text domain self::$loader->textdomain('sqlparser'); // Set path where to look for a domain self::$loader->bindtextdomain('sqlparser', __DIR__ . '/../locale/'); } if (self::$translator !== null) { return; } // Get translator self::$translator = self::$loader->getTranslator(); } /** * Translates a string. * * @param string $msgid String to be translated * * @return string translated string (or original, if not found) */ public static function gettext($msgid) { if (! class_exists('\PhpMyAdmin\MoTranslator\Loader', true)) { return $msgid; } self::load(); return self::$translator->gettext($msgid); } } sql-parser-5.9.0/src/UtfString.php000066400000000000000000000244641455302707200170620ustar00rootroot00000000000000 */ class UtfString implements ArrayAccess, Stringable { /** * The raw, multi-byte string. * * @var string */ public $str = ''; /** * The index of current byte. * * For ASCII strings, the byte index is equal to the character index. * * @var int */ public $byteIdx = 0; /** * The index of current character. * * For non-ASCII strings, some characters occupy more than one byte and * the character index will have a lower value than the byte index. * * @var int */ public $charIdx = 0; /** * The length of the string (in bytes). * * @var int */ public $byteLen = 0; /** * The length of the string (in characters). * * @var int */ public $charLen = 0; /** * A map of ASCII binary values to their ASCII code * This is to improve performance and avoid calling ord($byte) * * Source: https://www.freecodecamp.org/news/ascii-table-hex-to-ascii-value-character-code-chart-2/ * * @var array */ protected static $asciiMap = [ "\0" => 0, // (00000000) NUL Null "\t" => 9, // (00001001) HT Horizontal Tab "\n" => 10, // (00001010) LF Newline / Line Feed "\v" => 11, // (00001011) VT Vertical Tab "\f" => 12, // (00001100) FF Form Feed "\r" => 13, // (00001101) CR Carriage Return ' ' => 32, // (00100000) SP Space '!' => 33, // (00100001) ! Exclamation mark '"' => 34, // (00100010) " Double quote '#' => 35, // (00100011) # Number '$' => 36, // (00100100) $ Dollar '%' => 37, // (00100101) % Percent '&' => 38, // (00100110) & Ampersand '\'' => 39, // (00100111) ' Single quote '(' => 40, // (00101000) ( Left parenthesis ')' => 41, // (00101001) ) Right parenthesis '*' => 42, // (00101010) * Asterisk '+' => 43, // (00101011) + Plus ',' => 44, // (00101100) , Comma '-' => 45, // (00101101) - Minus '.' => 46, // (00101110) . Period '/' => 47, // (00101111) / Slash '0' => 48, // (00110000) 0 Zero '1' => 49, // (00110001) 1 One '2' => 50, // (00110010) 2 Two '3' => 51, // (00110011) 3 Three '4' => 52, // (00110100) 4 Four '5' => 53, // (00110101) 5 Five '6' => 54, // (00110110) 6 Six '7' => 55, // (00110111) 7 Seven '8' => 56, // (00111000) 8 Eight '9' => 57, // (00111001) 9 Nine ':' => 58, // (00111010) : Colon ';' => 59, // (00111011) ; Semicolon '<' => 60, // (00111100) < Less than '=' => 61, // (00111101) = Equal sign '>' => 62, // (00111110) > Greater than '?' => 63, // (00111111) ? Question mark '@' => 64, // (01000000) @ At sign 'A' => 65, // (01000001) A Uppercase A 'B' => 66, // (01000010) B Uppercase B 'C' => 67, // (01000011) C Uppercase C 'D' => 68, // (01000100) D Uppercase D 'E' => 69, // (01000101) E Uppercase E 'F' => 70, // (01000110) F Uppercase F 'G' => 71, // (01000111) G Uppercase G 'H' => 72, // (01001000) H Uppercase H 'I' => 73, // (01001001) I Uppercase I 'J' => 74, // (01001010) J Uppercase J 'K' => 75, // (01001011) K Uppercase K 'L' => 76, // (01001100) L Uppercase L 'M' => 77, // (01001101) M Uppercase M 'N' => 78, // (01001110) N Uppercase N 'O' => 79, // (01001111) O Uppercase O 'P' => 80, // (01010000) P Uppercase P 'Q' => 81, // (01010001) Q Uppercase Q 'R' => 82, // (01010010) R Uppercase R 'S' => 83, // (01010011) S Uppercase S 'T' => 84, // (01010100) T Uppercase T 'U' => 85, // (01010101) U Uppercase U 'V' => 86, // (01010110) V Uppercase V 'W' => 87, // (01010111) W Uppercase W 'X' => 88, // (01011000) X Uppercase X 'Y' => 89, // (01011001) Y Uppercase Y 'Z' => 90, // (01011010) Z Uppercase Z '[' => 91, // (01011011) [ Left square bracket '\\' => 92, // (01011100) \ backslash ']' => 93, // (01011101) ] Right square bracket '^' => 94, // (01011110) ^ Caret / circumflex '_' => 95, // (01011111) _ Underscore '`' => 96, // (01100000) ` Grave / accent 'a' => 97, // (01100001) a Lowercase a 'b' => 98, // (01100010) b Lowercase b 'c' => 99, // (01100011) c Lowercase c 'd' => 100, // (01100100) d Lowercase d 'e' => 101, // (01100101) e Lowercase e 'f' => 102, // (01100110) f Lowercase 'g' => 103, // (01100111) g Lowercase g 'h' => 104, // (01101000) h Lowercase h 'i' => 105, // (01101001) i Lowercase i 'j' => 106, // (01101010) j Lowercase j 'k' => 107, // (01101011) k Lowercase k 'l' => 108, // (01101100) l Lowercase l 'm' => 109, // (01101101) m Lowercase m 'n' => 110, // (01101110) n Lowercase n 'o' => 111, // (01101111) o Lowercase o 'p' => 112, // (01110000) p Lowercase p 'q' => 113, // (01110001) q Lowercase q 'r' => 114, // (01110010) r Lowercase r 's' => 115, // (01110011) s Lowercase s 't' => 116, // (01110100) t Lowercase t 'u' => 117, // (01110101) u Lowercase u 'v' => 118, // (01110110) v Lowercase v 'w' => 119, // (01110111) w Lowercase w 'x' => 120, // (01111000) x Lowercase x 'y' => 121, // (01111001) y Lowercase y 'z' => 122, // (01111010) z Lowercase z '{' => 123, // (01111011) { Left curly bracket '|' => 124, // (01111100) | Vertical bar '}' => 125, // (01111101) } Right curly bracket '~' => 126, // (01111110) ~ Tilde "\x7f" => 127, // (01111111) DEL Delete ]; /** * @param string $str the string */ public function __construct($str) { $this->str = $str; $this->byteIdx = 0; $this->charIdx = 0; $this->byteLen = mb_strlen($str, '8bit'); if (! mb_check_encoding($str, 'UTF-8')) { $this->charLen = 0; } else { $this->charLen = mb_strlen($str, 'UTF-8'); } } /** * Checks if the given offset exists. * * @param int $offset the offset to be checked * * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) { return ($offset >= 0) && ($offset < $this->charLen); } /** * Gets the character at given offset. * * @param int $offset the offset to be returned * * @return string|null */ #[\ReturnTypeWillChange] public function offsetGet($offset) { if (($offset < 0) || ($offset >= $this->charLen)) { return null; } $delta = $offset - $this->charIdx; if ($delta > 0) { // Fast forwarding. while ($delta-- > 0) { $this->byteIdx += static::getCharLength($this->str[$this->byteIdx]); ++$this->charIdx; } } elseif ($delta < 0) { // Rewinding. while ($delta++ < 0) { do { $byte = ord($this->str[--$this->byteIdx]); } while (($byte >= 128) && ($byte < 192)); --$this->charIdx; } } $bytesCount = static::getCharLength($this->str[$this->byteIdx]); $ret = ''; for ($i = 0; $bytesCount-- > 0; ++$i) { $ret .= $this->str[$this->byteIdx + $i]; } return $ret; } /** * Sets the value of a character. * * @param int $offset the offset to be set * @param string $value the value to be set * * @return void * * @throws Exception not implemented. */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { throw new Exception('Not implemented.'); } /** * Unsets an index. * * @param int $offset the value to be unset * * @return void * * @throws Exception not implemented. */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { throw new Exception('Not implemented.'); } /** * Gets the length of an UTF-8 character. * * According to RFC 3629, a UTF-8 character can have at most 4 bytes. * However, this implementation supports UTF-8 characters containing up to 6 * bytes. * * @see https://tools.ietf.org/html/rfc3629 * * @param string $byte the byte to be analyzed * * @return int */ public static function getCharLength($byte) { // Use the default ASCII map as queries are mostly ASCII chars // ord($byte) has a performance cost if (! isset(static::$asciiMap[$byte])) { // Complete the cache with missing items static::$asciiMap[$byte] = ord($byte); } $byte = static::$asciiMap[$byte]; if ($byte < 128) { return 1; } if ($byte < 224) { return 2; } if ($byte < 240) { return 3; } if ($byte < 248) { return 4; } if ($byte < 252) { return 5; // unofficial } return 6; // unofficial } /** * Returns the length in characters of the string. * * @return int */ public function length() { return $this->charLen; } /** * Returns the contained string. * * @return string */ public function __toString() { return $this->str; } } sql-parser-5.9.0/src/Utils/000077500000000000000000000000001455302707200155125ustar00rootroot00000000000000sql-parser-5.9.0/src/Utils/BufferedQuery.php000066400000000000000000000330011455302707200207700ustar00rootroot00000000000000 * @psalm-var array{delimiter?: non-empty-string, parse_delimiter?: bool, add_delimiter?: bool} */ public $options = []; /** * The last delimiter used. * * @var string */ public $delimiter; /** * The length of the delimiter. * * @var int */ public $delimiterLen; /** * The current status of the parser. * * @var int|null */ public $status; /** * The last incomplete query that was extracted. * * @var string */ public $current = ''; /** * @param string $query the query to be parsed * @param array $options the options of this parser * @psalm-param array{delimiter?: non-empty-string, parse_delimiter?: bool, add_delimiter?: bool} $options */ public function __construct($query = '', array $options = []) { // Merges specified options with defaults. $this->options = array_merge( [ // The starting delimiter. 'delimiter' => ';', // Whether `DELIMITER` statements should be parsed. 'parse_delimiter' => false, // Whether a delimiter should be added at the end of the statement. 'add_delimiter' => false, ], $options ); $this->query = $query; $this->setDelimiter($this->options['delimiter']); } /** * Sets the delimiter. * * Used to update the length of it too. * * @param string $delimiter * * @return void */ public function setDelimiter($delimiter) { $this->delimiter = $delimiter; $this->delimiterLen = strlen($delimiter); } /** * Extracts a statement from the buffer. * * @param bool $end whether the end of the buffer was reached * * @return string|false */ public function extract($end = false) { /** * The last parsed position. * * This is statically defined because it is not used outside anywhere * outside this method and there is probably a (minor) performance * improvement to it. * * @var int */ static $i = 0; if (empty($this->query)) { return false; } /** * The length of the buffer. * * @var int */ $len = strlen($this->query); /** * The last index of the string that is going to be parsed. * * There must be a few characters left in the buffer so the parser can * avoid confusing some symbols that may have multiple meanings. * * For example, if the buffer ends in `-` that may be an operator or the * beginning of a comment. * * Another example if the buffer ends in `DELIMITE`. The parser is going * to require a few more characters because that may be a part of the * `DELIMITER` keyword or just a column named `DELIMITE`. * * Those extra characters are required only if there is more data * expected (the end of the buffer was not reached). */ $loopLen = $end ? $len : $len - 16; for (; $i < $loopLen; ++$i) { /* * Handling backslash. * * Even if the next character is a special character that should be * treated differently, because of the preceding backslash, it will * be ignored. */ if ((($this->status & self::STATUS_COMMENT) === 0) && ($this->query[$i] === '\\')) { $this->current .= $this->query[$i] . ($i + 1 < $len ? $this->query[++$i] : ''); continue; } /* * Handling special parses statuses. */ if ($this->status === self::STATUS_STRING_SINGLE_QUOTES) { // Single-quoted strings like 'foo'. if ($this->query[$i] === '\'') { $this->status = 0; } $this->current .= $this->query[$i]; continue; } elseif ($this->status === self::STATUS_STRING_DOUBLE_QUOTES) { // Double-quoted strings like "bar". if ($this->query[$i] === '"') { $this->status = 0; } $this->current .= $this->query[$i]; continue; } elseif ($this->status === self::STATUS_STRING_BACKTICK) { if ($this->query[$i] === '`') { $this->status = 0; } $this->current .= $this->query[$i]; continue; } elseif (($this->status === self::STATUS_COMMENT_BASH) || ($this->status === self::STATUS_COMMENT_SQL)) { // Bash-like (#) or SQL-like (-- ) comments end in new line. if ($this->query[$i] === "\n") { $this->status = 0; } $this->current .= $this->query[$i]; continue; } elseif ($this->status === self::STATUS_COMMENT_C) { // C-like comments end in */. if (($this->query[$i - 1] === '*') && ($this->query[$i] === '/')) { $this->status = 0; } $this->current .= $this->query[$i]; continue; } /* * Checking if a string started. */ if ($this->query[$i] === '\'') { $this->status = self::STATUS_STRING_SINGLE_QUOTES; $this->current .= $this->query[$i]; continue; } if ($this->query[$i] === '"') { $this->status = self::STATUS_STRING_DOUBLE_QUOTES; $this->current .= $this->query[$i]; continue; } if ($this->query[$i] === '`') { $this->status = self::STATUS_STRING_BACKTICK; $this->current .= $this->query[$i]; continue; } /* * Checking if a comment started. */ if ($this->query[$i] === '#') { $this->status = self::STATUS_COMMENT_BASH; $this->current .= $this->query[$i]; continue; } if ($i + 2 < $len) { if ( ($this->query[$i] === '-') && ($this->query[$i + 1] === '-') && Context::isWhitespace($this->query[$i + 2]) ) { $this->status = self::STATUS_COMMENT_SQL; $this->current .= $this->query[$i]; continue; } if (($this->query[$i] === '/') && ($this->query[$i + 1] === '*') && ($this->query[$i + 2] !== '!')) { $this->status = self::STATUS_COMMENT_C; $this->current .= $this->query[$i]; continue; } } /* * Handling `DELIMITER` statement. * * The code below basically checks for * `strtoupper(substr($this->query, $i, 9)) === 'DELIMITER'` * * This optimization makes the code about 3 times faster. * * `DELIMITER` is not being considered a keyword. The only context * it has a special meaning is when it is the beginning of a * statement. This is the reason for the last condition. */ if ( ($i + 9 < $len) && (($this->query[$i] === 'D') || ($this->query[$i] === 'd')) && (($this->query[$i + 1] === 'E') || ($this->query[$i + 1] === 'e')) && (($this->query[$i + 2] === 'L') || ($this->query[$i + 2] === 'l')) && (($this->query[$i + 3] === 'I') || ($this->query[$i + 3] === 'i')) && (($this->query[$i + 4] === 'M') || ($this->query[$i + 4] === 'm')) && (($this->query[$i + 5] === 'I') || ($this->query[$i + 5] === 'i')) && (($this->query[$i + 6] === 'T') || ($this->query[$i + 6] === 't')) && (($this->query[$i + 7] === 'E') || ($this->query[$i + 7] === 'e')) && (($this->query[$i + 8] === 'R') || ($this->query[$i + 8] === 'r')) && Context::isWhitespace($this->query[$i + 9]) ) { // Saving the current index to be able to revert any parsing // done in this block. $iBak = $i; $i += 9; // Skipping `DELIMITER`. // Skipping whitespaces. while (($i < $len) && Context::isWhitespace($this->query[$i])) { ++$i; } // Parsing the delimiter. $delimiter = ''; while (($i < $len) && (! Context::isWhitespace($this->query[$i]))) { $delimiter .= $this->query[$i++]; } // Checking if the delimiter definition ended. if ( ($delimiter !== '') && (($i < $len) && Context::isWhitespace($this->query[$i]) || (($i === $len) && $end)) ) { // Saving the delimiter. $this->setDelimiter($delimiter); // Whether this statement should be returned or not. $ret = ''; if (! empty($this->options['parse_delimiter'])) { // Appending the `DELIMITER` statement that was just // found to the current statement. $ret = trim( $this->current . ' ' . substr($this->query, $iBak, $i - $iBak) ); } // Removing the statement that was just extracted from the // query. $this->query = substr($this->query, $i); $i = 0; // Resetting the current statement. $this->current = ''; return $ret; } // Incomplete statement. Reverting $i = $iBak; return false; } /* * Checking if the current statement finished. * * The first letter of the delimiter is being checked as an * optimization. This code is almost as fast as the one above. * * There is no point in checking if two strings match if not even * the first letter matches. */ if ( ($this->query[$i] === $this->delimiter[0]) && (($this->delimiterLen === 1) || (substr($this->query, $i, $this->delimiterLen) === $this->delimiter)) ) { // Saving the statement that just ended. $ret = $this->current; // If needed, adds a delimiter at the end of the statement. if (! empty($this->options['add_delimiter'])) { $ret .= $this->delimiter; } // Removing the statement that was just extracted from the // query. $this->query = substr($this->query, $i + $this->delimiterLen); $i = 0; // Resetting the current statement. $this->current = ''; // Returning the statement. return trim($ret); } /* * Appending current character to current statement. */ $this->current .= $this->query[$i]; } if ($end && ($i === $len)) { // If the end of the buffer was reached, the buffer is emptied and // the current statement that was extracted is returned. $ret = $this->current; // Emptying the buffer. $this->query = ''; $i = 0; // Resetting the current statement. $this->current = ''; // Returning the statement. return trim($ret); } return ''; } } sql-parser-5.9.0/src/Utils/CLI.php000066400000000000000000000172351455302707200166420ustar00rootroot00000000000000getopt('', ['lint', 'highlight', 'tokenize']); if ($params !== false) { if (isset($params['lint'])) { return $this->runLint(false); } if (isset($params['highlight'])) { return $this->runHighlight(false); } if (isset($params['tokenize'])) { return $this->runTokenize(false); } } $this->usageLint(false); $this->usageHighlight(false); $this->usageTokenize(false); return 1; } /** * @param string[]|false[] $params * @param string[] $longopts * * @return void */ public function mergeLongOpts(&$params, &$longopts) { foreach ($longopts as $value) { $value = rtrim($value, ':'); if (! isset($params[$value])) { continue; } $params[$value[0]] = $params[$value]; } } /** * @return void */ public function usageHighlight(bool $isStandalone = true) { $command = $isStandalone ? 'highlight-query' : 'sql-parser --highlight'; echo 'Usage: ' . $command . ' --query SQL [--format html|cli|text] [--ansi]' . "\n"; echo ' cat file.sql | ' . $command . "\n"; } /** * @param string $opt * @param string[] $long * * @return string[]|false[]|false */ public function getopt($opt, $long) { return getopt($opt, $long); } /** * @return mixed|false */ public function parseHighlight() { $longopts = [ 'help', 'query:', 'format:', 'ansi', ]; $params = $this->getopt('hq:f:a', $longopts); if ($params === false) { return false; } $this->mergeLongOpts($params, $longopts); if (! isset($params['f'])) { $params['f'] = 'cli'; } if (! in_array($params['f'], ['html', 'cli', 'text'])) { echo "ERROR: Invalid value for format!\n"; return false; } return $params; } /** * @return int */ public function runHighlight(bool $isStandalone = true) { $params = $this->parseHighlight(); if ($params === false) { return 1; } if (isset($params['h'])) { $this->usageHighlight($isStandalone); return 0; } if (! isset($params['q'])) { $stdIn = $this->readStdin(); if ($stdIn) { $params['q'] = $stdIn; } } if (isset($params['a'])) { Context::setMode(Context::SQL_MODE_ANSI_QUOTES); } if (isset($params['q'])) { echo Formatter::format( $params['q'], ['type' => $params['f']] ); echo "\n"; return 0; } echo "ERROR: Missing parameters!\n"; $this->usageHighlight($isStandalone); return 1; } /** * @return void */ public function usageLint(bool $isStandalone = true) { $command = $isStandalone ? 'lint-query' : 'sql-parser --lint'; echo 'Usage: ' . $command . ' --query SQL [--ansi]' . "\n"; echo ' cat file.sql | ' . $command . "\n"; } /** * @return mixed */ public function parseLint() { $longopts = [ 'help', 'query:', 'context:', 'ansi', ]; $params = $this->getopt('hq:c:a', $longopts); $this->mergeLongOpts($params, $longopts); return $params; } /** * @return int */ public function runLint(bool $isStandalone = true) { $params = $this->parseLint(); if ($params === false) { return 1; } if (isset($params['h'])) { $this->usageLint($isStandalone); return 0; } if (isset($params['c'])) { Context::load($params['c']); } if (! isset($params['q'])) { $stdIn = $this->readStdin(); if ($stdIn) { $params['q'] = $stdIn; } } if (isset($params['a'])) { Context::setMode(Context::SQL_MODE_ANSI_QUOTES); } if (isset($params['q'])) { $lexer = new Lexer($params['q'], false); $parser = new Parser($lexer->list); $errors = Error::get([$lexer, $parser]); if (count($errors) === 0) { return 0; } $output = Error::format($errors); echo implode("\n", $output); echo "\n"; return 10; } echo "ERROR: Missing parameters!\n"; $this->usageLint($isStandalone); return 1; } /** * @return void */ public function usageTokenize(bool $isStandalone = true) { $command = $isStandalone ? 'tokenize-query' : 'sql-parser --tokenize'; echo 'Usage: ' . $command . ' --query SQL [--ansi]' . "\n"; echo ' cat file.sql | ' . $command . "\n"; } /** * @return mixed */ public function parseTokenize() { $longopts = [ 'help', 'query:', 'ansi', ]; $params = $this->getopt('hq:a', $longopts); $this->mergeLongOpts($params, $longopts); return $params; } /** * @return int */ public function runTokenize(bool $isStandalone = true) { $params = $this->parseTokenize(); if ($params === false) { return 1; } if (isset($params['h'])) { $this->usageTokenize($isStandalone); return 0; } if (! isset($params['q'])) { $stdIn = $this->readStdin(); if ($stdIn) { $params['q'] = $stdIn; } } if (isset($params['a'])) { Context::setMode(Context::SQL_MODE_ANSI_QUOTES); } if (isset($params['q'])) { $lexer = new Lexer($params['q'], false); foreach ($lexer->list->tokens as $idx => $token) { echo '[TOKEN ', $idx, "]\n"; echo 'Type = ', $token->type, "\n"; echo 'Flags = ', $token->flags, "\n"; echo 'Value = '; var_export($token->value); echo "\n"; echo 'Token = '; var_export($token->token); echo "\n"; echo "\n"; } return 0; } echo "ERROR: Missing parameters!\n"; $this->usageTokenize($isStandalone); return 1; } /** * @return string|false */ public function readStdin() { $read = [STDIN]; $write = []; $except = []; // Assume there's nothing to be read from STDIN. $stdin = null; // Try to read from STDIN. Wait 0.2 second before timing out. $result = stream_select($read, $write, $except, 0, 2000); if ($result > 0) { $stdin = stream_get_contents(STDIN); } return $stdin; } } sql-parser-5.9.0/src/Utils/Error.php000066400000000000000000000057331455302707200173240ustar00rootroot00000000000000 $objs objects from where the errors will be extracted * * @return array> Each element of the array represents an error. * `$err[0]` holds the error message. * `$err[1]` holds the error code. * `$err[2]` holds the string that caused the issue. * `$err[3]` holds the position of the string. * (i.e. `[$msg, $code, $str, $pos]`) */ public static function get($objs) { $ret = []; foreach ($objs as $obj) { if ($obj instanceof Lexer) { /** @var LexerException $err */ foreach ($obj->errors as $err) { $ret[] = [ $err->getMessage(), $err->getCode(), $err->ch, $err->pos, ]; } } elseif ($obj instanceof Parser) { /** @var ParserException $err */ foreach ($obj->errors as $err) { $ret[] = [ $err->getMessage(), $err->getCode(), $err->token !== null ? $err->token->token : '', $err->token !== null ? $err->token->position : null, ]; } } } return $ret; } /** * Formats the specified errors. * * @param array> $errors the errors to be formatted * @param string $format The format of an error. * '$1$d' is replaced by the position of this error. * '$2$s' is replaced by the error message. * '$3$d' is replaced by the error code. * '$4$s' is replaced by the string that caused the * issue. * '$5$d' is replaced by the position of the string. * * @return string[] */ public static function format( $errors, $format = '#%1$d: %2$s (near "%4$s" at position %5$d)' ) { $ret = []; $i = 0; foreach ($errors as $key => $err) { $ret[$key] = sprintf( $format, ++$i, $err[0], $err[1], htmlspecialchars((string) $err[2]), $err[3] ); } return $ret; } } sql-parser-5.9.0/src/Utils/Formatter.php000066400000000000000000000560351455302707200201770ustar00rootroot00000000000000>> */ public $options; /** * Clauses that are usually short. * * These clauses share the line with the next clause. * * E.g. if INSERT was not here, the formatter would produce: * * INSERT * INTO foo * VALUES(0, 0, 0),(1, 1, 1); * * Instead of: * * INSERT INTO foo * VALUES(0, 0, 0),(1, 1, 1) * * @var array */ public static $SHORT_CLAUSES = [ 'CREATE' => true, 'INSERT' => true, ]; /** * Clauses that must be inlined. * * These clauses usually are short and it's nicer to have them inline. * * @var array */ public static $INLINE_CLAUSES = [ 'CREATE' => true, 'INTO' => true, 'LIMIT' => true, 'PARTITION BY' => true, 'PARTITION' => true, 'PROCEDURE' => true, 'SUBPARTITION BY' => true, 'VALUES' => true, ]; /** * @param array>> $options the formatting options */ public function __construct(array $options = []) { $this->options = $this->getMergedOptions($options); } /** * The specified formatting options are merged with the default values. * * @param array>> $options * * @return array>> */ protected function getMergedOptions(array $options) { $options = array_merge( $this->getDefaultOptions(), $options ); if (isset($options['formats'])) { $options['formats'] = self::mergeFormats($this->getDefaultFormats(), $options['formats']); } else { $options['formats'] = $this->getDefaultFormats(); } if ($options['line_ending'] === null) { $options['line_ending'] = $options['type'] === 'html' ? '
' : "\n"; } if ($options['indentation'] === null) { $options['indentation'] = $options['type'] === 'html' ? '    ' : ' '; } // `parts_newline` requires `clause_newline` $options['parts_newline'] &= $options['clause_newline']; return $options; } /** * The default formatting options. * * @return array * @psalm-return array{ * type: ('cli'|'text'), * line_ending: null, * indentation: null, * remove_comments: false, * clause_newline: true, * parts_newline: true, * indent_parts: true * } */ protected function getDefaultOptions() { return [ /* * The format of the result. * * @var string The type ('text', 'cli' or 'html') */ 'type' => PHP_SAPI === 'cli' ? 'cli' : 'text', /* * The line ending used. * By default, for text this is "\n" and for HTML this is "
". * * @var string */ 'line_ending' => null, /* * The string used for indentation. * * @var string */ 'indentation' => null, /* * Whether comments should be removed or not. * * @var bool */ 'remove_comments' => false, /* * Whether each clause should be on a new line. * * @var bool */ 'clause_newline' => true, /* * Whether each part should be on a new line. * Parts are delimited by brackets and commas. * * @var bool */ 'parts_newline' => true, /* * Whether each part of each clause should be indented. * * @var bool */ 'indent_parts' => true, ]; } /** * The styles used for HTML formatting. * [$type, $flags, $span, $callback]. * * @return array> * @psalm-return list */ protected function getDefaultFormats() { return [ [ 'type' => Token::TYPE_KEYWORD, 'flags' => Token::FLAG_KEYWORD_RESERVED, 'html' => 'class="sql-reserved"', 'cli' => "\x1b[35m", 'function' => 'strtoupper', ], [ 'type' => Token::TYPE_KEYWORD, 'flags' => 0, 'html' => 'class="sql-keyword"', 'cli' => "\x1b[95m", 'function' => 'strtoupper', ], [ 'type' => Token::TYPE_COMMENT, 'flags' => 0, 'html' => 'class="sql-comment"', 'cli' => "\x1b[37m", 'function' => '', ], [ 'type' => Token::TYPE_BOOL, 'flags' => 0, 'html' => 'class="sql-atom"', 'cli' => "\x1b[36m", 'function' => 'strtoupper', ], [ 'type' => Token::TYPE_NUMBER, 'flags' => 0, 'html' => 'class="sql-number"', 'cli' => "\x1b[92m", 'function' => 'strtolower', ], [ 'type' => Token::TYPE_STRING, 'flags' => 0, 'html' => 'class="sql-string"', 'cli' => "\x1b[91m", 'function' => '', ], [ 'type' => Token::TYPE_SYMBOL, 'flags' => Token::FLAG_SYMBOL_PARAMETER, 'html' => 'class="sql-parameter"', 'cli' => "\x1b[31m", 'function' => '', ], [ 'type' => Token::TYPE_SYMBOL, 'flags' => 0, 'html' => 'class="sql-variable"', 'cli' => "\x1b[36m", 'function' => '', ], ]; } /** * @param array> $formats * @param array> $newFormats * * @return array> */ private static function mergeFormats(array $formats, array $newFormats): array { $added = []; $integers = [ 'flags', 'type', ]; $strings = [ 'html', 'cli', 'function', ]; /* Sanitize the array so that we do not have to care later */ foreach ($newFormats as $j => $new) { foreach ($integers as $name) { if (isset($new[$name])) { continue; } $newFormats[$j][$name] = 0; } foreach ($strings as $name) { if (isset($new[$name])) { continue; } $newFormats[$j][$name] = ''; } } /* Process changes to existing formats */ foreach ($formats as $i => $original) { foreach ($newFormats as $j => $new) { if ($new['type'] !== $original['type'] || $original['flags'] !== $new['flags']) { continue; } $formats[$i] = $new; $added[] = $j; } } /* Add not already handled formats */ foreach ($newFormats as $j => $new) { if (in_array($j, $added)) { continue; } $formats[] = $new; } return $formats; } /** * Formats the given list of tokens. * * @param TokensList $list the list of tokens * * @return string */ public function formatList($list) { /** * The query to be returned. * * @var string */ $ret = ''; /** * The indentation level. * * @var int */ $indent = 0; /** * Whether the line ended. * * @var bool */ $lineEnded = false; /** * Whether current group is short (no linebreaks). * * @var bool */ $shortGroup = false; /** * The name of the last clause. * * @var string */ $lastClause = ''; /** * A stack that keeps track of the indentation level every time a new * block is found. */ $blocksIndentation = []; /** * A stack that keeps track of the line endings every time a new block * is found. */ $blocksLineEndings = []; /** * Whether clause's options were formatted. * * @var bool */ $formattedOptions = false; /** * Previously parsed token. * * @var Token|null */ $prev = null; // In order to be able to format the queries correctly, the next token // must be taken into consideration. The loop below uses two pointers, // `$prev` and `$curr` which store two consecutive tokens. // Actually, at every iteration the previous token is being used. for ($list->idx = 0; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $curr = $list->tokens[$list->idx]; if ($list->idx + 1 < $list->count) { $next = $list->tokens[$list->idx + 1]; } else { $next = null; } if ($curr->type === Token::TYPE_WHITESPACE) { // Keep linebreaks before and after comments if ( str_contains($curr->token, "\n") && ( ($prev !== null && $prev->type === Token::TYPE_COMMENT) || ($next !== null && $next->type === Token::TYPE_COMMENT) ) ) { $lineEnded = true; } // Whitespaces are skipped because the formatter adds its own. continue; } if ($curr->type === Token::TYPE_COMMENT && $this->options['remove_comments']) { // Skip Comments if option `remove_comments` is enabled continue; } // Checking if pointers were initialized. if ($prev !== null) { // Checking if a new clause started. if (static::isClause($prev) !== false) { $lastClause = $prev->value; $formattedOptions = false; } // The options of a clause should stay on the same line and everything that follows. if ( $this->options['parts_newline'] && ! $formattedOptions && empty(self::$INLINE_CLAUSES[$lastClause]) && ( $curr->type !== Token::TYPE_KEYWORD || ( $curr->type === Token::TYPE_KEYWORD && $curr->flags & Token::FLAG_KEYWORD_FUNCTION ) ) ) { $formattedOptions = true; $lineEnded = true; ++$indent; } // Checking if this clause ended. $isClause = static::isClause($curr); if ($isClause !== false) { if ( ($isClause === 2 || $this->options['clause_newline']) && empty(self::$SHORT_CLAUSES[$lastClause]) ) { $lineEnded = true; if ($this->options['parts_newline'] && $indent > 0) { --$indent; } } } // Inline JOINs if ( ($prev->type === Token::TYPE_KEYWORD && isset(JoinKeyword::$JOINS[$prev->value])) || (in_array($curr->value, ['ON', 'USING'], true) && isset(JoinKeyword::$JOINS[$list->tokens[$list->idx - 2]->value])) || isset($list->tokens[$list->idx - 4], JoinKeyword::$JOINS[$list->tokens[$list->idx - 4]->value]) || isset($list->tokens[$list->idx - 6], JoinKeyword::$JOINS[$list->tokens[$list->idx - 6]->value]) ) { $lineEnded = false; } // Indenting BEGIN ... END blocks. if ($prev->type === Token::TYPE_KEYWORD && $prev->keyword === 'BEGIN') { $lineEnded = true; $blocksIndentation[] = $indent; ++$indent; } elseif ($curr->type === Token::TYPE_KEYWORD && $curr->keyword === 'END') { $lineEnded = true; $indent = array_pop($blocksIndentation); } // Formatting fragments delimited by comma. if ($prev->type === Token::TYPE_OPERATOR && $prev->value === ',') { // Fragments delimited by a comma are broken into multiple // pieces only if the clause is not inlined or this fragment // is between brackets that are on new line. if ( end($blocksLineEndings) === true || ( empty(self::$INLINE_CLAUSES[$lastClause]) && ! $shortGroup && $this->options['parts_newline'] ) ) { $lineEnded = true; } } // Handling brackets. // Brackets are indented only if the length of the fragment between // them is longer than 30 characters. if ($prev->type === Token::TYPE_OPERATOR && $prev->value === '(') { $blocksIndentation[] = $indent; $shortGroup = true; if (static::getGroupLength($list) > 30) { ++$indent; $lineEnded = true; $shortGroup = false; } $blocksLineEndings[] = $lineEnded; } elseif ($curr->type === Token::TYPE_OPERATOR && $curr->value === ')') { $indent = array_pop($blocksIndentation); $lineEnded |= array_pop($blocksLineEndings); $shortGroup = false; } // Adding the token. $ret .= $this->toString($prev); // Finishing the line. if ($lineEnded) { $ret .= $this->options['line_ending'] . str_repeat($this->options['indentation'], (int) $indent); $lineEnded = false; } else { // If the line ended there is no point in adding whitespaces. // Also, some tokens do not have spaces before or after them. if ( // A space after delimiters that are longer than 2 characters. $prev->keyword === 'DELIMITER' || ! ( ($prev->type === Token::TYPE_OPERATOR && ($prev->value === '.' || $prev->value === '(')) // No space after . ( || ($curr->type === Token::TYPE_OPERATOR && ($curr->value === '.' || $curr->value === ',' || $curr->value === '(' || $curr->value === ')')) // No space before . , ( ) || $curr->type === Token::TYPE_DELIMITER && mb_strlen((string) $curr->value, 'UTF-8') < 2 ) ) { $ret .= ' '; } } } // Iteration finished, consider current token as previous. $prev = $curr; } if ($this->options['type'] === 'cli') { return $ret . "\x1b[0m"; } return $ret; } public function escapeConsole(string $string): string { return str_replace( [ "\x00", "\x01", "\x02", "\x03", "\x04", "\x05", "\x06", "\x07", "\x08", "\x09", "\x0A", "\x0B", "\x0C", "\x0D", "\x0E", "\x0F", "\x10", "\x11", "\x12", "\x13", "\x14", "\x15", "\x16", "\x17", "\x18", "\x19", "\x1A", "\x1B", "\x1C", "\x1D", "\x1E", "\x1F", ], [ '\x00', '\x01', '\x02', '\x03', '\x04', '\x05', '\x06', '\x07', '\x08', '\x09', '\x0A', '\x0B', '\x0C', '\x0D', '\x0E', '\x0F', '\x10', '\x11', '\x12', '\x13', '\x14', '\x15', '\x16', '\x17', '\x18', '\x19', '\x1A', '\x1B', '\x1C', '\x1D', '\x1E', '\x1F', ], $string ); } /** * Tries to print the query and returns the result. * * @param Token $token the token to be printed * * @return string */ public function toString($token) { $text = $token->token; static $prev; foreach ($this->options['formats'] as $format) { if ($token->type !== $format['type'] || ! (($token->flags & $format['flags']) === $format['flags'])) { continue; } // Running transformation function. if (! empty($format['function'])) { $func = $format['function']; $text = $func($text); } // Formatting HTML. if ($this->options['type'] === 'html') { return '' . htmlspecialchars($text, ENT_NOQUOTES) . ''; } if ($this->options['type'] === 'cli') { if ($prev !== $format['cli']) { $prev = $format['cli']; return $format['cli'] . $this->escapeConsole($text); } return $this->escapeConsole($text); } break; } if ($this->options['type'] === 'cli') { if ($prev !== "\x1b[39m") { $prev = "\x1b[39m"; return "\x1b[39m" . $this->escapeConsole($text); } return $this->escapeConsole($text); } if ($this->options['type'] === 'html') { return htmlspecialchars($text, ENT_NOQUOTES); } return $text; } /** * Formats a query. * * @param string $query The query to be formatted * @param array>> $options the formatting options * * @return string the formatted string */ public static function format($query, array $options = []) { $lexer = new Lexer($query); $formatter = new self($options); return $formatter->formatList($lexer->list); } /** * Computes the length of a group. * * A group is delimited by a pair of brackets. * * @param TokensList $list the list of tokens * * @return int */ public static function getGroupLength($list) { /** * The number of opening brackets found. * This counter starts at one because by the time this function called, * the list already advanced one position and the opening bracket was * already parsed. * * @var int */ $count = 1; /** * The length of this group. * * @var int */ $length = 0; for ($idx = $list->idx; $idx < $list->count; ++$idx) { // Counting the brackets. if ($list->tokens[$idx]->type === Token::TYPE_OPERATOR) { if ($list->tokens[$idx]->value === '(') { ++$count; } elseif ($list->tokens[$idx]->value === ')') { --$count; if ($count === 0) { break; } } } // Keeping track of this group's length. $length += mb_strlen((string) $list->tokens[$idx]->value, 'UTF-8'); } return $length; } /** * Checks if a token is a statement or a clause inside a statement. * * @param Token $token the token to be checked * * @return int|false * @psalm-return 1|2|false */ public static function isClause($token) { if ( ($token->type === Token::TYPE_KEYWORD && isset(Parser::$STATEMENT_PARSERS[$token->keyword])) || ($token->type === Token::TYPE_NONE && strtoupper($token->token) === 'DELIMITER') ) { return 2; } if ($token->type === Token::TYPE_KEYWORD && isset(Parser::$KEYWORD_PARSERS[$token->keyword])) { return 1; } return false; } } sql-parser-5.9.0/src/Utils/Misc.php000066400000000000000000000056441455302707200171270ustar00rootroot00000000000000|string|null>>|null>> */ public static function getAliases($statement, $database) { if (! ($statement instanceof SelectStatement) || empty($statement->expr) || empty($statement->from)) { return []; } $retval = []; $tables = []; /** * Expressions that may contain aliases. * These are extracted from `FROM` and `JOIN` keywords. * * @var Expression[] */ $expressions = $statement->from; // Adding expressions from JOIN. if (! empty($statement->join)) { foreach ($statement->join as $join) { $expressions[] = $join->expr; } } foreach ($expressions as $expr) { if (! isset($expr->table) || ($expr->table === '')) { continue; } $thisDb = isset($expr->database) && ($expr->database !== '') ? $expr->database : $database; if (! isset($retval[$thisDb])) { $retval[$thisDb] = [ 'alias' => null, 'tables' => [], ]; } if (! isset($retval[$thisDb]['tables'][$expr->table])) { $retval[$thisDb]['tables'][$expr->table] = [ 'alias' => isset($expr->alias) && ($expr->alias !== '') ? $expr->alias : null, 'columns' => [], ]; } if (! isset($tables[$thisDb])) { $tables[$thisDb] = []; } $tables[$thisDb][$expr->alias] = $expr->table; } foreach ($statement->expr as $expr) { if (! isset($expr->column, $expr->alias) || ($expr->column === '') || ($expr->alias === '')) { continue; } $thisDb = isset($expr->database) && ($expr->database !== '') ? $expr->database : $database; if (isset($expr->table) && ($expr->table !== '')) { $thisTable = $tables[$thisDb][$expr->table] ?? $expr->table; $retval[$thisDb]['tables'][$thisTable]['columns'][$expr->column] = $expr->alias; } else { foreach ($retval[$thisDb]['tables'] as &$table) { $table['columns'][$expr->column] = $expr->alias; } } } return $retval; } } sql-parser-5.9.0/src/Utils/Query.php000066400000000000000000000674611455302707200173460ustar00rootroot00000000000000 * @psalm-var array{ * distinct: false, * drop_database: false, * group: false, * having: false, * is_affected: false, * is_analyse: false, * is_count: false, * is_delete: false, * is_explain: false, * is_export: false, * is_func: false, * is_group: false, * is_insert: false, * is_maint: false, * is_procedure: false, * is_replace: false, * is_select: false, * is_show: false, * is_subquery: false, * join: false, * limit: false, * offset: false, * order: false, * querytype: false, * reload: false, * select_from: false, * union: false * } */ public static $ALLFLAGS = [ /* * select ... DISTINCT ... */ 'distinct' => false, /* * drop ... DATABASE ... */ 'drop_database' => false, /* * ... GROUP BY ... */ 'group' => false, /* * ... HAVING ... */ 'having' => false, /* * INSERT ... * or * REPLACE ... * or * DELETE ... */ 'is_affected' => false, /* * select ... PROCEDURE ANALYSE( ... ) ... */ 'is_analyse' => false, /* * select COUNT( ... ) ... */ 'is_count' => false, /* * DELETE ... */ 'is_delete' => false, // @deprecated; use `querytype` /* * EXPLAIN ... */ 'is_explain' => false, // @deprecated; use `querytype` /* * select ... INTO OUTFILE ... */ 'is_export' => false, /* * select FUNC( ... ) ... */ 'is_func' => false, /* * select ... GROUP BY ... * or * select ... HAVING ... */ 'is_group' => false, /* * INSERT ... * or * REPLACE ... * or * LOAD DATA ... */ 'is_insert' => false, /* * ANALYZE ... * or * CHECK ... * or * CHECKSUM ... * or * OPTIMIZE ... * or * REPAIR ... */ 'is_maint' => false, /* * CALL ... */ 'is_procedure' => false, /* * REPLACE ... */ 'is_replace' => false, // @deprecated; use `querytype` /* * SELECT ... */ 'is_select' => false, // @deprecated; use `querytype` /* * SHOW ... */ 'is_show' => false, // @deprecated; use `querytype` /* * Contains a subquery. */ 'is_subquery' => false, /* * ... JOIN ... */ 'join' => false, /* * ... LIMIT ... */ 'limit' => false, /* * TODO */ 'offset' => false, /* * ... ORDER ... */ 'order' => false, /* * The type of the query (which is usually the first keyword of * the statement). */ 'querytype' => false, /* * Whether a page reload is required. */ 'reload' => false, /* * SELECT ... FROM ... */ 'select_from' => false, /* * ... UNION ... */ 'union' => false, ]; /** * Gets an array with flags select statement has. * * @param SelectStatement $statement the statement to be processed * @param array $flags flags set so far * @psalm-param QueryFlagsType $flags * * @return array * @psalm-return QueryFlagsType */ private static function getFlagsSelect($statement, $flags) { $flags['querytype'] = 'SELECT'; $flags['is_select'] = true; if (! empty($statement->from)) { $flags['select_from'] = true; } if ($statement->options->has('DISTINCT')) { $flags['distinct'] = true; } if (! empty($statement->group) || ! empty($statement->having)) { $flags['is_group'] = true; } if (! empty($statement->into) && ($statement->into->type === 'OUTFILE')) { $flags['is_export'] = true; } $expressions = $statement->expr; if (! empty($statement->join)) { foreach ($statement->join as $join) { $expressions[] = $join->expr; } } foreach ($expressions as $expr) { if (! empty($expr->function)) { if ($expr->function === 'COUNT') { $flags['is_count'] = true; } elseif (in_array($expr->function, static::$FUNCTIONS)) { $flags['is_func'] = true; } } if (empty($expr->subquery)) { continue; } $flags['is_subquery'] = true; } if (! empty($statement->procedure) && ($statement->procedure->name === 'ANALYSE')) { $flags['is_analyse'] = true; } if (! empty($statement->group)) { $flags['group'] = true; } if (! empty($statement->having)) { $flags['having'] = true; } if (! empty($statement->union)) { $flags['union'] = true; } if (! empty($statement->join)) { $flags['join'] = true; } return $flags; } /** * Gets an array with flags this statement has. * * @param Statement|null $statement the statement to be processed * @param bool $all if `false`, false values will not be included * * @return array * @psalm-return QueryFlagsType */ public static function getFlags($statement, $all = false) { $flags = ['querytype' => false]; if ($all) { $flags = self::$ALLFLAGS; } if ($statement instanceof AlterStatement) { $flags['querytype'] = 'ALTER'; $flags['reload'] = true; } elseif ($statement instanceof CreateStatement) { $flags['querytype'] = 'CREATE'; $flags['reload'] = true; } elseif ($statement instanceof AnalyzeStatement) { $flags['querytype'] = 'ANALYZE'; $flags['is_maint'] = true; } elseif ($statement instanceof CheckStatement) { $flags['querytype'] = 'CHECK'; $flags['is_maint'] = true; } elseif ($statement instanceof ChecksumStatement) { $flags['querytype'] = 'CHECKSUM'; $flags['is_maint'] = true; } elseif ($statement instanceof OptimizeStatement) { $flags['querytype'] = 'OPTIMIZE'; $flags['is_maint'] = true; } elseif ($statement instanceof RepairStatement) { $flags['querytype'] = 'REPAIR'; $flags['is_maint'] = true; } elseif ($statement instanceof CallStatement) { $flags['querytype'] = 'CALL'; $flags['is_procedure'] = true; } elseif ($statement instanceof DeleteStatement) { $flags['querytype'] = 'DELETE'; $flags['is_delete'] = true; $flags['is_affected'] = true; } elseif ($statement instanceof DropStatement) { $flags['querytype'] = 'DROP'; $flags['reload'] = true; if ($statement->options->has('DATABASE') || $statement->options->has('SCHEMA')) { $flags['drop_database'] = true; } } elseif ($statement instanceof ExplainStatement) { $flags['querytype'] = 'EXPLAIN'; $flags['is_explain'] = true; } elseif ($statement instanceof InsertStatement) { $flags['querytype'] = 'INSERT'; $flags['is_affected'] = true; $flags['is_insert'] = true; } elseif ($statement instanceof LoadStatement) { $flags['querytype'] = 'LOAD'; $flags['is_affected'] = true; $flags['is_insert'] = true; } elseif ($statement instanceof ReplaceStatement) { $flags['querytype'] = 'REPLACE'; $flags['is_affected'] = true; $flags['is_replace'] = true; $flags['is_insert'] = true; } elseif ($statement instanceof SelectStatement) { $flags = self::getFlagsSelect($statement, $flags); } elseif ($statement instanceof ShowStatement) { $flags['querytype'] = 'SHOW'; $flags['is_show'] = true; } elseif ($statement instanceof UpdateStatement) { $flags['querytype'] = 'UPDATE'; $flags['is_affected'] = true; } elseif ($statement instanceof SetStatement) { $flags['querytype'] = 'SET'; } if ( ($statement instanceof SelectStatement) || ($statement instanceof UpdateStatement) || ($statement instanceof DeleteStatement) ) { if (! empty($statement->limit)) { $flags['limit'] = true; } if (! empty($statement->order)) { $flags['order'] = true; } } return $flags; } /** * Parses a query and gets all information about it. * * @param string $query the query to be parsed * * @return array The array returned is the one returned by * `static::getFlags()`, with the following keys added: * - parser - the parser used to analyze the query; * - statement - the first statement resulted from parsing; * - select_tables - the real name of the tables selected; * if there are no table names in the `SELECT` * expressions, the table names are fetched from the * `FROM` expressions * - select_expr - selected expressions * @psalm-return QueryFlagsType&array{ * select_expr?: (string|null)[], * select_tables?: array{string, string|null}[], * statement?: Statement|null, parser?: Parser * } */ public static function getAll($query) { $parser = new Parser($query); if (empty($parser->statements[0])) { return static::getFlags(null, true); } $statement = $parser->statements[0]; $ret = static::getFlags($statement, true); $ret['parser'] = $parser; $ret['statement'] = $statement; if ($statement instanceof SelectStatement) { $ret['select_tables'] = []; $ret['select_expr'] = []; // Finding tables' aliases and their associated real names. $tableAliases = []; foreach ($statement->from as $expr) { if (! isset($expr->table, $expr->alias) || ($expr->table === '') || ($expr->alias === '')) { continue; } $tableAliases[$expr->alias] = [ $expr->table, $expr->database ?? null, ]; } // Trying to find selected tables only from the select expression. // Sometimes, this is not possible because the tables aren't defined // explicitly (e.g. SELECT * FROM film, SELECT film_id FROM film). foreach ($statement->expr as $expr) { if (isset($expr->table) && ($expr->table !== '')) { if (isset($tableAliases[$expr->table])) { $arr = $tableAliases[$expr->table]; } else { $arr = [ $expr->table, isset($expr->database) && ($expr->database !== '') ? $expr->database : null, ]; } if (! in_array($arr, $ret['select_tables'])) { $ret['select_tables'][] = $arr; } } else { $ret['select_expr'][] = $expr->expr; } } // If no tables names were found in the SELECT clause or if there // are expressions like * or COUNT(*), etc. tables names should be // extracted from the FROM clause. if (empty($ret['select_tables'])) { foreach ($statement->from as $expr) { if (! isset($expr->table) || ($expr->table === '')) { continue; } $arr = [ $expr->table, isset($expr->database) && ($expr->database !== '') ? $expr->database : null, ]; if (in_array($arr, $ret['select_tables'])) { continue; } $ret['select_tables'][] = $arr; } } } return $ret; } /** * Gets a list of all tables used in this statement. * * @param Statement $statement statement to be scanned * * @return array */ public static function getTables($statement) { $expressions = []; if (($statement instanceof InsertStatement) || ($statement instanceof ReplaceStatement)) { $expressions = [$statement->into->dest]; } elseif ($statement instanceof UpdateStatement) { $expressions = $statement->tables; } elseif (($statement instanceof SelectStatement) || ($statement instanceof DeleteStatement)) { $expressions = $statement->from; } elseif (($statement instanceof AlterStatement) || ($statement instanceof TruncateStatement)) { $expressions = [$statement->table]; } elseif ($statement instanceof DropStatement) { if (! $statement->options->has('TABLE')) { // No tables are dropped. return []; } $expressions = $statement->fields; } elseif ($statement instanceof RenameStatement) { foreach ($statement->renames as $rename) { $expressions[] = $rename->old; } } $ret = []; foreach ($expressions as $expr) { if (empty($expr->table)) { continue; } $expr->expr = null; // Force rebuild. $expr->alias = null; // Aliases are not required. $ret[] = Expression::build($expr); } return $ret; } /** * Gets a specific clause. * * @param Statement $statement the parsed query that has to be modified * @param TokensList $list the list of tokens * @param string $clause the clause to be returned * @param int|string $type The type of the search. * If int, * -1 for everything that was before * 0 only for the clause * 1 for everything after * If string, the name of the first clause that * should not be included. * @param bool $skipFirst whether to skip the first keyword in clause * * @return string */ public static function getClause($statement, $list, $clause, $type = 0, $skipFirst = true) { /** * The index of the current clause. * * @var int */ $currIdx = 0; /** * The count of brackets. * We keep track of them so we won't insert the clause in a subquery. * * @var int */ $brackets = 0; /** * The string to be returned. * * @var string */ $ret = ''; /** * The clauses of this type of statement and their index. */ $clauses = array_flip(array_keys($statement->getClauses())); /** * Lexer used for lexing the clause. */ $lexer = new Lexer($clause); /** * The type of this clause. * * @var string */ $clauseType = $lexer->list->getNextOfType(Token::TYPE_KEYWORD)->keyword; /** * The index of this clause. */ $clauseIdx = $clauses[$clauseType] ?? -1; $firstClauseIdx = $clauseIdx; $lastClauseIdx = $clauseIdx; // Determining the behavior of this function. if ($type === -1) { $firstClauseIdx = -1; // Something small enough. $lastClauseIdx = $clauseIdx - 1; } elseif ($type === 1) { $firstClauseIdx = $clauseIdx + 1; $lastClauseIdx = 10000; // Something big enough. } elseif (is_string($type) && isset($clauses[$type])) { if ($clauses[$type] > $clauseIdx) { $firstClauseIdx = $clauseIdx + 1; $lastClauseIdx = $clauses[$type] - 1; } else { $firstClauseIdx = $clauses[$type] + 1; $lastClauseIdx = $clauseIdx - 1; } } // This option is unavailable for multiple clauses. if ($type !== 0) { $skipFirst = false; } for ($i = $statement->first; $i <= $statement->last; ++$i) { $token = $list->tokens[$i]; if ($token->type === Token::TYPE_COMMENT) { continue; } if ($token->type === Token::TYPE_OPERATOR) { if ($token->value === '(') { ++$brackets; } elseif ($token->value === ')') { --$brackets; } } if ($brackets === 0) { // Checking if the section was changed. if ( ($token->type === Token::TYPE_KEYWORD) && isset($clauses[$token->keyword]) && ($clauses[$token->keyword] >= $currIdx) ) { $currIdx = $clauses[$token->keyword]; if ($skipFirst && ($currIdx === $clauseIdx)) { // This token is skipped (not added to the old // clause) because it will be replaced. continue; } } } if (($firstClauseIdx > $currIdx) || ($currIdx > $lastClauseIdx)) { continue; } $ret .= $token->token; } return trim($ret); } /** * Builds a query by rebuilding the statement from the tokens list supplied * and replaces a clause. * * It is a very basic version of a query builder. * * @param Statement $statement the parsed query that has to be modified * @param TokensList $list the list of tokens * @param string $old The type of the clause that should be * replaced. This can be an entire clause. * @param string $new The new clause. If this parameter is omitted * it is considered to be equal with `$old`. * @param bool $onlyType whether only the type of the clause should * be replaced or the entire clause * * @return string */ public static function replaceClause($statement, $list, $old, $new = null, $onlyType = false) { // TODO: Update the tokens list and the statement. if ($new === null) { $new = $old; } if ($onlyType) { return static::getClause($statement, $list, $old, -1, false) . ' ' . $new . ' ' . static::getClause($statement, $list, $old, 0) . ' ' . static::getClause($statement, $list, $old, 1, false); } return static::getClause($statement, $list, $old, -1, false) . ' ' . $new . ' ' . static::getClause($statement, $list, $old, 1, false); } /** * Builds a query by rebuilding the statement from the tokens list supplied * and replaces multiple clauses. * * @param Statement $statement the parsed query that has to be modified * @param TokensList $list the list of tokens * @param array> $ops Clauses to be replaced. Contains multiple * arrays having two values: [$old, $new]. * Clauses must be sorted. * * @return string */ public static function replaceClauses($statement, $list, array $ops) { $count = count($ops); // Nothing to do. if ($count === 0) { return ''; } /** * Value to be returned. * * @var string */ $ret = ''; // If there is only one clause, `replaceClause()` should be used. if ($count === 1) { return static::replaceClause($statement, $list, $ops[0][0], $ops[0][1]); } // Adding everything before first replacement. $ret .= static::getClause($statement, $list, $ops[0][0], -1) . ' '; // Doing replacements. foreach ($ops as $i => $clause) { $ret .= $clause[1] . ' '; // Adding everything between this and next replacement. if ($i + 1 === $count) { continue; } $ret .= static::getClause($statement, $list, $clause[0], $ops[$i + 1][0]) . ' '; } // Adding everything after the last replacement. return $ret . static::getClause($statement, $list, $ops[$count - 1][0], 1); } /** * Gets the first full statement in the query. * * @param string $query the query to be analyzed * @param string $delimiter the delimiter to be used * * @return array array containing the first full query, * the remaining part of the query and the last delimiter * @psalm-return array{string|null, string, string|null} */ public static function getFirstStatement($query, $delimiter = null) { $lexer = new Lexer($query, false, $delimiter); $list = $lexer->list; /** * Whether a full statement was found. * * @var bool */ $fullStatement = false; /** * The first full statement. * * @var string */ $statement = ''; for ($list->idx = 0; $list->idx < $list->count; ++$list->idx) { $token = $list->tokens[$list->idx]; if ($token->type === Token::TYPE_COMMENT) { continue; } $statement .= $token->token; if (($token->type === Token::TYPE_DELIMITER) && ! empty($token->token)) { $delimiter = $token->token; $fullStatement = true; break; } } // No statement was found so we return the entire query as being the // remaining part. if (! $fullStatement) { return [ null, $query, $delimiter, ]; } // At least one query was found so we have to build the rest of the // remaining query. $query = ''; for (++$list->idx; $list->idx < $list->count; ++$list->idx) { $query .= $list->tokens[$list->idx]->token; } return [ trim($statement), $query, $delimiter, ]; } /** * Gets a starting offset of a specific clause. * * @param Statement $statement the parsed query that has to be modified * @param TokensList $list the list of tokens * @param string $clause the clause to be returned * * @return int */ public static function getClauseStartOffset($statement, $list, $clause) { /** * The count of brackets. * We keep track of them so we won't insert the clause in a subquery. * * @var int */ $brackets = 0; /** * The clauses of this type of statement and their index. */ $clauses = array_flip(array_keys($statement->getClauses())); for ($i = $statement->first; $i <= $statement->last; ++$i) { $token = $list->tokens[$i]; if ($token->type === Token::TYPE_COMMENT) { continue; } if ($token->type === Token::TYPE_OPERATOR) { if ($token->value === '(') { ++$brackets; } elseif ($token->value === ')') { --$brackets; } } if ($brackets !== 0) { continue; } if ( ($token->type === Token::TYPE_KEYWORD) && isset($clauses[$token->keyword]) && ($clause === $token->keyword) ) { return $i; } if ($token->keyword === 'UNION') { return -1; } } return -1; } } sql-parser-5.9.0/src/Utils/Routine.php000066400000000000000000000070311455302707200176510ustar00rootroot00000000000000list); if ($type === null) { return [ '', '', '', '', '', ]; } $options = []; foreach ($type->options->options as $opt) { $options[] = is_string($opt) ? $opt : $opt['value']; } return [ '', '', $type->name, implode(',', $type->parameters), implode(' ', $options), ]; } /** * Parses a parameter of a routine. * * @param string $param parameter's definition * * @return string[] */ public static function getParameter($param) { $lexer = new Lexer('(' . $param . ')'); // A dummy parser is used for error reporting. $param = ParameterDefinition::parse(new Parser(), $lexer->list); if (empty($param[0])) { return [ '', '', '', '', '', ]; } $param = $param[0]; $options = []; foreach ($param->type->options->options as $opt) { $options[] = is_string($opt) ? $opt : $opt['value']; } return [ empty($param->inOut) ? '' : $param->inOut, $param->name, $param->type->name, implode(',', $param->type->parameters), implode(' ', $options), ]; } /** * Gets the parameters of a routine from the parse tree. * * @param CreateStatement $statement the statement to be processed * * @return array> */ public static function getParameters($statement) { $retval = [ 'num' => 0, 'dir' => [], 'name' => [], 'type' => [], 'length' => [], 'length_arr' => [], 'opts' => [], ]; if (! empty($statement->parameters)) { $idx = 0; foreach ($statement->parameters as $param) { $retval['dir'][$idx] = $param->inOut; $retval['name'][$idx] = $param->name; $retval['type'][$idx] = $param->type->name; $retval['length'][$idx] = implode(',', $param->type->parameters); $retval['length_arr'][$idx] = $param->type->parameters; $retval['opts'][$idx] = []; foreach ($param->type->options->options as $opt) { $retval['opts'][$idx][] = is_string($opt) ? $opt : $opt['value']; } $retval['opts'][$idx] = implode(' ', $retval['opts'][$idx]); ++$idx; } $retval['num'] = $idx; } return $retval; } } sql-parser-5.9.0/src/Utils/Table.php000066400000000000000000000071711455302707200172600ustar00rootroot00000000000000> */ public static function getForeignKeys($statement) { if (empty($statement->fields) || (! is_array($statement->fields)) || (! $statement->options->has('TABLE'))) { return []; } $ret = []; foreach ($statement->fields as $field) { if (empty($field->key) || ($field->key->type !== 'FOREIGN KEY')) { continue; } $columns = []; foreach ($field->key->columns as $column) { if (! isset($column['name'])) { continue; } $columns[] = $column['name']; } $tmp = [ 'constraint' => $field->name, 'index_list' => $columns, ]; if (! empty($field->references)) { $tmp['ref_db_name'] = $field->references->table->database; $tmp['ref_table_name'] = $field->references->table->table; $tmp['ref_index_list'] = $field->references->columns; $opt = $field->references->options->has('ON UPDATE'); if ($opt) { $tmp['on_update'] = str_replace(' ', '_', $opt); } $opt = $field->references->options->has('ON DELETE'); if ($opt) { $tmp['on_delete'] = str_replace(' ', '_', $opt); } } $ret[] = $tmp; } return $ret; } /** * Gets fields of the table. * * @param CreateStatement $statement the statement to be processed * * @return array> */ public static function getFields($statement) { if (empty($statement->fields) || (! is_array($statement->fields)) || (! $statement->options->has('TABLE'))) { return []; } $ret = []; foreach ($statement->fields as $field) { // Skipping keys. if (empty($field->type)) { continue; } $ret[$field->name] = [ 'type' => $field->type->name, 'timestamp_not_null' => false, ]; if (! $field->options) { continue; } if ($field->type->name === 'TIMESTAMP') { if ($field->options->has('NOT NULL')) { $ret[$field->name]['timestamp_not_null'] = true; } } $option = $field->options->has('DEFAULT'); if ($option) { $ret[$field->name]['default_value'] = $option; if ($option === 'CURRENT_TIMESTAMP') { $ret[$field->name]['default_current_timestamp'] = true; } } $option = $field->options->has('ON UPDATE'); if ($option === 'CURRENT_TIMESTAMP') { $ret[$field->name]['on_update_current_timestamp'] = true; } $option = $field->options->has('AS'); if (! $option) { continue; } $ret[$field->name]['generated'] = true; $ret[$field->name]['expr'] = $option; } return $ret; } } sql-parser-5.9.0/src/Utils/Tokens.php000066400000000000000000000100721455302707200174660ustar00rootroot00000000000000 $pattern the pattern to be matches * * @return bool */ public static function match(Token $token, array $pattern) { // Token. if (isset($pattern['token']) && ($pattern['token'] !== $token->token)) { return false; } // Value. if (isset($pattern['value']) && ($pattern['value'] !== $token->value)) { return false; } if (isset($pattern['value_str']) && strcasecmp($pattern['value_str'], (string) $token->value)) { return false; } // Type. if (isset($pattern['type']) && ($pattern['type'] !== $token->type)) { return false; } // Flags. return ! isset($pattern['flags']) || (! (($pattern['flags'] & $token->flags) === 0)); } /** * @param TokensList|string|UtfString $list * @param Token[] $find * @param Token[] $replace * * @return TokensList */ public static function replaceTokens($list, array $find, array $replace) { /** * Whether the first parameter is a list. */ $isList = $list instanceof TokensList; // Parsing the tokens. if (! $isList) { $list = Lexer::getTokens($list); } /** * The list to be returned. * * @var Token[] */ $newList = []; /** * The length of the find pattern is calculated only once. * * @var int */ $findCount = count($find); /** * The starting index of the pattern. * * @var int */ $i = 0; while ($i < $list->count) { // A sequence may not start with a comment. if ($list->tokens[$i]->type === Token::TYPE_COMMENT) { $newList[] = $list->tokens[$i]; ++$i; continue; } /** * The index used to parse `$list->tokens`. * * This index might be running faster than `$k` because some tokens * are skipped. */ $j = $i; /** * The index used to parse `$find`. * * This index might be running slower than `$j` because some tokens * are skipped. * * @var int */ $k = 0; // Checking if the next tokens match the pattern described. while (($j < $list->count) && ($k < $findCount)) { // Comments are being skipped. if ($list->tokens[$j]->type === Token::TYPE_COMMENT) { ++$j; } if (! static::match($list->tokens[$j], $find[$k])) { // This token does not match the pattern. break; } // Going to next token and segment of find pattern. ++$j; ++$k; } // Checking if the sequence was found. if ($k === $findCount) { // Inserting new tokens. foreach ($replace as $token) { $newList[] = $token; } // Skipping next `$findCount` tokens. $i = $j; } else { // Adding the same token. $newList[] = $list->tokens[$i]; ++$i; } } return $isList ? new TokensList($newList) : TokensList::build($newList); } } sql-parser-5.9.0/tests/000077500000000000000000000000001455302707200147655ustar00rootroot00000000000000sql-parser-5.9.0/tests/Builder/000077500000000000000000000000001455302707200163535ustar00rootroot00000000000000sql-parser-5.9.0/tests/Builder/AlterStatementTest.php000066400000000000000000000153321455302707200226640ustar00rootroot00000000000000statements[0]; $this->assertEquals($query, $stmt->build()); } public function testBuilderWithExpression(): void { $query = 'ALTER TABLE `table` ' . 'ADD UNIQUE KEY `functional_index`' . ' (`field1`,`field2`, (IFNULL(`field3`,0)))'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); } public function testBuilderWithComments(): void { $query = 'ALTER /* comment */ TABLE `actor` ' . 'ADD PRIMARY KEY (`actor_id`), -- comment at the end of the line' . "\n" . 'ADD KEY `idx_actor_last_name` (`last_name`) -- and that is the last comment.'; $expectedQuery = 'ALTER TABLE `actor` ' . 'ADD PRIMARY KEY (`actor_id`), ' . 'ADD KEY `idx_actor_last_name` (`last_name`)'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($expectedQuery, $stmt->build()); } public function testBuilderWithCommentsOnOptions(): void { $query = 'ALTER EVENT `myEvent` /* comment */ ' . 'ON SCHEDULE -- Comment at the end of the line' . "\n" . 'AT "2023-01-01 01:23:45"'; $expectedQuery = 'ALTER EVENT `myEvent` ' . 'ON SCHEDULE AT "2023-01-01 01:23:45"'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($expectedQuery, $stmt->build()); } public function testBuilderCompressed(): void { $query = 'ALTER TABLE `user` CHANGE `message` `message` TEXT COMPRESSED'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); } public function testBuilderPartitions(): void { $parser = new Parser('ALTER TABLE t1 PARTITION BY HASH(id) PARTITIONS 8'); $stmt = $parser->statements[0]; $this->assertEquals('ALTER TABLE t1 PARTITION BY HASH(id) PARTITIONS 8', $stmt->build()); $parser = new Parser('ALTER TABLE t1 ADD PARTITION (PARTITION p3 VALUES LESS THAN (2002))'); $stmt = $parser->statements[0]; $this->assertEquals( "ALTER TABLE t1 ADD PARTITION (\n" . "PARTITION p3 VALUES LESS THAN (2002)\n" . ')', $stmt->build() ); $parser = new Parser('ALTER TABLE p PARTITION BY LINEAR KEY ALGORITHM=2 (id) PARTITIONS 32;'); $stmt = $parser->statements[0]; $this->assertEquals( 'ALTER TABLE p PARTITION BY LINEAR KEY ALGORITHM=2 (id) PARTITIONS 32', $stmt->build() ); $parser = new Parser('ALTER TABLE t1 DROP PARTITION p0, p1;'); $stmt = $parser->statements[0]; $this->assertEquals( 'ALTER TABLE t1 DROP PARTITION p0, p1', $stmt->build() ); $parser = new Parser( 'ALTER TABLE trips PARTITION BY RANGE (MONTH(trip_date))' . ' (' . "\n" . ' PARTITION p01 VALUES LESS THAN (02),' . "\n" . ' PARTITION p02 VALUES LESS THAN (03),' . "\n" . ' PARTITION p03 VALUES LESS THAN (04),' . "\n" . ' PARTITION p04 VALUES LESS THAN (05),' . "\n" . ' PARTITION p05 VALUES LESS THAN (06),' . "\n" . ' PARTITION p06 VALUES LESS THAN (07),' . "\n" . ' PARTITION p07 VALUES LESS THAN (08),' . "\n" . ' PARTITION p08 VALUES LESS THAN (09),' . "\n" . ' PARTITION p09 VALUES LESS THAN (10),' . "\n" . ' PARTITION p10 VALUES LESS THAN (11),' . "\n" . ' PARTITION p11 VALUES LESS THAN (12),' . "\n" . ' PARTITION p12 VALUES LESS THAN (13),' . "\n" . ' PARTITION pmaxval VALUES LESS THAN MAXVALUE' . "\n" . ');' ); $stmt = $parser->statements[0]; $this->assertEquals( 'ALTER TABLE trips PARTITION BY RANGE (MONTH(trip_date)) (' . "\n" . 'PARTITION p01 VALUES LESS THAN (02),' . "\n" . 'PARTITION p02 VALUES LESS THAN (03),' . "\n" . 'PARTITION p03 VALUES LESS THAN (04),' . "\n" . 'PARTITION p04 VALUES LESS THAN (05),' . "\n" . 'PARTITION p05 VALUES LESS THAN (06),' . "\n" . 'PARTITION p06 VALUES LESS THAN (07),' . "\n" . 'PARTITION p07 VALUES LESS THAN (08),' . "\n" . 'PARTITION p08 VALUES LESS THAN (09),' . "\n" . 'PARTITION p09 VALUES LESS THAN (10),' . "\n" . 'PARTITION p10 VALUES LESS THAN (11),' . "\n" . 'PARTITION p11 VALUES LESS THAN (12),' . "\n" . 'PARTITION p12 VALUES LESS THAN (13),' . "\n" . 'PARTITION pmaxval VALUES LESS THAN MAXVALUE' . "\n" . ')', $stmt->build() ); } public function testBuilderEventWithDefiner(): void { $query = 'ALTER DEFINER=user EVENT myEvent ENABLE'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); } /** * @return Generator */ public static function provideBuilderForRenameColumn(): Generator { $query = 'ALTER TABLE myTable RENAME COLUMN a TO b'; yield 'Single RENAME COLUMN' => [$query]; $query = 'ALTER TABLE myTable RENAME COLUMN a TO b, RENAME COLUMN b TO a'; yield 'Multiple RENAME COLUMN' => [$query]; $query = 'ALTER TABLE myTable ' . 'RENAME COLUMN a TO b, ' . 'RENAME COLUMN b TO a, ' . 'RENAME INDEX oldIndex TO newIndex, ' . 'RENAME TO newTable'; yield 'Mixed RENAME COLUMN + RENAME INDEX + RENAME table' => [$query]; $query = 'ALTER TABLE myTable ' . 'RENAME TO newTable, ' . 'RENAME INDEX oldIndex TO newIndex, ' . 'RENAME COLUMN b TO a, ' . 'RENAME COLUMN a TO b'; yield 'Mixed RENAME table + RENAME INDEX + RENAME COLUMNS' => [$query]; } /** * @dataProvider provideBuilderForRenameColumn */ public function testBuilderRenameColumn(string $query): void { $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); } } sql-parser-5.9.0/tests/Builder/CallStatementTest.php000066400000000000000000000045501455302707200224700ustar00rootroot00000000000000statements[0]; $this->assertEquals($query, $stmt->build()); } public function testBuilderShort(): void { $query = 'CALL foo'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query . '()', $stmt->build()); } public function testBuilderWithDbName(): void { $query = 'CALL mydb.foo()'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); } public function testBuilderWithDbNameShort(): void { $query = 'CALL mydb.foo'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query . '()', $stmt->build()); } public function testBuilderWithDbNameAndParams(): void { $query = 'CALL mydb.foo(@bar, @baz);'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals('CALL mydb.foo(@bar,@baz)', $stmt->build()); } public function testBuilderMultiCallsShort(): void { $query = 'call e;call f'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals('CALL e()', $stmt->build()); $stmt = $parser->statements[1]; $this->assertEquals('CALL f()', $stmt->build()); } public function testBuilderMultiCalls(): void { $query = 'call e();call f'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals('CALL e()', $stmt->build()); $stmt = $parser->statements[1]; $this->assertEquals('CALL f()', $stmt->build()); } public function testBuilderMultiCallsArgs(): void { $query = 'call e("foo");call f'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals('CALL e("foo")', $stmt->build()); $stmt = $parser->statements[1]; $this->assertEquals('CALL f()', $stmt->build()); } } sql-parser-5.9.0/tests/Builder/CreateStatementTest.php000066400000000000000000000726431455302707200230300ustar00rootroot00000000000000statements[0]; $this->assertEquals( 'CREATE USER "jeffrey"@"localhost" IDENTIFIED BY "mypass"', $stmt->build() ); } public function testBuilderDatabase(): void { // CREATE DATABASE ... $parser = new Parser( 'CREATE DATABASE `mydb` ' . 'DEFAULT CHARACTER SET = utf8 DEFAULT COLLATE = utf8_general_ci' ); $stmt = $parser->statements[0]; $this->assertEquals( 'CREATE DATABASE `mydb` ' . 'DEFAULT CHARACTER SET=utf8 DEFAULT COLLATE=utf8_general_ci', $stmt->build() ); // CREATE SCHEMA ... $parser = new Parser('CREATE SCHEMA `mydb` DEFAULT CHARACTER SET = utf8 DEFAULT COLLATE = utf8_general_ci'); $stmt = $parser->statements[0]; $this->assertEquals( 'CREATE SCHEMA `mydb` ' . 'DEFAULT CHARACTER SET=utf8 DEFAULT COLLATE=utf8_general_ci', $stmt->build() ); } public function testBuilderDefaultInt(): void { $parser = new Parser( 'CREATE TABLE IF NOT EXISTS t1 (' . " c1 int(11) NOT NULL DEFAULT '0' COMMENT 'xxx'" . ') ENGINE=MyISAM' ); $stmt = $parser->statements[0]; $this->assertEquals( "CREATE TABLE IF NOT EXISTS t1 (\n" . " `c1` int(11) NOT NULL DEFAULT '0' COMMENT 'xxx'\n" . ') ENGINE=MyISAM', $stmt->build() ); } public function testBuilderWithComments(): void { $parser = new Parser('CREATE TABLE tab1 (`col1` TIMESTAMP /*!40100 DEFAULT NULL */)'); $stmt = $parser->statements[0]; $this->assertEquals( // TODO: fix with https://github.com/phpmyadmin/sql-parser/issues/256 "CREATE TABLE tab1 (\n `col1` timestamp DEFAULT NULL\n) ", $stmt->build() ); } public function testBuilderCompressed(): void { $parser = new Parser('CREATE TABLE users ( user_id int ) PAGE_COMPRESSED=1 PAGE_COMPRESSION_LEVEL=9;'); $stmt = $parser->statements[0]; $this->assertEquals( "CREATE TABLE users (\n `user_id` int\n) PAGE_COMPRESSED=1 PAGE_COMPRESSION_LEVEL=9", $stmt->build() ); } public function testBuilderCollate(): void { $parser = new Parser( 'CREATE TABLE IF NOT EXISTS t1 (' . " c1 varchar(11) NOT NULL DEFAULT '0' COLLATE 'utf8_czech_ci' COMMENT 'xxx'" . ') ENGINE=MyISAM' ); $stmt = $parser->statements[0]; $this->assertEquals( "CREATE TABLE IF NOT EXISTS t1 (\n" . " `c1` varchar(11) NOT NULL DEFAULT '0' COLLATE 'utf8_czech_ci' COMMENT 'xxx'\n" . ') ENGINE=MyISAM', $stmt->build() ); } public function testBuilderDefaultComment(): void { $parser = new Parser( 'CREATE TABLE `wp_audio` (' . " `somedata` int(11) DEFAULT NULL COMMENT 'ma data', " . " `someinfo` int(11) DEFAULT NULL COMMENT 'ma info' " . ' )' ); $stmt = $parser->statements[0]; $this->assertEquals( "CREATE TABLE `wp_audio` (\n" . " `somedata` int(11) DEFAULT NULL COMMENT 'ma data',\n" . " `someinfo` int(11) DEFAULT NULL COMMENT 'ma info'\n" . ') ', $stmt->build() ); } public function testBuilderTable(): void { /* Assertion 1 */ $stmt = new CreateStatement(); $stmt->name = new Expression('', 'test', ''); $stmt->options = new OptionsArray(['TABLE']); $stmt->fields = [ new CreateDefinition( 'id', new OptionsArray(['NOT NULL', 'AUTO_INCREMENT']), new DataType('INT', [11], new OptionsArray(['UNSIGNED'])) ), new CreateDefinition( '', null, new Key('', [['name' => 'id']], 'PRIMARY KEY') ), ]; $this->assertEquals( "CREATE TABLE `test` (\n" . " `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,\n" . " PRIMARY KEY (`id`)\n" . ') ', $stmt->build() ); /* Assertion 2 */ $query = "CREATE TABLE `jos_core_acl_aro` (\n" . " `id` int(11) NOT NULL,\n" . " `section_value` varchar(240) NOT NULL DEFAULT '0',\n" . " `value` varchar(240) NOT NULL DEFAULT '',\n" . " `order_value` int(11) NOT NULL DEFAULT '0',\n" . " `name` varchar(255) NOT NULL DEFAULT '',\n" . " `hidden` int(11) NOT NULL DEFAULT '0',\n" . " PRIMARY KEY (`id`),\n" . " UNIQUE KEY `jos_section_value_value_aro` (`section_value`(100),`value`(15)) USING BTREE,\n" . " KEY `jos_gacl_hidden_aro` (`hidden`)\n" . ') ENGINE=InnoDB DEFAULT CHARSET=latin1'; $parser = new Parser($query); $this->assertEquals($query, $parser->statements[0]->build()); /* Assertion 3 */ $query = 'CREATE TABLE `table_copy` LIKE `old_table`'; $parser = new Parser($query); $this->assertEquals($query, $parser->statements[0]->build()); /* Assertion 4 */ $query = "CREATE TABLE `aa` (\n" . " `id` int(11) NOT NULL,\n" . " `rTime` timestamp(3) NOT NULL DEFAULT '0000-00-00 00:00:00.000' ON UPDATE CURRENT_TIMESTAMP(3),\n" . " PRIMARY KEY (`id`)\n" . ') ENGINE=InnoDB DEFAULT CHARSET=latin1'; $parser = new Parser($query); $this->assertEquals($query, $parser->statements[0]->build()); /* Assertion 5 */ $parser = new Parser( 'CREATE table table_name WITH' . ' cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 )' . ' SELECT col1 FROM cte' ); $stmt = $parser->statements[0]; $this->assertEquals( 'CREATE TABLE table_name WITH' . ' cte(col1) AS (SELECT 1 UNION ALL SELECT 2)' . ' SELECT col1 FROM cte', $stmt->build() ); } public function testBuilderPartitions(): void { /* Assertion 1 */ $query = 'CREATE TABLE ts (' . "\n" . ' `id` int,' . "\n" . ' `purchased` date' . "\n" . ') ' . "\n" . 'PARTITION BY RANGE(YEAR(purchased))' . "\n" . 'PARTITIONS 3' . "\n" . 'SUBPARTITION BY HASH(TO_DAYS(purchased))' . "\n" . 'SUBPARTITIONS 2' . "\n" . '(' . "\n" . 'PARTITION p0 VALUES LESS THAN (1990) (' . "\n" . 'SUBPARTITION s0,' . "\n" . 'SUBPARTITION s1' . "\n" . '),' . "\n" . 'PARTITION p1 VALUES LESS THAN (2000) (' . "\n" . 'SUBPARTITION s2,' . "\n" . 'SUBPARTITION s3' . "\n" . '),' . "\n" . 'PARTITION p2 VALUES LESS THAN MAXVALUE (' . "\n" . 'SUBPARTITION s4,' . "\n" . 'SUBPARTITION s5' . "\n" . ')' . "\n" . ')'; $parser = new Parser($query); $this->assertEquals($query, $parser->statements[0]->build()); /* Assertion 2 */ $query = 'CREATE TABLE `pma_test` (' . "\n" . ' `test_id` int(32) NOT NULL,' . "\n" . ' `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP' . "\n" . ') ENGINE=InnoDB DEFAULT CHARSET=utf8' . "\n" . 'PARTITION BY RANGE (test_id)' . "\n" . '(' . "\n" . 'PARTITION p0 VALUES LESS THAN (250000) ENGINE=InnoDB,' . "\n" . 'PARTITION p1 VALUES LESS THAN (500000) ENGINE=InnoDB,' . "\n" . 'PARTITION p2 VALUES LESS THAN (750000) ENGINE=InnoDB,' . "\n" . 'PARTITION p3 VALUES LESS THAN (1000000) ENGINE=InnoDB,' . "\n" . 'PARTITION p4 VALUES LESS THAN (1250000) ENGINE=InnoDB,' . "\n" . 'PARTITION p5 VALUES LESS THAN (1500000) ENGINE=InnoDB,' . "\n" . 'PARTITION p6 VALUES LESS THAN MAXVALUE ENGINE=InnoDB' . "\n" . ')'; $parser = new Parser($query); $this->assertEquals($query, $parser->statements[0]->build()); } /** * @return string[][] */ public function partitionQueriesProvider(): array { return [ [ 'subparts' => << <<statements[0]; $this->assertEquals($query, $stmt->build()); } public function testBuilderView(): void { $parser = new Parser( 'CREATE OR REPLACE VIEW xviewmytable AS SELECT mytable.id ' . 'AS id, mytable.personid AS personid FROM mytable ' . 'WHERE (mytable.birth > \'1990-01-19\') GROUP BY mytable.personid ;' ); $stmt = $parser->statements[0]; $this->assertEquals( 'CREATE OR REPLACE VIEW xviewmytable AS SELECT mytable.id ' . 'AS `id`, mytable.personid AS `personid` FROM mytable ' . 'WHERE (mytable.birth > \'1990-01-19\') GROUP BY mytable.personid ', $stmt->build() ); $parser = new Parser( 'CREATE VIEW myView (vid, vfirstname) AS ' . 'SELECT id, first_name FROM employee WHERE id = 1' ); $stmt = $parser->statements[0]; $this->assertEquals( 'CREATE VIEW myView (vid, vfirstname) AS ' . 'SELECT id, first_name FROM employee WHERE id = 1 ', $stmt->build() ); $parser = new Parser( 'CREATE OR REPLACE VIEW myView (vid, vfirstname) AS ' . 'SELECT id, first_name FROM employee WHERE id = 1' ); $stmt = $parser->statements[0]; $this->assertEquals( 'CREATE OR REPLACE VIEW myView (vid, vfirstname) AS ' . 'SELECT id, first_name FROM employee WHERE id = 1 ', $stmt->build() ); // Assert the builder can build wrong syntax select expressions $parser = new Parser( 'CREATE OR REPLACE VIEW myView (vid, vfirstname) AS ' . 'SELECT id, first_name, FROMzz employee WHERE id = 1' ); $stmt = $parser->statements[0]; $this->assertEquals( 'CREATE OR REPLACE VIEW myView (vid, vfirstname) AS ' . 'SELECT id, first_name, FROMzz employee WHERE id = 1 ', $stmt->build() ); $parser = new Parser( 'CREATE OR REPLACE VIEW myView (vid, vfirstname) AS ' . 'SELECT id, first_name, FROMzz employee WHERE id = 1 ' . 'UNION ' . 'SELECT id, first_name, FROMzz employee WHERE id = 2 ' ); $stmt = $parser->statements[0]; $this->assertEquals( 'CREATE OR REPLACE VIEW myView (vid, vfirstname) AS ' . 'SELECT id, first_name, FROMzz employee WHERE id = 1 ' . 'UNION ' . 'SELECT id, first_name, FROMzz employee WHERE id = 2 ', $stmt->build() ); $parser = new Parser('CREATE VIEW `view_programlevelpartner` AS SELECT `p`.`country_id`' . 'AS `country_id` FROM `program_level_partner` `p` ORDER BY `p`.`id` asc'); $stmt = $parser->statements[0]; $this->assertEquals( 'CREATE VIEW `view_programlevelpartner` AS SELECT `p`.`country_id`' . ' AS `country_id` FROM `program_level_partner` AS `p` ORDER BY `p`.`id` ASC ', $stmt->build() ); $parser = new Parser('CREATE VIEW `view_zg_bycountry` AS ' . 'SELECT `d`.`zg_id` FROM `view_zg_value` AS `d` GROUP BY `d`.`ind_id`;'); $stmt = $parser->statements[0]; $this->assertEquals( 'CREATE VIEW `view_zg_bycountry` AS ' . 'SELECT `d`.`zg_id` FROM `view_zg_value` AS `d` GROUP BY `d`.`ind_id` ', $stmt->build() ); $parser = new Parser('CREATE view view_name AS WITH aa(col1)' . ' AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FROM cte AS `d` '); $stmt = $parser->statements[0]; $this->assertEquals( 'CREATE view view_name AS WITH aa(col1)' . ' AS (SELECT 1 UNION ALL SELECT 2) SELECT col1 FROM cte AS `d` ', $stmt->build() ); } public function testBuilderViewComplex(): void { $parser = new Parser( 'CREATE VIEW withclause AS' . "\n" . "\n" . 'WITH cte AS (' . "\n" . 'SELECT p.name, p.shape' . "\n" . 'FROM gis_all as p' . "\n" . ')' . "\n" . "\n" . 'SELECT cte.*' . "\n" . 'FROM cte' . "\n" . 'CROSS JOIN gis_all;' ); $stmt = $parser->statements[0]; $this->assertEquals( 'CREATE VIEW withclause AS ' . 'WITH cte AS (' . 'SELECT p.name, p.shape ' . 'FROM gis_all AS `p`' . ') ' . 'SELECT cte.* ' . 'FROM cte ' . 'CROSS JOIN gis_all ', $stmt->build() ); $parser = new Parser( 'CREATE VIEW withclause2 AS' . "\n" . "\n" . 'WITH cte AS (' . "\n" . "\t" . 'SELECT p.name, p.shape' . "\n" . "\t" . 'FROM gis_all as p' . "\n" . '), cte2 AS (' . "\n" . "\t" . 'SELECT p.name as n2, p.shape as sh2' . "\n" . "\t" . 'FROM gis_all as p' . "\n" . ')' . "\n" . "\n" . 'SELECT cte.*,cte2.*' . "\n" . 'FROM cte,cte2' . "\n" . 'CROSS JOIN gis_all;' ); $stmt = $parser->statements[0]; $this->assertEquals( 'CREATE VIEW withclause2 AS ' . 'WITH cte AS (' . 'SELECT p.name, p.shape' . ' FROM gis_all AS `p`' . '), cte2 AS (' . 'SELECT p.name AS `n2`, p.shape AS `sh2`' . ' FROM gis_all AS `p`' . ')' . ' SELECT cte.*, cte2.* ' . 'FROM cte, cte2' . ' CROSS JOIN gis_all ', $stmt->build() ); } public function testBuilderCreateProcedure(): void { $parser = new Parser( 'CREATE DEFINER=`root`@`%`' . ' PROCEDURE `test2`(IN `_var` INT) DETERMINISTIC' . ' MODIFIES SQL DATA SELECT _var' ); /** @var CreateStatement $stmt */ $stmt = $parser->statements[0]; $this->assertSame( 'CREATE DEFINER=`root`@`%`' . ' PROCEDURE `test2` (IN `_var` INT) DETERMINISTIC' . ' MODIFIES SQL DATA SELECT _var', $stmt->build() ); $parser = new Parser( 'CREATE DEFINER=`root`@`%`' . ' PROCEDURE `test2`(IN `_var` INT) NOT DETERMINISTIC NO SQL' . ' SQL SECURITY INVOKER NO SQL SQL SECURITY INVOKER SELECT _var' ); /** @var CreateStatement $stmt */ $stmt = $parser->statements[0]; $this->assertSame( 'CREATE DEFINER=`root`@`%`' . ' PROCEDURE `test2` (IN `_var` INT) NOT DETERMINISTIC NO SQL' . ' SQL SECURITY INVOKER NO SQL SQL SECURITY INVOKER SELECT _var', $stmt->build() ); $this->assertFalse($stmt->entityOptions->isEmpty()); $this->assertFalse($stmt->options->isEmpty()); $this->assertSame( 'DEFINER=`root`@`%` PROCEDURE', $stmt->options->__toString() ); $this->assertSame( '`test2`', $stmt->name->__toString() ); $this->assertSame( '(IN `_var` INT)', ParameterDefinition::build($stmt->parameters) ); $this->assertSame( 'NOT DETERMINISTIC NO SQL SQL SECURITY INVOKER NO SQL SQL SECURITY INVOKER', $stmt->entityOptions->__toString() ); $this->assertSame( 'SELECT _var', TokensList::build($stmt->body) ); } public function testBuilderCreateFunction(): void { $parser = new Parser( 'DELIMITER $$' . "\n" . 'CREATE DEFINER=`root`@`localhost`' . ' FUNCTION `inventory_in_stock`(`p_inventory_id` INT) RETURNS tinyint(1)' . ' READS SQL DATA' . ' COMMENT \'My best function written by a friend\'\'s friend\'' . ' BEGIN' . "\n" . ' DECLARE v_rentals INT;' . "\n" . ' DECLARE v_out INT;' . "\n" . "\n" . ' ' . "\n" . ' ' . "\n" . "\n" . ' SELECT COUNT(*) INTO v_rentals' . "\n" . ' FROM rental' . "\n" . ' WHERE inventory_id = p_inventory_id;' . "\n" . "\n" . ' IF v_rentals = 0 THEN' . "\n" . ' RETURN TRUE;' . "\n" . ' END IF;' . "\n" . "\n" . ' SELECT COUNT(rental_id) INTO v_out' . "\n" . ' FROM inventory LEFT JOIN rental USING(inventory_id)' . "\n" . ' WHERE inventory.inventory_id = p_inventory_id' . "\n" . ' AND rental.return_date IS NULL;' . "\n" . "\n" . ' IF v_out > 0 THEN' . "\n" . ' RETURN FALSE;' . "\n" . ' ELSE' . "\n" . ' RETURN TRUE;' . "\n" . ' END IF;' . "\n" . 'END' ); /** @var CreateStatement $stmt */ $stmt = $parser->statements[0]; $this->assertSame( 'CREATE DEFINER=`root`@`localhost`' . ' FUNCTION `inventory_in_stock` (`p_inventory_id` INT) RETURNS TINYINT(1)' . ' READS SQL DATA' . ' COMMENT \'My best function written by a friend\'\'s friend\'' . ' BEGIN' . "\n" . ' DECLARE v_rentals INT;' . "\n" . ' DECLARE v_out INT;' . "\n" . "\n" . ' ' . "\n" . ' ' . "\n" . "\n" . ' SELECT COUNT(*) INTO v_rentals' . "\n" . ' FROM rental' . "\n" . ' WHERE inventory_id = p_inventory_id;' . "\n" . "\n" . ' IF v_rentals = 0 THEN' . "\n" . ' RETURN TRUE;' . "\n" . ' END IF;' . "\n" . "\n" . ' SELECT COUNT(rental_id) INTO v_out' . "\n" . ' FROM inventory LEFT JOIN rental USING(inventory_id)' . "\n" . ' WHERE inventory.inventory_id = p_inventory_id' . "\n" . ' AND rental.return_date IS NULL;' . "\n" . "\n" . ' IF v_out > 0 THEN' . "\n" . ' RETURN FALSE;' . "\n" . ' ELSE' . "\n" . ' RETURN TRUE;' . "\n" . ' END IF;' . "\n" . 'END', $stmt->build() ); $this->assertFalse($stmt->entityOptions->isEmpty()); $this->assertFalse($stmt->options->isEmpty()); $this->assertSame( 'DEFINER=`root`@`localhost` FUNCTION', $stmt->options->__toString() ); $this->assertSame( '`inventory_in_stock`', $stmt->name->__toString() ); $this->assertSame( '(`p_inventory_id` INT)', ParameterDefinition::build($stmt->parameters) ); $this->assertSame( 'READS SQL DATA COMMENT \'My best function written by a friend\'\'s friend\'', $stmt->entityOptions->__toString() ); $this->assertSame( 'BEGIN' . "\n" . ' DECLARE v_rentals INT;' . "\n" . ' DECLARE v_out INT;' . "\n" . "\n" . ' ' . "\n" . ' ' . "\n" . "\n" . ' SELECT COUNT(*) INTO v_rentals' . "\n" . ' FROM rental' . "\n" . ' WHERE inventory_id = p_inventory_id;' . "\n" . "\n" . ' IF v_rentals = 0 THEN' . "\n" . ' RETURN TRUE;' . "\n" . ' END IF;' . "\n" . "\n" . ' SELECT COUNT(rental_id) INTO v_out' . "\n" . ' FROM inventory LEFT JOIN rental USING(inventory_id)' . "\n" . ' WHERE inventory.inventory_id = p_inventory_id' . "\n" . ' AND rental.return_date IS NULL;' . "\n" . "\n" . ' IF v_out > 0 THEN' . "\n" . ' RETURN FALSE;' . "\n" . ' ELSE' . "\n" . ' RETURN TRUE;' . "\n" . ' END IF;' . "\n" . 'END', TokensList::build($stmt->body) ); } public function testBuilderTrigger(): void { $stmt = new CreateStatement(); $stmt->options = new OptionsArray(['TRIGGER']); $stmt->name = new Expression('ins_sum'); $stmt->entityOptions = new OptionsArray(['BEFORE', 'INSERT']); $stmt->table = new Expression('account'); $stmt->body = 'SET @sum = @sum + NEW.amount'; $this->assertEquals( 'CREATE TRIGGER ins_sum BEFORE INSERT ON account ' . 'FOR EACH ROW SET @sum = @sum + NEW.amount', $stmt->build() ); } public function testBuilderRoutine(): void { $parser = new Parser( 'DELIMITER $$' . "\n" . 'CREATE FUNCTION test (IN `i` INT) RETURNS VARCHAR ' . 'BEGIN ' . 'DECLARE name VARCHAR DEFAULT ""; ' . 'SELECT name INTO name FROM employees WHERE id = i; ' . 'RETURN name; ' . 'END' ); $stmt = $parser->statements[0]; $this->assertEquals( 'CREATE FUNCTION test (IN `i` INT) RETURNS VARCHAR ' . ' BEGIN ' . 'DECLARE name VARCHAR DEFAULT ""; ' . 'SELECT name INTO name FROM employees WHERE id = i; ' . 'RETURN name; ' . 'END', $stmt->build() ); } public function testBuildSelect(): void { $parser = new Parser('CREATE TABLE new_tbl SELECT * FROM orig_tbl'); $this->assertEquals( 'CREATE TABLE new_tbl SELECT * FROM orig_tbl', $parser->statements[0]->build() ); } public function testBuildCreateTableSortedIndex(): void { $parser = new Parser( <<<'SQL' CREATE TABLE `entries` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fk_ug_id` int(11) DEFAULT NULL, `amount` decimal(10,2) DEFAULT NULL, PRIMARY KEY (`id`), KEY `entries__ug` (`fk_ug_id` DESC), KEY `entries__ug2` (`fk_ug_id` ASC), KEY `33` (`id` ASC, `fk_ug_id` DESC) ) /*!50100 TABLESPACE `innodb_system` */ ENGINE=InnoDB AUTO_INCREMENT=4465 DEFAULT CHARSET=utf8 SQL ); /** @var CreateStatement $stmt */ $stmt = $parser->statements[0]; $tableBody = <<<'SQL' ( `id` int(11) NOT NULL AUTO_INCREMENT, `fk_ug_id` int(11) DEFAULT NULL, `amount` decimal(10,2) DEFAULT NULL, PRIMARY KEY (`id`), KEY `entries__ug` (`fk_ug_id` DESC), KEY `entries__ug2` (`fk_ug_id` ASC), KEY `33` (`id` ASC,`fk_ug_id` DESC) ) SQL; $this->assertEquals( $tableBody, CreateDefinition::build($stmt->fields) ); $this->assertEquals( 'CREATE TABLE `entries` ' . $tableBody . ' ENGINE=InnoDB AUTO_INCREMENT=4465 DEFAULT CHARSET=utf8 TABLESPACE `innodb_system`', $stmt->build() ); } public function testBuildCreateTableComplexIndexes(): void { // phpcs:disable Generic.Files.LineLength.TooLong $parser = new Parser( <<<'SQL' CREATE TABLE `page_rebuild_control` ( `proc_row_number` int DEFAULT NULL, `place_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `place_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `place_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `waterway_id` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `cache_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `place_active` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `alias_type` int NOT NULL DEFAULT '0', `status` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `time_taken` float DEFAULT NULL, PRIMARY KEY (`place_id`,`place_type`) USING BTREE, KEY `place_type_idx` (`place_type`(10)), KEY `cached_time_idx` (`cache_updated`), KEY `active_idx` (`place_active`), KEY `status_idx` (`status`), KEY `waterway_idx` (`waterway_id`), KEY `time_taken_idx` (`time_taken`), KEY `updated_tz_ind3` ( -- my expression (convert_tz(`cache_updated`,_utf8mb4'GMT',_utf8mb4'GB')) ) COMMENT 'foo\'s', KEY `updated_tz_ind_two_indexes_commented` ( -- first expression ( convert_tz(`cache_updated`,_utf8mb4'GMT',_utf8mb4'GB') ) , -- second expression ( convert_tz(`cache_updated`,_utf8mb4'GMT',_utf8mb4'FR') ) ) -- and now some options COMMENT 'haha, this is a complex and indented case', KEY `alias_type_idx` (`alias_type`), KEY `updated_tz_ind2` ((convert_tz(`cache_updated`,_utf8mb4'GMT',_utf8mb4'GB'))) COMMENT 'foo\'s', KEY `updated_tz_ind_two_indexes` ((convert_tz(`cache_updated`,_utf8mb4'GMT',_utf8mb4'GB')), (convert_tz(`cache_updated`,_utf8mb4'GMT',_utf8mb4'FR'))) COMMENT 'bar\'s', KEY `updated_tz_ind` ((convert_tz(`cache_updated`,_utf8mb4'GMT',_utf8mb4'GB'))) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; SQL ); // phpcs:enable /** @var CreateStatement $stmt */ $stmt = $parser->statements[0]; // phpcs:disable Generic.Files.LineLength.TooLong $tableBody = <<<'SQL' ( `proc_row_number` int DEFAULT NULL, `place_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `place_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `place_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `waterway_id` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `cache_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `place_active` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `alias_type` int NOT NULL DEFAULT '0', `status` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `time_taken` float DEFAULT NULL, PRIMARY KEY (`place_id`,`place_type`) USING BTREE, KEY `place_type_idx` (`place_type`(10)), KEY `cached_time_idx` (`cache_updated`), KEY `active_idx` (`place_active`), KEY `status_idx` (`status`), KEY `waterway_idx` (`waterway_id`), KEY `time_taken_idx` (`time_taken`), KEY `updated_tz_ind3` ((convert_tz(`cache_updated`,_utf8mb4'GMT',_utf8mb4'GB'))) COMMENT 'foo\'s', KEY `updated_tz_ind_two_indexes_commented` (( convert_tz(`cache_updated`,_utf8mb4'GMT',_utf8mb4'GB') ), ( convert_tz(`cache_updated`,_utf8mb4'GMT',_utf8mb4'FR') )) COMMENT 'haha, this is a complex and indented case', KEY `alias_type_idx` (`alias_type`), KEY `updated_tz_ind2` ((convert_tz(`cache_updated`,_utf8mb4'GMT',_utf8mb4'GB'))) COMMENT 'foo\'s', KEY `updated_tz_ind_two_indexes` ((convert_tz(`cache_updated`,_utf8mb4'GMT',_utf8mb4'GB')), (convert_tz(`cache_updated`,_utf8mb4'GMT',_utf8mb4'FR'))) COMMENT 'bar\'s', KEY `updated_tz_ind` ((convert_tz(`cache_updated`,_utf8mb4'GMT',_utf8mb4'GB'))) ) SQL; // phpcs:enable $this->assertEquals( $tableBody, CreateDefinition::build($stmt->fields) ); $this->assertEquals( 'CREATE TABLE `page_rebuild_control` ' . $tableBody . ' ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci', $stmt->build() ); } } sql-parser-5.9.0/tests/Builder/DeleteStatementTest.php000066400000000000000000000053241455302707200230170ustar00rootroot00000000000000statements[0]; $this->assertEquals($query, $stmt->build()); /* Assertion 2 */ $query = 'DELETE IGNORE FROM t1 WHERE 1=1'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); /* Assertion 3 */ $query = 'DELETE IGNORE FROM t1 WHERE 1=1 ORDER BY id ASC'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); /* Assertion 4 */ $query = 'DELETE IGNORE FROM t1 WHERE 1=1 ORDER BY id ASC LIMIT 0, 25'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); /* Assertion 5 */ $query = 'DELETE IGNORE FROM t1'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); /* Assertion 6 */ $query = 'DELETE LOW_PRIORITY FROM `test`.users ' . 'WHERE `id`<3 AND (username="Dan" OR username="Paul") ORDER BY id ASC'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); } public function testBuilderMultiTable(): void { /* Assertion 1 */ $query = 'DELETE QUICK table1, table2.* FROM table1 AS `t1`, table2 AS `t2`'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); /* Assertion 2 */ $query = 'DELETE QUICK table1, table2.* FROM table1 AS `t1`, table2 AS `t2` WHERE 1=1'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); /* Assertion 3 */ $query = 'DELETE QUICK FROM table1, table2.* USING table1 AS `t1`, table2 AS `t2` WHERE 1=1'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); /* Assertion 4 */ $query = 'DELETE LOW_PRIORITY t1, t2 FROM t1 INNER JOIN t2 ' . 'INNER JOIN t3 WHERE t1.id=t2.id AND t2.id=t3.id'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); } } sql-parser-5.9.0/tests/Builder/ExplainStatementTest.php000066400000000000000000000056111455302707200232140ustar00rootroot00000000000000statements[0]; $this->assertEquals( 'EXPLAIN SELECT * FROM test', $stmt->build() ); /* Assertion 2 */ $query = 'EXPLAIN ANALYZE SELECT * FROM tablename;'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'EXPLAIN ANALYZE SELECT * FROM tablename', $stmt->build() ); /* Assertion 3 */ $query = 'DESC ANALYZE SELECT * FROM tablename;'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'DESC ANALYZE SELECT * FROM tablename', $stmt->build() ); /* Assertion 4 */ $query = 'ANALYZE SELECT * FROM tablename;'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'ANALYZE SELECT * FROM tablename', $stmt->build() ); /* Assertion 5 */ $query = 'DESCRIBE tablename;'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'DESCRIBE `tablename`', $stmt->build() ); /* Assertion 6 */ $query = 'DESC FOR CONNECTION 458'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'DESC FOR CONNECTION 458', $stmt->build() ); /* Assertion 7 */ $query = 'EXPLAIN FORMAT=TREE SELECT * FROM db;'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'EXPLAIN FORMAT=TREE SELECT * FROM db', $stmt->build() ); /* Assertion 8 */ $query = 'DESCRIBE tablename colname;'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'DESCRIBE `tablename` `colname`', $stmt->build() ); /* Assertion 9 */ $query = 'DESCRIBE tablename \'col%me\';'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'DESCRIBE `tablename` `col%me`', $stmt->build() ); /* Assertion 9 */ $query = 'DESCRIBE db.tablename \'col%me\';'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'DESCRIBE `db`.`tablename` `col%me`', $stmt->build() ); } } sql-parser-5.9.0/tests/Builder/InsertStatementTest.php000066400000000000000000000041151455302707200230560ustar00rootroot00000000000000statements[0]; $this->assertEquals( 'INSERT INTO tbl(`col1`, `col2`, `col3`) VALUES (1, "str", 3.14)', $stmt->build() ); /* Assertion 2 */ /* Reserved keywords (with backquotes as field name) */ $parser = new Parser('INSERT INTO tbl(`order`) VALUES (1)'); $stmt = $parser->statements[0]; $this->assertEquals( 'INSERT INTO tbl(`order`) VALUES (1)', $stmt->build() ); /* Assertion 3 */ /* INSERT ... SET ... */ $parser = new Parser('INSERT INTO tbl SET FOO = 1'); $stmt = $parser->statements[0]; $this->assertEquals( 'INSERT INTO tbl SET FOO = 1', $stmt->build() ); /* Assertion 4 */ /* INSERT ... SELECT ... */ $parser = new Parser('INSERT INTO tbl SELECT * FROM bar'); $stmt = $parser->statements[0]; $this->assertEquals( 'INSERT INTO tbl SELECT * FROM bar', $stmt->build() ); /* Assertion 5 */ /* INSERT ... ON DUPLICATE KEY UPDATE ... */ $parser = new Parser('INSERT INTO tbl SELECT * FROM bar ON DUPLICATE KEY UPDATE baz = 1'); $stmt = $parser->statements[0]; $this->assertEquals( 'INSERT INTO tbl SELECT * FROM bar ON DUPLICATE KEY UPDATE baz = 1', $stmt->build() ); /* Assertion 6 */ /* INSERT [OPTIONS] INTO ... */ $parser = new Parser('INSERT DELAYED IGNORE INTO tbl SELECT * FROM bar'); $stmt = $parser->statements[0]; $this->assertEquals( 'INSERT DELAYED IGNORE INTO tbl SELECT * FROM bar', $stmt->build() ); } } sql-parser-5.9.0/tests/Builder/LoadStatementTest.php000066400000000000000000000065701455302707200225000ustar00rootroot00000000000000statements[0]; $this->assertEquals( 'LOAD DATA CONCURRENT INFILE ' . '\'employee1.txt\' INTO TABLE employee', $stmt->build() ); /* Assertion 2 */ $query = 'LOAD DATA INFILE \'/tmp/test.txt\' ' . 'INTO TABLE test FIELDS TERMINATED BY ' . '\',\' IGNORE 1 LINES'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'LOAD DATA INFILE \'/tmp/test.txt\' ' . 'INTO TABLE test FIELDS TERMINATED BY ' . '\',\' IGNORE 1 LINES', $stmt->build() ); /* Assertion 3 */ $query = 'LOAD DATA INFILE \'employee3.txt\' ' . 'INTO TABLE employee FIELDS TERMINATED BY ' . '\',\' ENCLOSED BY \'"\''; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'LOAD DATA INFILE \'employee3.txt\' ' . 'INTO TABLE employee FIELDS TERMINATED BY ' . '\',\' ENCLOSED BY \'"\'', $stmt->build() ); /* Assertion 4 */ $query = 'LOAD DATA INFILE \'/tmp/test.txt\' IGNORE ' . 'INTO TABLE test ' . 'CHARACTER SET \'utf8\' ' . 'COLUMNS TERMINATED BY \',\' ' . 'LINES TERMINATED BY \';\' ' . 'IGNORE 1 LINES (col1, col2) SET @a = 1'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'LOAD DATA INFILE \'/tmp/test.txt\' IGNORE ' . 'INTO TABLE test ' . 'CHARACTER SET \'utf8\' ' . 'COLUMNS TERMINATED BY \',\' ' . 'LINES TERMINATED BY \';\' ' . 'IGNORE 1 LINES (col1, col2) SET @a = 1', $stmt->build() ); /* Assertion 5 */ $query = 'LOAD DATA INFILE \'/tmp/test.txt\' REPLACE ' . 'INTO TABLE test COLUMNS TERMINATED BY \',\' IGNORE 1 ROWS'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'LOAD DATA INFILE \'/tmp/test.txt\' REPLACE ' . 'INTO TABLE test COLUMNS TERMINATED BY \',\' IGNORE 1 ROWS', $stmt->build() ); /* Assertion 6 */ $query = 'LOAD DATA INFILE \'/tmp/test.txt\' IGNORE ' . 'INTO TABLE test PARTITION (p0, p1, p2) CHARACTER SET \'utf8\' ' . 'COLUMNS TERMINATED BY \',\' LINES TERMINATED BY \';\' ' . 'IGNORE 1 LINES (col1, col2) SET @a = 1'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'LOAD DATA INFILE \'/tmp/test.txt\' IGNORE ' . 'INTO TABLE test PARTITION (p0, p1, p2) CHARACTER SET \'utf8\' ' . 'COLUMNS TERMINATED BY \',\' LINES TERMINATED BY \';\' ' . 'IGNORE 1 LINES (col1, col2) SET @a = 1', $stmt->build() ); } } sql-parser-5.9.0/tests/Builder/LockStatementTest.php000066400000000000000000000033721455302707200225060ustar00rootroot00000000000000statements[0]; $this->assertEquals($query, $stmt->build()); /* Assertion 2 */ $query = 'LOCK TABLES table1 AS `t1` READ'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); /* Assertion 3 */ $query = 'LOCK TABLES table1 AS `t1` LOW_PRIORITY WRITE'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); /* Assertion 4 */ $query = 'LOCK TABLES table1 AS `t1` WRITE'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); /* Assertion 5 */ $query = 'LOCK TABLES table1 AS `t1` READ LOCAL, table2 AS `t2` WRITE'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); /* Assertion 6 */ $query = 'LOCK TABLES table1 READ LOCAL, table2 AS `t2` WRITE'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); /* Assertion 7 */ $query = 'UNLOCK TABLES'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); } } sql-parser-5.9.0/tests/Builder/PurgeStatementTest.php000066400000000000000000000012041455302707200226700ustar00rootroot00000000000000statements[0]; $this->assertEquals($query, $stmt->build()); $query = 'PURGE BINARY LOGS BEFORE \'2008-04-02 22:46:26\''; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); } } sql-parser-5.9.0/tests/Builder/RenameStatementTest.php000066400000000000000000000017371455302707200230300ustar00rootroot00000000000000statements[0]; $this->assertEquals( $query, $stmt->build() ); $query = 'RENAME TABLE current_db.tbl_name TO other_db.tbl_name'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( $query, $stmt->build() ); $query = 'RENAME TABLE old_table1 TO new_table1, old_table2 TO new_table2, old_table3 TO new_table3'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( $query, $stmt->build() ); } } sql-parser-5.9.0/tests/Builder/ReplaceStatementTest.php000066400000000000000000000031421455302707200231640ustar00rootroot00000000000000statements[0]; $this->assertEquals( 'REPLACE INTO tbl(`col1`, `col2`, `col3`) VALUES (1, "str", 3.14)', $stmt->build() ); } public function testBuilderSet(): void { $parser = new Parser('REPLACE INTO tbl(col1, col2, col3) SET col1=1, col2="str", col3=3.14'); $stmt = $parser->statements[0]; $this->assertEquals( 'REPLACE INTO tbl(`col1`, `col2`, `col3`) SET col1 = 1, col2 = "str", col3 = 3.14', $stmt->build() ); } public function testBuilderSelect(): void { $parser = new Parser('REPLACE INTO tbl(col1, col2, col3) SELECT col1, col2, col3 FROM tbl2'); $stmt = $parser->statements[0]; $this->assertEquals( 'REPLACE INTO tbl(`col1`, `col2`, `col3`) SELECT col1, col2, col3 FROM tbl2', $stmt->build() ); } public function testBuilderSelectDelayed(): void { $parser = new Parser('REPLACE DELAYED INTO tbl(col1, col2, col3) SELECT col1, col2, col3 FROM tbl2'); $stmt = $parser->statements[0]; $this->assertEquals( 'REPLACE DELAYED INTO tbl(`col1`, `col2`, `col3`) SELECT col1, col2, col3 FROM tbl2', $stmt->build() ); } } sql-parser-5.9.0/tests/Builder/SelectStatementTest.php000066400000000000000000000272651455302707200230440ustar00rootroot00000000000000statements[0]; $this->assertEquals( 'SELECT * FROM t1 LEFT JOIN (t2, t3, t4) ' . 'ON (t2.a=t1.a AND t3.b=t1.b AND t4.c=t1.c)', $stmt->build() ); $parser = new Parser('SELECT NULL IS NULL'); $stmt = $parser->statements[0]; $this->assertEquals('SELECT NULL IS NULL', $stmt->build()); $parser = new Parser('SELECT NOT 1'); $stmt = $parser->statements[0]; $this->assertEquals('SELECT NOT 1', $stmt->build()); $parser = new Parser('SELECT 1 BETWEEN 0 AND 2'); $stmt = $parser->statements[0]; $this->assertEquals('SELECT 1 BETWEEN 0 AND 2', $stmt->build()); $parser = new Parser("SELECT 'a' NOT REGEXP '^[a-d]'"); $stmt = $parser->statements[0]; $this->assertEquals("SELECT 'a' NOT REGEXP '^[a-d]'", $stmt->build()); $parser = new Parser("SELECT 'a' RLIKE 'a'"); $stmt = $parser->statements[0]; $this->assertEquals("SELECT 'a' RLIKE 'a'", $stmt->build()); } public function testBuilderUnion(): void { $parser = new Parser('SELECT 1 UNION SELECT 2'); $stmt = $parser->statements[0]; $this->assertEquals( 'SELECT 1 UNION SELECT 2', $stmt->build() ); } public function testBuilderWithIsNull(): void { $parser = new Parser('SELECT `test3`.`t1` is not null AS `is_not_null` FROM `test3` ;'); $stmt = $parser->statements[0]; $this->assertEquals('SELECT `test3`.`t1` is not null AS `is_not_null` FROM `test3`', $stmt->build()); $parser = new Parser('SELECT test3.t1 is null AS `col1` FROM test3'); $stmt = $parser->statements[0]; $this->assertEquals('SELECT test3.t1 is null AS `col1` FROM test3', $stmt->build()); } public function testBuilderOrderByNull(): void { $query = 'SELECT * FROM some_table ORDER BY some_col IS NULL DESC;'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals('SELECT * FROM some_table ORDER BY some_col IS NULL DESC', $stmt->build()); $query = 'SELECT * FROM some_table ORDER BY some_col IS NOT NULL;'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals('SELECT * FROM some_table ORDER BY some_col IS NOT NULL ASC', $stmt->build()); } public function testBuilderAlias(): void { $parser = new Parser( 'SELECT sgu.id, sgu.email_address FROM `sf_guard_user` sgu ' . 'RIGHT JOIN `student_course_booking` scb ON sgu.id = scb.user_id ' . 'WHERE `has_found_course` = \'1\' GROUP BY sgu.id ' . 'ORDER BY scb.id DESC LIMIT 0,300' ); $stmt = $parser->statements[0]; $this->assertEquals( 'SELECT sgu.id, sgu.email_address FROM `sf_guard_user` AS `sgu` ' . 'RIGHT JOIN `student_course_booking` AS `scb` ON sgu.id = scb.user_id ' . 'WHERE `has_found_course` = \'1\' GROUP BY sgu.id ' . 'ORDER BY scb.id DESC LIMIT 0, 300', $stmt->build() ); } public function testBuilderAliasOrder(): void { $parser = new Parser( 'SELECT sgu.id, sgu.email_address FROM `sf_guard_user` sgu ' . 'RIGHT JOIN `student_course_booking` scb ON sgu.id = scb.user_id ' . 'WHERE `has_found_course` = \'1\' GROUP BY sgu.id ' . 'ORDER BY scb.id LIMIT 0,300' ); $stmt = $parser->statements[0]; $this->assertEquals( 'SELECT sgu.id, sgu.email_address FROM `sf_guard_user` AS `sgu` ' . 'RIGHT JOIN `student_course_booking` AS `scb` ON sgu.id = scb.user_id ' . 'WHERE `has_found_course` = \'1\' GROUP BY sgu.id ' . 'ORDER BY scb.id ASC LIMIT 0, 300', $stmt->build() ); } public function testBuilderAliasOrderMultiple(): void { $parser = new Parser( 'SELECT sgu.id, sgu.email_address FROM `sf_guard_user` sgu ' . 'RIGHT JOIN `student_course_booking` scb ON sgu.id = scb.user_id ' . 'WHERE `has_found_course` = \'1\' GROUP BY sgu.id ' . 'ORDER BY scb.id DESC, scb.order LIMIT 0,300' ); $stmt = $parser->statements[0]; $this->assertEquals( 'SELECT sgu.id, sgu.email_address FROM `sf_guard_user` AS `sgu` ' . 'RIGHT JOIN `student_course_booking` AS `scb` ON sgu.id = scb.user_id ' . 'WHERE `has_found_course` = \'1\' GROUP BY sgu.id ' . 'ORDER BY scb.id DESC, scb.order ASC LIMIT 0, 300', $stmt->build() ); } public function testBuilderAliasOrderMultipleFunctions(): void { $parser = new Parser( 'SELECT sgu.id, sgu.email_address FROM `sf_guard_user` sgu ' . 'RIGHT JOIN `student_course_booking` scb ON sgu.id = scb.user_id ' . 'WHERE `has_found_course` = \'1\' GROUP BY sgu.id ' . 'ORDER BY scb.id DESC, YEAR(scb.dob) LIMIT 0,300' ); $stmt = $parser->statements[0]; $this->assertEquals( 'SELECT sgu.id, sgu.email_address FROM `sf_guard_user` AS `sgu` ' . 'RIGHT JOIN `student_course_booking` AS `scb` ON sgu.id = scb.user_id ' . 'WHERE `has_found_course` = \'1\' GROUP BY sgu.id ' . 'ORDER BY scb.id DESC, YEAR(scb.dob) ASC LIMIT 0, 300', $stmt->build() ); } public function testBuilderAliasGroupByMultipleFunctions(): void { $parser = new Parser( 'SELECT sgu.id, sgu.email_address FROM `sf_guard_user` sgu ' . 'RIGHT JOIN `student_course_booking` scb ON sgu.id = scb.user_id ' . 'WHERE `has_found_course` = \'1\' ' . 'GROUP BY scb.id, YEAR(scb.dob) LIMIT 0,300' ); $stmt = $parser->statements[0]; $this->assertEquals( 'SELECT sgu.id, sgu.email_address FROM `sf_guard_user` AS `sgu` ' . 'RIGHT JOIN `student_course_booking` AS `scb` ON sgu.id = scb.user_id ' . 'WHERE `has_found_course` = \'1\' ' . 'GROUP BY scb.id, YEAR(scb.dob) LIMIT 0, 300', $stmt->build() ); } public function testBuilderAliasGroupByMultipleFunctionsOrderRemoved(): void { $parser = new Parser( 'SELECT sgu.id, sgu.email_address FROM `sf_guard_user` sgu ' . 'RIGHT JOIN `student_course_booking` scb ON sgu.id = scb.user_id ' . 'WHERE `has_found_course` = \'1\' ' . 'GROUP BY scb.id ASC, YEAR(scb.dob) DESC LIMIT 0,300' ); $stmt = $parser->statements[0]; // The order is not kept, is this an expected behavior ? // Ref: 4af06d24b041e499fb0e75ab3a98caf9a91700ef // Issue: #154 $this->assertEquals( 'SELECT sgu.id, sgu.email_address FROM `sf_guard_user` AS `sgu` ' . 'RIGHT JOIN `student_course_booking` AS `scb` ON sgu.id = scb.user_id ' . 'WHERE `has_found_course` = \'1\' ' . 'GROUP BY scb.id, YEAR(scb.dob) LIMIT 0, 300', $stmt->build() ); } public function testBuilderAliasOrderCase(): void { $parser = new Parser( 'SELECT * FROM `world_borders` ORDER BY CASE ' . 'WHEN REGION = 2 THEN 99 ' . 'WHEN REGION > 3 THEN REGION+1 ' . 'ELSE 100 END LIMIT 0,300' ); $stmt = $parser->statements[0]; $this->assertEquals( 'SELECT * FROM `world_borders` ORDER BY CASE ' . 'WHEN REGION = 2 THEN 99 ' . 'WHEN REGION > 3 THEN REGION+1 ' . 'ELSE 100 END ASC LIMIT 0, 300', $stmt->build() ); } public function testBuilderAliasGroupByCase(): void { $parser = new Parser( 'SELECT * FROM `world_borders` GROUP BY CASE ' . 'WHEN REGION = 2 THEN 99 ' . 'WHEN REGION > 3 THEN REGION+1 ' . 'ELSE 100 END LIMIT 0,300' ); $stmt = $parser->statements[0]; $this->assertEquals( 'SELECT * FROM `world_borders` GROUP BY CASE ' . 'WHEN REGION = 2 THEN 99 ' . 'WHEN REGION > 3 THEN REGION+1 ' . 'ELSE 100 END LIMIT 0, 300', $stmt->build() ); } public function testBuilderEndOptions(): void { /* Assertion 1 */ $query = 'SELECT pid, name2 FROM tablename WHERE pid = 20 FOR UPDATE'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( $query, $stmt->build() ); /* Assertion 2 */ $query = 'SELECT pid, name2 FROM tablename WHERE pid = 20 LOCK IN SHARE MODE'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( $query, $stmt->build() ); } public function testBuilderIntoOptions(): void { /* Assertion 1 */ $query = 'SELECT a, b, a+b INTO OUTFILE "/tmp/result.txt"' . ' COLUMNS TERMINATED BY \',\' OPTIONALLY ENCLOSED BY \'"\'' . ' LINES TERMINATED BY \'\n\'' . ' FROM test_table'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( $query, $stmt->build() ); } public function testBuilderGroupBy(): void { $query = 'SELECT COUNT(CustomerID), Country FROM Customers GROUP BY Country'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( $query, $stmt->build() ); } public function testBuilderGroupByWithRollup(): void { $query = 'SELECT year FROM movies GROUP BY year WITH ROLLUP'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( $query, $stmt->build() ); } public function testBuilderGroupByMultipleColumnsWithRollup(): void { $query = 'SELECT title, year FROM movies GROUP BY title, year WITH ROLLUP'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( $query, $stmt->build() ); } public function testBuilderGroupByWithRollupWithOtherClauses(): void { $query = 'SELECT year FROM movies GROUP BY year WITH ROLLUP ORDER BY year ASC LIMIT 0, 5'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( $query, $stmt->build() ); } public function testBuilderIndexHint(): void { $query = 'SELECT * FROM address FORCE INDEX (idx_fk_city_id) IGNORE KEY FOR GROUP BY (a, b,c) WHERE city_id<0'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( $query, $stmt->build() ); } public function testBuilderSurroundedByParanthesisWithLimit(): void { $query = '(SELECT first_name FROM `actor` LIMIT 1, 2)'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'SELECT first_name FROM `actor` LIMIT 1, 2', $stmt->build() ); } } sql-parser-5.9.0/tests/Builder/SetStatementTest.php000066400000000000000000000104751455302707200223530ustar00rootroot00000000000000statements[0]; $this->assertEquals( $query, $stmt->build() ); /* Assertion 2 */ $query = 'SET CHARSET \'utf8\''; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( $query, $stmt->build() ); /* Assertion 3 */ $query = 'SET NAMES \'utf8\''; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( $query, $stmt->build() ); /* Assertion 4 */ $query = 'SET NAMES \'utf8\' COLLATE \'utf8_general_ci\''; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'SET NAMES \'utf8\' COLLATE \'utf8_general_ci\'', $stmt->build() ); /* Assertion 5 */ $query = 'SET NAMES \'utf8\' DEFAULT'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'SET NAMES \'utf8\' DEFAULT', $stmt->build() ); /* Assertion 6 */ $query = 'SET sql_mode = \'TRADITIONAL\''; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'SET sql_mode = \'TRADITIONAL\'', $stmt->build() ); /* Assertion 7 */ $query = 'SET SESSION sql_mode = \'TRADITIONAL\''; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'SET SESSION sql_mode = \'TRADITIONAL\'', $stmt->build() ); /* Assertion 8 */ $query = 'SET GLOBAL sql_mode = \'TRADITIONAL\''; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'SET GLOBAL sql_mode = \'TRADITIONAL\'', $stmt->build() ); /* Assertion 9 */ $query = 'SET @@SESSION sql_mode = \'TRADITIONAL\''; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'SET SESSION sql_mode = \'TRADITIONAL\'', $stmt->build() ); /* Assertion 10 */ $query = 'SET @@GLOBAL sql_mode = \'TRADITIONAL\''; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'SET GLOBAL sql_mode = \'TRADITIONAL\'', $stmt->build() ); /* Assertion 11 */ $query = 'SET @@sql_mode = \'TRADITIONAL\''; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'SET @@sql_mode = \'TRADITIONAL\'', $stmt->build() ); /* Assertion 12 */ $query = 'SET PERSIST sql_mode = \'TRADITIONAL\''; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'SET PERSIST sql_mode = \'TRADITIONAL\'', $stmt->build() ); /* Assertion 13 */ $query = 'SET PERSIST_ONLY sql_mode = \'TRADITIONAL\''; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'SET PERSIST_ONLY sql_mode = \'TRADITIONAL\'', $stmt->build() ); /* Assertion 14 */ $query = 'SET @@PERSIST sql_mode = \'TRADITIONAL\''; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'SET PERSIST sql_mode = \'TRADITIONAL\'', $stmt->build() ); /* Assertion 15 */ $query = 'SET @@PERSIST_ONLY sql_mode = \'TRADITIONAL\''; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals( 'SET PERSIST_ONLY sql_mode = \'TRADITIONAL\'', $stmt->build() ); } } sql-parser-5.9.0/tests/Builder/StatementTest.php000066400000000000000000000023741455302707200216760ustar00rootroot00000000000000options = new OptionsArray(['DISTINCT']); $stmt->expr[] = new Expression('sakila', 'film', 'film_id', 'fid'); $stmt->expr[] = new Expression('COUNT(film_id)'); $stmt->from[] = new Expression('', 'film', ''); $stmt->from[] = new Expression('', 'actor', ''); $stmt->where[] = new Condition('film_id > 10'); $stmt->where[] = new Condition('OR'); $stmt->where[] = new Condition('actor.age > 25'); $stmt->limit = new Limit(1, 10); $this->assertEquals( 'SELECT DISTINCT `sakila`.`film`.`film_id` AS `fid`, COUNT(film_id) ' . 'FROM `film`, `actor` ' . 'WHERE film_id > 10 OR actor.age > 25 ' . 'LIMIT 10, 1', (string) $stmt ); } } sql-parser-5.9.0/tests/Builder/TransactionStatementTest.php000066400000000000000000000014101455302707200240720ustar00rootroot00000000000000statements[0]; $this->assertEquals( 'START TRANSACTION;' . 'SELECT @A:=SUM(salary) FROM table1 WHERE type=1;' . 'UPDATE table2 SET summary = @A WHERE type=1;' . 'COMMIT', $stmt->build() ); } } sql-parser-5.9.0/tests/Builder/TruncateStatementTest.php000066400000000000000000000016431455302707200234020ustar00rootroot00000000000000statements[0]; $this->assertEquals($query, $stmt->build()); } public function testBuilderDbtable(): void { $query = 'TRUNCATE TABLE mydb.mytable;'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); } public function testBuilderDbtableBackQuotes(): void { $query = 'TRUNCATE TABLE `mydb`.`mytable`;'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals($query, $stmt->build()); } } sql-parser-5.9.0/tests/Builder/UpdateStatementTest.php000066400000000000000000000026201455302707200230330ustar00rootroot00000000000000statements[0]; $this->assertEquals( 'UPDATE user AS `u` LEFT JOIN user_detail AS `ud` ON u.id = ud.user_id SET ud.ip = \'33\' WHERE u.id = 1', $stmt->build() ); /* Assertion 2 */ $parser = new Parser('update user u join user_detail ud on u.id = ud.user_id set ud.ip =\'33\' where u.id = 1'); $stmt = $parser->statements[0]; $this->assertEquals( 'UPDATE user AS `u` JOIN user_detail AS `ud` ON u.id = ud.user_id SET ud.ip = \'33\' WHERE u.id = 1', $stmt->build() ); /* Assertion 3 */ $parser = new Parser( 'update user u inner join user_detail ud on u.id = ud.user_id set ud.ip =\'33\' where u.id = 1' ); $stmt = $parser->statements[0]; $this->assertEquals( 'UPDATE user AS `u` INNER JOIN user_detail AS `ud` ON u.id = ud.user_id SET ud.ip = \'33\' WHERE u.id = 1', $stmt->build() ); } } sql-parser-5.9.0/tests/Components/000077500000000000000000000000001455302707200171125ustar00rootroot00000000000000sql-parser-5.9.0/tests/Components/Array2dTest.php000066400000000000000000000051771455302707200220010ustar00rootroot00000000000000getTokensList('(1, 2) +')); $this->assertEquals( [ 1, 2, ], $arrays[0]->values ); } public function testBuild(): void { $arrays = Array2d::parse(new Parser(), $this->getTokensList('(1, 2), (3, 4), (5, 6)')); $this->assertEquals( '(1, 2), (3, 4), (5, 6)', Array2d::build($arrays) ); } public function testParseErr1(): void { $parser = new Parser(); Array2d::parse($parser, $this->getTokensList('(1, 2 +')); $this->markTestIncomplete('This test has not been implemented yet.'); } public function testParseErr2(): void { $parser = new Parser(); Array2d::parse($parser, $this->getTokensList('(1, 2 TABLE')); $this->markTestIncomplete('This test has not been implemented yet.'); } public function testParseErr3(): void { $parser = new Parser(); Array2d::parse($parser, $this->getTokensList(')')); $this->assertCount(1, $parser->errors); $this->assertEquals( 'An opening bracket followed by a set of values was expected.', $parser->errors[0]->getMessage() ); } public function testParseErr4(): void { $parser = new Parser(); Array2d::parse($parser, $this->getTokensList('TABLE')); $this->assertCount(1, $parser->errors); $this->assertEquals( 'An opening bracket followed by a set of values was expected.', $parser->errors[0]->getMessage() ); } public function testParseErr5(): void { $parser = new Parser(); Array2d::parse($parser, $this->getTokensList('(1, 2),')); $this->assertCount(1, $parser->errors); $this->assertEquals( 'An opening bracket followed by a set of values was expected.', $parser->errors[0]->getMessage() ); } public function testParseErr6(): void { $parser = new Parser(); Array2d::parse($parser, $this->getTokensList('(1, 2),(3)')); $this->assertCount(1, $parser->errors); $this->assertEquals( '2 values were expected, but found 1.', $parser->errors[0]->getMessage() ); } } sql-parser-5.9.0/tests/Components/ArrayObjTest.php000066400000000000000000000030441455302707200221750ustar00rootroot00000000000000assertEquals('(a, b)', ArrayObj::build($component)); } public function testBuildValues(): void { $component = new ArrayObj([], ['a', 'b']); $this->assertEquals('(a, b)', ArrayObj::build($component)); } public function testParseType(): void { $components = ArrayObj::parse( new Parser(), $this->getTokensList('(1 + 2, 3 + 4)'), [ 'type' => Expression::class, 'typeOptions' => ['breakOnParentheses' => true], ] ); $this->assertInstanceOf(Expression::class, $components[0]); $this->assertInstanceOf(Expression::class, $components[1]); $this->assertEquals($components[0]->expr, '1 + 2'); $this->assertEquals($components[1]->expr, '3 + 4'); } /** * @dataProvider parseProvider */ public function testParse(string $test): void { $this->runParserTest($test); } /** * @return string[][] */ public function parseProvider(): array { return [ ['parser/parseArrayErr1'], ['parser/parseArrayErr3'], ]; } } sql-parser-5.9.0/tests/Components/CaseExpressionTest.php000066400000000000000000000077211455302707200234250ustar00rootroot00000000000000getTokensList($caseExprQuery) ); $this->assertEquals( CaseExpression::build($component), 'CASE 1 WHEN 1 THEN "Some" ELSE "Other" END' ); } public function testParseBuild2(): void { $caseExprQuery = 'case when 1=1 then "India" else "Other" end'; $component = CaseExpression::parse( new Parser(), $this->getTokensList($caseExprQuery) ); $this->assertEquals( CaseExpression::build($component), 'CASE WHEN 1=1 THEN "India" ELSE "Other" END' ); } public function testParseBuild3(): void { $caseExprQuery = 'case 1 when 1 then "Some" ' . 'when 2 then "SomeOther" else "Other" end'; $component = CaseExpression::parse( new Parser(), $this->getTokensList($caseExprQuery) ); $this->assertEquals( CaseExpression::build($component), 'CASE 1 WHEN 1 THEN "Some" WHEN 2 THEN "SomeOther" ELSE "Other" END' ); } public function testParseBuild4(): void { $caseExprQuery = 'case 1 when 1 then "Some" ' . 'when 2 then "SomeOther" end'; $component = CaseExpression::parse( new Parser(), $this->getTokensList($caseExprQuery) ); $this->assertEquals( CaseExpression::build($component), 'CASE 1 WHEN 1 THEN "Some" WHEN 2 THEN "SomeOther" END' ); } public function testParseBuild5(): void { $caseExprQuery = 'case when 1=1 then "Some" ' . 'when 1=2 then "SomeOther" else "Other" end'; $component = CaseExpression::parse( new Parser(), $this->getTokensList($caseExprQuery) ); $this->assertEquals( CaseExpression::build($component), 'CASE WHEN 1=1 THEN "Some" WHEN 1=2 THEN "SomeOther" ELSE "Other" END' ); } public function testParseBuild6(): void { $caseExprQuery = 'case when 1=1 then "Some" ' . 'when 1=2 then "SomeOther" end'; $component = CaseExpression::parse( new Parser(), $this->getTokensList($caseExprQuery) ); $this->assertEquals( CaseExpression::build($component), 'CASE WHEN 1=1 THEN "Some" WHEN 1=2 THEN "SomeOther" END' ); } public function testParseBuild7(): void { $caseExprQuery = 'case when 1=1 then "Some" ' . 'when 1=2 then "SomeOther" end AS foo'; $component = CaseExpression::parse( new Parser(), $this->getTokensList($caseExprQuery) ); $this->assertEquals( CaseExpression::build($component), 'CASE WHEN 1=1 THEN "Some" WHEN 1=2 THEN "SomeOther" END AS `foo`' ); } public function testParseBuild8(): void { $caseExprQuery = 'case when 1=1 then "Some" ' . 'when 1=2 then "SomeOther" end foo'; $component = CaseExpression::parse( new Parser(), $this->getTokensList($caseExprQuery) ); $this->assertEquals( CaseExpression::build($component), 'CASE WHEN 1=1 THEN "Some" WHEN 1=2 THEN "SomeOther" END AS `foo`' ); } public function testBuildWithIncompleteCaseExpression(): void { $incompleteCaseExpressionComponent = new CaseExpression(); $this->assertEquals('CASE END', CaseExpression::build($incompleteCaseExpressionComponent)); } } sql-parser-5.9.0/tests/Components/ComponentTest.php000066400000000000000000000014221455302707200224240ustar00rootroot00000000000000expectExceptionMessage('Not implemented yet.'); $this->expectException(Throwable::class); Component::parse(new Parser(), new TokensList()); } public function testBuild(): void { $this->expectExceptionMessage('Not implemented yet.'); $this->expectException(Throwable::class); Component::build(null); } } sql-parser-5.9.0/tests/Components/ConditionTest.php000066400000000000000000000015611455302707200224140ustar00rootroot00000000000000getTokensList('/* id = */ id = 10')); $this->assertEquals($component[0]->expr, 'id = 10'); } public function testParseBetween(): void { $component = Condition::parse( new Parser(), $this->getTokensList('(id BETWEEN 10 AND 20) OR (id BETWEEN 30 AND 40)') ); $this->assertEquals($component[0]->expr, '(id BETWEEN 10 AND 20)'); $this->assertEquals($component[1]->expr, 'OR'); $this->assertEquals($component[2]->expr, '(id BETWEEN 30 AND 40)'); } } sql-parser-5.9.0/tests/Components/CreateDefinitionTest.php000066400000000000000000000143641455302707200237070ustar00rootroot00000000000000getTokensList('(str TEXT, FULLTEXT INDEX indx (str))') ); $this->assertEquals('str', $component[0]->name); $this->assertEquals('FULLTEXT INDEX', $component[1]->key->type); $this->assertEquals('indx', $component[1]->key->name); $this->assertEquals('FULLTEXT INDEX `indx` (`str`)', (string) $component[1]); } public function testParse2(): void { $component = CreateDefinition::parse( new Parser(), $this->getTokensList('(str TEXT NOT NULL INVISIBLE)') ); $this->assertEquals('str', $component[0]->name); $this->assertEquals('TEXT', $component[0]->type->name); $this->assertTrue($component[0]->options->has('INVISIBLE')); $this->assertTrue($component[0]->options->has('NOT NULL')); } public function testParseErr1(): void { $parser = new Parser(); $component = CreateDefinition::parse( $parser, $this->getTokensList('(str TEXT, FULLTEXT INDEX indx (str)') ); $this->assertCount(2, $component); $this->assertEquals( 'A closing bracket was expected.', $parser->errors[0]->getMessage() ); } public function testParseErr2(): void { $parser = new Parser(); CreateDefinition::parse( $parser, $this->getTokensList(')') ); $this->assertEquals( 'An opening bracket was expected.', $parser->errors[0]->getMessage() ); } public function testBuild(): void { $parser = new Parser( 'CREATE TABLE `payment` (' . '-- snippet' . "\n" . '`customer_id` smallint(5) unsigned NOT NULL,' . 'CONSTRAINT `fk_payment_customer` FOREIGN KEY (`customer_id`) ' . 'REFERENCES `customer` (`customer_id`) ON UPDATE CASCADE' . ') ENGINE=InnoDB"' ); $this->assertInstanceOf(CreateStatement::class, $parser->statements[0]); $this->assertEquals( 'CONSTRAINT `fk_payment_customer` FOREIGN KEY (`customer_id`) ' . 'REFERENCES `customer` (`customer_id`) ON UPDATE CASCADE', CreateDefinition::build($parser->statements[0]->fields[1]) ); } public function testBuild2(): void { $parser = new Parser( 'CREATE TABLE `payment` (' . '-- snippet' . "\n" . '`customer_id` smallint(5) unsigned NOT NULL,' . '`customer_data` longtext CHARACTER SET utf8mb4 CHARSET utf8mb4_bin NOT NULL ' . 'CHECK (json_valid(customer_data)),CONSTRAINT `fk_payment_customer` FOREIGN KEY ' . '(`customer_id`) REFERENCES `customer` (`customer_id`) ON UPDATE CASCADE' . ') ENGINE=InnoDB"' ); $this->assertInstanceOf(CreateStatement::class, $parser->statements[0]); $this->assertEquals( 'CONSTRAINT `fk_payment_customer` FOREIGN KEY (`customer_id`) ' . 'REFERENCES `customer` (`customer_id`) ON UPDATE CASCADE', CreateDefinition::build($parser->statements[0]->fields[2]) ); } public function testBuild3(): void { $parser = new Parser( 'DROP TABLE IF EXISTS `searches`;' . 'CREATE TABLE `searches` (' . ' `id` int(10) unsigned NOT NULL AUTO_INCREMENT,' . ' `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,' . ' `public_name` varchar(120) COLLATE utf8_unicode_ci NOT NULL,' . ' `group_id` smallint(5) unsigned NOT NULL DEFAULT \'0\',' . ' `shortdesc` tinytext COLLATE utf8_unicode_ci,' . ' `show_separators` tinyint(1) NOT NULL DEFAULT \'0\',' . ' `show_separators_two` tinyint(1) NOT NULL DEFAULT FALSE,' . ' `deleted` tinyint(1) NOT NULL DEFAULT \'0\',' . ' PRIMARY KEY (`id`)' . ') ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ;' . '' . 'ALTER TABLE `searches` ADD `admins_only` BOOLEAN NOT NULL DEFAULT FALSE AFTER `show_separators`;' ); $this->assertInstanceOf(CreateStatement::class, $parser->statements[1]); $this->assertEquals( '`public_name` varchar(120) COLLATE utf8_unicode_ci NOT NULL', CreateDefinition::build($parser->statements[1]->fields[2]) ); $this->assertEquals( '`show_separators` tinyint(1) NOT NULL DEFAULT \'0\'', CreateDefinition::build($parser->statements[1]->fields[5]) ); $this->assertEquals( '`show_separators_two` tinyint(1) NOT NULL DEFAULT FALSE', CreateDefinition::build($parser->statements[1]->fields[6]) ); } public function testBuildWithInvisibleKeyword(): void { $parser = new Parser( 'CREATE TABLE `payment` (' . '-- snippet' . "\n" . '`customer_id` smallint(5) unsigned NOT NULL INVISIBLE,' . '`customer_data` longtext CHARACTER SET utf8mb4 CHARSET utf8mb4_bin NOT NULL ' . 'CHECK (json_valid(customer_data)),CONSTRAINT `fk_payment_customer` FOREIGN KEY ' . '(`customer_id`) REFERENCES `customer` (`customer_id`) ON UPDATE CASCADE' . ') ENGINE=InnoDB"' ); $this->assertInstanceOf(CreateStatement::class, $parser->statements[0]); $this->assertEquals( '`customer_id` smallint(5) UNSIGNED NOT NULL INVISIBLE', CreateDefinition::build($parser->statements[0]->fields[0]) ); } public function testBuildWithCompressed(): void { $query = 'CREATE TABLE `user` ( `message2` TEXT COMPRESSED )'; $parser = new Parser($query); $stmt = $parser->statements[0]; $this->assertEquals("CREATE TABLE `user` (\n `message2` text COMPRESSED\n) ", $stmt->build()); } } sql-parser-5.9.0/tests/Components/ExpressionArrayTest.php000066400000000000000000000027621455302707200236300ustar00rootroot00000000000000getTokensList('(expr)'), ['breakOnParentheses' => true] ); $this->assertEquals([], $component); } public function testParse2(): void { $component = ExpressionArray::parse( new Parser(), $this->getTokensList('(expr) +'), ['parenthesesDelimited' => true] ); $this->assertCount(1, $component); $this->assertEquals('(expr)', $component[0]->expr); } public function testParseWithCommentsNoOptions(): void { $component = ExpressionArray::parse( new Parser(), $this->getTokensList('(expr) -- comment ?') ); $this->assertCount(1, $component); $this->assertEquals('(expr)', $component[0]->expr); } public function testParseWithCommentsAndOptions(): void { $component = ExpressionArray::parse( new Parser(), $this->getTokensList('(expr -- comment ?)'), ['parenthesesDelimited' => true] ); $this->assertCount(1, $component); $this->assertEquals('(expr', $component[0]->expr); } } sql-parser-5.9.0/tests/Components/ExpressionTest.php000066400000000000000000000115701455302707200226260ustar00rootroot00000000000000getTokensList('IF(film_id > 0, film_id, film_id)')); $this->assertEquals($component->expr, 'IF(film_id > 0, film_id, film_id)'); } public function testParse2(): void { $component = Expression::parse(new Parser(), $this->getTokensList('col`test`')); $this->assertEquals($component->expr, 'col'); } public function testParse3(): void { $component = Expression::parse(new Parser(), $this->getTokensList('col xx')); $this->assertEquals($component->alias, 'xx'); $component = Expression::parse(new Parser(), $this->getTokensList('col y')); $this->assertEquals($component->alias, 'y'); $component = Expression::parse(new Parser(), $this->getTokensList('avg.col FROM (SELECT ev.col FROM ev)')); $this->assertEquals($component->table, 'avg'); $this->assertEquals($component->expr, 'avg.col'); $component = Expression::parse(new Parser(), $this->getTokensList('x.id FROM (SELECT a.id FROM a) x')); $this->assertEquals($component->table, 'x'); $this->assertEquals($component->expr, 'x.id'); } /** * @dataProvider parseErrProvider */ public function testParseErr(string $expr, string $error): void { $parser = new Parser(); Expression::parse($parser, $this->getTokensList($expr)); $errors = $this->getErrorsAsArray($parser); $this->assertEquals($errors[0][0], $error); } /** * @return string[][] */ public function parseErrProvider(): array { return [ /* [ '(1))', 'Unexpected closing bracket.', ], */ [ 'tbl..col', 'Unexpected dot.', ], [ 'id AS AS id2', 'An alias was expected.', ], [ 'id`id2`\'id3\'', 'An alias was previously found.', ], [ '(id) id2 id3', 'An alias was previously found.', ], ]; } public function testBuild(): void { $component = [ new Expression('1 + 2', 'three'), new Expression('1 + 3', 'four'), ]; $this->assertEquals( Expression::build($component), '1 + 2 AS `three`, 1 + 3 AS `four`' ); } /** * @return string[][] */ public static function mysqlCommandsProvider(): array { return [ [ '/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;', 'SET @OLD_CHARACTER_SET_CLIENT = @@CHARACTER_SET_CLIENT', ], [ '/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;', 'SET @OLD_CHARACTER_SET_RESULTS = @@CHARACTER_SET_RESULTS', ], [ '/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;', 'SET @OLD_COLLATION_CONNECTION = @@COLLATION_CONNECTION', ], [ '/*!40101 SET NAMES utf8 */;', 'SET NAMES utf8', ], [ '/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;', 'SET @OLD_TIME_ZONE = @@TIME_ZONE', ], [ "/*!40103 SET TIME_ZONE='+00:00' */;", "SET TIME_ZONE = '+00:00'", ], [ '/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;', 'SET @OLD_UNIQUE_CHECKS = @@UNIQUE_CHECKS, UNIQUE_CHECKS = 0', ], [ '/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;', 'SET @OLD_FOREIGN_KEY_CHECKS = @@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS = 0', ], [ "/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;", "SET @OLD_SQL_MODE = @@SQL_MODE, SQL_MODE = 'NO_AUTO_VALUE_ON_ZERO'", ], [ '/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;', 'SET @OLD_SQL_NOTES = @@SQL_NOTES, SQL_NOTES = 0', ], ]; } /** * @dataProvider mysqlCommandsProvider */ public function testMysqlCommands(string $expr, string $expected): void { $parser = new Parser($expr, true); $parser->parse(); self::assertSame($expected, $parser->statements[0]->build()); } } sql-parser-5.9.0/tests/Components/FunctionCallTest.php000066400000000000000000000012271455302707200230460ustar00rootroot00000000000000assertEquals('func(a, b)', FunctionCall::build($component)); } public function testBuildArrayObj(): void { $component = new FunctionCall('func', new ArrayObj(['a', 'b'])); $this->assertEquals('func(a, b)', FunctionCall::build($component)); } } sql-parser-5.9.0/tests/Components/GroupKeywordTest.php000066400000000000000000000040731455302707200231300ustar00rootroot00000000000000, string}> */ public function provideExpressions(): Generator { yield 'With no expression at all' => [[], '']; yield 'With single simple expression' => [ self::makeComponentFrom('a'), 'a', ]; yield 'With multiple simple expressions' => [ self::makeComponentsFrom('a', 'b', 'c'), 'a, b, c', ]; yield 'With single untrimmed expression' => [ self::makeComponentFrom(' o '), 'o', ]; yield 'With single untrimmed expression having several kinds of whitespaces' => [ self::makeComponentFrom(" \n\r foo \t\v\x00 "), 'foo', ]; yield 'With multiple untrimmed expressions' => [ self::makeComponentsFrom(' x', ' y ', 'z '), 'x, y, z', ]; yield 'With multiple untrimmed expression having several kinds of whitespaces' => [ self::makeComponentsFrom(" \n\r\t\v\x00foo", " \n\r\tbar\v\x00", "baz \n\r\t\v\x00"), 'foo, bar, baz', ]; } /** * @param GroupKeyword|array $component * * @dataProvider provideExpressions */ public function testBuild($component, string $expected): void { $this->assertSame($expected, GroupKeyword::build($component)); } private static function makeComponentFrom(string $string): GroupKeyword { return new GroupKeyword(new Expression($string)); } /** * @return array */ private static function makeComponentsFrom(string ...$string): array { return array_map([self::class, 'makeComponentFrom'], $string); } } sql-parser-5.9.0/tests/Components/IntoKeywordTest.php000066400000000000000000000026561455302707200227520ustar00rootroot00000000000000getTokensList('OUTFILE "/tmp/outfile.txt"')); $this->assertEquals($component->type, 'OUTFILE'); $this->assertEquals($component->dest, '/tmp/outfile.txt'); } public function testBuild(): void { $component = IntoKeyword::parse(new Parser(), $this->getTokensList('tbl(`col1`, `col2`)')); $this->assertEquals('tbl(`col1`, `col2`)', IntoKeyword::build($component)); } public function testBuildValues(): void { $component = IntoKeyword::parse(new Parser(), $this->getTokensList('@a1, @a2, @a3')); $this->assertEquals('@a1, @a2, @a3', IntoKeyword::build($component)); } public function testBuildOutfile(): void { $component = IntoKeyword::parse(new Parser(), $this->getTokensList('OUTFILE "/tmp/outfile.txt"')); $this->assertEquals('OUTFILE "/tmp/outfile.txt"', IntoKeyword::build($component)); } public function testParseErr1(): void { $component = IntoKeyword::parse(new Parser(), $this->getTokensList('OUTFILE;')); $this->assertEquals($component->type, 'OUTFILE'); } } sql-parser-5.9.0/tests/Components/JoinKeywordTest.php000066400000000000000000000027221455302707200227320ustar00rootroot00000000000000getTokensList('JOIN a')); $this->assertCount(1, $component); $this->assertEquals('a', $component[0]->expr->expr); $this->assertNull($component[0]->on); $this->assertNull($component[0]->using); } public function testParseIncompleteUsing(): void { $component = JoinKeyword::parse(new Parser(), $this->getTokensList('JOIN table2 USING (id)')); $this->assertCount(1, $component); $this->assertEquals('table2', $component[0]->expr->expr); $this->assertNull($component[0]->on); $this->assertEquals(['id'], $component[0]->using->values); } public function testBuild(): void { $component = JoinKeyword::parse( new Parser(), $this->getTokensList( 'LEFT JOIN (t2 CROSS JOIN t3 CROSS JOIN t4) ' . 'ON (t2.a=t1.a AND t3.b=t1.b AND t4.c=t1.c)' ) ); $this->assertEquals( 'LEFT JOIN (t2 CROSS JOIN t3 CROSS JOIN t4) ' . 'ON (t2.a=t1.a AND t3.b=t1.b AND t4.c=t1.c)', JoinKeyword::build($component) ); } } sql-parser-5.9.0/tests/Components/KeyTest.php000066400000000000000000000340271455302707200212210ustar00rootroot00000000000000getTokensList('') ); $this->assertNull($component->type); $this->assertNull($component->options); $this->assertNull($component->name); $this->assertNull($component->expr); $this->assertSame([], $component->columns); $this->assertSame( '()', Key::build($component) ); } public function testParseKeyWithoutOptions(): void { $component = Key::parse( new Parser(), $this->getTokensList('KEY `alias_type_idx` (`alias_type`),') ); $this->assertEquals('KEY', $component->type); $this->assertEquals('alias_type_idx', $component->name); $this->assertEquals(new OptionsArray(), $component->options); $this->assertNull($component->expr); $this->assertSame([['name' => 'alias_type']], $component->columns); $this->assertSame( 'KEY `alias_type_idx` (`alias_type`)', Key::build($component) ); } public function testParseKeyWithLengthWithoutOptions(): void { $component = Key::parse( new Parser(), $this->getTokensList('KEY `alias_type_idx` (`alias_type`(10)),') ); $this->assertEquals('KEY', $component->type); $this->assertEquals('alias_type_idx', $component->name); $this->assertEquals(new OptionsArray(), $component->options); $this->assertNull($component->expr); $this->assertSame([['name' => 'alias_type', 'length' => 10]], $component->columns); $this->assertSame( 'KEY `alias_type_idx` (`alias_type`(10))', Key::build($component) ); } public function testParseKeyWithLengthWithoutOptionsWithOrder(): void { $component = Key::parse( new Parser(), $this->getTokensList('KEY `alias_type_idx` (`alias_type`(10) ASC),') ); $this->assertEquals('KEY', $component->type); $this->assertEquals('alias_type_idx', $component->name); $this->assertEquals(new OptionsArray(), $component->options); $this->assertNull($component->expr); $this->assertSame([['name' => 'alias_type', 'length' => 10, 'order' => 'ASC']], $component->columns); $this->assertSame( 'KEY `alias_type_idx` (`alias_type`(10) ASC)', Key::build($component) ); } public function testParseKeyWithoutOptionsWithOrderLowercase(): void { $component = Key::parse( new Parser(), $this->getTokensList('KEY `alias_type_idx` (`alias_type` desc),') ); $this->assertEquals('KEY', $component->type); $this->assertEquals('alias_type_idx', $component->name); $this->assertEquals(new OptionsArray(), $component->options); $this->assertNull($component->expr); $this->assertSame([['name' => 'alias_type', 'order' => 'DESC']], $component->columns); $this->assertSame( 'KEY `alias_type_idx` (`alias_type` DESC)', Key::build($component) ); } public function testParseKeyWithoutOptionsWithOrder(): void { $component = Key::parse( new Parser(), $this->getTokensList('KEY `alias_type_idx` (`alias_type` DESC),') ); $this->assertEquals('KEY', $component->type); $this->assertEquals('alias_type_idx', $component->name); $this->assertEquals(new OptionsArray(), $component->options); $this->assertNull($component->expr); $this->assertSame([['name' => 'alias_type', 'order' => 'DESC']], $component->columns); $this->assertSame( 'KEY `alias_type_idx` (`alias_type` DESC)', Key::build($component) ); } public function testParseKeyWithLengthWithOptions(): void { $component = Key::parse( new Parser(), $this->getTokensList('KEY `alias_type_idx` (`alias_type`(10)) COMMENT \'my comment\',') ); $this->assertEquals('KEY', $component->type); $this->assertEquals('alias_type_idx', $component->name); $this->assertEquals(new OptionsArray( [ 4 => [ 'name' => 'COMMENT', 'equals' => false, 'expr' => '\'my comment\'', 'value' => 'my comment', ], ] ), $component->options); $this->assertNull($component->expr); $this->assertSame([['name' => 'alias_type', 'length' => 10]], $component->columns); $this->assertSame( 'KEY `alias_type_idx` (`alias_type`(10)) COMMENT \'my comment\'', Key::build($component) ); } public function testParseKeyWithLengthWithAllOptions(): void { $component = Key::parse( new Parser(), $this->getTokensList( // This is not a vary plausible example but it runs // Only ENGINE_ATTRIBUTE gives a not supported error but is still a valid syntax 'KEY `alias_type_idx` (`alias_type`(10))' . ' COMMENT \'my comment\' VISIBLE KEY_BLOCK_SIZE=1' . ' INVISIBLE ENGINE_ATTRIBUTE \'foo\' SECONDARY_ENGINE_ATTRIBUTE=\'bar\' USING BTREE,' ) ); $this->assertEquals('KEY', $component->type); $this->assertEquals('alias_type_idx', $component->name); $this->assertEquals(new OptionsArray( [ 1 => [ 'name' => 'KEY_BLOCK_SIZE', 'equals' => true, 'expr' => '1', 'value' => '1', ], 2 => [ 'name' => 'USING', 'equals' => false, 'expr' => 'BTREE', 'value' => 'BTREE', ], 4 => [ 'name' => 'COMMENT', 'equals' => false, 'expr' => '\'my comment\'', 'value' => 'my comment', ], 5 => [ 'name' => 'ENGINE_ATTRIBUTE', 'equals' => true, 'expr' => '\'foo\'', 'value' => 'foo', ], 6 => 'VISIBLE', 12 => 'INVISIBLE', 13 => [ 'name' => 'SECONDARY_ENGINE_ATTRIBUTE', 'equals' => true, 'expr' => '\'bar\'', 'value' => 'bar', ], ] ), $component->options); $this->assertNull($component->expr); $this->assertSame([['name' => 'alias_type', 'length' => 10]], $component->columns); } public function testParseKeyExpressionWithoutOptions(): void { $component = Key::parse( new Parser(), $this->getTokensList( 'KEY `updated_tz_ind2` ((convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'GB\'))),' ) ); $this->assertEquals('KEY', $component->type); $this->assertEquals('updated_tz_ind2', $component->name); $this->assertEquals(new OptionsArray(), $component->options); $expr = new Expression('(convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'GB\'))'); $expr->function = 'convert_tz'; $this->assertEquals($expr, $component->expr); $this->assertSame([], $component->columns); $this->assertSame( 'KEY `updated_tz_ind2` ((convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'GB\'))) ', Key::build($component) ); } public function testParseKeyExpressionWithOptions(): void { $component = Key::parse( new Parser(), $this->getTokensList( 'KEY `updated_tz_ind2`' . ' ((convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'GB\')))' . ' COMMENT \'my comment\',' ) ); $this->assertEquals('KEY', $component->type); $this->assertEquals('updated_tz_ind2', $component->name); $this->assertEquals(new OptionsArray( [ 4 => [ 'name' => 'COMMENT', 'equals' => false, 'expr' => '\'my comment\'', 'value' => 'my comment', ], ] ), $component->options); $expr = new Expression('(convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'GB\'))'); $expr->function = 'convert_tz'; $this->assertEquals($expr, $component->expr); $this->assertSame([], $component->columns); $this->assertSame( 'KEY `updated_tz_ind2`' . ' ((convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'GB\')))' . ' COMMENT \'my comment\'', Key::build($component) ); } public function testParseKeyExpressionWithOptionsError(): void { $parser = new Parser(); $component = Key::parse( $parser, $this->getTokensList( 'KEY `updated_tz_ind2` (()convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'GB\')))' . ' COMMENT \'my comment\',' ) ); $this->assertEquals('KEY', $component->type); $this->assertEquals('updated_tz_ind2', $component->name); $this->assertEquals(new OptionsArray( [] ), $component->options); $t = new Token('convert_tz', Token::TYPE_KEYWORD, 33); $t->position = 25; $this->assertEquals([ new ParserException( 'Unexpected token.', $t ), ], $parser->errors); $expr = new Expression('(convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'GB\'))'); $expr->function = 'convert_tz'; $this->assertEquals('()(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'GB\')', $component->expr); $this->assertSame([], $component->columns); $this->assertSame( 'KEY `updated_tz_ind2` (()(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'GB\')) ', Key::build($component) ); } public function testParseKeyOneExpressionWithOptions(): void { $parser = new Parser(); $component = Key::parse( $parser, $this->getTokensList( 'KEY `updated_tz_ind2`' . ' (' . '(convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'GB\')), ' . '(convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'FR\'))' . ')' . ' COMMENT \'my comment\',' ) ); $this->assertEquals('KEY', $component->type); $this->assertEquals('updated_tz_ind2', $component->name); $this->assertEquals(new OptionsArray( [ 4 => [ 'name' => 'COMMENT', 'equals' => false, 'expr' => '\'my comment\'', 'value' => 'my comment', ], ] ), $component->options); $this->assertSame([], $parser->errors); $expr = new Expression( '(convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'GB\')),' . ' (convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'FR\'))' ); $expr->function = 'convert_tz'; $this->assertEquals($expr, $component->expr); $this->assertSame([], $component->columns); $this->assertSame( 'KEY `updated_tz_ind2` ((convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'GB\')),' . ' (convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'FR\'))' . ') COMMENT \'my comment\'', Key::build($component) ); } public function testParseKeyMultipleExpressionsWithOptions(): void { $parser = new Parser(); $component = Key::parse( $parser, $this->getTokensList( 'KEY `updated_tz_ind2`' . ' (' . '(convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'GB\')), ' . '(convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'FR\')), ' . '(convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'RU\'))' . ')' . ' COMMENT \'my comment\',' ) ); $this->assertEquals('KEY', $component->type); $this->assertEquals('updated_tz_ind2', $component->name); $this->assertEquals(new OptionsArray( [ 4 => [ 'name' => 'COMMENT', 'equals' => false, 'expr' => '\'my comment\'', 'value' => 'my comment', ], ] ), $component->options); $expr = new Expression( '(convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'GB\')),' . ' (convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'FR\')),' . ' (convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'RU\'))' ); $expr->function = 'convert_tz'; $this->assertEquals($expr, $component->expr); $this->assertSame([], $component->columns); $this->assertSame([], $parser->errors); $this->assertSame( 'KEY `updated_tz_ind2` ((convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'GB\')),' . ' (convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'FR\')),' . ' (convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'RU\'))' . ') COMMENT \'my comment\'', Key::build($component) ); } } sql-parser-5.9.0/tests/Components/LimitTest.php000066400000000000000000000015631455302707200215460ustar00rootroot00000000000000assertEquals(Limit::build($component), '0, 1'); } public function testBuildWithOffset(): void { $component = new Limit(1, 2); $this->assertEquals(Limit::build($component), '2, 1'); } /** * @dataProvider parseProvider */ public function testParse(string $test): void { $this->runParserTest($test); } /** * @return string[][] */ public function parseProvider(): array { return [ ['parser/parseLimitErr1'], ['parser/parseLimitErr2'], ]; } } sql-parser-5.9.0/tests/Components/LockExpressionTest.php000066400000000000000000000042661455302707200234430ustar00rootroot00000000000000getTokensList('table1 AS t1 READ LOCAL')); $this->assertNotNull($component->table); $this->assertEquals($component->table->table, 'table1'); $this->assertEquals($component->table->alias, 't1'); $this->assertEquals($component->type, 'READ LOCAL'); } public function testParse2(): void { $component = LockExpression::parse(new Parser(), $this->getTokensList('table1 LOW_PRIORITY WRITE')); $this->assertNotNull($component->table); $this->assertEquals($component->table->table, 'table1'); $this->assertEquals($component->type, 'LOW_PRIORITY WRITE'); } /** * @dataProvider parseErrProvider */ public function testParseErr(string $expr, string $error): void { $parser = new Parser(); LockExpression::parse($parser, $this->getTokensList($expr)); $errors = $this->getErrorsAsArray($parser); $this->assertEquals($errors[0][0], $error); } /** * @return string[][] */ public function parseErrProvider(): array { return [ [ 'table1 AS t1', 'Unexpected end of LOCK expression.', ], [ 'table1 AS t1 READ WRITE', 'Unexpected keyword.', ], [ 'table1 AS t1 READ 2', 'Unexpected token.', ], ]; } public function testBuild(): void { $component = [ LockExpression::parse(new Parser(), $this->getTokensList('table1 AS t1 READ LOCAL')), LockExpression::parse(new Parser(), $this->getTokensList('table2 LOW_PRIORITY WRITE')), ]; $this->assertEquals( LockExpression::build($component), 'table1 AS `t1` READ LOCAL, table2 LOW_PRIORITY WRITE' ); } } sql-parser-5.9.0/tests/Components/OptionsArrayTest.php000066400000000000000000000071051455302707200231200ustar00rootroot00000000000000getTokensList('A B = /*comment*/ (test) C'), [ 'A' => 1, 'B' => [ 2, 'var', ], 'C' => 3, ] ); $this->assertEquals( [ 1 => 'A', 2 => [ 'name' => 'B', 'expr' => '(test)', 'value' => 'test', 'equals' => true, ], 3 => 'C', ], $component->options ); } public function testParseExpr(): void { $component = OptionsArray::parse( new Parser(), $this->getTokensList('SUM = (3 + 5) RESULT = 8'), [ 'SUM' => [ 1, 'expr', ['parenthesesDelimited' => true], ], 'RESULT' => [ 2, 'var', ], ] ); $this->assertEquals('(3 + 5)', (string) $component->has('SUM', true)); $this->assertEquals('8', $component->has('RESULT')); } public function testHas(): void { $component = OptionsArray::parse( new Parser(), $this->getTokensList('A B = /*comment*/ (test) C'), [ 'A' => 1, 'B' => [ 2, 'var', ], 'C' => 3, ] ); $this->assertTrue($component->has('A')); $this->assertEquals('test', $component->has('B')); $this->assertTrue($component->has('C')); $this->assertFalse($component->has('D')); } public function testRemove(): void { /* Assertion 1 */ $component = new OptionsArray(['a', 'b', 'c']); $this->assertTrue($component->remove('b')); $this->assertFalse($component->remove('d')); $this->assertEquals($component->options, [0 => 'a', 2 => 'c']); /* Assertion 2 */ $component = OptionsArray::parse( new Parser(), $this->getTokensList('A B = /*comment*/ (test) C'), [ 'A' => 1, 'B' => [ 2, 'var', ], 'C' => 3, ] ); $this->assertEquals('test', $component->has('B')); $component->remove('B'); $this->assertFalse($component->has('B')); } public function testMerge(): void { $component = new OptionsArray(['a']); $component->merge(['b', 'c']); $this->assertEquals($component->options, ['a', 'b', 'c']); } public function testBuild(): void { $component = new OptionsArray( [ 'ALL', 'SQL_CALC_FOUND_ROWS', [ 'name' => 'MAX_STATEMENT_TIME', 'value' => '42', 'equals' => true, ], ] ); $this->assertEquals( OptionsArray::build($component), 'ALL SQL_CALC_FOUND_ROWS MAX_STATEMENT_TIME=42' ); } } sql-parser-5.9.0/tests/Components/OrderKeywordTest.php000066400000000000000000000011321455302707200231000ustar00rootroot00000000000000assertEquals( OrderKeyword::build( [ new OrderKeyword(new Expression('a'), 'ASC'), new OrderKeyword(new Expression('b'), 'DESC'), ] ), 'a ASC, b DESC' ); } } sql-parser-5.9.0/tests/Components/ParameterDefinitionTest.php000066400000000000000000000015611455302707200244170ustar00rootroot00000000000000getTokensList('(a INT, b INT') ); $this->assertEquals('a', $component[0]->name); $this->assertEquals('b', $component[1]->name); } public function testParseComplex(): void { $parser = new Parser(); $component = ParameterDefinition::parse( $parser, $this->getTokensList('CREATE DEFINER=`root`@`%` PROCEDURE `foo`( $bar int )') ); $this->assertEquals('$bar', $component[0]->name); } } sql-parser-5.9.0/tests/Components/PartitionDefinitionTest.php000066400000000000000000000023161455302707200244470ustar00rootroot00000000000000getTokensList('PARTITION p0 VALUES LESS THAN(1990)') ); $this->assertFalse($component->isSubpartition); $this->assertEquals('p0', $component->name); $this->assertEquals('LESS THAN', $component->type); $this->assertEquals('(1990)', $component->expr->expr); } public function testParseNameWithUnderscore(): void { $component = PartitionDefinition::parse( new Parser(), $this->getTokensList('PARTITION 2017_12 VALUES LESS THAN (\'2018-01-01 00:00:00\') ENGINE = MyISAM') ); $this->assertFalse($component->isSubpartition); $this->assertEquals('2017_12', $component->name); $this->assertEquals('LESS THAN', $component->type); $this->assertEquals('(\'2018-01-01 00:00:00\')', $component->expr->expr); } } sql-parser-5.9.0/tests/Components/ReferenceTest.php000066400000000000000000000013521455302707200223620ustar00rootroot00000000000000getTokensList('tbl (id)')); $this->assertEquals('tbl', $component->table->table); $this->assertEquals(['id'], $component->columns); } public function testBuild(): void { $component = new Reference(new Expression('`tbl`'), ['id']); $this->assertEquals('`tbl` (`id`)', Reference::build($component)); } } sql-parser-5.9.0/tests/Components/RenameOperationTest.php000066400000000000000000000007521455302707200235570ustar00rootroot00000000000000getTokensList('a TO b, c TO d')); $this->assertEquals(RenameOperation::build($component), 'a TO b, c TO d'); } } sql-parser-5.9.0/tests/Lexer/000077500000000000000000000000001455302707200160445ustar00rootroot00000000000000sql-parser-5.9.0/tests/Lexer/ContextTest.php000066400000000000000000000205761455302707200210530ustar00rootroot00000000000000assertEquals('\\PhpMyAdmin\\SqlParser\\Contexts\\ContextMySql50700', Context::$loadedContext); $this->assertArrayHasKey('STORED', Context::$KEYWORDS); $this->assertArrayNotHasKey('AUTHORS', Context::$KEYWORDS); // Restoring context. Context::load(''); $this->assertEquals('\\PhpMyAdmin\\SqlParser\\Contexts\\ContextMySql50700', Context::$defaultContext); $this->assertArrayHasKey('STORED', Context::$KEYWORDS); $this->assertArrayNotHasKey('AUTHORS', Context::$KEYWORDS); } /** * Test for loading closest SQL context * * @dataProvider contextLoadingProvider */ public function testLoadClosest(string $context, ?string $expected): void { $this->assertEquals($expected, Context::loadClosest($context)); if ($expected !== null) { $this->assertEquals('\\PhpMyAdmin\\SqlParser\\Contexts\\Context' . $expected, Context::$loadedContext); $this->assertTrue(class_exists(Context::$loadedContext)); } // Restoring context. Context::load(''); } /** * @return array> * @psalm-return array */ public function contextLoadingProvider(): array { return [ 'MySQL match' => [ 'MySql50500', 'MySql50500', ], 'MySQL strip' => [ 'MySql50712', 'MySql50700', ], 'MySQL fallback' => [ 'MySql99999', 'MySql50700', ], 'MariaDB match' => [ 'MariaDb100000', 'MariaDb100000', ], 'MariaDB stripg' => [ 'MariaDb109900', 'MariaDb100000', ], 'MariaDB fallback' => [ 'MariaDb990000', 'MariaDb100300', ], 'Invalid' => [ 'Sql', null, ], ]; } /** * @dataProvider contextNamesProvider */ public function testLoadAll(string $context): void { Context::load($context); $this->assertEquals('\\PhpMyAdmin\\SqlParser\\Contexts\\Context' . $context, Context::$loadedContext); // Restoring context. Context::load(''); } /** * @return string[][] */ public function contextNamesProvider(): array { return [ ['MySql50000'], ['MySql50100'], ['MySql50500'], ['MySql50600'], ['MySql50700'], ['MySql80000'], ['MariaDb100000'], ['MariaDb100100'], ['MariaDb100200'], ['MariaDb100300'], ]; } public function testLoadError(): void { $this->expectExceptionMessage( 'Specified context ("\PhpMyAdmin\SqlParser\Contexts\ContextFoo") does not exist.' ); $this->expectException(Throwable::class); Context::load('Foo'); } /** * @param int|string $mode * * @dataProvider providerForTestMode */ public function testMode($mode, int $expected): void { Context::setMode($mode); $this->assertSame($expected, Context::getMode()); } /** * @return array> * @psalm-return list */ public function providerForTestMode(): array { return [ [0, Context::SQL_MODE_NONE], [1, 1], ['', Context::SQL_MODE_NONE], ['invalid', Context::SQL_MODE_NONE], ['ALLOW_INVALID_DATES', Context::SQL_MODE_ALLOW_INVALID_DATES], ['ANSI_QUOTES', Context::SQL_MODE_ANSI_QUOTES], ['COMPAT_MYSQL', Context::SQL_MODE_COMPAT_MYSQL], ['ERROR_FOR_DIVISION_BY_ZERO', Context::SQL_MODE_ERROR_FOR_DIVISION_BY_ZERO], ['HIGH_NOT_PRECEDENCE', Context::SQL_MODE_HIGH_NOT_PRECEDENCE], ['IGNORE_SPACE', Context::SQL_MODE_IGNORE_SPACE], ['NO_AUTO_CREATE_USER', Context::SQL_MODE_NO_AUTO_CREATE_USER], ['NO_AUTO_VALUE_ON_ZERO', Context::SQL_MODE_NO_AUTO_VALUE_ON_ZERO], ['NO_BACKSLASH_ESCAPES', Context::SQL_MODE_NO_BACKSLASH_ESCAPES], ['NO_DIR_IN_CREATE', Context::SQL_MODE_NO_DIR_IN_CREATE], ['NO_ENGINE_SUBSTITUTION', Context::SQL_MODE_NO_ENGINE_SUBSTITUTION], ['NO_FIELD_OPTIONS', Context::SQL_MODE_NO_FIELD_OPTIONS], ['NO_KEY_OPTIONS', Context::SQL_MODE_NO_KEY_OPTIONS], ['NO_TABLE_OPTIONS', Context::SQL_MODE_NO_TABLE_OPTIONS], ['NO_UNSIGNED_SUBTRACTION', Context::SQL_MODE_NO_UNSIGNED_SUBTRACTION], ['NO_ZERO_DATE', Context::SQL_MODE_NO_ZERO_DATE], ['NO_ZERO_IN_DATE', Context::SQL_MODE_NO_ZERO_IN_DATE], ['ONLY_FULL_GROUP_BY', Context::SQL_MODE_ONLY_FULL_GROUP_BY], ['PIPES_AS_CONCAT', Context::SQL_MODE_PIPES_AS_CONCAT], ['REAL_AS_FLOAT', Context::SQL_MODE_REAL_AS_FLOAT], ['STRICT_ALL_TABLES', Context::SQL_MODE_STRICT_ALL_TABLES], ['STRICT_TRANS_TABLES', Context::SQL_MODE_STRICT_TRANS_TABLES], ['NO_ENCLOSING_QUOTES', Context::SQL_MODE_NO_ENCLOSING_QUOTES], ['ANSI', Context::SQL_MODE_ANSI], ['DB2', Context::SQL_MODE_DB2], ['MAXDB', Context::SQL_MODE_MAXDB], ['MSSQL', Context::SQL_MODE_MSSQL], ['ORACLE', Context::SQL_MODE_ORACLE], ['POSTGRESQL', Context::SQL_MODE_POSTGRESQL], ['TRADITIONAL', Context::SQL_MODE_TRADITIONAL], ]; } public function testModeWithCombinedModes(): void { Context::setMode( Context::SQL_MODE_REAL_AS_FLOAT | Context::SQL_MODE_ANSI_QUOTES | Context::SQL_MODE_IGNORE_SPACE ); $this->assertSame( Context::SQL_MODE_REAL_AS_FLOAT | Context::SQL_MODE_ANSI_QUOTES | Context::SQL_MODE_IGNORE_SPACE, Context::getMode() ); $this->assertTrue(Context::hasMode(Context::SQL_MODE_REAL_AS_FLOAT | Context::SQL_MODE_IGNORE_SPACE)); $this->assertTrue(Context::hasMode(Context::SQL_MODE_ANSI_QUOTES)); $this->assertFalse(Context::hasMode(Context::SQL_MODE_REAL_AS_FLOAT | Context::SQL_MODE_ALLOW_INVALID_DATES)); $this->assertFalse(Context::hasMode(Context::SQL_MODE_ALLOW_INVALID_DATES)); Context::setMode(Context::SQL_MODE_TRADITIONAL); $this->assertSame(Context::SQL_MODE_TRADITIONAL, Context::getMode()); Context::setMode(); $this->assertSame(Context::SQL_MODE_NONE, Context::getMode()); } public function testModeWithString(): void { Context::setMode('REAL_AS_FLOAT,ANSI_QUOTES,IGNORE_SPACE'); $this->assertSame( Context::SQL_MODE_REAL_AS_FLOAT | Context::SQL_MODE_ANSI_QUOTES | Context::SQL_MODE_IGNORE_SPACE, Context::getMode() ); $this->assertTrue(Context::hasMode(Context::SQL_MODE_REAL_AS_FLOAT | Context::SQL_MODE_IGNORE_SPACE)); $this->assertTrue(Context::hasMode(Context::SQL_MODE_ANSI_QUOTES)); $this->assertFalse(Context::hasMode(Context::SQL_MODE_REAL_AS_FLOAT | Context::SQL_MODE_ALLOW_INVALID_DATES)); $this->assertFalse(Context::hasMode(Context::SQL_MODE_ALLOW_INVALID_DATES)); Context::setMode('TRADITIONAL'); $this->assertSame(Context::SQL_MODE_TRADITIONAL, Context::getMode()); Context::setMode(''); $this->assertSame(Context::SQL_MODE_NONE, Context::getMode()); } public function testEscape(): void { Context::setMode(Context::SQL_MODE_NO_ENCLOSING_QUOTES); $this->assertEquals('test', Context::escape('test')); Context::setMode(Context::SQL_MODE_ANSI_QUOTES); $this->assertEquals('"test"', Context::escape('test')); Context::setMode(); $this->assertEquals('`test`', Context::escape('test')); $this->assertEquals(['`a`', '`b`'], Context::escape(['a', 'b'])); } } sql-parser-5.9.0/tests/Lexer/IsMethodsTest.php000066400000000000000000000131201455302707200213110ustar00rootroot00000000000000assertEquals(1 | Token::FLAG_KEYWORD_RESERVED, Context::isKeyword('SELECT')); $this->assertEquals(1 | Token::FLAG_KEYWORD_RESERVED, Context::isKeyword('ALL')); $this->assertEquals(1 | Token::FLAG_KEYWORD_RESERVED, Context::isKeyword('DISTINCT')); $this->assertEquals( 1 | Token::FLAG_KEYWORD_RESERVED | Token::FLAG_KEYWORD_COMPOSED | Token::FLAG_KEYWORD_KEY, Context::isKeyword('PRIMARY KEY') ); $this->assertEquals( 1 | Token::FLAG_KEYWORD_RESERVED | Token::FLAG_KEYWORD_COMPOSED, Context::isKeyword('CHARACTER SET') ); $this->assertEquals(1 | Token::FLAG_KEYWORD_RESERVED, Context::isKeyword('FROM', true)); $this->assertNull(Context::isKeyword('MODIFY', true)); $this->assertNull(Context::isKeyword('foo')); $this->assertNull(Context::isKeyword('bar baz')); } public function testIsOperator(): void { $this->assertEquals(Token::FLAG_OPERATOR_ARITHMETIC, Context::isOperator('%')); $this->assertEquals(Token::FLAG_OPERATOR_LOGICAL, Context::isOperator('!')); $this->assertEquals(Token::FLAG_OPERATOR_LOGICAL, Context::isOperator('&&')); $this->assertEquals(Token::FLAG_OPERATOR_LOGICAL, Context::isOperator('<=>')); $this->assertEquals(Token::FLAG_OPERATOR_BITWISE, Context::isOperator('&')); $this->assertEquals(Token::FLAG_OPERATOR_ASSIGNMENT, Context::isOperator(':=')); $this->assertEquals(Token::FLAG_OPERATOR_SQL, Context::isOperator(',')); $this->assertNull(Context::isOperator('a')); } public function testIsWhitespace(): void { $this->assertTrue(Context::isWhitespace(' ')); $this->assertTrue(Context::isWhitespace("\r")); $this->assertTrue(Context::isWhitespace("\n")); $this->assertTrue(Context::isWhitespace("\t")); $this->assertFalse(Context::isWhitespace('a')); $this->assertFalse(Context::isWhitespace("\b")); $this->assertFalse(Context::isWhitespace("\u1000")); } public function testIsComment(): void { $this->assertEquals(Token::FLAG_COMMENT_BASH, Context::isComment('#')); $this->assertEquals(Token::FLAG_COMMENT_C, Context::isComment('/*')); $this->assertEquals(Token::FLAG_COMMENT_C, Context::isComment('*/')); $this->assertEquals(Token::FLAG_COMMENT_SQL, Context::isComment('-- ')); $this->assertEquals(Token::FLAG_COMMENT_SQL, Context::isComment("--\t")); $this->assertEquals(Token::FLAG_COMMENT_SQL, Context::isComment("--\n")); $this->assertEquals(Token::FLAG_COMMENT_BASH, Context::isComment('# a comment')); $this->assertEquals(Token::FLAG_COMMENT_C, Context::isComment('/*comment */')); $this->assertEquals(Token::FLAG_COMMENT_SQL, Context::isComment('-- my comment')); $this->assertNull(Context::isComment('')); $this->assertNull(Context::isComment('--not a comment')); } public function testIsBool(): void { $this->assertTrue(Context::isBool('true')); $this->assertTrue(Context::isBool('false')); $this->assertFalse(Context::isBool('tru')); $this->assertFalse(Context::isBool('falsee')); } public function testIsNumber(): void { $this->assertTrue(Context::isNumber('+')); $this->assertTrue(Context::isNumber('-')); $this->assertTrue(Context::isNumber('.')); $this->assertTrue(Context::isNumber('0')); $this->assertTrue(Context::isNumber('1')); $this->assertTrue(Context::isNumber('2')); $this->assertTrue(Context::isNumber('3')); $this->assertTrue(Context::isNumber('4')); $this->assertTrue(Context::isNumber('5')); $this->assertTrue(Context::isNumber('6')); $this->assertTrue(Context::isNumber('7')); $this->assertTrue(Context::isNumber('8')); $this->assertTrue(Context::isNumber('9')); $this->assertTrue(Context::isNumber('e')); $this->assertTrue(Context::isNumber('E')); } public function testIsString(): void { $this->assertEquals(Token::FLAG_STRING_SINGLE_QUOTES, Context::isString("'")); $this->assertEquals(Token::FLAG_STRING_DOUBLE_QUOTES, Context::isString('"')); $this->assertEquals(Token::FLAG_STRING_SINGLE_QUOTES, Context::isString("'foo bar'")); $this->assertEquals(Token::FLAG_STRING_DOUBLE_QUOTES, Context::isString('"foo bar"')); $this->assertNull(Context::isString('')); $this->assertNull(Context::isString('foo bar')); } public function testIsSymbol(): void { $this->assertEquals(Token::FLAG_SYMBOL_VARIABLE, Context::isSymbol('@')); $this->assertEquals(Token::FLAG_SYMBOL_BACKTICK, Context::isSymbol('`')); $this->assertEquals(Token::FLAG_SYMBOL_VARIABLE, Context::isSymbol('@id')); $this->assertEquals(Token::FLAG_SYMBOL_BACKTICK, Context::isSymbol('`id`')); $this->assertNull(Context::isSymbol('')); $this->assertNull(Context::isSymbol('id')); } public function testisSeparator(): void { $this->assertTrue(Context::isSeparator('+')); $this->assertTrue(Context::isSeparator('.')); $this->assertFalse(Context::isSeparator('1')); $this->assertFalse(Context::isSeparator('E')); $this->assertFalse(Context::isSeparator('_')); } } sql-parser-5.9.0/tests/Lexer/LexerTest.php000066400000000000000000000051501455302707200204750ustar00rootroot00000000000000error('error #1', 'foo', 1, 2); $lexer->error( sprintf('%2$s #%1$d', 2, 'error'), 'bar', 3, 4 ); $this->assertEquals( $lexer->errors, [ new LexerException('error #1', 'foo', 1, 2), new LexerException('error #2', 'bar', 3, 4), ] ); } public function testErrorStrict(): void { $this->expectExceptionCode(4); $this->expectExceptionMessage('strict error'); $this->expectException(LexerException::class); $lexer = new Lexer(''); $lexer->strict = true; $lexer->error('strict error', 'foo', 1, 4); } /** * @dataProvider lexProvider */ public function testLex(string $test): void { $this->runParserTest($test); } /** * @return string[][] */ public function lexProvider(): array { return [ ['lexer/lex'], ['lexer/lexUtf8'], ['lexer/lexBool'], ['lexer/lexComment'], ['lexer/lexCommentEnd'], ['lexer/lexDelimiter'], ['lexer/lexDelimiter2'], ['lexer/lexDelimiterErr1'], ['lexer/lexDelimiterErr2'], ['lexer/lexDelimiterErr3'], ['lexer/lexDelimiterLen'], ['lexer/lexKeyword'], ['lexer/lexKeyword2'], ['lexer/lexNumber'], ['lexer/lexOperator'], ['lexer/lexOperatorStarIsArithmetic'], ['lexer/lexOperatorStarIsWildcard'], ['lexer/lexString'], ['lexer/lexStringErr1'], ['lexer/lexSymbol'], ['lexer/lexSymbolErr1'], ['lexer/lexSymbolErr2'], ['lexer/lexSymbolErr3'], ['lexer/lexSymbolUser1'], ['lexer/lexSymbolUser2'], ['lexer/lexSymbolUser3'], ['lexer/lexSymbolUser4_mariadb_100400'], ['lexer/lexSymbolUser5_mariadb_100400'], ['lexer/lexWhitespace'], ['lexer/lexLabel1'], ['lexer/lexLabel2'], ['lexer/lexNoLabel'], ['lexer/lexWildcardThenComment'], ]; } } sql-parser-5.9.0/tests/Lexer/TokenTest.php000066400000000000000000000060531455302707200205010ustar00rootroot00000000000000assertEquals($tok->value, 'SELECT'); $tok = new Token('aS', Token::TYPE_KEYWORD, Token::FLAG_KEYWORD_RESERVED); $this->assertEquals($tok->value, 'AS'); } public function testExtractWhitespace(): void { $tok = new Token(" \t \r \n ", Token::TYPE_WHITESPACE); $this->assertEquals($tok->value, ' '); } public function testExtractBool(): void { $tok = new Token('false', Token::TYPE_BOOL); $this->assertFalse($tok->value); $tok = new Token('True', Token::TYPE_BOOL); $this->assertTrue($tok->value); } public function testExtractNumber(): void { $tok = new Token('--42', Token::TYPE_NUMBER, Token::FLAG_NUMBER_NEGATIVE); $this->assertEquals($tok->value, 42); $tok = new Token('---42', Token::TYPE_NUMBER, Token::FLAG_NUMBER_NEGATIVE); $this->assertEquals($tok->value, -42); $tok = new Token('0xFE', Token::TYPE_NUMBER, Token::FLAG_NUMBER_HEX); $this->assertEquals($tok->value, 0xFE); $tok = new Token('-0xEF', Token::TYPE_NUMBER, Token::FLAG_NUMBER_NEGATIVE | Token::FLAG_NUMBER_HEX); $this->assertEquals($tok->value, -0xEF); $tok = new Token('3.14', Token::TYPE_NUMBER, Token::FLAG_NUMBER_FLOAT); $this->assertEquals($tok->value, 3.14); } public function testExtractString(): void { $tok = new Token('"foo bar "', Token::TYPE_STRING); $this->assertEquals($tok->value, 'foo bar '); $tok = new Token("' bar foo '", Token::TYPE_STRING); $this->assertEquals($tok->value, ' bar foo '); $tok = new Token("'\''", Token::TYPE_STRING); $this->assertEquals($tok->value, '\''); $tok = new Token('"\c\d\e\f\g\h\i\j\k\l\m\p\q\s\u\v\w\x\y\z"', Token::TYPE_STRING); $this->assertEquals($tok->value, 'cdefghijklmpqsuvwxyz'); } public function testExtractSymbol(): void { $tok = new Token('@foo', Token::TYPE_SYMBOL, Token::FLAG_SYMBOL_VARIABLE); $this->assertEquals($tok->value, 'foo'); $tok = new Token('`foo`', Token::TYPE_SYMBOL, Token::FLAG_SYMBOL_BACKTICK); $this->assertEquals($tok->value, 'foo'); $tok = new Token('@`foo`', Token::TYPE_SYMBOL, Token::FLAG_SYMBOL_VARIABLE); $this->assertEquals($tok->value, 'foo'); $tok = new Token(':foo', Token::TYPE_SYMBOL, Token::FLAG_SYMBOL_PARAMETER); $this->assertEquals($tok->value, 'foo'); $tok = new Token('?', Token::TYPE_SYMBOL, Token::FLAG_SYMBOL_PARAMETER); $this->assertEquals($tok->value, '?'); } public function testInlineToken(): void { $token = new Token(" \r \n \t "); $this->assertEquals($token->getInlineToken(), ' \r \n \t '); } } sql-parser-5.9.0/tests/Lexer/TokensListTest.php000066400000000000000000000126661455302707200215270ustar00rootroot00000000000000tokens = [ new Token('SELECT', Token::TYPE_KEYWORD), new Token(' ', Token::TYPE_WHITESPACE), new Token('*', Token::TYPE_OPERATOR), new Token(' ', Token::TYPE_WHITESPACE), new Token('FROM', Token::TYPE_KEYWORD, Token::FLAG_KEYWORD_RESERVED), new Token(' ', Token::TYPE_WHITESPACE), new Token('`test`', Token::TYPE_SYMBOL), new Token(' ', Token::TYPE_WHITESPACE), new Token('WHERE', Token::TYPE_KEYWORD, Token::FLAG_KEYWORD_RESERVED), new Token(' ', Token::TYPE_WHITESPACE), new Token('name', Token::TYPE_NONE), new Token('=', Token::TYPE_OPERATOR), new Token('fa', Token::TYPE_NONE), ]; } public function testBuild(): void { $list = new TokensList($this->tokens); $this->assertEquals('SELECT * FROM `test` WHERE name=fa', TokensList::build($list)); } public function testAdd(): void { $list = new TokensList(); foreach ($this->tokens as $token) { $list->add($token); } $this->assertEquals(new TokensList($this->tokens), $list); } public function testGetNext(): void { $list = new TokensList($this->tokens); $this->assertEquals($this->tokens[0], $list->getNext()); $this->assertEquals($this->tokens[2], $list->getNext()); $this->assertEquals($this->tokens[4], $list->getNext()); $this->assertEquals($this->tokens[6], $list->getNext()); $this->assertEquals($this->tokens[8], $list->getNext()); $this->assertEquals($this->tokens[10], $list->getNext()); $this->assertEquals($this->tokens[11], $list->getNext()); $this->assertEquals($this->tokens[12], $list->getNext()); $this->assertNull($list->getNext()); } public function testGetPrevious(): void { $list = new TokensList($this->tokens); $list->idx = 7; $this->assertEquals($this->tokens[6], $list->getPrevious()); $this->assertEquals($this->tokens[4], $list->getPrevious()); $this->assertEquals($this->tokens[2], $list->getPrevious()); $this->assertEquals($this->tokens[0], $list->getPrevious()); $this->assertNull($list->getPrevious()); } public function testGetNextOfType(): void { $list = new TokensList($this->tokens); $this->assertEquals($this->tokens[0], $list->getNextOfType(Token::TYPE_KEYWORD)); $this->assertEquals($this->tokens[4], $list->getNextOfType([Token::TYPE_KEYWORD])); $this->assertEquals($this->tokens[6], $list->getNextOfType([Token::TYPE_KEYWORD, Token::TYPE_SYMBOL])); $this->assertEquals($this->tokens[8], $list->getNextOfType([Token::TYPE_KEYWORD, Token::TYPE_SYMBOL])); $this->assertNull($list->getNextOfType(Token::TYPE_KEYWORD)); } public function testGetPreviousOfType(): void { $list = new TokensList($this->tokens); $list->idx = 9; $this->assertEquals($this->tokens[8], $list->getPreviousOfType([Token::TYPE_KEYWORD, Token::TYPE_SYMBOL])); $this->assertEquals($this->tokens[6], $list->getPreviousOfType([Token::TYPE_KEYWORD, Token::TYPE_SYMBOL])); $this->assertEquals($this->tokens[4], $list->getPreviousOfType([Token::TYPE_KEYWORD])); $this->assertEquals($this->tokens[0], $list->getPreviousOfType(Token::TYPE_KEYWORD)); $this->assertNull($list->getPreviousOfType(Token::TYPE_KEYWORD)); } public function testGetNextOfTypeAndFlag(): void { $list = new TokensList($this->tokens); $this->assertEquals($this->tokens[4], $list->getNextOfTypeAndFlag( Token::TYPE_KEYWORD, Token::FLAG_KEYWORD_RESERVED )); $this->assertEquals($this->tokens[8], $list->getNextOfTypeAndFlag( Token::TYPE_KEYWORD, Token::FLAG_KEYWORD_RESERVED )); $this->assertNull($list->getNextOfTypeAndFlag(Token::TYPE_KEYWORD, Token::FLAG_KEYWORD_RESERVED)); } public function testGetNextOfTypeAndValue(): void { $list = new TokensList($this->tokens); $this->assertEquals($this->tokens[0], $list->getNextOfTypeAndValue(Token::TYPE_KEYWORD, 'SELECT')); $this->assertNull($list->getNextOfTypeAndValue(Token::TYPE_KEYWORD, 'SELECT')); } public function testArrayAccess(): void { $list = new TokensList(); // offsetSet(NULL, $value) foreach ($this->tokens as $token) { $list[] = $token; } // offsetSet($offset, $value) $list[2] = $this->tokens[2]; // offsetGet($offset) for ($i = 0, $count = count($this->tokens); $i < $count; ++$i) { $this->assertEquals($this->tokens[$i], $list[$i]); } // offsetExists($offset) $this->assertArrayHasKey(2, $list); $this->assertArrayNotHasKey(13, $list); // offsetUnset($offset) unset($list[2]); $this->assertEquals($this->tokens[3], $list[2]); } } sql-parser-5.9.0/tests/Misc/000077500000000000000000000000001455302707200156605ustar00rootroot00000000000000sql-parser-5.9.0/tests/Misc/BugsTest.php000066400000000000000000000020311455302707200201250ustar00rootroot00000000000000runParserTest($test); } /** * @return string[][] */ public function bugProvider(): array { return [ ['bugs/fuzz1'], ['bugs/fuzz2'], ['bugs/fuzz3'], ['bugs/fuzz4'], ['bugs/gh9'], ['bugs/gh14'], ['bugs/gh16'], ['bugs/gh202'], ['bugs/gh234'], ['bugs/gh317'], ['bugs/gh412'], ['bugs/gh478'], ['bugs/gh492'], ['bugs/gh496'], ['bugs/gh498'], ['bugs/gh499'], ['bugs/gh508'], ['bugs/gh511'], ['bugs/pma11800'], ['bugs/pma11836'], ['bugs/pma11843'], ['bugs/pma11879'], ]; } } sql-parser-5.9.0/tests/Misc/ParameterTest.php000066400000000000000000000010131455302707200211440ustar00rootroot00000000000000runParserTest($test); } /** * @return string[][] */ public function parameterProvider(): array { return [ ['misc/parseParameter'], ['misc/parseParameter2'], ]; } } sql-parser-5.9.0/tests/Misc/UtfStringTest.php000066400000000000000000000076221455302707200211650ustar00rootroot00000000000000assertArrayHasKey(self::TEST_PHRASE_LEN - 1, $str); $this->assertArrayNotHasKey(-1, $str); $this->assertArrayNotHasKey(self::TEST_PHRASE_LEN, $str); // offsetGet $this->assertEquals('.', $str[self::TEST_PHRASE_LEN - 1]); $this->assertNull($str[-1]); $this->assertNull($str[self::TEST_PHRASE_LEN]); } public function testSet(): void { $this->expectExceptionMessage('Not implemented.'); $this->expectException(Throwable::class); $str = new UtfString(''); $str[0] = 'a'; } public function testUnset(): void { $this->expectExceptionMessage('Not implemented.'); $this->expectException(Throwable::class); $str = new UtfString(''); unset($str[0]); } public function testGetCharLength(): void { $this->assertEquals(1, UtfString::getCharLength(chr(0x00))); // 00000000 $this->assertEquals(1, UtfString::getCharLength(chr(0x7F))); // 01111111 $this->assertEquals(2, UtfString::getCharLength(chr(0xC0))); // 11000000 $this->assertEquals(2, UtfString::getCharLength(chr(0xDF))); // 11011111 $this->assertEquals(3, UtfString::getCharLength(chr(0xE0))); // 11100000 $this->assertEquals(3, UtfString::getCharLength(chr(0xEF))); // 11101111 $this->assertEquals(4, UtfString::getCharLength(chr(0xF0))); // 11110000 $this->assertEquals(4, UtfString::getCharLength(chr(0xF7))); // 11110111 $this->assertEquals(5, UtfString::getCharLength(chr(0xF8))); // 11111000 $this->assertEquals(5, UtfString::getCharLength(chr(0xFB))); // 11111011 $this->assertEquals(6, UtfString::getCharLength(chr(0xFC))); // 11111100 $this->assertEquals(6, UtfString::getCharLength(chr(0xFD))); // 11111101 } public function testToString(): void { $str = new UtfString(self::TEST_PHRASE); $this->assertEquals(self::TEST_PHRASE, (string) $str); } /** * Test access to string. * * @dataProvider utf8StringsProvider */ public function testAccess(string $text, ?string $pos10, ?string $pos20): void { $str = new UtfString($text); $this->assertEquals($pos10, $str->offsetGet(10)); $this->assertEquals($pos20, $str->offsetGet(20)); $this->assertEquals($pos10, $str->offsetGet(10)); } /** * @return array> * @psalm-return array */ public function utf8StringsProvider(): array { return [ 'ascii' => [ 'abcdefghijklmnopqrstuvwxyz', 'k', 'u', ], 'unicode' => [ 'áéíóúýěřťǔǐǒǎšďȟǰǩľžčǚň', 'ǐ', 'č', ], 'emoji' => [ '😂😄😃😀😊😉😍😘😚😗😂👿😮😨😱😠😡😤😖😆😋👯', '😂', '😋', ], 'iso' => [ "P\xf8\xed\xb9ern\xec \xbelu\xbbou\xe8k\xfd k\xf3d \xfap\xecl \xef\xe1belsk\xe9 k\xf3dy", null, null, ], ]; } } sql-parser-5.9.0/tests/Parser/000077500000000000000000000000001455302707200162215ustar00rootroot00000000000000sql-parser-5.9.0/tests/Parser/AlterStatementTest.php000066400000000000000000000072151455302707200225330ustar00rootroot00000000000000runParserTest($test); } /** * @return string[][] */ public function alterProvider(): array { return [ ['parser/parseAlter'], ['parser/parseAlter2'], ['parser/parseAlter3'], ['parser/parseAlter4'], ['parser/parseAlter5'], ['parser/parseAlter6'], ['parser/parseAlter7'], ['parser/parseAlter8'], ['parser/parseAlter9'], ['parser/parseAlter10'], ['parser/parseAlter11'], ['parser/parseAlter12'], ['parser/parseAlter13'], ['parser/parseAlter14'], ['parser/parseAlterErr'], ['parser/parseAlterErr2'], ['parser/parseAlterErr3'], ['parser/parseAlterErr4'], ['parser/parseAlterTableRenameIndex1'], ['parser/parseAlterTableRenameIndex2'], ['parser/parseAlterTablePartitionByRange1'], ['parser/parseAlterTablePartitionByRange2'], ['parser/parseAlterTableCoalescePartition'], ['parser/parseAlterTableAddSpatialIndex1'], ['parser/parseAlterTableDropAddIndex1'], ['parser/parseAlterTableDropColumn1'], ['parser/parseAlterTableModifyColumn'], ['parser/parseAlterTableModifyColumnEnum1'], ['parser/parseAlterTableModifyColumnEnum2'], ['parser/parseAlterTableModifyColumnEnum3'], ['parser/parseAlterWithInvisible'], ['parser/parseAlterTableCharacterSet1'], ['parser/parseAlterTableCharacterSet2'], ['parser/parseAlterTableCharacterSet3'], ['parser/parseAlterTableCharacterSet4'], ['parser/parseAlterTableCharacterSet5'], ['parser/parseAlterTableCharacterSet6'], ['parser/parseAlterTableCharacterSet7'], ['parser/parseAlterUser'], ['parser/parseAlterUser1'], ['parser/parseAlterUser2'], ['parser/parseAlterUser3'], ['parser/parseAlterUser4'], ['parser/parseAlterUser5'], ['parser/parseAlterUser6'], ['parser/parseAlterUser7'], ['parser/parseAlterUser8'], ['parser/parseAlterUser9'], ['parser/parseAlterUser10'], ['parser/parseAlterEvent'], ['parser/parseAlterEvent2'], ['parser/parseAlterEvent3'], ['parser/parseAlterEvent4'], ['parser/parseAlterEvent5'], ['parser/parseAlterEvent6'], ['parser/parseAlterEvent7'], ['parser/parseAlterEvent8'], ['parser/parseAlterEvent9'], ['parser/parseAlterEventComplete'], ['parser/parseAlterEventErr'], ['parser/parseAlterEventOnScheduleAt'], ['parser/parseAlterEventOnScheduleAt2'], ['parser/parseAlterEventOnScheduleEvery'], ['parser/parseAlterEventOnScheduleEvery2'], ['parser/parseAlterEventOnScheduleEvery3'], ['parser/parseAlterEventOnScheduleEvery4'], ['parser/parseAlterEventOnScheduleEvery5'], ['parser/parseAlterEventOnScheduleEvery6'], ['parser/parseAlterEventWithDefiner'], ['parser/parseAlterEventWithOtherDefiners'], ['parser/parseAlterRenameColumn'], ['parser/parseAlterRenameColumns'], ]; } } sql-parser-5.9.0/tests/Parser/AnalyzeStatementTest.php000066400000000000000000000011521455302707200230610ustar00rootroot00000000000000runParserTest($test); } /** * @return string[][] */ public function analyzeProvider(): array { return [ ['parser/parseAnalyzeTable'], ['parser/parseAnalyzeTable1'], ['parser/parseAnalyzeErr1'], ['parser/parseAnalyzeErr2'], ]; } } sql-parser-5.9.0/tests/Parser/CallStatementTest.php000066400000000000000000000011451455302707200223330ustar00rootroot00000000000000runParserTest($test); } /** * @return string[][] */ public function callProvider(): array { return [ ['parser/parseCall'], ['parser/parseCall2'], ['parser/parseCall3'], ['parser/parseCall4'], ['parser/parseCall5'], ]; } } sql-parser-5.9.0/tests/Parser/CreateStatementTest.php000066400000000000000000000060751455302707200226720ustar00rootroot00000000000000runParserTest($test); } /** * @return string[][] */ public function createProvider(): array { return [ ['parser/parseCreateDatabase'], ['parser/parseCreateDatabaseErr'], ['parser/parseCreateFunction'], ['parser/parseCreateFunctionErr1'], ['parser/parseCreateFunctionErr2'], ['parser/parseCreateFunctionErr3'], ['parser/parseCreateProcedure'], ['parser/parseCreateProcedure1'], ['parser/parseCreateProcedure2'], ['parser/parseCreateProcedure3'], ['parser/parseCreateProcedure4'], ['parser/parseCreateSchema'], ['parser/parseCreateSchemaErr'], ['parser/parseCreateTable'], ['parser/parseCreateTable2'], ['parser/parseCreateTable3'], ['parser/parseCreateTable4'], ['parser/parseCreateTable5'], ['parser/parseCreateTable6'], ['parser/parseCreateTable7'], ['parser/parseCreateTable8'], ['parser/parseCreateTable9'], ['parser/parseCreateTable10'], ['parser/parseCreateTable11'], ['parser/parseCreateTable12'], ['parser/parseCreateTable13'], ['parser/parseCreateTable14'], ['parser/parseCreateTable15'], ['parser/parseCreateTable16'], ['parser/parseCreateTable17'], ['parser/parseCreateTable18'], ['parser/parseCreateTableErr1'], ['parser/parseCreateTableErr2'], ['parser/parseCreateTableErr3'], ['parser/parseCreateTableErr4'], ['parser/parseCreateTableErr5'], ['parser/parseCreateTableSelect'], ['parser/parseCreateTableAsSelect'], ['parser/parseCreateTableLike'], ['parser/parseCreateTableSpatial'], ['parser/parseCreateTableTimestampWithPrecision'], ['parser/parseCreateTableEnforcedCheck'], ['parser/parseCreateTableNotEnforcedCheck'], ['parser/parseCreateTableWithInvisibleKey'], ['parser/parseCreateTrigger'], ['parser/parseCreateUser1'], ['parser/parseCreateUser2'], ['parser/parseCreateView'], ['parser/parseCreateView2'], ['parser/parseCreateView3'], ['parser/parseCreateView4'], ['parser/parseCreateView5'], ['parser/parseCreateViewMultiple'], ['parser/parseCreateViewWithoutQuotes'], ['parser/parseCreateViewWithQuotes'], ['parser/parseCreateViewWithWrongSyntax'], ['parser/parseCreateViewWithUnion'], ['parser/parseCreateViewAsWithAs'], ['parser/parseCreateOrReplaceView1'], ]; } } sql-parser-5.9.0/tests/Parser/DeleteStatementTest.php000066400000000000000000000026101455302707200226600ustar00rootroot00000000000000runParserTest($test); } /** * @return string[][] */ public function deleteProvider(): array { return [ ['parser/parseDelete'], ['parser/parseDelete2'], ['parser/parseDelete3'], ['parser/parseDelete4'], ['parser/parseDelete5'], ['parser/parseDelete6'], ['parser/parseDelete7'], ['parser/parseDelete8'], ['parser/parseDelete9'], ['parser/parseDelete10'], ['parser/parseDelete11'], ['parser/parseDelete12'], ['parser/parseDeleteErr1'], ['parser/parseDeleteErr2'], ['parser/parseDeleteErr3'], ['parser/parseDeleteErr4'], ['parser/parseDeleteErr5'], ['parser/parseDeleteErr6'], ['parser/parseDeleteErr7'], ['parser/parseDeleteErr8'], ['parser/parseDeleteErr9'], ['parser/parseDeleteErr10'], ['parser/parseDeleteErr11'], ['parser/parseDeleteErr12'], ['parser/parseDeleteJoin'], ]; } } sql-parser-5.9.0/tests/Parser/DropStatementTest.php000066400000000000000000000007741455302707200223730ustar00rootroot00000000000000runParserTest($test); } /** * @return string[][] */ public function dropProvider(): array { return [ ['parser/parseDrop'], ['parser/parseDrop2'], ]; } } sql-parser-5.9.0/tests/Parser/ExplainStatementTest.php000066400000000000000000000022441455302707200230610ustar00rootroot00000000000000runParserTest($test); } /** * @return string[][] */ public function explainProvider(): array { return [ ['parser/parseExplain'], ['parser/parseExplain1'], ['parser/parseExplain2'], ['parser/parseExplain3'], ['parser/parseExplain4'], ['parser/parseExplain5'], ['parser/parseExplain6'], ['parser/parseExplain7'], ['parser/parseExplain8'], ['parser/parseExplain9'], ['parser/parseExplain10'], ['parser/parseExplain11'], ['parser/parseExplain12'], ['parser/parseExplain13'], ['parser/parseExplain14'], ['parser/parseExplainErr'], ['parser/parseExplainErr1'], ['parser/parseExplainErr2'], ['parser/parseExplainErr3'], ]; } } sql-parser-5.9.0/tests/Parser/InsertStatementTest.php000066400000000000000000000016071455302707200227270ustar00rootroot00000000000000runParserTest($test); } /** * @return string[][] */ public function insertProvider(): array { return [ ['parser/parseInsert'], ['parser/parseInsertFunction'], ['parser/parseInsertSelect'], ['parser/parseInsertOnDuplicateKey'], ['parser/parseInsertSetOnDuplicateKey'], ['parser/parseInsertSelectOnDuplicateKey'], ['parser/parseInsertOnDuplicateKeyErr'], ['parser/parseInsertErr'], ['parser/parseInsertErr2'], ['parser/parseInsertIntoErr'], ]; } } sql-parser-5.9.0/tests/Parser/LoadStatementTest.php000066400000000000000000000022711455302707200223400ustar00rootroot00000000000000getData('parser/parseLoad1'); $parser = new Parser($data['query']); $stmt = $parser->statements[0]; $this->assertEquals(10, $stmt->options->has('CONCURRENT')); } /** * @dataProvider loadProvider */ public function testLoad(string $test): void { $this->runParserTest($test); } /** * @return string[][] */ public function loadProvider(): array { return [ ['parser/parseLoad1'], ['parser/parseLoad2'], ['parser/parseLoad3'], ['parser/parseLoad4'], ['parser/parseLoad5'], ['parser/parseLoad6'], ['parser/parseLoad7'], ['parser/parseLoadErr1'], ['parser/parseLoadErr2'], ['parser/parseLoadErr3'], ['parser/parseLoadErr4'], ['parser/parseLoadErr5'], ['parser/parseLoadErr6'], ]; } } sql-parser-5.9.0/tests/Parser/LockStatementTest.php000066400000000000000000000020601455302707200223450ustar00rootroot00000000000000runParserTest($test); } /** * @return string[][] */ public function lockProvider(): array { return [ ['parser/parseLock1'], ['parser/parseLock2'], ['parser/parseLock3'], ['parser/parseLock4'], ['parser/parseLock5'], ['parser/parseLockErr1'], ['parser/parseLockErr2'], ['parser/parseLockErr3'], ['parser/parseLockErr4'], ['parser/parseLockErr5'], ['parser/parseLockErr6'], ['parser/parseLockErr7'], ['parser/parseLockErr8'], ['parser/parseLockErr9'], ['parser/parseLockErr10'], ['parser/parseUnlock1'], ['parser/parseUnlockErr1'], ]; } } sql-parser-5.9.0/tests/Parser/ParserLongExportsTest.php000066400000000000000000000100101455302707200232230ustar00rootroot00000000000000parse(); $sql = []; foreach ($parser->statements as $stmt) { $sql[] = $stmt->__toString(); } $this->assertEquals($expectedSql, $sql); } public function testParsephpMyAdminDump(): void { $data = $this->getData('parser/parsephpMyAdminExport1'); $parser = new Parser($data['query']); $collectedSetStatements = []; foreach ($parser->statements as $statement) { if ($statement instanceof TransactionStatement) { foreach ($statement->statements as $transactionStatement) { if (! $transactionStatement instanceof SetStatement) { continue; } $collectedSetStatements[] = $transactionStatement->build(); } continue; } if (! $statement instanceof SetStatement) { continue; } $collectedSetStatements[] = $statement->build(); } $this->assertEquals([ 'SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"', 'SET AUTOCOMMIT = 0', 'SET time_zone = "+00:00"', 'SET @OLD_CHARACTER_SET_CLIENT = @@CHARACTER_SET_CLIENT', 'SET @OLD_CHARACTER_SET_RESULTS = @@CHARACTER_SET_RESULTS', 'SET @OLD_COLLATION_CONNECTION = @@COLLATION_CONNECTION', 'SET NAMES utf8mb4', 'SET CHARACTER_SET_CLIENT = @OLD_CHARACTER_SET_CLIENT', 'SET CHARACTER_SET_RESULTS = @OLD_CHARACTER_SET_RESULTS', 'SET COLLATION_CONNECTION = @OLD_COLLATION_CONNECTION', ], $collectedSetStatements); foreach ($parser->statements as $stmt) { // Check they all build $this->assertIsString($stmt->build()); } } /** * @dataProvider exportFileProvider */ public function testParseExport(string $test): void { $this->runParserTest($test); } /** * @return string[][] */ public function exportFileProvider(): array { return [ ['parser/parsephpMyAdminExport1'], ]; } } sql-parser-5.9.0/tests/Parser/ParserTest.php000066400000000000000000000041141455302707200210260ustar00rootroot00000000000000runParserTest($test); } /** * @return string[][] */ public function parseProvider(): array { return [ ['parser/parse'], ['parser/parse2'], ['parser/parseDelimiter'], ]; } public function testUnrecognizedStatement(): void { $parser = new Parser('SELECT 1; FROM'); $this->assertEquals( 'Unrecognized statement type.', $parser->errors[0]->getMessage() ); } public function testUnrecognizedKeyword(): void { $parser = new Parser('SELECT 1 FROM foo PARTITION(bar, baz) AS'); $this->assertEquals( 'Unrecognized keyword.', $parser->errors[0]->getMessage() ); } /** * @runInSeparateProcess * @preserveGlobalState disabled */ public function testError(): void { $parser = new Parser(new TokensList()); $parser->error('error #1', new Token('foo'), 1); $parser->error(sprintf('%2$s #%1$d', 2, 'error'), new Token('bar'), 2); $this->assertEquals( $parser->errors, [ new ParserException('error #1', new Token('foo'), 1), new ParserException('error #2', new Token('bar'), 2), ] ); } public function testErrorStrict(): void { $this->expectExceptionCode(3); $this->expectExceptionMessage('strict error'); $this->expectException(ParserException::class); $parser = new Parser(new TokensList()); $parser->strict = true; $parser->error('strict error', new Token('foo'), 3); } } sql-parser-5.9.0/tests/Parser/PurgeStatementTest.php000066400000000000000000000012761455302707200225470ustar00rootroot00000000000000runParserTest($test); } /** * @return string[][] */ public function purgeProvider(): array { return [ ['parser/parsePurge'], ['parser/parsePurge2'], ['parser/parsePurge3'], ['parser/parsePurge4'], ['parser/parsePurgeErr'], ['parser/parsePurgeErr2'], ['parser/parsePurgeErr3'], ]; } } sql-parser-5.9.0/tests/Parser/RenameStatementTest.php000066400000000000000000000013201455302707200226620ustar00rootroot00000000000000runParserTest($test); } /** * @return string[][] */ public function renameProvider(): array { return [ ['parser/parseRename'], ['parser/parseRename2'], ['parser/parseRenameErr1'], ['parser/parseRenameErr2'], ['parser/parseRenameErr3'], ['parser/parseRenameErr4'], ['parser/parseRenameErr5'], ]; } } sql-parser-5.9.0/tests/Parser/ReplaceStatementTest.php000066400000000000000000000014621455302707200230350ustar00rootroot00000000000000runParserTest($test); } /** * @return string[][] */ public function replaceProvider(): array { return [ ['parser/parseReplace'], ['parser/parseReplace2'], ['parser/parseReplaceValues'], ['parser/parseReplaceSet'], ['parser/parseReplaceSelect'], ['parser/parseReplaceErr'], ['parser/parseReplaceErr2'], ['parser/parseReplaceErr3'], ['parser/parseReplaceIntoErr'], ]; } } sql-parser-5.9.0/tests/Parser/RestoreStatementTest.php000066400000000000000000000007501455302707200231040ustar00rootroot00000000000000runParserTest($test); } /** * @return string[][] */ public function restoreProvider(): array { return [ ['parser/parseRestore'], ]; } } sql-parser-5.9.0/tests/Parser/SelectStatementTest.php000066400000000000000000000077571455302707200227160ustar00rootroot00000000000000getData('parser/parseSelect'); $parser = new Parser($data['query']); $stmt = $parser->statements[0]; $this->assertEquals(10, $stmt->options->has('MAX_STATEMENT_TIME')); } /** * @dataProvider selectProvider */ public function testSelect(string $test): void { $this->runParserTest($test); } /** * @return string[][] */ public function selectProvider(): array { return [ ['parser/parseSelect2'], ['parser/parseSelect3'], ['parser/parseSelect4'], ['parser/parseSelect5'], ['parser/parseSelect6'], ['parser/parseSelect7'], ['parser/parseSelect8'], ['parser/parseSelect9'], ['parser/parseSelect10'], ['parser/parseSelect11'], ['parser/parseSelect12'], ['parser/parseSelect13'], ['parser/parseSelect14'], ['parser/parseSelect15'], ['parser/parseSelect16'], ['parser/parseSelectAggregateWithPartitionAndAlias'], ['parser/parseSelectErr1'], ['parser/parseSelectErr2'], ['parser/parseSelectNested'], ['parser/parseSelectCase1'], ['parser/parseSelectCase2'], ['parser/parseSelectCase3'], ['parser/parseSelectCase4'], ['parser/parseSelectCase5'], ['parser/parseSelectCaseErr1'], ['parser/parseSelectCaseErr2'], ['parser/parseSelectCaseErr3'], ['parser/parseSelectCaseErr4'], ['parser/parseSelectCaseErr5'], ['parser/parseSelectCaseAlias1'], ['parser/parseSelectCaseAlias2'], ['parser/parseSelectCaseAlias3'], ['parser/parseSelectCaseAlias4'], ['parser/parseSelectCaseAlias5'], ['parser/parseSelectCaseAlias6'], ['parser/parseSelectCaseAliasErr1'], ['parser/parseSelectCaseAliasErr2'], ['parser/parseSelectCaseAliasErr3'], ['parser/parseSelectCaseAliasErr4'], ['parser/parseSelectExists'], ['parser/parseSelectIntoOptions1'], ['parser/parseSelectIntoOptions2'], ['parser/parseSelectIntoOptions3'], ['parser/parseSelectJoinCross'], ['parser/parseSelectJoinNatural'], ['parser/parseSelectJoinNaturalLeft'], ['parser/parseSelectJoinNaturalRight'], ['parser/parseSelectJoinNaturalLeftOuter'], ['parser/parseSelectJoinNaturalRightOuter'], ['parser/parseSelectJoinMultiple'], ['parser/parseSelectJoinMultiple2'], ['parser/parseSelectWrongOrder'], ['parser/parseSelectWrongOrder2'], ['parser/parseSelectEndOptions1'], ['parser/parseSelectEndOptions2'], ['parser/parseSelectEndOptionsErr'], ['parser/parseSelectUnion'], ['parser/parseSelectUnion2'], ['parser/parseSelectWhere'], ['parser/parseSelectWhereCollate'], ['parser/parseSelectIndexHint1'], ['parser/parseSelectIndexHint2'], ['parser/parseSelectOrderByIsNull'], ['parser/parseSelectIndexHintErr1'], ['parser/parseSelectIndexHintErr2'], ['parser/parseSelectIndexHintErr3'], ['parser/parseSelectIndexHintErr4'], ['parser/parseSelectWithParenthesis'], ['parser/parseSelectOrderByComment'], ['parser/parseSelectOverAlias_mariadb_100600'], ['parser/parseSelectGroupBy'], ['parser/parseSelectGroupByErr'], ['parser/parseSelectGroupByWithComments'], ['parser/parseTable1'], ]; } } sql-parser-5.9.0/tests/Parser/SetStatementTest.php000066400000000000000000000017111455302707200222120ustar00rootroot00000000000000runParserTest($test); } /** * @return string[][] */ public function setProvider(): array { return [ ['parser/parseSetCharset'], ['parser/parseSetCharsetError'], ['parser/parseSetCharacterSet'], ['parser/parseSetCharacterSetError'], ['parser/parseAlterTableSetAutoIncrementError'], ['parser/parseSetNames'], ['parser/parseSetNamesError'], ['parser/parseSetError1'], ['parser/parseInsertIntoSet'], ['parser/parseSetVariable'], ['parser/parseSetVariable2'], ['parser/parseSetGlobalVariable'], ]; } } sql-parser-5.9.0/tests/Parser/TransactionStatementTest.php000066400000000000000000000022241455302707200237440ustar00rootroot00000000000000getData('parser/parseTransaction4'); $parser = new Parser($data['query']); $stmt = $parser->statements[0]; $this->assertEquals( 'START TRANSACTION;SET time_zone = "+00:00";', $stmt->build() ); } /** * @dataProvider transactionProvider */ public function testTransaction(string $test): void { $this->runParserTest($test); } /** * @return string[][] */ public function transactionProvider(): array { return [ ['parser/parseTransaction'], ['parser/parseTransaction2'], ['parser/parseTransaction3'], ['parser/parseTransaction4'], ['parser/parseTransaction5'], ['parser/parseTransaction6'], ['parser/parseTransaction7'], ['parser/parseTransactionErr1'], ]; } } sql-parser-5.9.0/tests/Parser/UpdateStatementTest.php000066400000000000000000000013511455302707200227010ustar00rootroot00000000000000runParserTest($test); } /** * @return string[][] */ public function updateProvider(): array { return [ ['parser/parseUpdate1'], ['parser/parseUpdate2'], ['parser/parseUpdate3'], ['parser/parseUpdate4'], ['parser/parseUpdate5'], ['parser/parseUpdate6'], ['parser/parseUpdate7'], ['parser/parseUpdateErr'], ]; } } sql-parser-5.9.0/tests/Parser/WithStatementTest.php000066400000000000000000000111441455302707200223730ustar00rootroot00000000000000runParserTest($test); } /** * @return string[][] */ public function parseWith(): array { return [ ['parser/parseWithStatement'], ['parser/parseWithStatement1'], ['parser/parseWithStatement2'], ['parser/parseWithStatement3'], ['parser/parseWithStatement4'], ['parser/parseWithStatement5'], ['parser/parseWithStatement6'], ['parser/parseWithStatement7'], ['parser/parseWithStatementErr'], ['parser/parseWithStatementErr1'], ['parser/parseWithStatementErr2'], ['parser/parseWithStatementErr3'], ['parser/parseWithStatementErr4'], ['parser/parseWithStatementErr5'], ['parser/parseWithStatementErr6'], ['parser/parseWithStatementErr7'], ['parser/parseWithStatementErr8'], ]; } public function testWith(): void { $sql = <<getErrorsAsArray($lexer); $this->assertCount(0, $lexerErrors); $parser = new Parser($lexer->list); $parserErrors = $this->getErrorsAsArray($parser); $this->assertCount(0, $parserErrors); $this->assertCount(1, $parser->statements); // phpcs:disable Generic.Files.LineLength.TooLong $expected = <<assertEquals($expected, $parser->statements[0]->build()); } public function testWithHasErrors(): void { $sql = <<getErrorsAsArray($lexer); $this->assertCount(0, $lexerErrors); $parser = new Parser($lexer->list); $parserErrors = $this->getErrorsAsArray($parser); $this->assertCount(4, $parserErrors); } public function testWithEmbedParenthesis(): void { $sql = <<getErrorsAsArray($lexer); $this->assertCount(0, $lexerErrors); $parser = new Parser($lexer->list); $parserErrors = $this->getErrorsAsArray($parser); $this->assertCount(0, $parserErrors); // phpcs:disable Generic.Files.LineLength.TooLong $expected = <<assertEquals($expected, $parser->statements[0]->build()); } public function testWithHasUnclosedParenthesis(): void { $sql = <<getErrorsAsArray($lexer); $this->assertCount(0, $lexerErrors); $parser = new Parser($lexer->list); $parserErrors = $this->getErrorsAsArray($parser); $this->assertEquals($parserErrors[0][0], 'A closing bracket was expected.'); } public function testBuildWrongWithKeyword(): void { $this->expectExceptionMessage('Can not build a component that is not a WithKeyword'); WithKeyword::build(new stdClass()); } public function testBuildBadWithKeyword(): void { $this->expectExceptionMessage('No statement inside WITH'); WithKeyword::build(new WithKeyword('test')); } } sql-parser-5.9.0/tests/TestCase.php000066400000000000000000000123721455302707200172160ustar00rootroot00000000000000list; } /** * Gets the errors as an array. * * @param Lexer|Parser $obj object containing the errors * * @return array> * @psalm-return ( * $obj is Lexer * ? list * : list * ) */ public function getErrorsAsArray($obj): array { $ret = []; if ($obj instanceof Lexer) { /** @var LexerException $err */ foreach ($obj->errors as $err) { $ret[] = [$err->getMessage(), $err->ch, $err->pos, (int) $err->getCode()]; } } elseif ($obj instanceof Parser) { /** @var ParserException $err */ foreach ($obj->errors as $err) { $ret[] = [$err->getMessage(), $err->token, (int) $err->getCode()]; } } return $ret; } /** * Gets test's input and expected output. * * @param string $name the name of the test * * @return array[]>|null> * @psalm-return array{ * query: string, * lexer: Lexer, * parser: Parser|null, * errors: array{lexer: list, parser: list} * } */ public function getData(string $name): array { $serializedData = file_get_contents('tests/data/' . $name . '.out'); $this->assertIsString($serializedData); $serializer = new CustomJsonSerializer(); $data = $serializer->unserialize($serializedData); $this->assertIsArray($data); $this->assertArrayHasKey('query', $data); $this->assertArrayHasKey('lexer', $data); $this->assertArrayHasKey('parser', $data); $this->assertArrayHasKey('errors', $data); $this->assertIsString($data['query']); $this->assertInstanceOf(Lexer::class, $data['lexer']); if ($data['parser'] !== null) { $this->assertInstanceOf(Parser::class, $data['parser']); } $this->assertIsArray($data['errors']); $this->assertArrayHasKey('lexer', $data['errors']); $this->assertArrayHasKey('parser', $data['errors']); $this->assertIsArray($data['errors']['lexer']); $this->assertIsArray($data['errors']['parser']); $data['query'] = file_get_contents('tests/data/' . $name . '.in'); $this->assertIsString($data['query']); return $data; } /** * Runs a test. * * @param string $name the name of the test */ public function runParserTest(string $name): void { /** * Test's data. */ $data = $this->getData($name); if (str_contains($name, '/ansi/')) { // set mode if appropriate Context::setMode(Context::SQL_MODE_ANSI_QUOTES); } $mariaDbPos = strpos($name, '_mariadb_'); if ($mariaDbPos !== false) {// Keep in sync with TestGenerator.php // set context $mariaDbVersion = (int) substr($name, $mariaDbPos + 9, 6); Context::load('MariaDb' . $mariaDbVersion); } // Lexer. $lexer = new Lexer($data['query']); $lexerErrors = $this->getErrorsAsArray($lexer); $lexer->errors = []; // Parser. $parser = empty($data['parser']) ? null : new Parser($lexer->list); $parserErrors = []; if ($parser !== null) { $parserErrors = $this->getErrorsAsArray($parser); $parser->errors = []; } // Testing objects. $this->assertEquals($data['lexer'], $lexer); $this->assertEquals($data['parser'], $parser); // Testing errors. $this->assertEquals($data['errors']['parser'], $parserErrors); $this->assertEquals($data['errors']['lexer'], $lexerErrors); // reset mode after test run Context::setMode(); } } sql-parser-5.9.0/tests/Tools/000077500000000000000000000000001455302707200160655ustar00rootroot00000000000000sql-parser-5.9.0/tests/Tools/ContextGeneratorTest.php000066400000000000000000000050731455302707200227360ustar00rootroot00000000000000assertEquals('MySQL 8.0', $name); $name = ContextGenerator::formatName('MariaDb100200'); $this->assertEquals('MariaDB 10.2', $name); $name = ContextGenerator::formatName('MariaDb100000'); $this->assertEquals('MariaDB 10.0', $name); } public function testSortWords(): void { $wordsArray = ['41' => [['GEOMETRYCOLLECTION', 'DATE']], '35' => [['SCHEMA', 'REPEAT', 'VALUES']]]; ContextGenerator::sortWords($wordsArray); $this->assertEquals([ '41' => ['0' => ['DATE', 'GEOMETRYCOLLECTION']], '35' => ['0' => ['REPEAT', 'SCHEMA', 'VALUES']], ], $wordsArray); } public function testReadWords(): void { $testFiles = [getcwd() . '/tests/Tools/contexts/testContext.txt']; $readWords = ContextGenerator::readWords($testFiles); $this->assertEquals([ Token::TYPE_KEYWORD | Token::FLAG_KEYWORD_RESERVED => [ 8 => ['RESERVED'], 9 => ['RESERVED2','RESERVED3','RESERVED4','RESERVED5'], ], Token::TYPE_KEYWORD | Token::FLAG_KEYWORD_FUNCTION => [8 => ['FUNCTION']], Token::TYPE_KEYWORD | Token::FLAG_KEYWORD_DATA_TYPE => [8 => ['DATATYPE']], Token::TYPE_KEYWORD | Token::FLAG_KEYWORD_KEY => [7 => ['KEYWORD']], Token::TYPE_KEYWORD => [7 => ['NO_FLAG']], Token::TYPE_KEYWORD | Token::FLAG_KEYWORD_RESERVED | 4 => [16 => ['COMPOSED KEYWORD']], ], $readWords); } public function testGenerate(): void { $testFiles = [getcwd() . '/tests/Tools/contexts/testContext.txt']; $readWords = ContextGenerator::readWords($testFiles); ContextGenerator::printWords($readWords); $options = [ 'keywords' => $readWords, 'name' => 'MYSQL TEST', 'class' => 'TestContext', 'link' => 'https://www.phpmyadmin.net/contribute', ]; $generatedTemplate = ContextGenerator::generate($options); $expectedTemplate = file_get_contents(getcwd() . '/tests/Tools/templates/TestContext.php'); $this->assertEquals($expectedTemplate, $generatedTemplate); } } sql-parser-5.9.0/tests/Tools/contexts/000077500000000000000000000000001455302707200177345ustar00rootroot00000000000000sql-parser-5.9.0/tests/Tools/contexts/testContext.txt000066400000000000000000000002171455302707200230210ustar00rootroot00000000000000RESERVED (R) RESERVED2 (R) RESERVED3 (R) RESERVED4 (R) RESERVED5 (R) FUNCTION (F) DATATYPE (D) KEYWORD (K) NO_FLAG COMPOSED KEYWORD FUNCTIONsql-parser-5.9.0/tests/Tools/templates/000077500000000000000000000000001455302707200200635ustar00rootroot00000000000000sql-parser-5.9.0/tests/Tools/templates/TestContext.php000066400000000000000000000020531455302707200230600ustar00rootroot00000000000000 * @phpstan-var non-empty-array */ public static $KEYWORDS = [ 'NO_FLAG' => 1, 'RESERVED' => 3, 'RESERVED2' => 3, 'RESERVED3' => 3, 'RESERVED4' => 3, 'RESERVED5' => 3, 'COMPOSED KEYWORD' => 7, 'DATATYPE' => 9, 'KEYWORD' => 17, 'FUNCTION' => 33, ]; } sql-parser-5.9.0/tests/Utils/000077500000000000000000000000001455302707200160655ustar00rootroot00000000000000sql-parser-5.9.0/tests/Utils/BufferedQueryTest.php000066400000000000000000000330311455302707200222060ustar00rootroot00000000000000 $options * @param string[] $expected * @psalm-param array{delimiter?: non-empty-string, parse_delimiter?: bool, add_delimiter?: bool} $options * @psalm-param positive-int $chunkSize * * @dataProvider extractProvider */ public function testExtract( string $query, int $chunkSize, array $options, array $expected ): void { $chunks = str_split($query, $chunkSize); $count = count($chunks); /** * The array of extracted statements. */ $statements = []; /** * The `BufferedQuery` instance used for extraction. */ $bq = new BufferedQuery('', $options); // Feeding chunks and extracting queries. $i = 0; while ($i < $count) { $stmt = $bq->extract(); if ($stmt) { $statements[] = $stmt; } else { $bq->query .= $chunks[$i++]; } } // Feeding ended, extracting remaining queries. while ($stmt = $bq->extract(true)) { $statements[] = $stmt; } $this->assertEquals($expected, $statements); } /** * @return array> * @psalm-return list */ public function extractProvider(): array { $query = '/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;' . "\n" . '/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;' . "\n" . '/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;' . "\n" . '/*!40101 SET NAMES utf8mb4 */;' . "\n" . '' . "\n" . 'SET SQL_MODE = \'NO_AUTO_VALUE_ON_ZERO\';' . "\n" . 'SET time_zone = "+00:00";' . "\n" . '' . "\n" . '/* a comment */ DELIMITER $$' . "\n" . '' . "\n" . '# Bash-like comment sytanx.' . "\n" . 'CREATE DEFINER=`root`@`localhost` PROCEDURE `film_in_stock` (IN `p_film_id` ' . 'INT, IN `p_store_id` INT, OUT `p_film_count` INT) READS SQL DATA' . "\n" . 'BEGIN' . "\n" . ' SELECT inventory_id' . "\n" . ' FROM inventory' . "\n" . ' WHERE film_id = p_film_id' . "\n" . ' AND store_id = p_store_id' . "\n" . ' AND inventory_in_stock(inventory_id);' . "\n" . '' . "\n" . ' SELECT FOUND_ROWS() INTO p_film_count;' . "\n" . 'END$$' . "\n" . '' . "\n" . 'DELIMITER ;' . "\n" . '' . "\n" . '-- --------------------------------------------------------' . "\n" . '' . "\n" . '--' . "\n" . '-- Table structure for `actor`' . "\n" . '--' . "\n" . '' . "\n" . '/* C-like comment syntax. */' . "\n" . 'CREATE TABLE IF NOT EXISTS `actor` (' . "\n" . '`actor_id` SMALLINT(5) UNSIGNED NOT NULL,' . "\n" . '`first_name` VARCHAR(45) NOT NULL,' . "\n" . '`last_name` VARCHAR(45) NOT NULL,' . "\n" . '`last_update` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP' . "\n" . ') ENGINE=InnoDB DEFAULT CHARSET=utf8;' . "\n" . '' . "\n" . '/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;' . "\n" . '/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;' . "\n" . '/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */'; return [ [ "SELECT '\'';\nSELECT '\'';", 8, [ 'parse_delimiter' => true, 'add_delimiter' => true, ], [ "SELECT '\'';", "SELECT '\'';", ], ], [ 'SELECT \\', 8, [ 'parse_delimiter' => false, 'add_delimiter' => false, ], ['SELECT \\'], ], [ "CREATE TABLE `test` (\n" . " `txt` varchar(10)\n" . ");\n" . "INSERT INTO `test` (`txt`) VALUES('abc');\n" . "INSERT INTO `test` (`txt`) VALUES('\\\\');\n" . "INSERT INTO `test` (`txt`) VALUES('xyz');\n", 8, [ 'parse_delimiter' => true, 'add_delimiter' => true, ], [ "CREATE TABLE `test` (\n" . " `txt` varchar(10)\n" . ');', "INSERT INTO `test` (`txt`) VALUES('abc');", "INSERT INTO `test` (`txt`) VALUES('\\\\');", "INSERT INTO `test` (`txt`) VALUES('xyz');", ], ], [ 'SELECT """""""";' . 'SELECT """\\\\"""', 8, [ 'parse_delimiter' => true, 'add_delimiter' => true, ], [ 'SELECT """""""";', 'SELECT """\\\\"""', ], ], [ 'DELIMITER A_VERY_LONG_DEL' . "\n" . 'SELECT 1 A_VERY_LONG_DEL' . "\n" . 'DELIMITER ;', 3, [ 'parse_delimiter' => true, 'add_delimiter' => true, ], [ 'DELIMITER A_VERY_LONG_DEL', 'SELECT 1 A_VERY_LONG_DEL', 'DELIMITER ;', ], ], [ $query, 32, [ 'parse_delimiter' => false, 'add_delimiter' => false, ], [ '/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */', '/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */', '/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */', '/*!40101 SET NAMES utf8mb4 */', 'SET SQL_MODE = \'NO_AUTO_VALUE_ON_ZERO\'', 'SET time_zone = "+00:00"', '# Bash-like comment sytanx.' . "\n" . 'CREATE DEFINER=`root`@`localhost` PROCEDURE `film_in_stock` (IN `p_film_id` ' . 'INT, IN `p_store_id` INT, OUT `p_film_count` INT) READS SQL DATA' . "\n" . 'BEGIN' . "\n" . ' SELECT inventory_id' . "\n" . ' FROM inventory' . "\n" . ' WHERE film_id = p_film_id' . "\n" . ' AND store_id = p_store_id' . "\n" . ' AND inventory_in_stock(inventory_id);' . "\n" . '' . "\n" . ' SELECT FOUND_ROWS() INTO p_film_count;' . "\n" . 'END', '-- --------------------------------------------------------' . "\n" . '' . "\n" . '--' . "\n" . '-- Table structure for `actor`' . "\n" . '--' . "\n" . '' . "\n" . '/* C-like comment syntax. */' . "\n" . 'CREATE TABLE IF NOT EXISTS `actor` (' . "\n" . '`actor_id` SMALLINT(5) UNSIGNED NOT NULL,' . "\n" . '`first_name` VARCHAR(45) NOT NULL,' . "\n" . '`last_name` VARCHAR(45) NOT NULL,' . "\n" . '`last_update` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP' . "\n" . ') ENGINE=InnoDB DEFAULT CHARSET=utf8', '/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */', '/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */', '/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */', ], ], [ $query, 32, [ 'parse_delimiter' => true, 'add_delimiter' => false, ], [ '/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */', '/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */', '/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */', '/*!40101 SET NAMES utf8mb4 */', 'SET SQL_MODE = \'NO_AUTO_VALUE_ON_ZERO\'', 'SET time_zone = "+00:00"', '/* a comment */ DELIMITER $$', '# Bash-like comment sytanx.' . "\n" . 'CREATE DEFINER=`root`@`localhost` PROCEDURE `film_in_stock` (IN `p_film_id` ' . 'INT, IN `p_store_id` INT, OUT `p_film_count` INT) READS SQL DATA' . "\n" . 'BEGIN' . "\n" . ' SELECT inventory_id' . "\n" . ' FROM inventory' . "\n" . ' WHERE film_id = p_film_id' . "\n" . ' AND store_id = p_store_id' . "\n" . ' AND inventory_in_stock(inventory_id);' . "\n" . '' . "\n" . ' SELECT FOUND_ROWS() INTO p_film_count;' . "\n" . 'END', 'DELIMITER ;', '-- --------------------------------------------------------' . "\n" . '' . "\n" . '--' . "\n" . '-- Table structure for `actor`' . "\n" . '--' . "\n" . '' . "\n" . '/* C-like comment syntax. */' . "\n" . 'CREATE TABLE IF NOT EXISTS `actor` (' . "\n" . '`actor_id` SMALLINT(5) UNSIGNED NOT NULL,' . "\n" . '`first_name` VARCHAR(45) NOT NULL,' . "\n" . '`last_name` VARCHAR(45) NOT NULL,' . "\n" . '`last_update` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP' . "\n" . ') ENGINE=InnoDB DEFAULT CHARSET=utf8', '/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */', '/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */', '/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */', ], ], [ $query, 64, [ 'parse_delimiter' => false, 'add_delimiter' => true, ], [ '/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;', '/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;', '/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;', '/*!40101 SET NAMES utf8mb4 */;', 'SET SQL_MODE = \'NO_AUTO_VALUE_ON_ZERO\';', 'SET time_zone = "+00:00";', '# Bash-like comment sytanx.' . "\n" . 'CREATE DEFINER=`root`@`localhost` PROCEDURE `film_in_stock` (IN `p_film_id` ' . 'INT, IN `p_store_id` INT, OUT `p_film_count` INT) READS SQL DATA' . "\n" . 'BEGIN' . "\n" . ' SELECT inventory_id' . "\n" . ' FROM inventory' . "\n" . ' WHERE film_id = p_film_id' . "\n" . ' AND store_id = p_store_id' . "\n" . ' AND inventory_in_stock(inventory_id);' . "\n" . '' . "\n" . ' SELECT FOUND_ROWS() INTO p_film_count;' . "\n" . 'END$$', '-- --------------------------------------------------------' . "\n" . '' . "\n" . '--' . "\n" . '-- Table structure for `actor`' . "\n" . '--' . "\n" . '' . "\n" . '/* C-like comment syntax. */' . "\n" . 'CREATE TABLE IF NOT EXISTS `actor` (' . "\n" . '`actor_id` SMALLINT(5) UNSIGNED NOT NULL,' . "\n" . '`first_name` VARCHAR(45) NOT NULL,' . "\n" . '`last_name` VARCHAR(45) NOT NULL,' . "\n" . '`last_update` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP' . "\n" . ') ENGINE=InnoDB DEFAULT CHARSET=utf8;', '/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;', '/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;', '/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */', ], ], ]; } } sql-parser-5.9.0/tests/Utils/CLITest.php000066400000000000000000000344231455302707200200530ustar00rootroot00000000000000|false $getopt */ private function getCLI($getopt): CLI { $cli = $this->createPartialMock(CLI::class, ['getopt']); $cli->method('getopt')->willReturn($getopt); return $cli; } /** * @param array|false $getopt */ private function getCLIStdIn(string $input, $getopt): CLI { $cli = $this->createPartialMock(CLI::class, ['getopt', 'readStdin']); $cli->method('getopt')->willReturn($getopt); $cli->method('readStdin')->willReturn($input); return $cli; } /** * Test that getopt call works. * * We do mock it for other tests to return values we want. */ public function testGetopt(): void { $cli = new CLI(); $this->assertEquals( $cli->getopt('', []), [] ); } /** * @param array|false $getopt * * @dataProvider highlightParamsProvider */ public function testRunHighlight($getopt, string $output, int $result): void { $cli = $this->getCLI($getopt); $this->expectOutputString($output); $this->assertEquals($result, $cli->runHighlight()); } /** * @return array|false>> * @psalm-return list|false), string, int}> */ public function highlightParamsProvider(): array { return [ [ ['q' => 'SELECT 1'], "\x1b[35mSELECT\n \x1b[92m1\x1b[0m\n", 0, ], [ ['query' => 'SELECT 1'], "\x1b[35mSELECT\n \x1b[92m1\x1b[0m\n", 0, ], [ [ 'q' => 'SELECT /* comment */ 1 /* other */', 'f' => 'text', ], "SELECT\n /* comment */ 1 /* other */\n", 0, ], [ [ 'q' => 'SELECT 1', 'f' => 'foo', ], "ERROR: Invalid value for format!\n", 1, ], [ [ 'q' => 'SELECT 1', 'f' => 'html', ], 'SELECT
' . '    1' . "\n", 0, ], [ ['h' => true], 'Usage: highlight-query --query SQL [--format html|cli|text] [--ansi]' . "\n" . ' cat file.sql | highlight-query' . "\n", 0, ], [ [], 'ERROR: Missing parameters!' . "\n" . 'Usage: highlight-query --query SQL [--format html|cli|text] [--ansi]' . "\n" . ' cat file.sql | highlight-query' . "\n", 1, ], [ false, '', 1, ], ]; } /** * @param array|false $getopt * * @dataProvider highlightParamsStdInProvider */ public function testRunHighlightStdIn(string $input, $getopt, string $output, int $result): void { $cli = $this->getCLIStdIn($input, $getopt); $this->expectOutputString($output); $this->assertEquals($result, $cli->runHighlight()); } /** * @return array|false>> * @psalm-return list|false), string, int}> */ public function highlightParamsStdInProvider(): array { return [ [ 'SELECT 1', [], "\x1b[35mSELECT\n \x1b[92m1\x1b[0m\n", 0, ], [ 'SELECT /* comment */ 1 /* other */', ['f' => 'text'], "SELECT\n /* comment */ 1 /* other */\n", 0, ], [ 'SELECT 1', ['f' => 'foo'], "ERROR: Invalid value for format!\n", 1, ], [ 'SELECT 1', ['f' => 'html'], 'SELECT
' . '    1' . "\n", 0, ], [ '', ['h' => true], 'Usage: highlight-query --query SQL [--format html|cli|text] [--ansi]' . "\n" . ' cat file.sql | highlight-query' . "\n", 0, ], [ '', [], 'ERROR: Missing parameters!' . "\n" . 'Usage: highlight-query --query SQL [--format html|cli|text] [--ansi]' . "\n" . ' cat file.sql | highlight-query' . "\n", 1, ], [ '', false, '', 1, ], ]; } /** * @param array|false $getopt * * @dataProvider lintParamsStdInProvider */ public function testRunLintFromStdIn(string $input, $getopt, string $output, int $result): void { $cli = $this->getCLIStdIn($input, $getopt); $this->expectOutputString($output); $this->assertEquals($result, $cli->runLint()); } /** * @return array|false>> * @psalm-return list|false), string, int}> */ public function lintParamsStdInProvider(): array { return [ [ 'SELECT 1', [], '', 0, ], [ 'SELECT SELECT', [], '#1: An expression was expected. (near "SELECT" at position 7)' . "\n" . '#2: This type of clause was previously parsed. (near "SELECT" at position 7)' . "\n" . '#3: An expression was expected. (near "" at position 0)' . "\n", 10, ], [ 'SELECT SELECT', ['c' => 'MySql80000'], '#1: An expression was expected. (near "SELECT" at position 7)' . "\n" . '#2: This type of clause was previously parsed. (near "SELECT" at position 7)' . "\n" . '#3: An expression was expected. (near "" at position 0)' . "\n", 10, ], [ '', [], 'ERROR: Missing parameters!' . "\n" . 'Usage: lint-query --query SQL [--ansi]' . "\n" . ' cat file.sql | lint-query' . "\n", 1, ], [ '', ['h' => true], 'Usage: lint-query --query SQL [--ansi]' . "\n" . ' cat file.sql | lint-query' . "\n", 0, ], [ '', false, '', 1, ], ]; } /** * @param array|false $getopt * * @dataProvider lintParamsProvider */ public function testRunLint($getopt, string $output, int $result): void { $cli = $this->getCLI($getopt); $this->expectOutputString($output); $this->assertEquals($result, $cli->runLint()); } /** * @return array|false>> * @psalm-return list|false), string, int}> */ public function lintParamsProvider(): array { return [ [ ['q' => 'SELECT 1'], '', 0, ], [ ['query' => 'SELECT 1'], '', 0, ], [ ['q' => 'SELECT SELECT'], '#1: An expression was expected. (near "SELECT" at position 7)' . "\n" . '#2: This type of clause was previously parsed. (near "SELECT" at position 7)' . "\n" . '#3: An expression was expected. (near "" at position 0)' . "\n", 10, ], [ [ 'q' => 'SELECT SELECT', 'c' => 'MySql80000', ], '#1: An expression was expected. (near "SELECT" at position 7)' . "\n" . '#2: This type of clause was previously parsed. (near "SELECT" at position 7)' . "\n" . '#3: An expression was expected. (near "" at position 0)' . "\n", 10, ], [ ['h' => true], 'Usage: lint-query --query SQL [--ansi]' . "\n" . ' cat file.sql | lint-query' . "\n", 0, ], [ [], 'ERROR: Missing parameters!' . "\n" . 'Usage: lint-query --query SQL [--ansi]' . "\n" . ' cat file.sql | lint-query' . "\n", 1, ], [ false, '', 1, ], ]; } /** * @param array|false $getopt * * @dataProvider tokenizeParamsProvider */ public function testRunTokenize($getopt, string $output, int $result): void { $cli = $this->getCLI($getopt); $this->expectOutputString($output); $this->assertEquals($result, $cli->runTokenize()); } /** * @return array|false>> * @psalm-return list|false), string, int}> */ public function tokenizeParamsProvider(): array { $result = "[TOKEN 0]\nType = 1\nFlags = 3\nValue = 'SELECT'\nToken = 'SELECT'\n\n" . "[TOKEN 1]\nType = 3\nFlags = 0\nValue = ' '\nToken = ' '\n\n" . "[TOKEN 2]\nType = 6\nFlags = 0\nValue = 1\nToken = '1'\n\n" . "[TOKEN 3]\nType = 9\nFlags = 0\nValue = NULL\nToken = NULL\n\n"; return [ [ ['q' => 'SELECT 1'], $result, 0, ], [ ['query' => 'SELECT 1'], $result, 0, ], [ ['h' => true], 'Usage: tokenize-query --query SQL [--ansi]' . "\n" . ' cat file.sql | tokenize-query' . "\n", 0, ], [ [], 'ERROR: Missing parameters!' . "\n" . 'Usage: tokenize-query --query SQL [--ansi]' . "\n" . ' cat file.sql | tokenize-query' . "\n", 1, ], [ false, '', 1, ], ]; } /** * @param array|false $getopt * * @dataProvider tokenizeParamsStdInProvider */ public function testRunTokenizeStdIn(string $input, $getopt, string $output, int $result): void { $cli = $this->getCLIStdIn($input, $getopt); $this->expectOutputString($output); $this->assertEquals($result, $cli->runTokenize()); } /** * @return array|false>> * @psalm-return list|false), string, int}> */ public function tokenizeParamsStdInProvider(): array { $result = "[TOKEN 0]\nType = 1\nFlags = 3\nValue = 'SELECT'\nToken = 'SELECT'\n\n" . "[TOKEN 1]\nType = 3\nFlags = 0\nValue = ' '\nToken = ' '\n\n" . "[TOKEN 2]\nType = 6\nFlags = 0\nValue = 1\nToken = '1'\n\n" . "[TOKEN 3]\nType = 9\nFlags = 0\nValue = NULL\nToken = NULL\n\n"; return [ [ 'SELECT 1', [], $result, 0, ], [ '', ['h' => true], 'Usage: tokenize-query --query SQL [--ansi]' . "\n" . ' cat file.sql | tokenize-query' . "\n", 0, ], [ '', [], 'ERROR: Missing parameters!' . "\n" . 'Usage: tokenize-query --query SQL [--ansi]' . "\n" . ' cat file.sql | tokenize-query' . "\n", 1, ], [ '', false, '', 1, ], ]; } /** * @dataProvider stdinParamsProvider */ public function testStdinPipe(string $cmd, int $result): void { exec($cmd, $out, $ret); $this->assertSame($result, $ret); } /** * @return array> * @psalm-return list */ public function stdinParamsProvider(): array { $binPath = PHP_BINARY . ' ' . dirname(__DIR__, 2) . '/bin/'; return [ [ 'echo "SELECT 1" | ' . $binPath . 'highlight-query', 0, ], [ 'echo "invalid query" | ' . $binPath . 'highlight-query', 0, ], [ 'echo "SELECT 1" | ' . $binPath . 'lint-query', 0, ], [ 'echo "invalid query" | ' . $binPath . 'lint-query', 10, ], [ 'echo "SELECT 1" | ' . $binPath . 'tokenize-query', 0, ], [ 'echo "invalid query" | ' . $binPath . 'tokenize-query', 0, ], ]; } } sql-parser-5.9.0/tests/Utils/ErrorTest.php000066400000000000000000000034071455302707200205330ustar00rootroot00000000000000list); $this->assertEquals( [ [ 'Unexpected character.', 0, '}', 22, ], [ 'Unexpected dot.', 0, '.', 17, ], ], Error::get([$lexer, $parser]) ); } public function testGetWithNullToken(): void { $lexer = new Lexer('LOCK TABLES table1 AS `t1` LOCAL'); $parser = new Parser($lexer->list); $this->assertSame( [ ['An alias was previously found.', 0, 'LOCAL', 27], ['Unexpected keyword.', 0, 'LOCAL', 27], ['Unexpected end of LOCK expression.', 0, '', null], ], Error::get([$lexer, $parser]) ); } public function testFormat(): void { $this->assertEquals( ['#1: error msg (near "token" at position 100)'], Error::format([['error msg', 42, 'token', 100]]) ); $this->assertEquals( [ '#1: error msg (near "token" at position 100)', '#2: error msg (near "token" at position 200)', ], Error::format([['error msg', 42, 'token', 100], ['error msg', 42, 'token', 200]]) ); } } sql-parser-5.9.0/tests/Utils/FormatterTest.php000066400000000000000000000672111455302707200214100ustar00rootroot00000000000000> $default * @param array> $overriding * @param array> $expected * @psalm-param list $default * @psalm-param list $overriding * @psalm-param list $expected * * @dataProvider mergeFormatsProvider */ public function testMergeFormats(array $default, array $overriding, array $expected): void { $formatter = $this->createPartialMock(Formatter::class, ['getDefaultOptions', 'getDefaultFormats']); $formatter->expects($this->once()) ->method('getDefaultOptions') ->willReturn([ 'type' => 'text', 'line_ending' => null, 'indentation' => null, 'clause_newline' => null, 'parts_newline' => null, ]); $formatter->expects($this->once()) ->method('getDefaultFormats') ->willReturn($default); $expectedOptions = [ 'type' => 'test-type', 'line_ending' => '
', 'indentation' => ' ', 'clause_newline' => null, 'parts_newline' => 0, 'formats' => $expected, ]; $overridingOptions = [ 'type' => 'test-type', 'line_ending' => '
', 'formats' => $overriding, ]; $reflectionMethod = new ReflectionMethod($formatter, 'getMergedOptions'); $reflectionMethod->setAccessible(true); $this->assertEquals($expectedOptions, $reflectionMethod->invoke($formatter, $overridingOptions)); } /** * @return array>>> * @psalm-return array, * overriding: list, * expected: list * }> */ public function mergeFormatsProvider(): array { // [default[], overriding[], expected[]] return [ 'empty formats' => [ 'default' => [ [ 'type' => 0, 'flags' => 0, 'html' => '', 'cli' => '', 'function' => '', ], ], 'overriding' => [ [], ], 'expected' => [ [ 'type' => 0, 'flags' => 0, 'html' => '', 'cli' => '', 'function' => '', ], ], ], 'no flags' => [ 'default' => [ [ 'type' => 0, 'flags' => 0, 'html' => 'html', 'cli' => 'cli', ], [ 'type' => 0, 'flags' => 1, 'html' => 'html', 'cli' => 'cli', ], ], 'overriding' => [ [ 'type' => 0, 'html' => 'new html', 'cli' => 'new cli', ], ], 'expected' => [ [ 'type' => 0, 'flags' => 0, 'html' => 'new html', 'cli' => 'new cli', 'function' => '', ], [ 'type' => 0, 'flags' => 1, 'html' => 'html', 'cli' => 'cli', ], ], ], 'with flags' => [ 'default' => [ [ 'type' => -1, 'flags' => 0, 'html' => 'html', 'cli' => 'cli', ], [ 'type' => 0, 'flags' => 0, 'html' => 'html', 'cli' => 'cli', ], [ 'type' => 0, 'flags' => 1, 'html' => 'html', 'cli' => 'cli', ], ], 'overriding' => [ [ 'type' => 0, 'flags' => 0, 'html' => 'new html', 'cli' => 'new cli', ], ], 'expected' => [ [ 'type' => -1, 'flags' => 0, 'html' => 'html', 'cli' => 'cli', ], [ 'type' => 0, 'flags' => 0, 'html' => 'new html', 'cli' => 'new cli', 'function' => '', ], [ 'type' => 0, 'flags' => 1, 'html' => 'html', 'cli' => 'cli', ], ], ], 'with extra formats' => [ 'default' => [ [ 'type' => 0, 'flags' => 0, 'html' => 'html', 'cli' => 'cli', ], ], 'overriding' => [ [ 'type' => 0, 'flags' => 1, 'html' => 'new html', 'cli' => 'new cli', ], [ 'type' => 1, 'html' => 'new html', 'cli' => 'new cli', ], [ 'type' => 1, 'flags' => 1, 'html' => 'new html', 'cli' => 'new cli', ], ], 'expected' => [ [ 'type' => 0, 'flags' => 0, 'html' => 'html', 'cli' => 'cli', ], [ 'type' => 0, 'flags' => 1, 'html' => 'new html', 'cli' => 'new cli', 'function' => '', ], [ 'type' => 1, 'flags' => 0, 'html' => 'new html', 'cli' => 'new cli', 'function' => '', ], [ 'type' => 1, 'flags' => 1, 'html' => 'new html', 'cli' => 'new cli', 'function' => '', ], ], ], ]; } /** * @param array $options * * @dataProvider formatQueriesProviders */ public function testFormat(string $query, string $text, string $cli, string $html, array $options = []): void { // Test TEXT format $this->assertEquals( $text, Formatter::format($query, ['type' => 'text'] + $options), 'Text formatting failed.' ); // Test CLI format $this->assertEquals( $cli, Formatter::format($query, ['type' => 'cli'] + $options), 'CLI formatting failed.' ); // Test HTML format $this->assertEquals( $html, Formatter::format($query, ['type' => 'html'] + $options), 'HTML formatting failed.' ); } /** * @return array>> * @psalm-return array * }> */ public function formatQueriesProviders(): array { return [ 'empty' => [ 'query' => '', 'text' => '', 'cli' => "\x1b[0m", 'html' => '', ], 'minimal' => [ 'query' => 'select 1', 'text' => 'SELECT' . "\n" . ' 1', 'cli' => "\x1b[35mSELECT\n" . " \x1b[92m1\x1b[0m", 'html' => 'SELECT
' . '    1', ], 'simply' => [ 'query' => 'select * from tbl where 1', 'text' => 'SELECT' . "\n" . ' *' . "\n" . 'FROM' . "\n" . ' tbl' . "\n" . 'WHERE' . "\n" . ' 1', 'cli' => "\x1b[35mSELECT\n" . " \x1b[39m*\n" . "\x1b[35mFROM\n" . " \x1b[39mtbl\n" . "\x1b[35mWHERE\n" . " \x1b[92m1\x1b[0m", 'html' => 'SELECT
' . '    *
' . 'FROM
' . '    tbl
' . 'WHERE
' . '    1', ], 'typical' => [ 'query' => 'SELECT id, if(id=1,"Si","No") from `tbl` where id = 0 or ' . 'id = 1 group by id order by id desc limit 1 offset 0', 'text' => 'SELECT' . "\n" . ' id,' . "\n" . ' IF(id = 1, "Si", "No")' . "\n" . 'FROM' . "\n" . ' `tbl`' . "\n" . 'WHERE' . "\n" . ' id = 0 OR id = 1' . "\n" . 'GROUP BY' . "\n" . ' id' . "\n" . 'ORDER BY' . "\n" . ' id' . "\n" . 'DESC' . "\n" . 'LIMIT 1 OFFSET 0', 'cli' => "\x1b[35mSELECT\n" . " \x1b[39mid,\n" . " \x1b[35mIF\x1b[39m(id = \x1b[92m1\x1b[39m, \x1b[91m\"Si\"\x1b[39m, \x1b[91m\"No\"\x1b[39m)\n" . "\x1b[35mFROM\n" . " \x1b[36m`tbl`\n" . "\x1b[35mWHERE\n" . " \x1b[39mid = \x1b[92m0 \x1b[35mOR \x1b[39mid = \x1b[92m1\n" . "\x1b[35mGROUP BY\n" . " \x1b[39mid\n" . "\x1b[35mORDER BY\n" . " \x1b[39mid\n" . "\x1b[35mDESC\n" . "LIMIT \x1b[92m1 \x1b[95mOFFSET \x1b[92m0\x1b[0m", 'html' => 'SELECT
' . '    id,
' . '    IF(id = ' . '1, "Si", ' . '"No")
' . 'FROM
' . '    `tbl`
' . 'WHERE
' . '    id = 0 ' . 'OR id = 1
' . 'GROUP BY
' . '    id
' . 'ORDER BY
' . '    id
' . 'DESC
' . 'LIMIT 1 ' . 'OFFSET 0', ], 'comments' => [ 'query' => 'select /* Comment */ *' . "\n" . 'from tbl # Comment' . "\n" . 'where 1 -- Comment', 'text' => 'SELECT' . "\n" . ' /* Comment */ *' . "\n" . 'FROM' . "\n" . ' tbl # Comment' . "\n" . 'WHERE' . "\n" . ' 1 -- Comment', 'cli' => "\x1b[35mSELECT\n" . " \x1b[37m/* Comment */ \x1b[39m*\n" . "\x1b[35mFROM\n" . " \x1b[39mtbl \x1b[37m# Comment\n" . "\x1b[35mWHERE\n" . " \x1b[92m1 \x1b[37m-- Comment\x1b[0m", 'html' => 'SELECT
' . '    /* Comment */ *
' . 'FROM
' . '    tbl # Comment
' . 'WHERE
' . '    1 ' . '-- Comment', ], 'strip comments' => [ 'query' => 'select /* Comment */ *' . "\n" . 'from tbl # Comment' . "\n" . 'where 1 -- Comment', 'text' => 'SELECT' . "\n" . ' *' . "\n" . 'FROM' . "\n" . ' tbl' . "\n" . 'WHERE' . "\n" . ' 1', 'cli' => "\x1b[35mSELECT\n" . " \x1b[39m*\n" . "\x1b[35mFROM\n" . " \x1b[39mtbl\n" . "\x1b[35mWHERE\n" . " \x1b[92m1\x1b[0m", 'html' => 'SELECT
' . '    *
' . 'FROM
' . '    tbl
' . 'WHERE
' . '    1', 'options' => ['remove_comments' => true], ], 'keywords' => [ 'query' => 'select hex("1")', 'text' => 'SELECT' . "\n" . ' HEX("1")', 'cli' => "\x1b[35mSELECT\n" . " \x1b[95mHEX\x1b[39m(\x1b[91m\"1\"\x1b[39m)\x1b[0m", 'html' => 'SELECT
' . '    HEX("1")', ], 'distinct count' => [ 'query' => 'select distinct count(*)', 'text' => 'SELECT DISTINCT' . "\n" . ' COUNT(*)', 'cli' => "\x1b[35mSELECT DISTINCT\n" . " \x1b[95mCOUNT\x1b[39m(*)\x1b[0m", 'html' => 'SELECT DISTINCT
' . '    COUNT(*)', ], 'create procedure' => [ 'query' => 'create procedure test_procedure() begin from tbl select *; end', 'text' => 'CREATE PROCEDURE test_procedure()' . "\n" . 'BEGIN' . "\n" . ' FROM' . "\n" . ' tbl' . "\n" . ' SELECT' . "\n" . ' *;' . "\n" . 'END', 'cli' => "\x1b[35mCREATE PROCEDURE \x1b[39mtest_procedure()\n" . "\x1b[95mBEGIN\n" . " \x1b[35mFROM\n" . " \x1b[39mtbl\n" . " \x1b[35mSELECT\n" . " \x1b[39m*;\n" . "\x1b[95mEND\x1b[0m", 'html' => 'CREATE ' . 'PROCEDURE test_procedure()
' . 'BEGIN
' . '    FROM
' . '        tbl
' . '    SELECT
' . '        *;
' . 'END', ], 'insert' => [ 'query' => 'insert into foo values (0, 0, 0), (1, 1, 1)', 'text' => 'INSERT INTO foo' . "\n" . 'VALUES(0, 0, 0),(1, 1, 1)', 'cli' => "\x1b[35mINSERT INTO \x1b[39mfoo\n" . "\x1b[35mVALUES\x1b[39m(\x1b[92m0\x1b[39m, \x1b[92m0\x1b[39m, " . "\x1b[92m0\x1b[39m),(\x1b[92m1\x1b[39m, \x1b[92m1\x1b[39m, \x1b[92m1\x1b[39m)\x1b[0m", 'html' => 'INSERT INTO foo
' . 'VALUES(0, ' . '0, 0),(' . '1, 1, ' . '1)', ], 'string as alias' => [ 'query' => 'select "Text" as bar', 'text' => 'SELECT' . "\n" . ' "Text" AS bar', 'cli' => "\x1b[35mSELECT\n" . " \x1b[91m\"Text\" \x1b[35mAS \x1b[39mbar\x1b[0m", 'html' => 'SELECT
' . '    "Text" ' . 'AS bar', ], 'escape cli' => [ 'query' => "select 'text\x1b[33mcolor-inj'", 'text' => 'SELECT' . "\n" . " 'text\x1B[33mcolor-inj'", 'cli' => "\x1b[35mSELECT\n" . " \x1b[91m'text\\x1B[33mcolor-inj'\x1b[0m", 'html' => 'SELECT
' . '    \'text' . "\x1b[33m" . 'color-inj\'', ], 'escape html' => [ 'query' => "select 'xss' from `xss` , nxss /*sxss*/", 'text' => 'SELECT' . "\n" . ' \'xss\'' . "\n" . 'FROM' . "\n" . ' `xss`,' . "\n" . ' < s > nxss /*sxss*/', 'cli' => "\x1b[35mSELECT\n" . " \x1b[91m'xss'\n" . "\x1b[35mFROM\n" . " \x1b[36m`xss`\x1b[39m,\n" . " < s > nxss \x1b[37m/*sxss*/\x1b[0m", 'html' => 'SELECT
' . '    \'<s>xss\'
' . 'FROM
' . '    `<s>xss`,' . '
    < s > nxss /*s<s>xss*/', ], 'create table' => [ 'query' => 'create table if not exists `pma__bookmark` (' . "\n" . '`id` int(11) not null auto_increment,' . "\n" . '`dbase` varchar(255) not null default "",' . "\n" . '`user` varchar(255) not null default "",' . "\n" . '`label` varchar(255) collate utf8_general_ci not null default "",' . "\n" . '`query` text not null,' . "\n" . 'primary key (`id`)', 'text' => 'CREATE TABLE IF NOT EXISTS `pma__bookmark`(' . "\n" . ' `id` INT(11) NOT NULL AUTO_INCREMENT,' . "\n" . ' `dbase` VARCHAR(255) NOT NULL DEFAULT "",' . "\n" . ' `user` VARCHAR(255) NOT NULL DEFAULT "",' . "\n" . ' `label` VARCHAR(255) COLLATE utf8_general_ci NOT NULL DEFAULT "",' . "\n" . ' `query` TEXT NOT NULL,' . "\n" . ' PRIMARY KEY(`id`)', 'cli' => "\x1b[35mCREATE TABLE IF NOT EXISTS \x1b[36m`pma__bookmark`\x1b[39m(\n" . " \x1b[36m`id` \x1b[35mINT\x1b[39m(\x1b[92m11\x1b[39m) " . "\x1b[35mNOT NULL \x1b[95mAUTO_INCREMENT\x1b[39m,\n" . " \x1b[36m`dbase` \x1b[35mVARCHAR\x1b[39m(\x1b[92m255\x1b[39m) " . "\x1b[35mNOT NULL DEFAULT \x1b[91m\"\"\x1b[39m,\n" . " \x1b[36m`user` \x1b[35mVARCHAR\x1b[39m(\x1b[92m255\x1b[39m) " . "\x1b[35mNOT NULL DEFAULT \x1b[91m\"\"\x1b[39m,\n" . " \x1b[36m`label` \x1b[35mVARCHAR\x1b[39m(\x1b[92m255\x1b[39m) " . "\x1b[35mCOLLATE \x1b[39mutf8_general_ci \x1b[35mNOT NULL DEFAULT \x1b[91m\"\"\x1b[39m,\n" . " \x1b[36m`query` \x1b[95mTEXT \x1b[35mNOT NULL\x1b[39m,\n" . " \x1b[35mPRIMARY KEY\x1b[39m(\x1b[36m`id`\x1b[39m)\x1b[0m", 'html' => 'CREATE TABLE ' . 'IF NOT EXISTS ' . '`pma__bookmark`(
' . '    `id` ' . 'INT(11) ' . 'NOT NULL AUTO_INCREMENT,
' . '    `dbase` ' . 'VARCHAR(255) ' . 'NOT NULL DEFAULT ' . '"",
' . '    `user` ' . 'VARCHAR(255) ' . 'NOT NULL DEFAULT ' . '"",
' . '    `label` ' . 'VARCHAR(255) ' . 'COLLATE utf8_general_ci ' . 'NOT NULL DEFAULT ' . '"",
' . '    `query` ' . 'TEXT NOT NULL,
' . '    ' . 'PRIMARY KEY(`id`)', ], 'join' => [ 'query' => 'join tbl2 on c1=c2', 'text' => 'JOIN tbl2 ON c1 = c2', 'cli' => "\x1b[35mJOIN \x1b[39mtbl2 \x1b[35mON \x1b[39mc1 = c2" . "\x1b[0m", 'html' => 'JOIN tbl2 ON c1 = c2', ], 'named param' => [ 'query' => 'select * from tbl where col = :param', 'text' => 'SELECT' . "\n" . ' *' . "\n" . 'FROM' . "\n" . ' tbl' . "\n" . 'WHERE' . "\n" . ' col = :param', 'cli' => "\x1b[35mSELECT\n" . " \x1b[39m*\n" . "\x1b[35mFROM\n" . " \x1b[39mtbl\n" . "\x1b[35mWHERE\n" . " \x1b[39mcol = \x1b[31m:param\x1b[0m", 'html' => 'SELECT
' . '    *
' . 'FROM
' . '    tbl
' . 'WHERE
' . '    col = :param', ], 'anon param' => [ 'query' => 'select * from tbl where col = ?', 'text' => 'SELECT' . "\n" . ' *' . "\n" . 'FROM' . "\n" . ' tbl' . "\n" . 'WHERE' . "\n" . ' col = ?', 'cli' => "\x1b[35mSELECT\n" . " \x1b[39m*\n" . "\x1b[35mFROM\n" . " \x1b[39mtbl\n" . "\x1b[35mWHERE\n" . " \x1b[39mcol = \x1b[31m?\x1b[0m", 'html' => 'SELECT
' . '    *
' . 'FROM
' . '    tbl
' . 'WHERE
' . '    col = ?', ], ]; } } sql-parser-5.9.0/tests/Utils/MiscTest.php000066400000000000000000000103761455302707200203400ustar00rootroot00000000000000}> * }> $expected * * @dataProvider getAliasesProvider */ public function testGetAliases(string $query, ?string $db, array $expected): void { $parser = new Parser($query); $statement = empty($parser->statements[0]) ? null : $parser->statements[0]; $this->assertEquals($expected, Misc::getAliases($statement, $db)); } /** * @return array> * @psalm-return list}> * }>}> */ public function getAliasesProvider(): array { return [ [ 'select * from (select 1) tbl', 'mydb', [], ], [ 'select i.name as `n`,abcdef gh from qwerty i', 'mydb', [ 'mydb' => [ 'alias' => null, 'tables' => [ 'qwerty' => [ 'alias' => 'i', 'columns' => [ 'name' => 'n', 'abcdef' => 'gh', ], ], ], ], ], ], [ 'select film_id id,title from film', 'sakila', [ 'sakila' => [ 'alias' => null, 'tables' => [ 'film' => [ 'alias' => null, 'columns' => ['film_id' => 'id'], ], ], ], ], ], [ 'select `sakila`.`A`.`actor_id` as aid,`F`.`film_id` `fid`,' . 'last_update updated from `sakila`.actor A join `film_actor` as ' . '`F` on F.actor_id = A.`actor_id`', 'sakila', [ 'sakila' => [ 'alias' => null, 'tables' => [ 'film_actor' => [ 'alias' => 'F', 'columns' => [ 'film_id' => 'fid', 'last_update' => 'updated', ], ], 'actor' => [ 'alias' => 'A', 'columns' => [ 'actor_id' => 'aid', 'last_update' => 'updated', ], ], ], ], ], ], [ 'SELECT film_id FROM (SELECT * FROM film) as f;', 'sakila', [], ], [ '', null, [], ], [ 'SELECT 1', null, [], ], [ 'SELECT * FROM orders AS ord WHERE 1', 'db', [ 'db' => [ 'alias' => null, 'tables' => [ 'orders' => [ 'alias' => 'ord', 'columns' => [], ], ], ], ], ], ]; } } sql-parser-5.9.0/tests/Utils/QueryTest.php000066400000000000000000000524431455302707200205530ustar00rootroot00000000000000 $expected * @psalm-param QueryFlagsType $expected * * @dataProvider getFlagsProvider */ public function testGetFlags(string $query, array $expected): void { $parser = new Parser($query); $this->assertEquals($expected, Query::getFlags($parser->statements[0])); } /** * @return array>> * @psalm-return list */ public function getFlagsProvider(): array { return [ [ 'ALTER TABLE DROP col', [ 'reload' => true, 'querytype' => 'ALTER', ], ], [ 'CALL test()', [ 'is_procedure' => true, 'querytype' => 'CALL', ], ], [ 'CREATE TABLE tbl (id INT)', [ 'reload' => true, 'querytype' => 'CREATE', ], ], [ 'CHECK TABLE tbl', [ 'is_maint' => true, 'querytype' => 'CHECK', ], ], [ 'DELETE FROM tbl', [ 'is_affected' => true, 'is_delete' => true, 'querytype' => 'DELETE', ], ], [ 'DROP VIEW v', [ 'reload' => true, 'querytype' => 'DROP', ], ], [ 'DROP DATABASE db', [ 'drop_database' => true, 'reload' => true, 'querytype' => 'DROP', ], ], [ 'EXPLAIN tbl', [ 'is_explain' => true, 'querytype' => 'EXPLAIN', ], ], [ 'LOAD DATA INFILE \'/tmp/test.txt\' INTO TABLE test', [ 'is_affected' => true, 'is_insert' => true, 'querytype' => 'LOAD', ], ], [ 'INSERT INTO tbl VALUES (1)', [ 'is_affected' => true, 'is_insert' => true, 'querytype' => 'INSERT', ], ], [ 'REPLACE INTO tbl VALUES (2)', [ 'is_affected' => true, 'is_replace' => true, 'is_insert' => true, 'querytype' => 'REPLACE', ], ], [ 'SELECT 1', [ 'is_select' => true, 'querytype' => 'SELECT', ], ], [ 'SELECT * FROM tbl', [ 'is_select' => true, 'select_from' => true, 'querytype' => 'SELECT', ], ], [ 'SELECT DISTINCT * FROM tbl LIMIT 0, 10 ORDER BY id', [ 'distinct' => true, 'is_select' => true, 'select_from' => true, 'limit' => true, 'order' => true, 'querytype' => 'SELECT', ], ], [ 'SELECT * FROM actor GROUP BY actor_id', [ 'is_group' => true, 'is_select' => true, 'select_from' => true, 'group' => true, 'querytype' => 'SELECT', ], ], [ 'SELECT col1, col2 FROM table1 PROCEDURE ANALYSE(10, 2000);', [ 'is_analyse' => true, 'is_select' => true, 'select_from' => true, 'querytype' => 'SELECT', ], ], [ 'SELECT * FROM tbl INTO OUTFILE "/tmp/export.txt"', [ 'is_export' => true, 'is_select' => true, 'select_from' => true, 'querytype' => 'SELECT', ], ], [ 'SELECT COUNT(id), SUM(id) FROM tbl', [ 'is_count' => true, 'is_func' => true, 'is_select' => true, 'select_from' => true, 'querytype' => 'SELECT', ], ], [ 'SELECT (SELECT "foo")', [ 'is_select' => true, 'is_subquery' => true, 'querytype' => 'SELECT', ], ], [ 'SELECT * FROM customer HAVING store_id = 2;', [ 'is_select' => true, 'select_from' => true, 'is_group' => true, 'having' => true, 'querytype' => 'SELECT', ], ], [ 'SELECT * FROM table1 INNER JOIN table2 ON table1.id=table2.id;', [ 'is_select' => true, 'select_from' => true, 'join' => true, 'querytype' => 'SELECT', ], ], [ 'SHOW CREATE TABLE tbl', [ 'is_show' => true, 'querytype' => 'SHOW', ], ], [ 'UPDATE tbl SET id = 1', [ 'is_affected' => true, 'querytype' => 'UPDATE', ], ], [ 'ANALYZE TABLE tbl', [ 'is_maint' => true, 'querytype' => 'ANALYZE', ], ], [ 'CHECKSUM TABLE tbl', [ 'is_maint' => true, 'querytype' => 'CHECKSUM', ], ], [ 'OPTIMIZE TABLE tbl', [ 'is_maint' => true, 'querytype' => 'OPTIMIZE', ], ], [ 'REPAIR TABLE tbl', [ 'is_maint' => true, 'querytype' => 'REPAIR', ], ], [ '(SELECT a FROM t1 WHERE a=10 AND B=1 ORDER BY a LIMIT 10) ' . 'UNION ' . '(SELECT a FROM t2 WHERE a=11 AND B=2 ORDER BY a LIMIT 10);', [ 'is_select' => true, 'select_from' => true, 'limit' => true, 'order' => true, 'union' => true, 'querytype' => 'SELECT', ], ], [ 'SELECT * FROM orders AS ord WHERE 1', [ 'querytype' => 'SELECT', 'is_select' => true, 'select_from' => true, ], ], [ 'SET NAMES \'latin\'', ['querytype' => 'SET'], ], ]; } public function testGetAll(): void { $this->assertEquals( [ 'distinct' => false, 'drop_database' => false, 'group' => false, 'having' => false, 'is_affected' => false, 'is_analyse' => false, 'is_count' => false, 'is_delete' => false, 'is_explain' => false, 'is_export' => false, 'is_func' => false, 'is_group' => false, 'is_insert' => false, 'is_maint' => false, 'is_procedure' => false, 'is_replace' => false, 'is_select' => false, 'is_show' => false, 'is_subquery' => false, 'join' => false, 'limit' => false, 'offset' => false, 'order' => false, 'querytype' => false, 'reload' => false, 'select_from' => false, 'union' => false, ], Query::getAll('') ); $query = 'SELECT *, actor.actor_id, sakila2.film.* FROM sakila2.city, sakila2.film, actor'; $parser = new Parser($query); $this->assertEquals( array_merge( Query::getFlags($parser->statements[0], true), [ 'parser' => $parser, 'statement' => $parser->statements[0], 'select_expr' => ['*'], 'select_tables' => [ [ 'actor', null, ], [ 'film', 'sakila2', ], ], ] ), Query::getAll($query) ); $query = 'SELECT * FROM sakila.actor, film'; $parser = new Parser($query); $this->assertEquals( array_merge( Query::getFlags($parser->statements[0], true), [ 'parser' => $parser, 'statement' => $parser->statements[0], 'select_expr' => ['*'], 'select_tables' => [ [ 'actor', 'sakila', ], [ 'film', null, ], ], ] ), Query::getAll($query) ); $query = 'SELECT a.actor_id FROM sakila.actor AS a, film'; $parser = new Parser($query); $this->assertEquals( array_merge( Query::getFlags($parser->statements[0], true), [ 'parser' => $parser, 'statement' => $parser->statements[0], 'select_expr' => [], 'select_tables' => [ [ 'actor', 'sakila', ], ], ] ), Query::getAll($query) ); $query = 'SELECT CASE WHEN 2 IS NULL THEN "this is true" ELSE "this is false" END'; $parser = new Parser($query); $this->assertEquals( array_merge( Query::getFlags($parser->statements[0], true), [ 'parser' => $parser, 'statement' => $parser->statements[0], 'select_expr' => ['CASE WHEN 2 IS NULL THEN "this is true" ELSE "this is false" END'], 'select_tables' => [], ] ), Query::getAll($query) ); } /** * @param string[] $expected * * @dataProvider getTablesProvider */ public function testGetTables(string $query, array $expected): void { $parser = new Parser($query); $this->assertEquals( $expected, Query::getTables($parser->statements[0]) ); } /** * @return array> * @psalm-return list */ public function getTablesProvider(): array { return [ [ 'INSERT INTO tbl(`id`, `name`) VALUES (1, "Name")', ['`tbl`'], ], [ 'INSERT INTO 0tbl(`id`, `name`) VALUES (1, "Name")', ['`0tbl`'], ], [ 'UPDATE tbl SET id = 0', ['`tbl`'], ], [ 'UPDATE 0tbl SET id = 0', ['`0tbl`'], ], [ 'DELETE FROM tbl WHERE id < 10', ['`tbl`'], ], [ 'DELETE FROM 0tbl WHERE id < 10', ['`0tbl`'], ], [ 'TRUNCATE tbl', ['`tbl`'], ], [ 'DROP VIEW v', [], ], [ 'DROP TABLE tbl1, tbl2', [ '`tbl1`', '`tbl2`', ], ], [ 'RENAME TABLE a TO b, c TO d', [ '`a`', '`c`', ], ], ]; } public function testGetClause(): void { /* Assertion 1 */ $parser = new Parser( 'SELECT c.city_id, c.country_id ' . 'FROM `city` ' . 'WHERE city_id < 1 /* test */' . 'ORDER BY city_id ASC ' . 'LIMIT 0, 1 ' . 'INTO OUTFILE "/dev/null"' ); $this->assertEquals( '0, 1 INTO OUTFILE "/dev/null"', Query::getClause( $parser->statements[0], $parser->list, 'LIMIT', 0 ) ); // Assert it returns all clauses between FROM and LIMIT $this->assertEquals( 'WHERE city_id < 1 ORDER BY city_id ASC', Query::getClause( $parser->statements[0], $parser->list, 'FROM', 'LIMIT' ) ); // Assert it returns all clauses between SELECT and LIMIT $this->assertEquals( 'FROM `city` WHERE city_id < 1 ORDER BY city_id ASC', Query::getClause( $parser->statements[0], $parser->list, 'LIMIT', 'SELECT' ) ); /* Assertion 2 */ $parser = new Parser( 'DELETE FROM `renewal` ' . 'WHERE number = "1DB" AND actionDate <= CURRENT_DATE() ' . 'ORDER BY id ASC ' . 'LIMIT 1' ); $this->assertEquals( 'number = "1DB" AND actionDate <= CURRENT_DATE()', Query::getClause( $parser->statements[0], $parser->list, 'WHERE' ) ); $this->assertEquals( '1', Query::getClause( $parser->statements[0], $parser->list, 'LIMIT' ) ); $this->assertEquals( 'id ASC', Query::getClause( $parser->statements[0], $parser->list, 'ORDER BY' ) ); /* Assertion 3 */ $parser = new Parser( 'UPDATE `renewal` SET `some_column` = 1 ' . 'WHERE number = "1DB" AND actionDate <= CURRENT_DATE() ' . 'ORDER BY id ASC ' . 'LIMIT 1' ); $this->assertEquals( 'number = "1DB" AND actionDate <= CURRENT_DATE()', Query::getClause( $parser->statements[0], $parser->list, 'WHERE' ) ); $this->assertEquals( '1', Query::getClause( $parser->statements[0], $parser->list, 'LIMIT' ) ); $this->assertEquals( 'id ASC', Query::getClause( $parser->statements[0], $parser->list, 'ORDER BY' ) ); } public function testReplaceClause(): void { $parser = new Parser('SELECT *, (SELECT 1) FROM film LIMIT 0, 10;'); $this->assertEquals( 'SELECT *, (SELECT 1) FROM film WHERE film_id > 0 LIMIT 0, 10', Query::replaceClause( $parser->statements[0], $parser->list, 'WHERE film_id > 0' ) ); $parser = new Parser( 'select supplier.city, supplier.id from supplier ' . 'union select customer.city, customer.id from customer' ); $this->assertEquals( 'select supplier.city, supplier.id from supplier ' . 'union select customer.city, customer.id from customer' . ' ORDER BY city ', Query::replaceClause( $parser->statements[0], $parser->list, 'ORDER BY city' ) ); } public function testReplaceClauseOnlyKeyword(): void { $parser = new Parser('SELECT *, (SELECT 1) FROM film LIMIT 0, 10'); $this->assertEquals( ' SELECT SQL_CALC_FOUND_ROWS *, (SELECT 1) FROM film LIMIT 0, 10', Query::replaceClause( $parser->statements[0], $parser->list, 'SELECT SQL_CALC_FOUND_ROWS', null, true ) ); } public function testReplaceNonExistingPart(): void { $parser = new Parser('ALTER TABLE `sale_mast` OPTIMIZE PARTITION p3'); $this->assertEquals( ' ALTER TABLE `sale_mast` OPTIMIZE PARTITION p3', Query::replaceClause( $parser->statements[0], $parser->list, 'ORDER BY', '' ) ); } public function testReplaceClauses(): void { $parser = new Parser('SELECT *, (SELECT 1) FROM film LIMIT 0, 10;'); $this->assertSame('', Query::replaceClauses($parser->statements[0], $parser->list, [])); $this->assertEquals( 'SELECT *, (SELECT 1) FROM film WHERE film_id > 0 LIMIT 0, 10', Query::replaceClauses( $parser->statements[0], $parser->list, [ [ 'WHERE', 'WHERE film_id > 0', ], ] ) ); $parser = new Parser( 'SELECT c.city_id, c.country_id ' . 'INTO OUTFILE "/dev/null" ' . 'FROM `city` ' . 'WHERE city_id < 1 ' . 'ORDER BY city_id ASC ' . 'LIMIT 0, 1 ' ); $this->assertEquals( 'SELECT c.city_id, c.country_id ' . 'INTO OUTFILE "/dev/null" ' . 'FROM city AS c ' . 'ORDER BY city_id ASC ' . 'LIMIT 0, 10 ', Query::replaceClauses( $parser->statements[0], $parser->list, [ [ 'FROM', 'FROM city AS c', ], [ 'WHERE', '', ], [ 'LIMIT', 'LIMIT 0, 10', ], ] ) ); } public function testGetFirstStatement(): void { $query = 'USE saki'; $delimiter = null; [$statement, $query, $delimiter] = Query::getFirstStatement($query, $delimiter); $this->assertNull($statement); $this->assertEquals('USE saki', $query); $query = 'USE sakila; ' . '/*test comment*/' . 'SELECT * FROM actor; ' . 'DELIMITER $$ ' . 'UPDATE actor SET last_name = "abc"$$' . '/*!SELECT * FROM actor WHERE last_name = "abc"*/$$'; $delimiter = null; [$statement, $query, $delimiter] = Query::getFirstStatement($query, $delimiter); $this->assertEquals('USE sakila;', $statement); [$statement, $query, $delimiter] = Query::getFirstStatement($query, $delimiter); $this->assertEquals('SELECT * FROM actor;', $statement); [$statement, $query, $delimiter] = Query::getFirstStatement($query, $delimiter); $this->assertEquals('DELIMITER $$', $statement); $this->assertEquals('$$', $delimiter); [$statement, $query, $delimiter] = Query::getFirstStatement($query, $delimiter); $this->assertEquals('UPDATE actor SET last_name = "abc"$$', $statement); [$statement, $query, $delimiter] = Query::getFirstStatement($query, $delimiter); $this->assertEquals('SELECT * FROM actor WHERE last_name = "abc"$$', $statement); } } sql-parser-5.9.0/tests/Utils/RoutineTest.php000066400000000000000000000205561455302707200210730ustar00rootroot00000000000000assertEquals($expected, Routine::getReturnType($def)); } /** * @return array>> * @psalm-return list */ public function getReturnTypeProvider(): array { return [ [ '', [ '', '', '', '', '', ], ], [ 'TEXT', [ '', '', 'TEXT', '', '', ], ], [ 'INT(20)', [ '', '', 'INT', '20', '', ], ], [ 'INT UNSIGNED', [ '', '', 'INT', '', 'UNSIGNED', ], ], [ 'VARCHAR(1) CHARSET utf8', [ '', '', 'VARCHAR', '1', 'utf8', ], ], [ 'ENUM(\'a\', \'b\') CHARSET latin1', [ '', '', 'ENUM', '\'a\',\'b\'', 'latin1', ], ], [ 'DECIMAL(5,2) UNSIGNED ZEROFILL', [ '', '', 'DECIMAL', '5,2', 'UNSIGNED ZEROFILL', ], ], [ 'SET(\'test\'\'esc"\', \'more\\\'esc\')', [ '', '', 'SET', '\'test\'\'esc"\',\'more\\\'esc\'', '', ], ], ]; } /** * @param string[] $expected * * @dataProvider getParameterProvider */ public function testGetParameter(string $def, array $expected): void { $this->assertEquals($expected, Routine::getParameter($def)); } /** * @return array>> * @psalm-return list */ public function getParameterProvider(): array { return [ [ '', [ '', '', '', '', '', ], ], [ '`foo` TEXT', [ '', 'foo', 'TEXT', '', '', ], ], [ '`foo` INT(20)', [ '', 'foo', 'INT', '20', '', ], ], [ 'IN `fo``fo` INT UNSIGNED', [ 'IN', 'fo`fo', 'INT', '', 'UNSIGNED', ], ], [ 'OUT bar VARCHAR(1) CHARSET utf8', [ 'OUT', 'bar', 'VARCHAR', '1', 'utf8', ], ], [ '`"baz\'\'` ENUM(\'a\', \'b\') CHARSET latin1', [ '', '"baz\'\'', 'ENUM', '\'a\',\'b\'', 'latin1', ], ], [ 'INOUT `foo` DECIMAL(5,2) UNSIGNED ZEROFILL', [ 'INOUT', 'foo', 'DECIMAL', '5,2', 'UNSIGNED ZEROFILL', ], ], [ '`foo``s func` SET(\'test\'\'esc"\', \'more\\\'esc\')', [ '', 'foo`s func', 'SET', '\'test\'\'esc"\',\'more\\\'esc\'', '', ], ], ]; } /** * @param array $expected * @psalm-param array{ * num: int, * dir: string[], * name: string[], * type: string[], * length: string[], * length_arr: string[][], * opts: string[] * } $expected * * @dataProvider getParametersProvider */ public function testGetParameters(string $query, array $expected): void { $parser = new Parser($query); $this->assertEquals($expected, Routine::getParameters($parser->statements[0])); } /** * @return array>> * @psalm-return list */ public function getParametersProvider(): array { return [ [ 'CREATE PROCEDURE `foo`() SET @A=0', [ 'num' => 0, 'dir' => [], 'name' => [], 'type' => [], 'length' => [], 'length_arr' => [], 'opts' => [], ], ], [ 'CREATE DEFINER=`user\\`@`somehost``(` FUNCTION `foo```(`baz` INT) BEGIN SELECT NULL; END', [ 'num' => 1, 'dir' => [0 => ''], 'name' => [0 => 'baz'], 'type' => [0 => 'INT'], 'length' => [0 => ''], 'length_arr' => [ 0 => [], ], 'opts' => [0 => ''], ], ], [ 'CREATE PROCEDURE `foo`(IN `baz\\)` INT(25) zerofill unsigned) BEGIN SELECT NULL; END', [ 'num' => 1, 'dir' => [0 => 'IN'], 'name' => [0 => 'baz\\)'], 'type' => [0 => 'INT'], 'length' => [0 => '25'], 'length_arr' => [ 0 => ['25'], ], 'opts' => [0 => 'UNSIGNED ZEROFILL'], ], ], [ 'CREATE PROCEDURE `foo`(IN `baz\\` INT(001) zerofill, out bazz varchar(15) charset utf8) ' . 'BEGIN SELECT NULL; END', [ 'num' => 2, 'dir' => [ 0 => 'IN', 1 => 'OUT', ], 'name' => [ 0 => 'baz\\', 1 => 'bazz', ], 'type' => [ 0 => 'INT', 1 => 'VARCHAR', ], 'length' => [ 0 => '1', 1 => '15', ], 'length_arr' => [ 0 => ['1'], 1 => ['15'], ], 'opts' => [ 0 => 'ZEROFILL', 1 => 'utf8', ], ], ], ]; } } sql-parser-5.9.0/tests/Utils/TableTest.php000066400000000000000000000242601455302707200204710ustar00rootroot00000000000000[] $expected * @psalm-param list $expected * * @dataProvider getForeignKeysProvider */ public function testGetForeignKeys(string $query, array $expected): void { $parser = new Parser($query); $this->assertEquals($expected, Table::getForeignKeys($parser->statements[0])); } /** * @return array[]>> * @psalm-return list}> */ public function getForeignKeysProvider(): array { return [ [ 'CREATE USER test', [], ], [ 'CREATE TABLE `payment` ( `payment_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `customer_id` smallint(5) unsigned NOT NULL, `staff_id` tinyint(3) unsigned NOT NULL, `rental_id` int(11) DEFAULT NULL, `amount` decimal(5,2) NOT NULL, `payment_date` datetime NOT NULL, `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`payment_id`), KEY `idx_fk_staff_id` (`staff_id`), KEY `idx_fk_customer_id` (`customer_id`), KEY `fk_payment_rental` (`rental_id`), CONSTRAINT `fk_payment_customer` FOREIGN KEY (`customer_id`) REFERENCES `customer` (`customer_id`) ON UPDATE CASCADE, CONSTRAINT `fk_payment_rental` FOREIGN KEY (`rental_id`) REFERENCES `rental` (`rental_id`) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT `fk_payment_staff` FOREIGN KEY (`staff_id`) REFERENCES `staff` (`staff_id`) ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=16050 DEFAULT CHARSET=utf8', [ [ 'constraint' => 'fk_payment_customer', 'index_list' => ['customer_id'], 'ref_db_name' => null, 'ref_table_name' => 'customer', 'ref_index_list' => ['customer_id'], 'on_update' => 'CASCADE', ], [ 'constraint' => 'fk_payment_rental', 'index_list' => ['rental_id'], 'ref_db_name' => null, 'ref_table_name' => 'rental', 'ref_index_list' => ['rental_id'], 'on_delete' => 'SET_NULL', 'on_update' => 'CASCADE', ], [ 'constraint' => 'fk_payment_staff', 'index_list' => ['staff_id'], 'ref_db_name' => null, 'ref_table_name' => 'staff', 'ref_index_list' => ['staff_id'], 'on_update' => 'CASCADE', ], ], ], [ 'CREATE TABLE `actor` ( `actor_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `first_name` varchar(45) NOT NULL, `last_name` varchar(45) NOT NULL, `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`actor_id`), KEY `idx_actor_last_name` (`last_name`) ) ENGINE=InnoDB AUTO_INCREMENT=201 DEFAULT CHARSET=utf8', [], ], [ 'CREATE TABLE `address` ( `address_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `address` varchar(50) NOT NULL, `address2` varchar(50) DEFAULT NULL, `district` varchar(20) NOT NULL, `city_id` smallint(5) unsigned NOT NULL, `postal_code` varchar(10) DEFAULT NULL, `phone` varchar(20) NOT NULL, `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`address_id`), KEY `idx_fk_city_id` (`city_id`), CONSTRAINT `fk_address_city` FOREIGN KEY (`city_id`) REFERENCES `city` (`city_id`) ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=606 DEFAULT CHARSET=utf8', [ [ 'constraint' => 'fk_address_city', 'index_list' => ['city_id'], 'ref_db_name' => null, 'ref_table_name' => 'city', 'ref_index_list' => ['city_id'], 'on_update' => 'CASCADE', ], ], ], ]; } /** * @param array> $expected * @psalm-param array $expected * * @dataProvider getFieldsProvider */ public function testGetFields(string $query, array $expected): void { $parser = new Parser($query); $this->assertEquals($expected, Table::getFields($parser->statements[0])); } /** * @return array>>> * @psalm-return list}> */ public function getFieldsProvider(): array { return [ [ 'CREATE USER test', [], ], [ 'CREATE TABLE `address` ( `address_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `address` varchar(50) NOT NULL, `address2` varchar(50) DEFAULT NULL, `district` varchar(20) NOT NULL, `city_id` smallint(5) unsigned NOT NULL, `postal_code` varchar(10) DEFAULT NULL, `phone` varchar(20) NOT NULL, `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`address_id`), KEY `idx_fk_city_id` (`city_id`), CONSTRAINT `fk_address_city` FOREIGN KEY (`city_id`) REFERENCES `city` (`city_id`) ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=606 DEFAULT CHARSET=utf8', [ 'address_id' => [ 'type' => 'SMALLINT', 'timestamp_not_null' => false, ], 'address' => [ 'type' => 'VARCHAR', 'timestamp_not_null' => false, ], 'address2' => [ 'type' => 'VARCHAR', 'timestamp_not_null' => false, 'default_value' => 'NULL', ], 'district' => [ 'type' => 'VARCHAR', 'timestamp_not_null' => false, ], 'city_id' => [ 'type' => 'SMALLINT', 'timestamp_not_null' => false, ], 'postal_code' => [ 'type' => 'VARCHAR', 'timestamp_not_null' => false, 'default_value' => 'NULL', ], 'phone' => [ 'type' => 'VARCHAR', 'timestamp_not_null' => false, ], 'last_update' => [ 'type' => 'TIMESTAMP', 'timestamp_not_null' => true, 'default_value' => 'CURRENT_TIMESTAMP', 'default_current_timestamp' => true, 'on_update_current_timestamp' => true, ], ], ], [ 'CREATE TABLE table1 ( a INT NOT NULL, b VARCHAR(32), c INT AS (a mod 10) VIRTUAL, d VARCHAR(5) AS (left(b,5)) PERSISTENT )', [ 'a' => [ 'type' => 'INT', 'timestamp_not_null' => false, ], 'b' => [ 'type' => 'VARCHAR', 'timestamp_not_null' => false, ], 'c' => [ 'type' => 'INT', 'timestamp_not_null' => false, 'generated' => true, 'expr' => '(a mod 10)', ], 'd' => [ 'type' => 'VARCHAR', 'timestamp_not_null' => false, 'generated' => true, 'expr' => '(left(b,5))', ], ], ], ]; } } sql-parser-5.9.0/tests/Utils/TokensTest.php000066400000000000000000000071671455302707200207140ustar00rootroot00000000000000[] $find * @param Token[] $replace * * @dataProvider replaceTokensProvider */ public function testReplaceTokens(string $list, array $find, array $replace, string $expected): void { $this->assertEquals($expected, Tokens::replaceTokens($list, $find, $replace)); } /** * @return array[]|Token[]>> * @psalm-return list>, Token[], string}> */ public function replaceTokensProvider(): array { return [ [ 'SELECT * FROM /*x*/a/*c*/.b', [ ['value_str' => 'a'], ['token' => '.'], ], [ new Token('c'), new Token('.'), ], 'SELECT * FROM /*x*/c.b', ], ]; } /** * @param array $pattern * * @dataProvider matchProvider */ public function testMatch(Token $token, array $pattern, bool $expected): void { $this->assertSame($expected, Tokens::match($token, $pattern)); } /** * @return array>> * @psalm-return list, bool}> */ public function matchProvider(): array { return [ [ new Token(''), [], true, ], [ new Token('"abc"', Token::TYPE_STRING, Token::FLAG_STRING_DOUBLE_QUOTES), ['token' => '"abc"'], true, ], [ new Token('"abc"', Token::TYPE_STRING, Token::FLAG_STRING_DOUBLE_QUOTES), ['value' => 'abc'], true, ], [ new Token('"abc"', Token::TYPE_STRING, Token::FLAG_STRING_DOUBLE_QUOTES), ['value_str' => 'ABC'], true, ], [ new Token('"abc"', Token::TYPE_STRING, Token::FLAG_STRING_DOUBLE_QUOTES), ['type' => Token::TYPE_STRING], true, ], [ new Token('"abc"', Token::TYPE_STRING, Token::FLAG_STRING_DOUBLE_QUOTES), ['flags' => Token::FLAG_STRING_DOUBLE_QUOTES], true, ], [ new Token('"abc"', Token::TYPE_STRING, Token::FLAG_STRING_DOUBLE_QUOTES), ['token' => '"abcd"'], false, ], [ new Token('"abc"', Token::TYPE_STRING, Token::FLAG_STRING_DOUBLE_QUOTES), ['value' => 'abcd'], false, ], [ new Token('"abc"', Token::TYPE_STRING, Token::FLAG_STRING_DOUBLE_QUOTES), ['value_str' => 'ABCd'], false, ], [ new Token('"abc"', Token::TYPE_STRING, Token::FLAG_STRING_DOUBLE_QUOTES), ['type' => Token::TYPE_NUMBER], false, ], [ new Token('"abc"', Token::TYPE_STRING, Token::FLAG_STRING_DOUBLE_QUOTES), ['flags' => Token::FLAG_STRING_SINGLE_QUOTES], false, ], ]; } } sql-parser-5.9.0/tests/data/000077500000000000000000000000001455302707200156765ustar00rootroot00000000000000sql-parser-5.9.0/tests/data/bugs/000077500000000000000000000000001455302707200166365ustar00rootroot00000000000000sql-parser-5.9.0/tests/data/bugs/fuzz1.in000066400000000000000000000000101455302707200202340ustar00rootroot00000000000000ALTER..2sql-parser-5.9.0/tests/data/bugs/fuzz1.out000066400000000000000000000047641455302707200204610ustar00rootroot00000000000000{ "query": "ALTER..2", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER..2", "len": 8, "last": 8, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".2", "value": 0.2, "keyword": null, "type": 6, "flags": 2, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 4, "idx": 4 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": null, "altered": [], "options": null, "first": 0, "last": 0 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unrecognized alter operation.", { "@type": "@2" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@4" }, 0 ] ] } }sql-parser-5.9.0/tests/data/bugs/fuzz2.in000066400000000000000000000000061455302707200202420ustar00rootroot00000000000000WITH](sql-parser-5.9.0/tests/data/bugs/fuzz2.out000066400000000000000000000056561455302707200204630ustar00rootroot00000000000000{ "query": "WITH](", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "WITH](", "len": 6, "last": 6, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "]", "value": "]", "keyword": null, "type": 0, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 4, "idx": 4 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\WithStatement", "withers": [], "cteStatementParser": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 0 } ], "brackets": 1, "strict": false, "errors": [] }, "errors": { "lexer": [ [ "Unexpected character.", "]", 4, 0 ] ], "parser": [ [ "The name of the CTE was expected.", { "@type": "@3" }, 0 ], [ "Unexpected end of the WITH CTE.", { "@type": "@3" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@3" }, 0 ] ] } }sql-parser-5.9.0/tests/data/bugs/fuzz3.in000066400000000000000000000000101455302707200202360ustar00rootroot00000000000000WITH*/A(sql-parser-5.9.0/tests/data/bugs/fuzz3.out000066400000000000000000000062651455302707200204610ustar00rootroot00000000000000{ "query": "WITH*/A(", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "WITH*/A(", "len": 8, "last": 8, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*/", "value": "*/", "keyword": null, "type": 4, "flags": 2, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "A", "value": "A", "keyword": null, "type": 0, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 5, "idx": 5 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\WithStatement", "withers": { "A": { "@type": "PhpMyAdmin\\SqlParser\\Components\\WithKeyword", "name": "A", "columns": [], "statement": null } }, "cteStatementParser": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 3 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "A closing bracket was expected.", { "@type": "@6" }, 0 ], [ "Unexpected end of the WITH CTE.", { "@type": "@6" }, 0 ] ] } }sql-parser-5.9.0/tests/data/bugs/fuzz4.in000066400000000000000000000000111455302707200202400ustar00rootroot00000000000000ALTeR=SETsql-parser-5.9.0/tests/data/bugs/fuzz4.out000066400000000000000000000053171455302707200204570ustar00rootroot00000000000000{ "query": "ALTeR=SET", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTeR=SET", "len": 9, "last": 9, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTeR", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 4, "idx": 4 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": null, "altered": [], "options": null, "first": 0, "last": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "end_options": null, "set": [], "first": 1, "last": 2 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unrecognized alter operation.", { "@type": "@2" }, 0 ] ] } }sql-parser-5.9.0/tests/data/bugs/fuzz5.in000066400000000000000000000000041455302707200202430ustar00rootroot00000000000000+0xOsql-parser-5.9.0/tests/data/bugs/fuzz5.out000066400000000000000000000036601455302707200204570ustar00rootroot00000000000000{ "query": "+0xO", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "+0xO", "len": 4, "last": 4, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+0x", "value": 0, "keyword": null, "type": 6, "flags": 1, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "O", "value": "O", "keyword": null, "type": 0, "flags": 0, "position": 3 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 3, "idx": 3 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected beginning of statement.", { "@type": "@2" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@3" }, 0 ] ] } }sql-parser-5.9.0/tests/data/bugs/fuzz6.in000066400000000000000000000000051455302707200202450ustar00rootroot00000000000000-+0x!sql-parser-5.9.0/tests/data/bugs/fuzz6.out000066400000000000000000000034071455302707200204570ustar00rootroot00000000000000{ "query": "-+0x!", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "-+0x!", "len": 5, "last": 5, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-+0x", "value": 0, "keyword": null, "type": 6, "flags": 9, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "!", "value": "!", "keyword": null, "type": 2, "flags": 2, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 3, "idx": 3 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected beginning of statement.", { "@type": "@2" }, 0 ] ] } }sql-parser-5.9.0/tests/data/bugs/gh14.in000066400000000000000000000001611455302707200177270ustar00rootroot00000000000000ALTER TABLE `actor` MODIFY `actor_id` SMALLINT(5) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT = 201;sql-parser-5.9.0/tests/data/bugs/gh14.out000066400000000000000000000323311455302707200201340ustar00rootroot00000000000000{ "query": "ALTER TABLE\n `actor` MODIFY `actor_id` SMALLINT(5) UNSIGNED NOT NULL AUTO_INCREMENT,\n AUTO_INCREMENT = 201;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE\n `actor` MODIFY `actor_id` SMALLINT(5) UNSIGNED NOT NULL AUTO_INCREMENT,\n AUTO_INCREMENT = 201;", "len": 113, "last": 113, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`actor`", "value": "actor", "keyword": null, "type": 8, "flags": 2, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MODIFY", "value": "MODIFY", "keyword": "MODIFY", "type": 1, "flags": 1, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`actor_id`", "value": "actor_id", "keyword": null, "type": 8, "flags": 2, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SMALLINT", "value": "SMALLINT", "keyword": "SMALLINT", "type": 1, "flags": 11, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "5", "value": 5, "keyword": null, "type": 6, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AUTO_INCREMENT", "value": "AUTO_INCREMENT", "keyword": "AUTO_INCREMENT", "type": 1, "flags": 1, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AUTO_INCREMENT", "value": "AUTO_INCREMENT", "keyword": "AUTO_INCREMENT", "type": 1, "flags": 1, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "201", "value": 201, "keyword": null, "type": 6, "flags": 0, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 29, "idx": 29 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "actor", "column": null, "expr": "`actor`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "MODIFY" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "actor_id", "expr": "`actor_id`", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" } ] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "AUTO_INCREMENT", "equals": true, "expr": "201", "value": "201" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 27 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/bugs/gh16.in000066400000000000000000000007341455302707200177370ustar00rootroot00000000000000CREATE TABLE `jos_core_acl_aro` ( `id` int(11) NOT NULL, `section_value` varchar(240) NOT NULL DEFAULT '0', `value` varchar(240) NOT NULL DEFAULT '', `order_value` int(11) NOT NULL DEFAULT '0', `name` varchar(255) NOT NULL DEFAULT '', `hidden` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `jos_section_value_value_aro` (`section_value`(100),`value`(15)) USING BTREE, KEY `jos_gacl_hidden_aro` (`hidden`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1sql-parser-5.9.0/tests/data/bugs/gh16.out000066400000000000000000001632471455302707200201510ustar00rootroot00000000000000{ "query": "CREATE TABLE `jos_core_acl_aro` (\n `id` int(11) NOT NULL,\n `section_value` varchar(240) NOT NULL DEFAULT '0',\n `value` varchar(240) NOT NULL DEFAULT '',\n `order_value` int(11) NOT NULL DEFAULT '0',\n `name` varchar(255) NOT NULL DEFAULT '',\n `hidden` int(11) NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`),\n UNIQUE KEY `jos_section_value_value_aro` (`section_value`(100),`value`(15)) USING BTREE,\n KEY `jos_gacl_hidden_aro` (`hidden`)\n) ENGINE=InnoDB DEFAULT CHARSET=latin1", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE `jos_core_acl_aro` (\n `id` int(11) NOT NULL,\n `section_value` varchar(240) NOT NULL DEFAULT '0',\n `value` varchar(240) NOT NULL DEFAULT '',\n `order_value` int(11) NOT NULL DEFAULT '0',\n `name` varchar(255) NOT NULL DEFAULT '',\n `hidden` int(11) NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`),\n UNIQUE KEY `jos_section_value_value_aro` (`section_value`(100),`value`(15)) USING BTREE,\n KEY `jos_gacl_hidden_aro` (`hidden`)\n) ENGINE=InnoDB DEFAULT CHARSET=latin1", "len": 476, "last": 476, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`jos_core_acl_aro`", "value": "jos_core_acl_aro", "keyword": null, "type": 8, "flags": 2, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`id`", "value": "id", "keyword": null, "type": 8, "flags": 2, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "int", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`section_value`", "value": "section_value", "keyword": null, "type": 8, "flags": 2, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "varchar", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "240", "value": 240, "keyword": null, "type": 6, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'0'", "value": "0", "keyword": null, "type": 7, "flags": 1, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`value`", "value": "value", "keyword": null, "type": 8, "flags": 2, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "varchar", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "240", "value": 240, "keyword": null, "type": 6, "flags": 0, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 134 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "''", "value": "", "keyword": null, "type": 7, "flags": 1, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 154 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`order_value`", "value": "order_value", "keyword": null, "type": 8, "flags": 2, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 171 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "int", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 172 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 175 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 179 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 188 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 189 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 196 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'0'", "value": "0", "keyword": null, "type": 7, "flags": 1, "position": 197 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 200 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 201 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`name`", "value": "name", "keyword": null, "type": 8, "flags": 2, "position": 204 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 210 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "varchar", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 211 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 218 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "255", "value": 255, "keyword": null, "type": 6, "flags": 0, "position": 219 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 222 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 223 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 224 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 232 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 233 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 240 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "''", "value": "", "keyword": null, "type": 7, "flags": 1, "position": 241 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 243 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 244 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`hidden`", "value": "hidden", "keyword": null, "type": 8, "flags": 2, "position": 247 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 255 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "int", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 256 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 259 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 260 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 262 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 263 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 264 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 272 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 273 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 280 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'0'", "value": "0", "keyword": null, "type": 7, "flags": 1, "position": 281 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 284 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 285 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PRIMARY KEY", "value": "PRIMARY KEY", "keyword": "PRIMARY KEY", "type": 1, "flags": 23, "position": 288 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 299 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 300 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`id`", "value": "id", "keyword": null, "type": 8, "flags": 2, "position": 301 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 305 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 306 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 307 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNIQUE KEY", "value": "UNIQUE KEY", "keyword": "UNIQUE KEY", "type": 1, "flags": 23, "position": 310 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 320 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`jos_section_value_value_aro`", "value": "jos_section_value_value_aro", "keyword": null, "type": 8, "flags": 2, "position": 321 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 350 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 351 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`section_value`", "value": "section_value", "keyword": null, "type": 8, "flags": 2, "position": 352 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 367 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "100", "value": 100, "keyword": null, "type": 6, "flags": 0, "position": 368 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 371 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 372 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`value`", "value": "value", "keyword": null, "type": 8, "flags": 2, "position": 373 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 380 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "15", "value": 15, "keyword": null, "type": 6, "flags": 0, "position": 381 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 383 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 384 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 385 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 386 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 391 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BTREE", "value": "BTREE", "keyword": "BTREE", "type": 1, "flags": 1, "position": 392 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 397 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 398 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "KEY", "value": "KEY", "keyword": "KEY", "type": 1, "flags": 19, "position": 401 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 404 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`jos_gacl_hidden_aro`", "value": "jos_gacl_hidden_aro", "keyword": null, "type": 8, "flags": 2, "position": 405 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 426 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 427 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`hidden`", "value": "hidden", "keyword": null, "type": 8, "flags": 2, "position": 428 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 436 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 437 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 438 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 439 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENGINE", "value": "ENGINE", "keyword": "ENGINE", "type": 1, "flags": 1, "position": 440 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 446 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "InnoDB", "value": "InnoDB", "keyword": null, "type": 0, "flags": 0, "position": 447 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 453 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT CHARSET", "value": "DEFAULT CHARSET", "keyword": "DEFAULT CHARSET", "type": 1, "flags": 7, "position": 454 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 469 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "latin1", "value": "latin1", "keyword": null, "type": 0, "flags": 0, "position": 470 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 134, "idx": 134 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "jos_core_acl_aro", "column": null, "expr": "`jos_core_acl_aro`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ENGINE", "equals": true, "expr": "InnoDB", "value": "InnoDB" }, "4": { "name": "DEFAULT CHARSET", "equals": true, "expr": "latin1", "value": "latin1" } } }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [ "11" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL" } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "section_value", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "240" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "0", "expr": "'0'", "alias": null, "function": null, "subquery": null }, "value": "'0'" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "value", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "240" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "", "expr": "''", "alias": null, "function": null, "subquery": null }, "value": "''" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "order_value", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [ "11" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "0", "expr": "'0'", "alias": null, "function": null, "subquery": null }, "value": "'0'" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "name", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "255" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "", "expr": "''", "alias": null, "function": null, "subquery": null }, "value": "''" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "hidden", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [ "11" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "0", "expr": "'0'", "alias": null, "function": null, "subquery": null }, "value": "'0'" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": null, "isConstraint": null, "type": null, "key": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Key", "name": null, "columns": [ { "name": "id" } ], "type": "PRIMARY KEY", "expr": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "references": null, "options": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": null, "isConstraint": null, "type": null, "key": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Key", "name": "jos_section_value_value_aro", "columns": [ { "name": "section_value", "length": 100 }, { "name": "value", "length": 15 } ], "type": "UNIQUE KEY", "expr": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "USING", "equals": false, "expr": "BTREE", "value": "BTREE" } } } }, "references": null, "options": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": null, "isConstraint": null, "type": null, "key": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Key", "name": "jos_gacl_hidden_aro", "columns": [ { "name": "hidden" } ], "type": "KEY", "expr": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "references": null, "options": null } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 133 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/bugs/gh202.in000066400000000000000000000000731455302707200200100ustar00rootroot00000000000000update tbl_customer t set t.`description`=:yp where t.id=1;sql-parser-5.9.0/tests/data/bugs/gh202.out000066400000000000000000000222471455302707200202200ustar00rootroot00000000000000{ "query": "update tbl_customer t set t.`description`=:yp where t.id=1;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "update tbl_customer t set t.`description`=:yp where t.id=1;", "len": 59, "last": 59, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "update", "value": "UPDATE", "keyword": "UPDATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tbl_customer", "value": "tbl_customer", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t", "value": "t", "keyword": null, "type": 0, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "set", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t", "value": "t", "keyword": null, "type": 0, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`description`", "value": "description", "keyword": null, "type": 8, "flags": 2, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ":yp", "value": "yp", "keyword": null, "type": 8, "flags": 16, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "where", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t", "value": "t", "keyword": null, "type": 0, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 23, "idx": 23 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\UpdateStatement", "tables": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "tbl_customer", "column": null, "expr": "tbl_customer", "alias": "t", "function": null, "subquery": null } ], "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "t.`description`", "value": ":yp" } ], "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "t", "id" ], "isOperator": false, "expr": "t.id=1" } ], "order": null, "limit": null, "join": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 20 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/bugs/gh234.in000066400000000000000000000001451455302707200200150ustar00rootroot00000000000000ALTER TABLE `mail_template` CHANGE COLUMN `mtpl_group` `mtpl_group` ENUM('ORDER') NULL DEFAULT NULL ;sql-parser-5.9.0/tests/data/bugs/gh234.out000066400000000000000000000303001455302707200202120ustar00rootroot00000000000000{ "query": "ALTER TABLE `mail_template` CHANGE COLUMN `mtpl_group` `mtpl_group` ENUM('ORDER') NULL DEFAULT NULL ;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE `mail_template` CHANGE COLUMN `mtpl_group` `mtpl_group` ENUM('ORDER') NULL DEFAULT NULL ;", "len": 101, "last": 101, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`mail_template`", "value": "mail_template", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHANGE", "value": "CHANGE", "keyword": "CHANGE", "type": 1, "flags": 3, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLUMN", "value": "COLUMN", "keyword": "COLUMN", "type": 1, "flags": 3, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`mtpl_group`", "value": "mtpl_group", "keyword": null, "type": 8, "flags": 2, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`mtpl_group`", "value": "mtpl_group", "keyword": null, "type": 8, "flags": 2, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENUM", "value": "ENUM", "keyword": "ENUM", "type": 1, "flags": 9, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'ORDER'", "value": "ORDER", "keyword": null, "type": 7, "flags": 1, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 27, "idx": 27 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "mail_template", "column": null, "expr": "`mail_template`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "CHANGE", "2": "COLUMN" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "mtpl_group", "expr": "`mtpl_group`", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 25 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/bugs/gh317.in000066400000000000000000000000631455302707200200160ustar00rootroot00000000000000ALTER TABLE `demo` ADD KEY `IDX_REPAIR` (`REPAIR`);sql-parser-5.9.0/tests/data/bugs/gh317.out000066400000000000000000000177501455302707200202320ustar00rootroot00000000000000{ "query": "ALTER TABLE `demo` ADD KEY `IDX_REPAIR` (`REPAIR`);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE `demo` ADD KEY `IDX_REPAIR` (`REPAIR`);", "len": 51, "last": 51, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`demo`", "value": "demo", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ADD", "value": "ADD", "keyword": "ADD", "type": 1, "flags": 3, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "KEY", "value": "KEY", "keyword": "KEY", "type": 1, "flags": 19, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`IDX_REPAIR`", "value": "IDX_REPAIR", "keyword": null, "type": 8, "flags": 2, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`REPAIR`", "value": "REPAIR", "keyword": null, "type": 8, "flags": 2, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 17, "idx": 17 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "demo", "column": null, "expr": "`demo`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ADD", "2": "KEY" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "IDX_REPAIR", "expr": "`IDX_REPAIR`", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 15 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/bugs/gh412.in000066400000000000000000000000211455302707200200040ustar00rootroot00000000000000SELECT 1, 2, ?, 3sql-parser-5.9.0/tests/data/bugs/gh412.out000066400000000000000000000157261455302707200202270ustar00rootroot00000000000000{ "query": "SELECT 1, 2, ?, 3", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT 1, 2, ?, 3", "len": 17, "last": 17, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "?", "value": "?", "keyword": null, "type": 8, "flags": 16, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 13, "idx": 13 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "2", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "?", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "3", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 11 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/bugs/gh478.in000066400000000000000000000002261455302707200200270ustar00rootroot00000000000000ALTER TABLE `MY_TABLE` MODIFY `FOO` INT(11) NULL, MODIFY `MY_COLUMN` ENUM('INSERT','UPDATE','DELETE','REPLACE') NULL, MODIFY `BAR` VARCHAR(255) NULL; sql-parser-5.9.0/tests/data/bugs/gh478.out000066400000000000000000000535201455302707200202350ustar00rootroot00000000000000{ "query": "ALTER TABLE `MY_TABLE`\nMODIFY `FOO` INT(11) NULL,\nMODIFY `MY_COLUMN` ENUM('INSERT','UPDATE','DELETE','REPLACE') NULL,\nMODIFY `BAR` VARCHAR(255) NULL;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE `MY_TABLE`\nMODIFY `FOO` INT(11) NULL,\nMODIFY `MY_COLUMN` ENUM('INSERT','UPDATE','DELETE','REPLACE') NULL,\nMODIFY `BAR` VARCHAR(255) NULL;\n", "len": 150, "last": 150, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`MY_TABLE`", "value": "MY_TABLE", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MODIFY", "value": "MODIFY", "keyword": "MODIFY", "type": 1, "flags": 1, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`FOO`", "value": "FOO", "keyword": null, "type": 8, "flags": 2, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MODIFY", "value": "MODIFY", "keyword": "MODIFY", "type": 1, "flags": 1, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`MY_COLUMN`", "value": "MY_COLUMN", "keyword": null, "type": 8, "flags": 2, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENUM", "value": "ENUM", "keyword": "ENUM", "type": 1, "flags": 9, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'INSERT'", "value": "INSERT", "keyword": null, "type": 7, "flags": 1, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'UPDATE'", "value": "UPDATE", "keyword": null, "type": 7, "flags": 1, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'DELETE'", "value": "DELETE", "keyword": null, "type": 7, "flags": 1, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'REPLACE'", "value": "REPLACE", "keyword": null, "type": 7, "flags": 1, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MODIFY", "value": "MODIFY", "keyword": "MODIFY", "type": 1, "flags": 1, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`BAR`", "value": "BAR", "keyword": null, "type": 8, "flags": 2, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "255", "value": 255, "keyword": null, "type": 6, "flags": 0, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 49, "idx": 49 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "MY_TABLE", "column": null, "expr": "`MY_TABLE`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "MODIFY" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "FOO", "expr": "`FOO`", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" } ] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "MODIFY" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "MY_COLUMN", "expr": "`MY_COLUMN`", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" }, { "@type": "@29" }, { "@type": "@30" }, { "@type": "@31" }, { "@type": "@32" }, { "@type": "@33" }, { "@type": "@34" }, { "@type": "@35" } ] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "MODIFY" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "BAR", "expr": "`BAR`", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@42" }, { "@type": "@43" }, { "@type": "@44" }, { "@type": "@45" }, { "@type": "@46" }, { "@type": "@47" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 46 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/bugs/gh492.in000066400000000000000000000000631455302707200200220ustar00rootroot00000000000000UPDATE order SET price = ? WHERE orderid = ?sql-parser-5.9.0/tests/data/bugs/gh492.out000066400000000000000000000201721455302707200202260ustar00rootroot00000000000000{ "query": "UPDATE order\nSET price = ?\nWHERE orderid = ?", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "UPDATE order\nSET price = ?\nWHERE orderid = ?", "len": 51, "last": 51, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UPDATE", "value": "UPDATE", "keyword": "UPDATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "order", "value": "ORDER", "keyword": "ORDER", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "price", "value": "price", "keyword": null, "type": 0, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "?", "value": "?", "keyword": null, "type": 8, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "orderid", "value": "orderid", "keyword": null, "type": 0, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "?", "value": "?", "keyword": null, "type": 8, "flags": 16, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 20, "idx": 20 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\UpdateStatement", "tables": [], "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "price", "value": "?" } ], "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "orderid" ], "isOperator": false, "expr": "orderid = ?" } ], "order": null, "limit": null, "join": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 18 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "An expression was expected.", { "@type": "@4" }, 0 ], [ "Unrecognized keyword.", { "@type": "@4" }, 0 ] ] } }sql-parser-5.9.0/tests/data/bugs/gh496.in000066400000000000000000000001071455302707200200250ustar00rootroot00000000000000SELECT COUNT(*) AS amount FROM one i JOIN two io ON io.id = i.idsql-parser-5.9.0/tests/data/bugs/gh496.out000066400000000000000000000340251455302707200202340ustar00rootroot00000000000000{ "query": "SELECT COUNT(*) AS amount\nFROM one i\nJOIN two io ON io.id = i.id", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT COUNT(*) AS amount\nFROM one i\nJOIN two io ON io.id = i.id", "len": 71, "last": 71, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COUNT", "value": "COUNT", "keyword": "COUNT", "type": 1, "flags": 33, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "amount", "value": "amount", "keyword": null, "type": 0, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "one", "value": "one", "keyword": "ONE", "type": 1, "flags": 1, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "i", "value": "i", "keyword": null, "type": 0, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "JOIN", "value": "JOIN", "keyword": "JOIN", "type": 1, "flags": 3, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "two", "value": "two", "keyword": null, "type": 0, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "io", "value": "io", "keyword": "IO", "type": 1, "flags": 1, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "io", "value": "io", "keyword": "IO", "type": 1, "flags": 1, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "i", "value": "i", "keyword": null, "type": 0, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 35, "idx": 35 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "COUNT(*)", "alias": "amount", "function": "COUNT", "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "one", "column": null, "expr": "one", "alias": "i", "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "JOIN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "two", "column": null, "expr": "two", "alias": "io", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "io", "id", "i" ], "isOperator": false, "expr": "io.id = i.id" } ], "using": null } ], "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 33 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/bugs/gh498.in000066400000000000000000000000771455302707200200350ustar00rootroot00000000000000SELECT ? FROM uno JOIN dos ON dos.id = uno.id LIMIT ? OFFSET ?sql-parser-5.9.0/tests/data/bugs/gh498.out000066400000000000000000000324251455302707200202400ustar00rootroot00000000000000{ "query": "SELECT ?\nFROM uno\nJOIN dos ON dos.id = uno.id\nLIMIT ? OFFSET ?", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT ?\nFROM uno\nJOIN dos ON dos.id = uno.id\nLIMIT ? OFFSET ?", "len": 63, "last": 63, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "?", "value": "?", "keyword": null, "type": 8, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "uno", "value": "uno", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "JOIN", "value": "JOIN", "keyword": "JOIN", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "dos", "value": "dos", "keyword": null, "type": 0, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "dos", "value": "dos", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "uno", "value": "uno", "keyword": null, "type": 0, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIMIT", "value": "LIMIT", "keyword": "LIMIT", "type": 1, "flags": 3, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "?", "value": "?", "keyword": null, "type": 8, "flags": 16, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OFFSET", "value": "OFFSET", "keyword": "OFFSET", "type": 1, "flags": 1, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "?", "value": "?", "keyword": null, "type": 8, "flags": 16, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 32, "idx": 32 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "?", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "uno", "column": null, "expr": "uno", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Limit", "offset": "?", "rowCount": "?" }, "procedure": null, "into": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "JOIN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "dos", "column": null, "expr": "dos", "alias": null, "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "dos", "id", "uno" ], "isOperator": false, "expr": "dos.id = uno.id" } ], "using": null } ], "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 30 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/bugs/gh499.in000066400000000000000000000001571455302707200200350ustar00rootroot00000000000000UPDATE users SET username = ?, id=155; UPDATE users SET username = :user_name, id=155;sql-parser-5.9.0/tests/data/bugs/gh499.out000066400000000000000000000345551455302707200202470ustar00rootroot00000000000000{ "query": "UPDATE\n users\nSET\n username = ?,\n id=155;\n\nUPDATE\n users\nSET\n username = :user_name,\n id=155;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "UPDATE\n users\nSET\n username = ?,\n id=155;\n\nUPDATE\n users\nSET\n username = :user_name,\n id=155;", "len": 111, "last": 111, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UPDATE", "value": "UPDATE", "keyword": "UPDATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "users", "value": "users", "keyword": null, "type": 0, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "?", "value": "?", "keyword": null, "type": 8, "flags": 16, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "155", "value": 155, "keyword": null, "type": 6, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UPDATE", "value": "UPDATE", "keyword": "UPDATE", "type": 1, "flags": 3, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "users", "value": "users", "keyword": null, "type": 0, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ":user_name", "value": "user_name", "keyword": null, "type": 8, "flags": 16, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "155", "value": 155, "keyword": null, "type": 6, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 36, "idx": 36 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\UpdateStatement", "tables": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "users", "column": null, "expr": "users", "alias": null, "function": null, "subquery": null } ], "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "username", "value": "?" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "id", "value": "155" } ], "where": null, "order": null, "limit": null, "join": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\UpdateStatement", "tables": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "users", "column": null, "expr": "users", "alias": null, "function": null, "subquery": null } ], "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "username", "value": ":user_name" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "id", "value": "155" } ], "where": null, "order": null, "limit": null, "join": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 16, "last": 33 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/bugs/gh508.in000066400000000000000000000000041455302707200200130ustar00rootroot000000000000000X0Fsql-parser-5.9.0/tests/data/bugs/gh508.out000066400000000000000000000027361455302707200202320ustar00rootroot00000000000000{ "query": "0X0F", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "0X0F", "len": 4, "last": 4, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0X0F", "value": "0X0F", "keyword": null, "type": 0, "flags": 0, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 2, "idx": 2 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected beginning of statement.", { "@type": "@2" }, 0 ] ] } }sql-parser-5.9.0/tests/data/bugs/gh511.in000066400000000000000000000003111455302707200200060ustar00rootroot00000000000000ALTER TABLE users_type MODIFY limitations ENUM('tout', 'rien', 'bu', 'agence', 'agence_limite', 'n-1', 'agence_inactif'); UPDATE users_type SET limitations = 'agence_inactif' WHERE id_users_type = 19; sql-parser-5.9.0/tests/data/bugs/gh511.out000066400000000000000000000567411455302707200202310ustar00rootroot00000000000000{ "query": "ALTER TABLE users_type MODIFY limitations ENUM('tout', 'rien', 'bu', 'agence', 'agence_limite', 'n-1', 'agence_inactif');\nUPDATE users_type SET limitations = 'agence_inactif' WHERE id_users_type = 19;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE users_type MODIFY limitations ENUM('tout', 'rien', 'bu', 'agence', 'agence_limite', 'n-1', 'agence_inactif');\nUPDATE users_type SET limitations = 'agence_inactif' WHERE id_users_type = 19;\n", "len": 201, "last": 201, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "users_type", "value": "users_type", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MODIFY", "value": "MODIFY", "keyword": "MODIFY", "type": 1, "flags": 1, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "limitations", "value": "limitations", "keyword": null, "type": 0, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENUM", "value": "ENUM", "keyword": "ENUM", "type": 1, "flags": 9, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'tout'", "value": "tout", "keyword": null, "type": 7, "flags": 1, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'rien'", "value": "rien", "keyword": null, "type": 7, "flags": 1, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'bu'", "value": "bu", "keyword": null, "type": 7, "flags": 1, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'agence'", "value": "agence", "keyword": null, "type": 7, "flags": 1, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'agence_limite'", "value": "agence_limite", "keyword": null, "type": 7, "flags": 1, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'n-1'", "value": "n-1", "keyword": null, "type": 7, "flags": 1, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'agence_inactif'", "value": "agence_inactif", "keyword": null, "type": 7, "flags": 1, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UPDATE", "value": "UPDATE", "keyword": "UPDATE", "type": 1, "flags": 3, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "users_type", "value": "users_type", "keyword": null, "type": 0, "flags": 0, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "limitations", "value": "limitations", "keyword": null, "type": 0, "flags": 0, "position": 144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'agence_inactif'", "value": "agence_inactif", "keyword": null, "type": 7, "flags": 1, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 175 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id_users_type", "value": "id_users_type", "keyword": null, "type": 0, "flags": 0, "position": 181 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 194 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 195 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 196 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "19", "value": 19, "keyword": null, "type": 6, "flags": 0, "position": 197 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 199 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 200 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 56, "idx": 56 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "users_type", "column": null, "expr": "users_type", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "MODIFY" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "limitations", "expr": "limitations", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" }, { "@type": "@29" }, { "@type": "@30" }, { "@type": "@31" }, { "@type": "@32" }, { "@type": "@33" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\UpdateStatement", "tables": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "users_type", "column": null, "expr": "users_type", "alias": null, "function": null, "subquery": null } ], "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "limitations", "value": "'agence_inactif'" } ], "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "id_users_type" ], "isOperator": false, "expr": "id_users_type = 19" } ], "order": null, "limit": null, "join": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 33, "last": 52 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/bugs/gh9.in000066400000000000000000000003251455302707200176550ustar00rootroot00000000000000SELECT * FROM foo WHERE SELECT * FROM foo WHERE START TRANSACTION; CREATE TABLE `tb` (`uid` INT UNSIGNED NOT NULL `position` INT NOT NULL, PRIMARY KEY ( `uid` ) , INDEX ( `position` ) ) ENGINE = InnoDB; COMMIT;sql-parser-5.9.0/tests/data/bugs/gh9.out000066400000000000000000000772161455302707200200730ustar00rootroot00000000000000{ "query": "SELECT * FROM foo WHERE\nSELECT * FROM foo WHERE\n\nSTART TRANSACTION;\n\nCREATE TABLE `tb` (`uid` INT UNSIGNED NOT NULL\n`position` INT NOT NULL,\nPRIMARY KEY ( `uid` ) ,\nINDEX ( `position` )\n) ENGINE = InnoDB;\n\nCOMMIT;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM foo WHERE\nSELECT * FROM foo WHERE\n\nSTART TRANSACTION;\n\nCREATE TABLE `tb` (`uid` INT UNSIGNED NOT NULL\n`position` INT NOT NULL,\nPRIMARY KEY ( `uid` ) ,\nINDEX ( `position` )\n) ENGINE = InnoDB;\n\nCOMMIT;", "len": 213, "last": 213, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "START TRANSACTION", "value": "START TRANSACTION", "keyword": "START TRANSACTION", "type": 1, "flags": 7, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`tb`", "value": "tb", "keyword": null, "type": 8, "flags": 2, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`uid`", "value": "uid", "keyword": null, "type": 8, "flags": 2, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`position`", "value": "position", "keyword": null, "type": 8, "flags": 2, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PRIMARY KEY", "value": "PRIMARY KEY", "keyword": "PRIMARY KEY", "type": 1, "flags": 23, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 153 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 154 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`uid`", "value": "uid", "keyword": null, "type": 8, "flags": 2, "position": 155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 163 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INDEX", "value": "INDEX", "keyword": "INDEX", "type": 1, "flags": 19, "position": 165 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 171 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 172 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`position`", "value": "position", "keyword": null, "type": 8, "flags": 2, "position": 173 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 183 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 184 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 185 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 186 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 187 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENGINE", "value": "ENGINE", "keyword": "ENGINE", "type": 1, "flags": 1, "position": 188 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 194 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 195 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 196 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "InnoDB", "value": "InnoDB", "keyword": null, "type": 0, "flags": 0, "position": 197 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 203 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 204 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMIT", "value": "COMMIT", "keyword": "COMMIT", "type": 1, "flags": 1, "position": 206 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 212 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 75, "idx": 75 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "foo", "column": null, "expr": "foo", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "foo", "column": null, "expr": "foo", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 10, "last": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\TransactionStatement", "type": 1, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "tb", "column": null, "expr": "`tb`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "uid", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL" } } } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 21, "last": 47 } ], "end": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\TransactionStatement", "type": 2, "statements": null, "end": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "COMMIT" } }, "first": 72, "last": 72 }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "START TRANSACTION" } }, "first": 20, "last": 20 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "This type of clause was previously parsed.", { "@type": "@12" }, 0 ], [ "A new statement was found, but no delimiter between it and the previous one.", { "@type": "@22" }, 0 ], [ "A comma or a closing bracket was expected.", { "@type": "@40" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@51" }, 0 ], [ "Unrecognized statement type.", { "@type": "@57" }, 0 ] ] } }sql-parser-5.9.0/tests/data/bugs/pma11800.in000066400000000000000000000000331455302707200203310ustar00rootroot00000000000000SELECT 'a' REGEXP '^[a-d]';sql-parser-5.9.0/tests/data/bugs/pma11800.out000066400000000000000000000112371455302707200205420ustar00rootroot00000000000000{ "query": "SELECT 'a' REGEXP '^[a-d]';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT 'a' REGEXP '^[a-d]';", "len": 27, "last": 27, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'a'", "value": "a", "keyword": null, "type": 7, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REGEXP", "value": "REGEXP", "keyword": "REGEXP", "type": 1, "flags": 3, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'^[a-d]'", "value": "^[a-d]", "keyword": null, "type": 7, "flags": 1, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 9, "idx": 9 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "a", "expr": "'a' REGEXP '^[a-d]'", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 6 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/bugs/pma11836.in000066400000000000000000000001361455302707200203460ustar00rootroot00000000000000SELECT * FROM alumnos WHERE id = IF(id = 1, id, nombre) AND id not in (SELECT id FROM alumnos)sql-parser-5.9.0/tests/data/bugs/pma11836.out000066400000000000000000000415511455302707200205550ustar00rootroot00000000000000{ "query": "SELECT * FROM alumnos WHERE id = IF(id = 1, id, nombre) AND id not in (SELECT id FROM alumnos)", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM alumnos WHERE id = IF(id = 1, id, nombre) AND id not in (SELECT id FROM alumnos)", "len": 94, "last": 94, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "alumnos", "value": "alumnos", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF", "value": "IF", "keyword": "IF", "type": 1, "flags": 35, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "nombre", "value": "nombre", "keyword": null, "type": 0, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "not in", "value": "NOT IN", "keyword": "NOT IN", "type": 1, "flags": 39, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "alumnos", "value": "alumnos", "keyword": null, "type": 0, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 45, "idx": 45 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "alumnos", "column": null, "expr": "alumnos", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "id", "nombre" ], "isOperator": false, "expr": "id = IF(id = 1, id, nombre)" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "id", "alumnos" ], "isOperator": false, "expr": "id not in (SELECT id FROM alumnos)" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 43 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/bugs/pma11843.in000066400000000000000000000001671455302707200203500ustar00rootroot00000000000000CREATE TABLE `mytable` ( `id` int(11) NOT NULL, `created_at` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP );sql-parser-5.9.0/tests/data/bugs/pma11843.out000066400000000000000000000367111455302707200205550ustar00rootroot00000000000000{ "query": "CREATE TABLE `mytable` (\n `id` int(11) NOT NULL,\n `created_at` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP\n);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE `mytable` (\n `id` int(11) NOT NULL,\n `created_at` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP\n);", "len": 119, "last": 119, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`mytable`", "value": "mytable", "keyword": null, "type": 8, "flags": 2, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`id`", "value": "id", "keyword": null, "type": 8, "flags": 2, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "int", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`created_at`", "value": "created_at", "keyword": null, "type": 8, "flags": 2, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "timestamp", "value": "timestamp", "keyword": "TIMESTAMP", "type": 1, "flags": 41, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "6", "value": 6, "keyword": null, "type": 6, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CURRENT_TIMESTAMP", "value": "CURRENT_TIMESTAMP", "keyword": "CURRENT_TIMESTAMP", "type": 1, "flags": 35, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 34, "idx": 34 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "mytable", "column": null, "expr": "`mytable`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [ "11" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL" } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "created_at", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "TIMESTAMP", "parameters": [ "6" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "CURRENT_TIMESTAMP", "alias": null, "function": null, "subquery": null }, "value": "CURRENT_TIMESTAMP" } } } } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 32 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/bugs/pma11879.in000066400000000000000000000002571455302707200203610ustar00rootroot00000000000000INSERT INTO tbproject(`id`, `name`, `description`, `create_dt`, `dbtype`, `useclause`, `sync_comments`) VALUES (NULL, 'testdb', 'Descrizione test', NOW(), 'mySQL', '', 1);sql-parser-5.9.0/tests/data/bugs/pma11879.out000066400000000000000000000467511455302707200205730ustar00rootroot00000000000000{ "query": "INSERT INTO\n tbproject(`id`, `name`, `description`, `create_dt`, `dbtype`, `useclause`, `sync_comments`)\nVALUES\n (NULL, 'testdb', 'Descrizione test', NOW(), 'mySQL', '', 1);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "INSERT INTO\n tbproject(`id`, `name`, `description`, `create_dt`, `dbtype`, `useclause`, `sync_comments`)\nVALUES\n (NULL, 'testdb', 'Descrizione test', NOW(), 'mySQL', '', 1);", "len": 175, "last": 175, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tbproject", "value": "tbproject", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`id`", "value": "id", "keyword": null, "type": 8, "flags": 2, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`name`", "value": "name", "keyword": null, "type": 8, "flags": 2, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`description`", "value": "description", "keyword": null, "type": 8, "flags": 2, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`create_dt`", "value": "create_dt", "keyword": null, "type": 8, "flags": 2, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`dbtype`", "value": "dbtype", "keyword": null, "type": 8, "flags": 2, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`useclause`", "value": "useclause", "keyword": null, "type": 8, "flags": 2, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`sync_comments`", "value": "sync_comments", "keyword": null, "type": 8, "flags": 2, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'testdb'", "value": "testdb", "keyword": null, "type": 7, "flags": 1, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Descrizione test'", "value": "Descrizione test", "keyword": null, "type": 7, "flags": 1, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 150 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOW", "value": "NOW", "keyword": "NOW", "type": 1, "flags": 33, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'mySQL'", "value": "mySQL", "keyword": null, "type": 7, "flags": 1, "position": 159 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 166 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "''", "value": "", "keyword": null, "type": 7, "flags": 1, "position": 168 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 171 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 172 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 173 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 54, "idx": 54 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "tbproject", "column": null, "expr": "tbproject", "alias": null, "function": null, "subquery": null }, "columns": [ "id", "name", "description", "create_dt", "dbtype", "useclause", "sync_comments" ], "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "NULL", "'testdb'", "'Descrizione test'", "NOW()", "'mySQL'", "''", "1" ], "values": [ "NULL", "testdb", "Descrizione test", "NOW()", "mySQL", "", "1" ] } ], "set": null, "select": null, "with": null, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 51 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/000077500000000000000000000000001455302707200170155ustar00rootroot00000000000000sql-parser-5.9.0/tests/data/lexer/lex.in000066400000000000000000000000111455302707200201250ustar00rootroot00000000000000SELECT \\sql-parser-5.9.0/tests/data/lexer/lex.out000066400000000000000000000044071455302707200203430ustar00rootroot00000000000000{ "query": "SELECT \\\\", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT \\\\", "len": 9, "last": 9, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\\", "value": "\\", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\\", "value": "\\", "keyword": null, "type": 0, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 5, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [ [ "Unexpected character.", "\\", 7, 0 ], [ "Unexpected character.", "\\", 8, 0 ] ], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexBool.in000066400000000000000000000000221455302707200207430ustar00rootroot00000000000000SELECT true, FalSesql-parser-5.9.0/tests/data/lexer/lexBool.out000066400000000000000000000051571455302707200211620ustar00rootroot00000000000000{ "query": "SELECT true, FalSe", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT true, FalSe", "len": 18, "last": 18, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "true", "value": true, "keyword": null, "type": 5, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FalSe", "value": false, "keyword": null, "type": 5, "flags": 1, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 7, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexComment.in000066400000000000000000000001561455302707200214620ustar00rootroot00000000000000# comment SELECT /*!50000 STRAIGHT_JOIN */ col1 FROM table1, table2 /* select query */ -- comment -- comment 2sql-parser-5.9.0/tests/data/lexer/lexComment.out000066400000000000000000000204041455302707200216610ustar00rootroot00000000000000{ "query": "# comment\nSELECT /*!50000 STRAIGHT_JOIN */ col1 FROM table1, table2 /* select query */\n-- comment\n-- comment 2", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "# comment\nSELECT /*!50000 STRAIGHT_JOIN */ col1 FROM table1, table2 /* select query */\n-- comment\n-- comment 2", "len": 110, "last": 111, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "# comment", "value": "# comment", "keyword": null, "type": 4, "flags": 1, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/*!50000", "value": "/*!50000", "keyword": null, "type": 4, "flags": 10, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "STRAIGHT_JOIN", "value": "STRAIGHT_JOIN", "keyword": "STRAIGHT_JOIN", "type": 1, "flags": 3, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*/", "value": "*/", "keyword": null, "type": 4, "flags": 2, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* select query */", "value": "/* select query */", "keyword": null, "type": 4, "flags": 2, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- comment", "value": "-- comment", "keyword": null, "type": 4, "flags": 4, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- comment 2", "value": "-- comment 2", "keyword": null, "type": 4, "flags": 4, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 25, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexCommentEnd.in000066400000000000000000000000261455302707200221050ustar00rootroot00000000000000SELECT 1 -- comment --sql-parser-5.9.0/tests/data/lexer/lexCommentEnd.out000066400000000000000000000056571455302707200223250ustar00rootroot00000000000000{ "query": "SELECT 1\n-- comment\n--", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT 1\n-- comment\n--", "len": 22, "last": 23, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- comment", "value": "-- comment", "keyword": null, "type": 4, "flags": 4, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "--", "value": "--", "keyword": null, "type": 4, "flags": 4, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 8, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexDelimiter.in000066400000000000000000000000651455302707200217750ustar00rootroot00000000000000DELIMITER GO SELECT a,b FROM foo GO SELECT * FROM barsql-parser-5.9.0/tests/data/lexer/lexDelimiter.out000066400000000000000000000173541455302707200222070ustar00rootroot00000000000000{ "query": "DELIMITER GO\nSELECT a,b FROM foo GO\nSELECT * FROM bar", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELIMITER GO\nSELECT a,b FROM foo GO\nSELECT * FROM bar", "len": 53, "last": 53, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "GO", "value": "GO", "keyword": null, "type": 9, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "GO", "value": "GO", "keyword": null, "type": 9, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bar", "value": "bar", "keyword": null, "type": 0, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 24, "idx": 0 }, "delimiter": "GO", "delimiterLen": 2, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexDelimiter2.in000066400000000000000000000000701455302707200220530ustar00rootroot00000000000000DELIMTER // SELECT a,b FROM test // SELECT * FROM bar //sql-parser-5.9.0/tests/data/lexer/lexDelimiter2.out000066400000000000000000000223151455302707200222620ustar00rootroot00000000000000{ "query": "DELIMTER //\nSELECT a,b FROM test //\nSELECT * FROM bar //", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELIMTER //\nSELECT a,b FROM test //\nSELECT * FROM bar //", "len": 56, "last": 56, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMTER", "value": "DELIMTER", "keyword": null, "type": 0, "flags": 0, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/", "value": "/", "keyword": null, "type": 2, "flags": 1, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/", "value": "/", "keyword": null, "type": 2, "flags": 1, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/", "value": "/", "keyword": null, "type": 2, "flags": 1, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/", "value": "/", "keyword": null, "type": 2, "flags": 1, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bar", "value": "bar", "keyword": null, "type": 0, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/", "value": "/", "keyword": null, "type": 2, "flags": 1, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/", "value": "/", "keyword": null, "type": 2, "flags": 1, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 29, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexDelimiterErr1.in000066400000000000000000000000111455302707200225160ustar00rootroot00000000000000DELIMITERsql-parser-5.9.0/tests/data/lexer/lexDelimiterErr1.out000066400000000000000000000024151455302707200227310ustar00rootroot00000000000000{ "query": "DELIMITER", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELIMITER", "len": 9, "last": 9, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 2, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [ [ "Expected whitespace(s) before delimiter.", "", 9, 0 ] ], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexDelimiterErr2.in000066400000000000000000000000131455302707200225210ustar00rootroot00000000000000DELIMITER sql-parser-5.9.0/tests/data/lexer/lexDelimiterErr2.out000066400000000000000000000030571455302707200227350ustar00rootroot00000000000000{ "query": "DELIMITER \r", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELIMITER \r", "len": 11, "last": 11, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " \r", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 3, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [ [ "Expected delimiter.", "", 11, 0 ] ], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexDelimiterErr3.in000066400000000000000000000000131455302707200225220ustar00rootroot00000000000000DELIMITER; sql-parser-5.9.0/tests/data/lexer/lexDelimiterErr3.out000066400000000000000000000035341455302707200227360ustar00rootroot00000000000000{ "query": "DELIMITER;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELIMITER;\n", "len": 11, "last": 11, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 4, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [ [ "Expected delimiter.", "", 10, 0 ] ], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexDelimiterLen.in000066400000000000000000000001111455302707200224240ustar00rootroot00000000000000DELIMITER abcdefghijklmnopqrstuvwxyz SELECT 1 abcdefghijklmnopqrstuvwxyz sql-parser-5.9.0/tests/data/lexer/lexDelimiterLen.out000066400000000000000000000111451455302707200226360ustar00rootroot00000000000000{ "query": "DELIMITER abcdefghijklmnopqrstuvwxyz\nSELECT 1 abcdefghijklmnopqrstuvwxyz\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELIMITER abcdefghijklmnopqrstuvwxyz\nSELECT 1 abcdefghijklmnopqrstuvwxyz\n", "len": 73, "last": 73, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "abcdefghijklmno", "value": "abcdefghijklmno", "keyword": null, "type": 9, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pqrstuvwxyz", "value": "pqrstuvwxyz", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "abcdefghijklmno", "value": "abcdefghijklmno", "keyword": null, "type": 9, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pqrstuvwxyz", "value": "pqrstuvwxyz", "keyword": null, "type": 0, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 13, "idx": 0 }, "delimiter": "abcdefghijklmno", "delimiterLen": 15, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexKeyword.in000066400000000000000000000000101455302707200214710ustar00rootroot00000000000000SELECT 1sql-parser-5.9.0/tests/data/lexer/lexKeyword.out000066400000000000000000000033051455302707200217040ustar00rootroot00000000000000{ "query": "SELECT 1", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT 1", "len": 8, "last": 8, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 4, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexKeyword2.in000066400000000000000000000000311455302707200215560ustar00rootroot00000000000000SELECT tbl.TABLE FROM tblsql-parser-5.9.0/tests/data/lexer/lexKeyword2.out000066400000000000000000000070261455302707200217720ustar00rootroot00000000000000{ "query": "SELECT tbl.TABLE FROM tbl", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT tbl.TABLE FROM tbl", "len": 25, "last": 25, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tbl", "value": "tbl", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 0, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tbl", "value": "tbl", "keyword": null, "type": 0, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexLabel1.in000066400000000000000000000002731455302707200211600ustar00rootroot00000000000000CREATE PROCEDURE doiterate(p1 INT) BEGIN label1 : LOOP SET p1 = p1 + 1; IF p1 < 10 THEN ITERATE label1; END IF; LEAVE label1; END LOOP label1; SET @x = p1; ENDsql-parser-5.9.0/tests/data/lexer/lexLabel1.out000066400000000000000000000551621455302707200213700ustar00rootroot00000000000000{ "query": "CREATE PROCEDURE doiterate(p1 INT)\nBEGIN\n label1 : LOOP\n SET p1 = p1 + 1;\n IF p1 < 10 THEN\n ITERATE label1;\n END IF;\n LEAVE label1;\n END LOOP label1;\n SET @x = p1;\nEND", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE PROCEDURE doiterate(p1 INT)\nBEGIN\n label1 : LOOP\n SET p1 = p1 + 1;\n IF p1 < 10 THEN\n ITERATE label1;\n END IF;\n LEAVE label1;\n END LOOP label1;\n SET @x = p1;\nEND", "len": 187, "last": 187, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PROCEDURE", "value": "PROCEDURE", "keyword": "PROCEDURE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "doiterate", "value": "doiterate", "keyword": null, "type": 0, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p1", "value": "p1", "keyword": null, "type": 0, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BEGIN", "value": "BEGIN", "keyword": "BEGIN", "type": 1, "flags": 1, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "label1 :", "value": "label1 :", "keyword": null, "type": 10, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOOP", "value": "LOOP", "keyword": "LOOP", "type": 1, "flags": 3, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p1", "value": "p1", "keyword": null, "type": 0, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p1", "value": "p1", "keyword": null, "type": 0, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF", "value": "IF", "keyword": "IF", "type": 1, "flags": 35, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p1", "value": "p1", "keyword": null, "type": 0, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "<", "value": "<", "keyword": null, "type": 2, "flags": 2, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "THEN", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ITERATE", "value": "ITERATE", "keyword": "ITERATE", "type": 1, "flags": 3, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "label1", "value": "label1", "keyword": null, "type": 0, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": "END", "type": 1, "flags": 1, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF", "value": "IF", "keyword": "IF", "type": 1, "flags": 35, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEAVE", "value": "LEAVE", "keyword": "LEAVE", "type": 1, "flags": 3, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "label1", "value": "label1", "keyword": null, "type": 0, "flags": 0, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": "END", "type": 1, "flags": 1, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOOP", "value": "LOOP", "keyword": "LOOP", "type": 1, "flags": 3, "position": 156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "label1", "value": "label1", "keyword": null, "type": 0, "flags": 0, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 168 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 171 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@x", "value": "x", "keyword": null, "type": 8, "flags": 1, "position": 175 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 179 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p1", "value": "p1", "keyword": null, "type": 0, "flags": 0, "position": 180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 182 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 183 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": "END", "type": 1, "flags": 1, "position": 184 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 73, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexLabel2.in000066400000000000000000000002721455302707200211600ustar00rootroot00000000000000CREATE PROCEDURE doiterate(p1 INT) BEGIN label1: LOOP SET p1 = p1 + 1; IF p1 < 10 THEN ITERATE label1; END IF; LEAVE label1; END LOOP label1; SET @x = p1; ENDsql-parser-5.9.0/tests/data/lexer/lexLabel2.out000066400000000000000000000551561455302707200213740ustar00rootroot00000000000000{ "query": "CREATE PROCEDURE doiterate(p1 INT)\nBEGIN\n label1: LOOP\n SET p1 = p1 + 1;\n IF p1 < 10 THEN\n ITERATE label1;\n END IF;\n LEAVE label1;\n END LOOP label1;\n SET @x = p1;\nEND", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE PROCEDURE doiterate(p1 INT)\nBEGIN\n label1: LOOP\n SET p1 = p1 + 1;\n IF p1 < 10 THEN\n ITERATE label1;\n END IF;\n LEAVE label1;\n END LOOP label1;\n SET @x = p1;\nEND", "len": 186, "last": 186, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PROCEDURE", "value": "PROCEDURE", "keyword": "PROCEDURE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "doiterate", "value": "doiterate", "keyword": null, "type": 0, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p1", "value": "p1", "keyword": null, "type": 0, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BEGIN", "value": "BEGIN", "keyword": "BEGIN", "type": 1, "flags": 1, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "label1:", "value": "label1:", "keyword": null, "type": 10, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOOP", "value": "LOOP", "keyword": "LOOP", "type": 1, "flags": 3, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p1", "value": "p1", "keyword": null, "type": 0, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p1", "value": "p1", "keyword": null, "type": 0, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF", "value": "IF", "keyword": "IF", "type": 1, "flags": 35, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p1", "value": "p1", "keyword": null, "type": 0, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "<", "value": "<", "keyword": null, "type": 2, "flags": 2, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "THEN", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ITERATE", "value": "ITERATE", "keyword": "ITERATE", "type": 1, "flags": 3, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "label1", "value": "label1", "keyword": null, "type": 0, "flags": 0, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": "END", "type": 1, "flags": 1, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF", "value": "IF", "keyword": "IF", "type": 1, "flags": 35, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEAVE", "value": "LEAVE", "keyword": "LEAVE", "type": 1, "flags": 3, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "label1", "value": "label1", "keyword": null, "type": 0, "flags": 0, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": "END", "type": 1, "flags": 1, "position": 151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 154 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOOP", "value": "LOOP", "keyword": "LOOP", "type": 1, "flags": 3, "position": 155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 159 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "label1", "value": "label1", "keyword": null, "type": 0, "flags": 0, "position": 160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 166 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 173 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@x", "value": "x", "keyword": null, "type": 8, "flags": 1, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p1", "value": "p1", "keyword": null, "type": 0, "flags": 0, "position": 179 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 181 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 182 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": "END", "type": 1, "flags": 1, "position": 183 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 73, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexNoLabel.in000066400000000000000000000000771455302707200213760ustar00rootroot00000000000000SELECT wins FROM players WHERE auth = '[U1:123456789]' LIMIT 1 sql-parser-5.9.0/tests/data/lexer/lexNoLabel.out000066400000000000000000000156101455302707200215760ustar00rootroot00000000000000{ "query": "SELECT wins FROM players WHERE auth = '[U1:123456789]' LIMIT 1\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT wins FROM players WHERE auth = '[U1:123456789]' LIMIT 1\n", "len": 63, "last": 63, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "wins", "value": "wins", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "players", "value": "players", "keyword": null, "type": 0, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "auth", "value": "auth", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'[U1:123456789]'", "value": "[U1:123456789]", "keyword": null, "type": 7, "flags": 1, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIMIT", "value": "LIMIT", "keyword": "LIMIT", "type": 1, "flags": 3, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 21, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexNumber.in000066400000000000000000000002601455302707200213040ustar00rootroot00000000000000SELECT 12, 34, 5.67, 0x89, -10, --11, +12, .15, 0xFFa, 0xfFA, +0xfFA, -0xFFa, -0xfFA, 1e-10, 1e10, .5e10, b'10'; -- invalid numbers SELECT 12ex10, b'15', 0XFfA, -0XFfA, +0XFfA;sql-parser-5.9.0/tests/data/lexer/lexNumber.out000066400000000000000000000561701455302707200215200ustar00rootroot00000000000000{ "query": "SELECT 12, 34, 5.67, 0x89, -10, --11, +12, .15, 0xFFa, 0xfFA, +0xfFA, -0xFFa, -0xfFA, 1e-10, 1e10, .5e10, b'10';\n-- invalid numbers\nSELECT 12ex10, b'15', 0XFfA, -0XFfA, +0XFfA;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT 12, 34, 5.67, 0x89, -10, --11, +12, .15, 0xFFa, 0xfFA, +0xfFA, -0xFFa, -0xfFA, 1e-10, 1e10, .5e10, b'10';\n-- invalid numbers\nSELECT 12ex10, b'15', 0XFfA, -0XFfA, +0XFfA;", "len": 176, "last": 176, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "12", "value": 12, "keyword": null, "type": 6, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "34", "value": 34, "keyword": null, "type": 6, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "5.67", "value": 5.67, "keyword": null, "type": 6, "flags": 2, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0x89", "value": 137, "keyword": null, "type": 6, "flags": 1, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-10", "value": -10, "keyword": null, "type": 6, "flags": 8, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "--11", "value": 11, "keyword": null, "type": 6, "flags": 8, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+12", "value": 12, "keyword": null, "type": 6, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".15", "value": 0.15, "keyword": null, "type": 6, "flags": 2, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0xFFa", "value": 4090, "keyword": null, "type": 6, "flags": 1, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0xfFA", "value": 4090, "keyword": null, "type": 6, "flags": 1, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+0xfFA", "value": 4090, "keyword": null, "type": 6, "flags": 1, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-0xFFa", "value": -4090, "keyword": null, "type": 6, "flags": 9, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-0xfFA", "value": -4090, "keyword": null, "type": 6, "flags": 9, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1e-10", "value": 1.0e-10, "keyword": null, "type": 6, "flags": 4, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1e10", "value": 10000000000.0, "keyword": null, "type": 6, "flags": 4, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".5e10", "value": 5000000000.0, "keyword": null, "type": 6, "flags": 6, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b'10'", "value": "b'10'", "keyword": null, "type": 6, "flags": 16, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- invalid numbers", "value": "-- invalid numbers", "keyword": null, "type": 4, "flags": 4, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "12ex10", "value": "12ex10", "keyword": null, "type": 0, "flags": 0, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'15'", "value": "15", "keyword": null, "type": 7, "flags": 1, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 153 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0XFfA", "value": "0XFfA", "keyword": null, "type": 0, "flags": 0, "position": 154 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 159 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-", "value": "-", "keyword": null, "type": 2, "flags": 1, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0XFfA", "value": "0XFfA", "keyword": null, "type": 0, "flags": 0, "position": 162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 168 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 169 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0XFfA", "value": "0XFfA", "keyword": null, "type": 0, "flags": 0, "position": 170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 175 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 75, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexOperator.in000066400000000000000000000000141455302707200216440ustar00rootroot00000000000000SELECT 1 + 2sql-parser-5.9.0/tests/data/lexer/lexOperator.out000066400000000000000000000055771455302707200220700ustar00rootroot00000000000000{ "query": "SELECT 1 + 2", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT 1 + 2", "len": 12, "last": 12, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 8, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexOperatorStarIsArithmetic.in000066400000000000000000000045751455302707200250240ustar00rootroot00000000000000SELECT 2*3 SELECT 2 * 3 SELECT field * 8 SELECT 8 * field SELECT foo * bar SELECT `escaped_field` * 16 SELECT 16 * `escaped_field` SELECT `foo` * `bar` SELECT `foo`*`bar` SELECT 1 * (SELECT COUNT(1) FROM nb_rows) SELECT (SELECT COUNT(1) FROM nb_rows) * 1 SELECT (SELECT COUNT(1) FROM nb_rows) * (SELECT COUNT(1) FROM nb_rows) SELECT (1 * 1) * (2 * 2) SELECT 1 * (2 * (3 * (4 * 5))) SELECT 2.71 * 3.14 SELECT 2.71 * -3.14 SELECT -2.71 * 3.14 SELECT -2.71 * -3.14 SELECT 0xABC * 0xCBA SELECT 0xABC * -0xCBA SELECT -0xABC * 0xCBA SELECT -0xABC * -0xCBA -- Now same but with comments inside (C style comments could conflicts with operator if lexer is failing) SELECT 2 * /* comment */3 SELECT 2/* comment */ * 3 SELECT 2/* comment with * inside */ * 3 SELECT /* comment */ field /* comment */ * /* comment */ 8 /* comment */ SELECT /* comment */ 8 /* comment */ * /* comment */ field /* comment */ SELECT /* comment */ foo /* comment */ * /* comment */ bar /* comment */ SELECT /* comment */ `escaped_field` /* comment */ * /* comment */ 16 /* comment */ SELECT /* comment */ 16 /* comment */ * /* comment */ `escaped_field` /* comment */ SELECT /* comment */ `foo` /* comment */ * /* comment */ `bar` /* comment */ SELECT /* `comment` */ `foo` /* `comment` */ * /* `comment` */ `bar` /* `comment` */ SELECT /* comment */ 1 /* comment */ * /* comment */ (SELECT COUNT(/* comment */1/* comment */) /* comment */ FROM nb_rows) SELECT /* comment */ (SELECT COUNT(1) /* comment */FROM/* comment */ nb_rows) /* comment */ * /* comment */ 1 SELECT (SELECT /* comment */ COUNT(1) /* comment */ FROM /* comment */ nb_rows) /* comment */ * /* comment */ (SELECT COUNT(1) FROM nb_rows) SELECT (1 * 1) /* comment */ * /* comment */ (2 * 2) SELECT /* comment */ 1 /* comment */ * /* comment */ (2 /* comment */ * /* comment */ (3 /* comment */ * /* comment */ (4 /* comment */ * /* comment */ 5))) /* comment */ SELECT 2.71 /* comment */ * /* comment */ 3.14 SELECT 2.71 /* comment */ * /* comment */ -3.14 SELECT -2.71 /* comment */ * /* comment */ 3.14 SELECT -2.71 /* comment */ * /* comment */ -3.14 SELECT 0xABC /* comment */ * /* comment */ 0xCBA SELECT 0xABC /* comment */ * /* comment */ -0xCBA SELECT -0xABC /* comment */ * /* comment */ 0xCBA SELECT -0xABC /* comment */ * /* comment */ -0xCBA SELECT 1 /* comment with FROM keyword */ * /* comment with USING keyword */1 SELECT 1 /* comment with ) */ * /* comment with , keyword */1 sql-parser-5.9.0/tests/data/lexer/lexOperatorStarIsArithmetic.out000066400000000000000000006366671455302707200252420ustar00rootroot00000000000000{ "query": "SELECT 2*3\nSELECT 2 * 3\nSELECT field * 8\nSELECT 8 * field\nSELECT foo * bar\nSELECT `escaped_field` * 16\nSELECT 16 * `escaped_field`\nSELECT `foo` * `bar`\nSELECT `foo`*`bar`\nSELECT 1 * (SELECT COUNT(1) FROM nb_rows)\nSELECT (SELECT COUNT(1) FROM nb_rows) * 1\nSELECT (SELECT COUNT(1) FROM nb_rows) * (SELECT COUNT(1) FROM nb_rows)\nSELECT (1 * 1) * (2 * 2)\nSELECT 1 * (2 * (3 * (4 * 5)))\nSELECT 2.71 * 3.14\nSELECT 2.71 * -3.14\nSELECT -2.71 * 3.14\nSELECT -2.71 * -3.14\nSELECT 0xABC * 0xCBA\nSELECT 0xABC * -0xCBA\nSELECT -0xABC * 0xCBA\nSELECT -0xABC * -0xCBA\n\n-- Now same but with comments inside (C style comments could conflicts with operator if lexer is failing)\nSELECT 2 * /* comment */3\nSELECT 2/* comment */ * 3\nSELECT 2/* comment with * inside */ * 3\nSELECT /* comment */ field /* comment */ * /* comment */ 8 /* comment */\nSELECT /* comment */ 8 /* comment */ * /* comment */ field /* comment */\nSELECT /* comment */ foo /* comment */ * /* comment */ bar /* comment */\nSELECT /* comment */ `escaped_field` /* comment */ * /* comment */ 16 /* comment */\nSELECT /* comment */ 16 /* comment */ * /* comment */ `escaped_field` /* comment */\nSELECT /* comment */ `foo` /* comment */ * /* comment */ `bar` /* comment */\nSELECT /* `comment` */ `foo` /* `comment` */ * /* `comment` */ `bar` /* `comment` */\nSELECT /* comment */ 1 /* comment */ * /* comment */ (SELECT COUNT(/* comment */1/* comment */) /* comment */ FROM nb_rows)\nSELECT /* comment */ (SELECT COUNT(1) /* comment */FROM/* comment */ nb_rows) /* comment */ * /* comment */ 1\nSELECT (SELECT /* comment */ COUNT(1) /* comment */ FROM /* comment */ nb_rows) /* comment */ * /* comment */ (SELECT COUNT(1) FROM nb_rows)\nSELECT (1 * 1) /* comment */ * /* comment */ (2 * 2)\nSELECT /* comment */ 1 /* comment */ * /* comment */ (2 /* comment */ * /* comment */ (3 /* comment */ * /* comment */ (4 /* comment */ * /* comment */ 5))) /* comment */\nSELECT 2.71 /* comment */ * /* comment */ 3.14\nSELECT 2.71 /* comment */ * /* comment */ -3.14\nSELECT -2.71 /* comment */ * /* comment */ 3.14\nSELECT -2.71 /* comment */ * /* comment */ -3.14\nSELECT 0xABC /* comment */ * /* comment */ 0xCBA\nSELECT 0xABC /* comment */ * /* comment */ -0xCBA\nSELECT -0xABC /* comment */ * /* comment */ 0xCBA\nSELECT -0xABC /* comment */ * /* comment */ -0xCBA\nSELECT 1 /* comment with FROM keyword */ * /* comment with USING keyword */1\nSELECT 1 /* comment with ) */ * /* comment with , keyword */1\n\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT 2*3\nSELECT 2 * 3\nSELECT field * 8\nSELECT 8 * field\nSELECT foo * bar\nSELECT `escaped_field` * 16\nSELECT 16 * `escaped_field`\nSELECT `foo` * `bar`\nSELECT `foo`*`bar`\nSELECT 1 * (SELECT COUNT(1) FROM nb_rows)\nSELECT (SELECT COUNT(1) FROM nb_rows) * 1\nSELECT (SELECT COUNT(1) FROM nb_rows) * (SELECT COUNT(1) FROM nb_rows)\nSELECT (1 * 1) * (2 * 2)\nSELECT 1 * (2 * (3 * (4 * 5)))\nSELECT 2.71 * 3.14\nSELECT 2.71 * -3.14\nSELECT -2.71 * 3.14\nSELECT -2.71 * -3.14\nSELECT 0xABC * 0xCBA\nSELECT 0xABC * -0xCBA\nSELECT -0xABC * 0xCBA\nSELECT -0xABC * -0xCBA\n\n-- Now same but with comments inside (C style comments could conflicts with operator if lexer is failing)\nSELECT 2 * /* comment */3\nSELECT 2/* comment */ * 3\nSELECT 2/* comment with * inside */ * 3\nSELECT /* comment */ field /* comment */ * /* comment */ 8 /* comment */\nSELECT /* comment */ 8 /* comment */ * /* comment */ field /* comment */\nSELECT /* comment */ foo /* comment */ * /* comment */ bar /* comment */\nSELECT /* comment */ `escaped_field` /* comment */ * /* comment */ 16 /* comment */\nSELECT /* comment */ 16 /* comment */ * /* comment */ `escaped_field` /* comment */\nSELECT /* comment */ `foo` /* comment */ * /* comment */ `bar` /* comment */\nSELECT /* `comment` */ `foo` /* `comment` */ * /* `comment` */ `bar` /* `comment` */\nSELECT /* comment */ 1 /* comment */ * /* comment */ (SELECT COUNT(/* comment */1/* comment */) /* comment */ FROM nb_rows)\nSELECT /* comment */ (SELECT COUNT(1) /* comment */FROM/* comment */ nb_rows) /* comment */ * /* comment */ 1\nSELECT (SELECT /* comment */ COUNT(1) /* comment */ FROM /* comment */ nb_rows) /* comment */ * /* comment */ (SELECT COUNT(1) FROM nb_rows)\nSELECT (1 * 1) /* comment */ * /* comment */ (2 * 2)\nSELECT /* comment */ 1 /* comment */ * /* comment */ (2 /* comment */ * /* comment */ (3 /* comment */ * /* comment */ (4 /* comment */ * /* comment */ 5))) /* comment */\nSELECT 2.71 /* comment */ * /* comment */ 3.14\nSELECT 2.71 /* comment */ * /* comment */ -3.14\nSELECT -2.71 /* comment */ * /* comment */ 3.14\nSELECT -2.71 /* comment */ * /* comment */ -3.14\nSELECT 0xABC /* comment */ * /* comment */ 0xCBA\nSELECT 0xABC /* comment */ * /* comment */ -0xCBA\nSELECT -0xABC /* comment */ * /* comment */ 0xCBA\nSELECT -0xABC /* comment */ * /* comment */ -0xCBA\nSELECT 1 /* comment with FROM keyword */ * /* comment with USING keyword */1\nSELECT 1 /* comment with ) */ * /* comment with , keyword */1\n\n", "len": 2429, "last": 2429, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "field", "value": "field", "keyword": "FIELD", "type": 1, "flags": 33, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "8", "value": 8, "keyword": null, "type": 6, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "8", "value": 8, "keyword": null, "type": 6, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "field", "value": "field", "keyword": "FIELD", "type": 1, "flags": 33, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bar", "value": "bar", "keyword": null, "type": 0, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`escaped_field`", "value": "escaped_field", "keyword": null, "type": 8, "flags": 2, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "16", "value": 16, "keyword": null, "type": 6, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "16", "value": 16, "keyword": null, "type": 6, "flags": 0, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`escaped_field`", "value": "escaped_field", "keyword": null, "type": 8, "flags": 2, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 137 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`foo`", "value": "foo", "keyword": null, "type": 8, "flags": 2, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`bar`", "value": "bar", "keyword": null, "type": 8, "flags": 2, "position": 146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`foo`", "value": "foo", "keyword": null, "type": 8, "flags": 2, "position": 159 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`bar`", "value": "bar", "keyword": null, "type": 8, "flags": 2, "position": 165 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 171 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 179 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 181 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 182 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 183 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 189 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COUNT", "value": "COUNT", "keyword": "COUNT", "type": 1, "flags": 33, "position": 190 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 195 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 196 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 197 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 198 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 199 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 203 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "nb_rows", "value": "nb_rows", "keyword": null, "type": 0, "flags": 0, "position": 204 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 211 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 212 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 213 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 219 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 220 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 221 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 227 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COUNT", "value": "COUNT", "keyword": "COUNT", "type": 1, "flags": 33, "position": 228 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 233 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 234 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 235 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 236 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 237 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 241 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "nb_rows", "value": "nb_rows", "keyword": null, "type": 0, "flags": 0, "position": 242 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 249 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 250 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 251 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 252 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 253 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 254 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 255 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 261 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 262 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 263 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 269 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COUNT", "value": "COUNT", "keyword": "COUNT", "type": 1, "flags": 33, "position": 270 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 275 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 276 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 277 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 278 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 279 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 283 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "nb_rows", "value": "nb_rows", "keyword": null, "type": 0, "flags": 0, "position": 284 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 291 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 292 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 293 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 294 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 295 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 296 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 302 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COUNT", "value": "COUNT", "keyword": "COUNT", "type": 1, "flags": 33, "position": 303 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 308 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 309 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 310 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 311 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 312 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 316 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "nb_rows", "value": "nb_rows", "keyword": null, "type": 0, "flags": 0, "position": 317 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 324 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 325 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 326 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 332 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 333 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 334 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 335 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 336 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 337 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 338 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 339 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 340 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 341 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 342 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 343 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 344 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 345 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 346 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 347 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 348 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 349 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 350 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 351 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 357 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 358 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 359 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 360 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 361 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 362 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 363 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 364 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 365 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 366 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 367 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 368 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 369 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 370 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 371 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 372 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "4", "value": 4, "keyword": null, "type": 6, "flags": 0, "position": 373 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 374 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 375 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 376 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "5", "value": 5, "keyword": null, "type": 6, "flags": 0, "position": 377 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 378 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 379 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 380 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 381 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 382 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 388 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2.71", "value": 2.71, "keyword": null, "type": 6, "flags": 2, "position": 389 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 393 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 394 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 395 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3.14", "value": 3.14, "keyword": null, "type": 6, "flags": 2, "position": 396 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 400 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 401 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 407 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2.71", "value": 2.71, "keyword": null, "type": 6, "flags": 2, "position": 408 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 412 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 413 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 414 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-3.14", "value": -3.14, "keyword": null, "type": 6, "flags": 10, "position": 415 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 420 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 421 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 427 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-2.71", "value": -2.71, "keyword": null, "type": 6, "flags": 10, "position": 428 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 433 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 434 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 435 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3.14", "value": 3.14, "keyword": null, "type": 6, "flags": 2, "position": 436 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 440 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 441 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 447 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-2.71", "value": -2.71, "keyword": null, "type": 6, "flags": 10, "position": 448 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 453 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 454 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 455 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-3.14", "value": -3.14, "keyword": null, "type": 6, "flags": 10, "position": 456 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 461 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 462 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 468 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0xABC", "value": 2748, "keyword": null, "type": 6, "flags": 1, "position": 469 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 474 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 475 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 476 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0xCBA", "value": 3258, "keyword": null, "type": 6, "flags": 1, "position": 477 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 482 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 483 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 489 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0xABC", "value": 2748, "keyword": null, "type": 6, "flags": 1, "position": 490 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 495 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 496 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 497 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-0xCBA", "value": -3258, "keyword": null, "type": 6, "flags": 9, "position": 498 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 504 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 505 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 511 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-0xABC", "value": -2748, "keyword": null, "type": 6, "flags": 9, "position": 512 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 518 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 519 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 520 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0xCBA", "value": 3258, "keyword": null, "type": 6, "flags": 1, "position": 521 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 526 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 527 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 533 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-0xABC", "value": -2748, "keyword": null, "type": 6, "flags": 9, "position": 534 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 540 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 541 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 542 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-0xCBA", "value": -3258, "keyword": null, "type": 6, "flags": 9, "position": 543 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 549 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- Now same but with comments inside (C style comments could conflicts with operator if lexer is failing)", "value": "-- Now same but with comments inside (C style comments could conflicts with operator if lexer is failing)", "keyword": null, "type": 4, "flags": 4, "position": 551 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 656 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 657 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 663 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 664 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 665 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 666 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 667 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 668 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 681 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 682 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 683 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 689 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 690 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 691 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 704 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 705 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 706 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 707 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 708 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 709 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 715 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 716 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment with * inside */", "value": "/* comment with * inside */", "keyword": null, "type": 4, "flags": 2, "position": 717 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 744 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 745 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 746 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 747 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 748 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 749 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 755 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 756 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 769 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "field", "value": "field", "keyword": "FIELD", "type": 1, "flags": 33, "position": 770 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 775 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 776 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 789 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 790 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 791 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 792 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 805 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "8", "value": 8, "keyword": null, "type": 6, "flags": 0, "position": 806 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 807 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 808 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 821 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 822 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 828 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 829 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 842 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "8", "value": 8, "keyword": null, "type": 6, "flags": 0, "position": 843 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 844 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 845 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 858 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 859 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 860 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 861 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 874 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "field", "value": "field", "keyword": "FIELD", "type": 1, "flags": 33, "position": 875 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 880 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 881 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 894 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 895 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 901 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 902 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 915 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 916 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 919 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 920 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 933 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 934 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 935 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 936 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 949 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bar", "value": "bar", "keyword": null, "type": 0, "flags": 0, "position": 950 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 953 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 954 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 967 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 968 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 974 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 975 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 988 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`escaped_field`", "value": "escaped_field", "keyword": null, "type": 8, "flags": 2, "position": 989 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1004 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1005 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1018 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 1019 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1020 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1021 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1034 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "16", "value": 16, "keyword": null, "type": 6, "flags": 0, "position": 1035 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1037 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1038 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1051 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1052 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1058 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1059 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1072 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "16", "value": 16, "keyword": null, "type": 6, "flags": 0, "position": 1073 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1075 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1076 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1089 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 1090 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1091 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1092 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`escaped_field`", "value": "escaped_field", "keyword": null, "type": 8, "flags": 2, "position": 1106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`foo`", "value": "foo", "keyword": null, "type": 8, "flags": 2, "position": 1157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1163 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 1177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1179 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1192 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`bar`", "value": "bar", "keyword": null, "type": 8, "flags": 2, "position": 1193 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1198 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1199 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1212 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1213 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1219 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* `comment` */", "value": "/* `comment` */", "keyword": null, "type": 4, "flags": 2, "position": 1220 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1235 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`foo`", "value": "foo", "keyword": null, "type": 8, "flags": 2, "position": 1236 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1241 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* `comment` */", "value": "/* `comment` */", "keyword": null, "type": 4, "flags": 2, "position": 1242 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1257 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 1258 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1259 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* `comment` */", "value": "/* `comment` */", "keyword": null, "type": 4, "flags": 2, "position": 1260 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1275 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`bar`", "value": "bar", "keyword": null, "type": 8, "flags": 2, "position": 1276 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1281 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* `comment` */", "value": "/* `comment` */", "keyword": null, "type": 4, "flags": 2, "position": 1282 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1297 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1298 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1304 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1305 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1318 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 1319 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1320 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1321 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1334 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 1335 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1336 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1337 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1350 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1351 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1352 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1358 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COUNT", "value": "COUNT", "keyword": "COUNT", "type": 1, "flags": 33, "position": 1359 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1364 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1365 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 1378 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1379 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1392 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1393 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1394 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1407 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 1408 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1412 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "nb_rows", "value": "nb_rows", "keyword": null, "type": 0, "flags": 0, "position": 1413 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1420 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1421 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1422 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1428 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1429 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1442 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1443 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1444 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1450 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COUNT", "value": "COUNT", "keyword": "COUNT", "type": 1, "flags": 33, "position": 1451 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1456 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 1457 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1458 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1459 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1460 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 1473 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1477 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1490 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "nb_rows", "value": "nb_rows", "keyword": null, "type": 0, "flags": 0, "position": 1491 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1498 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1499 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1500 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1513 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 1514 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1515 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1516 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1529 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 1530 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1531 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1532 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1538 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1539 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1540 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1546 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1547 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1560 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COUNT", "value": "COUNT", "keyword": "COUNT", "type": 1, "flags": 33, "position": 1561 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1566 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 1567 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1568 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1569 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1570 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1583 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 1584 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1588 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1589 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1602 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "nb_rows", "value": "nb_rows", "keyword": null, "type": 0, "flags": 0, "position": 1603 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1610 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1611 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1612 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1625 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 1626 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1627 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1628 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1641 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1642 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1643 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1649 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COUNT", "value": "COUNT", "keyword": "COUNT", "type": 1, "flags": 33, "position": 1650 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1655 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 1656 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1657 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1658 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 1659 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1663 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "nb_rows", "value": "nb_rows", "keyword": null, "type": 0, "flags": 0, "position": 1664 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1671 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1672 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1673 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1679 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1680 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 1681 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1682 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 1683 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1684 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 1685 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1686 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1687 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1688 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1701 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 1702 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1703 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1704 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1717 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1718 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 1719 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1720 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 1721 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1722 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 1723 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1724 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1725 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1726 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1732 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1733 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1746 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 1747 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1748 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1749 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1762 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 1763 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1764 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1765 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1778 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1779 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 1780 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1781 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1782 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1795 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 1796 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1797 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1798 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1811 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1812 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 1813 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1814 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1815 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1828 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 1829 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1830 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1831 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1844 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1845 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "4", "value": 4, "keyword": null, "type": 6, "flags": 0, "position": 1846 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1847 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1848 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1861 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 1862 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1863 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1864 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1877 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "5", "value": 5, "keyword": null, "type": 6, "flags": 0, "position": 1878 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1879 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1880 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1881 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1882 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1883 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1896 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1897 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1903 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2.71", "value": 2.71, "keyword": null, "type": 6, "flags": 2, "position": 1904 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1908 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1909 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1922 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 1923 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1924 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1925 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1938 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3.14", "value": 3.14, "keyword": null, "type": 6, "flags": 2, "position": 1939 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1943 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1944 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1950 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2.71", "value": 2.71, "keyword": null, "type": 6, "flags": 2, "position": 1951 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1955 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1956 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1969 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 1970 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1971 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1972 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1985 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-3.14", "value": -3.14, "keyword": null, "type": 6, "flags": 10, "position": 1986 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1991 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1992 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1998 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-2.71", "value": -2.71, "keyword": null, "type": 6, "flags": 10, "position": 1999 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2004 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 2005 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2018 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 2019 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2020 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 2021 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2034 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3.14", "value": 3.14, "keyword": null, "type": 6, "flags": 2, "position": 2035 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2039 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 2040 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2046 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-2.71", "value": -2.71, "keyword": null, "type": 6, "flags": 10, "position": 2047 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2052 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 2053 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2066 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 2067 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2068 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 2069 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2082 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-3.14", "value": -3.14, "keyword": null, "type": 6, "flags": 10, "position": 2083 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2088 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 2089 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2095 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0xABC", "value": 2748, "keyword": null, "type": 6, "flags": 1, "position": 2096 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 2102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 2116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 2118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0xCBA", "value": 3258, "keyword": null, "type": 6, "flags": 1, "position": 2132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2137 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 2138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0xABC", "value": 2748, "keyword": null, "type": 6, "flags": 1, "position": 2145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2150 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 2151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 2165 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2166 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 2167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-0xCBA", "value": -3258, "keyword": null, "type": 6, "flags": 9, "position": 2181 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2187 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 2188 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2194 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-0xABC", "value": -2748, "keyword": null, "type": 6, "flags": 9, "position": 2195 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2201 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 2202 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2215 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 2216 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2217 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 2218 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2231 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0xCBA", "value": 3258, "keyword": null, "type": 6, "flags": 1, "position": 2232 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2237 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 2238 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2244 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-0xABC", "value": -2748, "keyword": null, "type": 6, "flags": 9, "position": 2245 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2251 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 2252 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2265 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 2266 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2267 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 2268 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2281 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-0xCBA", "value": -3258, "keyword": null, "type": 6, "flags": 9, "position": 2282 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2288 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 2289 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2295 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 2296 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2297 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment with FROM keyword */", "value": "/* comment with FROM keyword */", "keyword": null, "type": 4, "flags": 2, "position": 2298 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2329 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 2330 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2331 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment with USING keyword */", "value": "/* comment with USING keyword */", "keyword": null, "type": 4, "flags": 2, "position": 2332 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 2364 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2365 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 2366 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2372 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 2373 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2374 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment with ) */", "value": "/* comment with ) */", "keyword": null, "type": 4, "flags": 2, "position": 2375 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2395 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 2396 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2397 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment with , keyword */", "value": "/* comment with , keyword */", "keyword": null, "type": 4, "flags": 2, "position": 2398 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 2426 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2427 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 672, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexOperatorStarIsWildcard.in000066400000000000000000000025041455302707200244520ustar00rootroot00000000000000SELECT * FROM SELECT *FROM SELECT a.* FROM SELECT a.*,b.* FROM SELECT a.*, b.* FROM SELECT a.*, /* with a comment */ b.* FROM SELECT a.*,/* with a comment */b.* FROM SELECT a.* /* comment */ FROM -- SELECT a.*/* comment */ FROM (This one is not working yet because of https://github.com/phpmyadmin/sql-parser/issues/285. Please uncomment when this issue is fixed.) SELECT DISTINCT * FROM SELECT DISTINCT *FROM SELECT DISTINCT a.* FROM SELECT DISTINCT a.*,b.* FROM SELECT DISTINCT a.*, b.* FROM SELECT DISTINCT a.*, /* with a comment */ b.* FROM SELECT DISTINCT a.*,/* with a comment */b.* FROM SELECT DISTINCT a.* /* comment */ FROM -- SELECT DISTINCT a.*/* comment */ FROM (This one is not working yet because of https://github.com/phpmyadmin/sql-parser/issues/285. Please uncomment when this issue is fixed.) SELECT `*` FROM table_name SELECT `*`.* FROM table_name AS `*` SELECT COUNT(*) FROM table_name SELECT COUNT( * ) FROM table_name SELECT COUNT( * /* comment with *,USING,FROM */) FROM table_name SELECT COUNT(`*`) FROM table_name SELECT 1 FROM table_name WHERE LABEL LIKE '%*%' DELETE a.* USING DELETE a.*, b.* USING DELETE a.* ,b.* USING DELETE a.* , b.* USING DELETE a.* /* comment */ USING DELETE a.* /* comment */, b.* /*comment*/ USING DELETE a.* /* comment */ ,b.* /*comment*/ USING DELETE a.* /* comment */ , b.* /*comment*/ USING sql-parser-5.9.0/tests/data/lexer/lexOperatorStarIsWildcard.out000066400000000000000000003544051455302707200246650ustar00rootroot00000000000000{ "query": "SELECT * FROM\nSELECT *FROM\nSELECT a.* FROM\nSELECT a.*,b.* FROM\nSELECT a.*, b.* FROM\nSELECT a.*, /* with a comment */ b.* FROM\nSELECT a.*,/* with a comment */b.* FROM\nSELECT a.* /* comment */ FROM\n-- SELECT a.*/* comment */ FROM (This one is not working yet because of https://github.com/phpmyadmin/sql-parser/issues/285. Please uncomment when this issue is fixed.)\nSELECT DISTINCT * FROM\nSELECT DISTINCT *FROM\nSELECT DISTINCT a.* FROM\nSELECT DISTINCT a.*,b.* FROM\nSELECT DISTINCT a.*, b.* FROM\nSELECT DISTINCT a.*, /* with a comment */ b.* FROM\nSELECT DISTINCT a.*,/* with a comment */b.* FROM\nSELECT DISTINCT a.* /* comment */ FROM\n-- SELECT DISTINCT a.*/* comment */ FROM (This one is not working yet because of https://github.com/phpmyadmin/sql-parser/issues/285. Please uncomment when this issue is fixed.)\nSELECT `*` FROM table_name\nSELECT `*`.* FROM table_name AS `*`\nSELECT COUNT(*) FROM table_name\nSELECT COUNT( * ) FROM table_name\nSELECT COUNT( * /* comment with *,USING,FROM */) FROM table_name\nSELECT COUNT(`*`) FROM table_name\nSELECT 1 FROM table_name WHERE LABEL LIKE '%*%'\nDELETE a.* USING\nDELETE a.*, b.* USING\nDELETE a.* ,b.* USING\nDELETE a.* , b.* USING\nDELETE a.* /* comment */ USING\nDELETE a.* /* comment */, b.* /*comment*/ USING\nDELETE a.* /* comment */ ,b.* /*comment*/ USING\nDELETE a.* /* comment */ , b.* /*comment*/ USING\n\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM\nSELECT *FROM\nSELECT a.* FROM\nSELECT a.*,b.* FROM\nSELECT a.*, b.* FROM\nSELECT a.*, /* with a comment */ b.* FROM\nSELECT a.*,/* with a comment */b.* FROM\nSELECT a.* /* comment */ FROM\n-- SELECT a.*/* comment */ FROM (This one is not working yet because of https://github.com/phpmyadmin/sql-parser/issues/285. Please uncomment when this issue is fixed.)\nSELECT DISTINCT * FROM\nSELECT DISTINCT *FROM\nSELECT DISTINCT a.* FROM\nSELECT DISTINCT a.*,b.* FROM\nSELECT DISTINCT a.*, b.* FROM\nSELECT DISTINCT a.*, /* with a comment */ b.* FROM\nSELECT DISTINCT a.*,/* with a comment */b.* FROM\nSELECT DISTINCT a.* /* comment */ FROM\n-- SELECT DISTINCT a.*/* comment */ FROM (This one is not working yet because of https://github.com/phpmyadmin/sql-parser/issues/285. Please uncomment when this issue is fixed.)\nSELECT `*` FROM table_name\nSELECT `*`.* FROM table_name AS `*`\nSELECT COUNT(*) FROM table_name\nSELECT COUNT( * ) FROM table_name\nSELECT COUNT( * /* comment with *,USING,FROM */) FROM table_name\nSELECT COUNT(`*`) FROM table_name\nSELECT 1 FROM table_name WHERE LABEL LIKE '%*%'\nDELETE a.* USING\nDELETE a.*, b.* USING\nDELETE a.* ,b.* USING\nDELETE a.* , b.* USING\nDELETE a.* /* comment */ USING\nDELETE a.* /* comment */, b.* /*comment*/ USING\nDELETE a.* /* comment */ ,b.* /*comment*/ USING\nDELETE a.* /* comment */ , b.* /*comment*/ USING\n\n", "len": 1348, "last": 1348, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* with a comment */", "value": "/* with a comment */", "keyword": null, "type": 4, "flags": 2, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 134 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* with a comment */", "value": "/* with a comment */", "keyword": null, "type": 4, "flags": 2, "position": 137 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 159 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 165 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 166 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 172 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 173 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 175 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 190 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 191 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 195 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- SELECT a.*/* comment */ FROM (This one is not working yet because of https://github.com/phpmyadmin/sql-parser/issues/285. Please uncomment when this issue is fixed.)", "value": "-- SELECT a.*/* comment */ FROM (This one is not working yet because of https://github.com/phpmyadmin/sql-parser/issues/285. Please uncomment when this issue is fixed.)", "keyword": null, "type": 4, "flags": 4, "position": 196 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 364 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 365 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 371 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DISTINCT", "value": "DISTINCT", "keyword": "DISTINCT", "type": 1, "flags": 3, "position": 372 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 380 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 381 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 382 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 383 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 387 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 388 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 394 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DISTINCT", "value": "DISTINCT", "keyword": "DISTINCT", "type": 1, "flags": 3, "position": 395 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 403 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 404 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 405 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 409 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 410 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 416 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DISTINCT", "value": "DISTINCT", "keyword": "DISTINCT", "type": 1, "flags": 3, "position": 417 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 425 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 426 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 427 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 428 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 429 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 430 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 434 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 435 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 441 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DISTINCT", "value": "DISTINCT", "keyword": "DISTINCT", "type": 1, "flags": 3, "position": 442 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 450 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 451 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 452 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 453 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 454 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 455 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 456 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 457 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 458 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 459 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 463 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 464 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 470 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DISTINCT", "value": "DISTINCT", "keyword": "DISTINCT", "type": 1, "flags": 3, "position": 471 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 479 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 480 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 481 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 482 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 483 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 484 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 485 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 486 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 487 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 488 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 489 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 493 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 494 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 500 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DISTINCT", "value": "DISTINCT", "keyword": "DISTINCT", "type": 1, "flags": 3, "position": 501 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 509 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 510 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 511 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 512 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 513 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 514 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* with a comment */", "value": "/* with a comment */", "keyword": null, "type": 4, "flags": 2, "position": 515 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 535 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 536 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 537 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 538 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 539 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 540 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 544 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 545 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 551 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DISTINCT", "value": "DISTINCT", "keyword": "DISTINCT", "type": 1, "flags": 3, "position": 552 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 560 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 561 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 562 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 563 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 564 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* with a comment */", "value": "/* with a comment */", "keyword": null, "type": 4, "flags": 2, "position": 565 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 585 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 586 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 587 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 588 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 589 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 593 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 594 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 600 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DISTINCT", "value": "DISTINCT", "keyword": "DISTINCT", "type": 1, "flags": 3, "position": 601 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 609 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 610 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 611 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 612 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 613 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 614 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 627 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 628 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 632 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- SELECT DISTINCT a.*/* comment */ FROM (This one is not working yet because of https://github.com/phpmyadmin/sql-parser/issues/285. Please uncomment when this issue is fixed.)", "value": "-- SELECT DISTINCT a.*/* comment */ FROM (This one is not working yet because of https://github.com/phpmyadmin/sql-parser/issues/285. Please uncomment when this issue is fixed.)", "keyword": null, "type": 4, "flags": 4, "position": 633 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 810 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 811 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 817 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`*`", "value": "*", "keyword": null, "type": 8, "flags": 2, "position": 818 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 821 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 822 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 826 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table_name", "value": "table_name", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 827 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 837 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 838 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 844 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`*`", "value": "*", "keyword": null, "type": 8, "flags": 2, "position": 845 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 848 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 849 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 850 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 851 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 855 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table_name", "value": "table_name", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 856 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 866 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 867 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 869 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`*`", "value": "*", "keyword": null, "type": 8, "flags": 2, "position": 870 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 873 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 874 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 880 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COUNT", "value": "COUNT", "keyword": "COUNT", "type": 1, "flags": 33, "position": 881 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 886 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 887 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 888 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 889 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 890 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 894 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table_name", "value": "table_name", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 895 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 905 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 906 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 912 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COUNT", "value": "COUNT", "keyword": "COUNT", "type": 1, "flags": 33, "position": 913 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 918 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 919 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 920 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 921 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 922 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 923 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 924 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 928 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table_name", "value": "table_name", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 929 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 939 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 940 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 946 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COUNT", "value": "COUNT", "keyword": "COUNT", "type": 1, "flags": 33, "position": 947 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 952 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 953 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 954 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 955 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment with *,USING,FROM */", "value": "/* comment with *,USING,FROM */", "keyword": null, "type": 4, "flags": 2, "position": 956 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 987 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 988 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 989 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 993 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table_name", "value": "table_name", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 994 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1004 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1005 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1011 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COUNT", "value": "COUNT", "keyword": "COUNT", "type": 1, "flags": 33, "position": 1012 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1017 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`*`", "value": "*", "keyword": null, "type": 8, "flags": 2, "position": 1018 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1021 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1022 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 1023 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1027 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table_name", "value": "table_name", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 1028 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1038 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1039 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1045 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 1046 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1047 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 1048 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1052 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table_name", "value": "table_name", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 1053 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1063 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 1064 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1069 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LABEL", "value": "LABEL", "keyword": null, "type": 0, "flags": 0, "position": 1070 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1075 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIKE", "value": "LIKE", "keyword": "LIKE", "type": 1, "flags": 3, "position": 1076 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1080 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'%*%'", "value": "%*%", "keyword": null, "type": 7, "flags": 1, "position": 1081 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1086 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 1087 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1093 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 1094 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1095 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 1096 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1097 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 1098 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 1104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 1111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 1113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 1116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 1118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 1120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 1126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 1133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1134 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 1135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1137 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 1138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 1140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 1142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 1148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1154 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 1155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 1157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1159 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 1161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 1163 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 1165 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 1171 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 1178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1179 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 1180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1181 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1182 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1195 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 1196 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1201 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 1202 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1208 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 1209 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1210 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 1211 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1212 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1213 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1226 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1227 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 1228 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1229 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 1230 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1231 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/*comment*/", "value": "/*comment*/", "keyword": null, "type": 4, "flags": 2, "position": 1232 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1243 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 1244 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1249 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 1250 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1256 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 1257 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1258 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 1259 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1260 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1261 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1274 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1275 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 1276 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1277 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 1278 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1279 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/*comment*/", "value": "/*comment*/", "keyword": null, "type": 4, "flags": 2, "position": 1280 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1291 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 1292 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1297 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 1298 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1304 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 1305 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1306 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 1307 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1308 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 1309 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1322 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1323 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1324 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 1325 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1326 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 1327 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1328 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/*comment*/", "value": "/*comment*/", "keyword": null, "type": 4, "flags": 2, "position": 1329 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1340 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 1341 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1346 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 382, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexString.in000066400000000000000000000000401455302707200213160ustar00rootroot00000000000000SELECT 'foo', "bar", "foo\\ bar"sql-parser-5.9.0/tests/data/lexer/lexString.out000066400000000000000000000070721455302707200215330ustar00rootroot00000000000000{ "query": "SELECT 'foo', \"bar\", \"foo\\\\ bar\"", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT 'foo', \"bar\", \"foo\\\\ bar\"", "len": 32, "last": 32, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'foo'", "value": "foo", "keyword": null, "type": 7, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"bar\"", "value": "bar", "keyword": null, "type": 7, "flags": 2, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"foo\\\\ bar\"", "value": "foo\\ bar", "keyword": null, "type": 7, "flags": 2, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexStringErr1.in000066400000000000000000000000371455302707200220560ustar00rootroot00000000000000SELECT 'foo', "bar", "foo\\ barsql-parser-5.9.0/tests/data/lexer/lexStringErr1.out000066400000000000000000000073031455302707200222620ustar00rootroot00000000000000{ "query": "SELECT 'foo', \"bar\", \"foo\\\\ bar", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT 'foo', \"bar\", \"foo\\\\ bar", "len": 31, "last": 32, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'foo'", "value": "foo", "keyword": null, "type": 7, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"bar\"", "value": "bar", "keyword": null, "type": 7, "flags": 2, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"foo\\\\ bar", "value": "foo\\ ba", "keyword": null, "type": 7, "flags": 2, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [ [ "Ending quote \" was expected.", "", 31, 0 ] ], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexSymbol.in000066400000000000000000000000661455302707200213250ustar00rootroot00000000000000SET @idx := 1; SELECT @idx, @`idx`, @'idx', @@hostnamesql-parser-5.9.0/tests/data/lexer/lexSymbol.out000066400000000000000000000162021455302707200215250ustar00rootroot00000000000000{ "query": "SET @idx := 1;\nSELECT @idx, @`idx`, @'idx', @@hostname", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SET @idx := 1;\nSELECT @idx, @`idx`, @'idx', @@hostname", "len": 54, "last": 54, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@idx", "value": "idx", "keyword": null, "type": 8, "flags": 1, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ":=", "value": ":=", "keyword": null, "type": 2, "flags": 8, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@idx", "value": "idx", "keyword": null, "type": 8, "flags": 1, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@`idx`", "value": "idx", "keyword": null, "type": 8, "flags": 1, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@'idx'", "value": "idx", "keyword": null, "type": 8, "flags": 1, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@@hostname", "value": "hostname", "keyword": null, "type": 8, "flags": 9, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 22, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexSymbolErr1.in000066400000000000000000000000511455302707200220510ustar00rootroot00000000000000SET @idx := 1; SELECT @idx, @`idx`, @'idxsql-parser-5.9.0/tests/data/lexer/lexSymbolErr1.out000066400000000000000000000145351455302707200222660ustar00rootroot00000000000000{ "query": "SET @idx := 1;\nSELECT @idx, @`idx`, @'idx", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SET @idx := 1;\nSELECT @idx, @`idx`, @'idx", "len": 41, "last": 42, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@idx", "value": "idx", "keyword": null, "type": 8, "flags": 1, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ":=", "value": ":=", "keyword": null, "type": 2, "flags": 8, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@idx", "value": "idx", "keyword": null, "type": 8, "flags": 1, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@`idx`", "value": "idx", "keyword": null, "type": 8, "flags": 1, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@'idx", "value": "id", "keyword": null, "type": 8, "flags": 1, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 19, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [ [ "Ending quote ' was expected.", "", 41, 0 ] ], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexSymbolErr2.in000066400000000000000000000000461455302707200220560ustar00rootroot00000000000000SET @idx := 1; SELECT @idx, @`idx`, @ sql-parser-5.9.0/tests/data/lexer/lexSymbolErr2.out000066400000000000000000000145211455302707200222620ustar00rootroot00000000000000{ "query": "SET @idx := 1;\nSELECT @idx, @`idx`, @ ", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SET @idx := 1;\nSELECT @idx, @`idx`, @ ", "len": 38, "last": 38, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@idx", "value": "idx", "keyword": null, "type": 8, "flags": 1, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ":=", "value": ":=", "keyword": null, "type": 2, "flags": 8, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@idx", "value": "idx", "keyword": null, "type": 8, "flags": 1, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@`idx`", "value": "idx", "keyword": null, "type": 8, "flags": 1, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@", "value": "", "keyword": null, "type": 8, "flags": 1, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 19, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [ [ "Variable name was expected.", " ", 37, 0 ] ], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexSymbolErr3.in000066400000000000000000000000131455302707200220510ustar00rootroot00000000000000SELECT `idxsql-parser-5.9.0/tests/data/lexer/lexSymbolErr3.out000066400000000000000000000035421455302707200222640ustar00rootroot00000000000000{ "query": "SELECT `idx", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT `idx", "len": 11, "last": 12, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`idx", "value": "id", "keyword": null, "type": 8, "flags": 2, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 4, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [ [ "Ending quote ` was expected.", "", 11, 0 ] ], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexSymbolUser1.in000066400000000000000000000000671455302707200222460ustar00rootroot00000000000000CREATE USER 'user'@'hostname' IDENTIFIED BY 'password';sql-parser-5.9.0/tests/data/lexer/lexSymbolUser1.out000066400000000000000000000110161455302707200224430ustar00rootroot00000000000000{ "query": "CREATE USER 'user'@'hostname' IDENTIFIED BY 'password';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE USER 'user'@'hostname' IDENTIFIED BY 'password';", "len": 55, "last": 55, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USER", "value": "USER", "keyword": "USER", "type": 1, "flags": 33, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'user'@'hostname'", "value": "user@hostname", "keyword": null, "type": 8, "flags": 4, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IDENTIFIED", "value": "IDENTIFIED", "keyword": "IDENTIFIED", "type": 1, "flags": 1, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BY", "value": "BY", "keyword": "BY", "type": 1, "flags": 3, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'password'", "value": "password", "keyword": null, "type": 7, "flags": 1, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 13, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexSymbolUser2.in000066400000000000000000000001211455302707200222360ustar00rootroot00000000000000ALTER USER 'user'@'hostname' IDENTIFIED WITH mysql_native_password BY 'password';sql-parser-5.9.0/tests/data/lexer/lexSymbolUser2.out000066400000000000000000000123211455302707200224440ustar00rootroot00000000000000{ "query": "ALTER USER 'user'@'hostname' IDENTIFIED WITH mysql_native_password BY 'password';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER USER 'user'@'hostname' IDENTIFIED WITH mysql_native_password BY 'password';", "len": 81, "last": 81, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USER", "value": "USER", "keyword": "USER", "type": 1, "flags": 33, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'user'@'hostname'", "value": "user@hostname", "keyword": null, "type": 8, "flags": 4, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IDENTIFIED WITH", "value": "IDENTIFIED WITH", "keyword": "IDENTIFIED WITH", "type": 1, "flags": 23, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql_native_password", "value": "mysql_native_password", "keyword": null, "type": 0, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BY", "value": "BY", "keyword": "BY", "type": 1, "flags": 3, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'password'", "value": "password", "keyword": null, "type": 7, "flags": 1, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 15, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexSymbolUser3.in000066400000000000000000000001241455302707200222420ustar00rootroot00000000000000ALTER USER 'user'@'hostname' WITH MAX_QUERIES_PER_HOUR 500 MAX_UPDATES_PER_HOUR 100;sql-parser-5.9.0/tests/data/lexer/lexSymbolUser3.out000066400000000000000000000135111455302707200224470ustar00rootroot00000000000000{ "query": "ALTER USER 'user'@'hostname' WITH MAX_QUERIES_PER_HOUR 500 MAX_UPDATES_PER_HOUR 100;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER USER 'user'@'hostname' WITH MAX_QUERIES_PER_HOUR 500 MAX_UPDATES_PER_HOUR 100;", "len": 84, "last": 84, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USER", "value": "USER", "keyword": "USER", "type": 1, "flags": 33, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'user'@'hostname'", "value": "user@hostname", "keyword": null, "type": 8, "flags": 4, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MAX_QUERIES_PER_HOUR", "value": "MAX_QUERIES_PER_HOUR", "keyword": "MAX_QUERIES_PER_HOUR", "type": 1, "flags": 1, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "500", "value": 500, "keyword": null, "type": 6, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MAX_UPDATES_PER_HOUR", "value": "MAX_UPDATES_PER_HOUR", "keyword": "MAX_UPDATES_PER_HOUR", "type": 1, "flags": 1, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "100", "value": 100, "keyword": null, "type": 6, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 17, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexSymbolUser4_mariadb_100400.in000066400000000000000000000001201455302707200245220ustar00rootroot00000000000000ALTER USER 'user'@'hostname' IDENTIFIED VIA mysql_native_password BY 'password';sql-parser-5.9.0/tests/data/lexer/lexSymbolUser4_mariadb_100400.out000066400000000000000000000123141455302707200247330ustar00rootroot00000000000000{ "query": "ALTER USER 'user'@'hostname' IDENTIFIED VIA mysql_native_password BY 'password';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER USER 'user'@'hostname' IDENTIFIED VIA mysql_native_password BY 'password';", "len": 80, "last": 80, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USER", "value": "USER", "keyword": "USER", "type": 1, "flags": 33, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'user'@'hostname'", "value": "user@hostname", "keyword": null, "type": 8, "flags": 4, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IDENTIFIED VIA", "value": "IDENTIFIED VIA", "keyword": "IDENTIFIED VIA", "type": 1, "flags": 23, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql_native_password", "value": "mysql_native_password", "keyword": null, "type": 0, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BY", "value": "BY", "keyword": "BY", "type": 1, "flags": 3, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'password'", "value": "password", "keyword": null, "type": 7, "flags": 1, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 15, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexSymbolUser5_mariadb_100400.in000066400000000000000000000001211455302707200245240ustar00rootroot00000000000000CREATE USER 'user'@'hostname' IDENTIFIED VIA mysql_native_password BY 'password';sql-parser-5.9.0/tests/data/lexer/lexSymbolUser5_mariadb_100400.out000066400000000000000000000123211455302707200247320ustar00rootroot00000000000000{ "query": "CREATE USER 'user'@'hostname' IDENTIFIED VIA mysql_native_password BY 'password';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE USER 'user'@'hostname' IDENTIFIED VIA mysql_native_password BY 'password';", "len": 81, "last": 81, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USER", "value": "USER", "keyword": "USER", "type": 1, "flags": 33, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'user'@'hostname'", "value": "user@hostname", "keyword": null, "type": 8, "flags": 4, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IDENTIFIED VIA", "value": "IDENTIFIED VIA", "keyword": "IDENTIFIED VIA", "type": 1, "flags": 23, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql_native_password", "value": "mysql_native_password", "keyword": null, "type": 0, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BY", "value": "BY", "keyword": "BY", "type": 1, "flags": 3, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'password'", "value": "password", "keyword": null, "type": 7, "flags": 1, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 15, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexUtf8.in000066400000000000000000000000241455302707200207000ustar00rootroot00000000000000select * from écolesql-parser-5.9.0/tests/data/lexer/lexUtf8.out000066400000000000000000000061521455302707200211110ustar00rootroot00000000000000{ "query": "select * from école", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": { "@type": "PhpMyAdmin\\SqlParser\\UtfString", "str": "select * from école", "byteIdx": 19, "charIdx": 18, "byteLen": 20, "charLen": 19 }, "len": 19, "last": 19, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "from", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "école", "value": "école", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 8, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexWhitespace.in000066400000000000000000000001171455302707200221510ustar00rootroot00000000000000 SELECT 'w h i t e s p a c e' sql-parser-5.9.0/tests/data/lexer/lexWhitespace.out000066400000000000000000000051011455302707200223500ustar00rootroot00000000000000{ "query": "\n\n\nSELECT \n\t\t'w h i t e\t\ts p a c e'\n\n\t\t\n\t\t\t\n \n ", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "\n\n\nSELECT \n\t\t'w h i t e\t\ts p a c e'\n\n\t\t\n\t\t\t\n \n ", "len": 79, "last": 79, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 3 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " \n\t\t", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'w h i t e\t\ts p a c e'", "value": "w h i t e\t\ts p a c e", "keyword": null, "type": 7, "flags": 1, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n\t\t\n\t\t\t\n \n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 6, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/lexer/lexWildcardThenComment.in000066400000000000000000000007571455302707200237620ustar00rootroot00000000000000SELECT */* comment */ SELECT /* comment */* SELECT 2*/* comment */3 SELECT 2/* comment */*3 SELECT */* comment on multiple lines */FROM DELETE foo.*/* foo */ USING DELETE foo.*/* foo */,bar.*/*bar*/ USING SELECT `*`/*with comment*/ AS star_field SELECT `*`,*/*with comment*/ DELETE a.*/*multi line /* with C open tag comment inside */ USING SELECT 2*/* operator */3 + 3/* operator */*2,/* start wildcard */*/* end wildcard */ SELECT `*`/*a*/*/*b*/`*` -- invalid queries /* SELECT */*sql-parser-5.9.0/tests/data/lexer/lexWildcardThenComment.out000066400000000000000000001047441455302707200241640ustar00rootroot00000000000000{ "query": "SELECT */* comment */\n\nSELECT /* comment */*\n\nSELECT 2*/* comment */3\n\nSELECT 2/* comment */*3\n\nSELECT */*\ncomment\non\nmultiple\nlines\n*/FROM\n\nDELETE foo.*/* foo */ USING\n\nDELETE foo.*/* foo */,bar.*/*bar*/ USING\n\nSELECT `*`/*with comment*/ AS star_field\n\nSELECT `*`,*/*with comment*/\n\nDELETE a.*/*multi\nline /* with C open tag\ncomment inside */ USING\n\nSELECT 2*/* operator */3 + 3/* operator */*2,/* start wildcard */*/* end wildcard */\n\nSELECT `*`/*a*/*/*b*/`*`\n\n-- invalid queries\n/* SELECT */*", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT */* comment */\n\nSELECT /* comment */*\n\nSELECT 2*/* comment */3\n\nSELECT 2/* comment */*3\n\nSELECT */*\ncomment\non\nmultiple\nlines\n*/FROM\n\nDELETE foo.*/* foo */ USING\n\nDELETE foo.*/* foo */,bar.*/*bar*/ USING\n\nSELECT `*`/*with comment*/ AS star_field\n\nSELECT `*`,*/*with comment*/\n\nDELETE a.*/*multi\nline /* with C open tag\ncomment inside */ USING\n\nSELECT 2*/* operator */3 + 3/* operator */*2,/* start wildcard */*/* end wildcard */\n\nSELECT `*`/*a*/*/*b*/`*`\n\n-- invalid queries\n/* SELECT */*", "len": 495, "last": 495, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/*\ncomment\non\nmultiple\nlines\n*/", "value": "/*\ncomment\non\nmultiple\nlines\n*/", "keyword": null, "type": 4, "flags": 2, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* foo */", "value": "/* foo */", "keyword": null, "type": 4, "flags": 2, "position": 153 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 163 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 168 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 181 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* foo */", "value": "/* foo */", "keyword": null, "type": 4, "flags": 2, "position": 182 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 191 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bar", "value": "bar", "keyword": null, "type": 0, "flags": 0, "position": 192 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 195 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 196 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/*bar*/", "value": "/*bar*/", "keyword": null, "type": 4, "flags": 2, "position": 197 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 204 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 205 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 210 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 212 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 218 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`*`", "value": "*", "keyword": null, "type": 8, "flags": 2, "position": 219 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/*with comment*/", "value": "/*with comment*/", "keyword": null, "type": 4, "flags": 2, "position": 222 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 238 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 239 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 241 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "star_field", "value": "star_field", "keyword": null, "type": 0, "flags": 0, "position": 242 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 252 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 254 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 260 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`*`", "value": "*", "keyword": null, "type": 8, "flags": 2, "position": 261 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 264 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 265 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/*with comment*/", "value": "/*with comment*/", "keyword": null, "type": 4, "flags": 2, "position": 266 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 282 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 284 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 290 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 291 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 292 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 293 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/*multi\nline /* with C open tag\ncomment inside */", "value": "/*multi\nline /* with C open tag\ncomment inside */", "keyword": null, "type": 4, "flags": 2, "position": 294 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 343 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 344 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 349 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 351 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 357 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 358 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 359 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* operator */", "value": "/* operator */", "keyword": null, "type": 4, "flags": 2, "position": 360 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 374 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 375 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 376 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 377 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 378 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* operator */", "value": "/* operator */", "keyword": null, "type": 4, "flags": 2, "position": 379 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 393 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 394 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 395 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* start wildcard */", "value": "/* start wildcard */", "keyword": null, "type": 4, "flags": 2, "position": 396 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 416 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* end wildcard */", "value": "/* end wildcard */", "keyword": null, "type": 4, "flags": 2, "position": 417 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 435 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 437 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 443 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`*`", "value": "*", "keyword": null, "type": 8, "flags": 2, "position": 444 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/*a*/", "value": "/*a*/", "keyword": null, "type": 4, "flags": 2, "position": 447 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 452 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/*b*/", "value": "/*b*/", "keyword": null, "type": 4, "flags": 2, "position": 453 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`*`", "value": "*", "keyword": null, "type": 8, "flags": 2, "position": 458 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 461 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- invalid queries", "value": "-- invalid queries", "keyword": null, "type": 4, "flags": 4, "position": 463 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 481 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* SELECT */", "value": "/* SELECT */", "keyword": null, "type": 4, "flags": 2, "position": 482 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 494 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 109, "idx": 0 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": null, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/misc/000077500000000000000000000000001455302707200166315ustar00rootroot00000000000000sql-parser-5.9.0/tests/data/misc/parseParameter.in000066400000000000000000000001371455302707200221350ustar00rootroot00000000000000INSERT INTO `person` (`firstname`, `lastname`, `email`) VALUES (:firstname, :lastname, :email);sql-parser-5.9.0/tests/data/misc/parseParameter.out000066400000000000000000000266361455302707200223520ustar00rootroot00000000000000{ "query": "INSERT INTO `person` (`firstname`, `lastname`, `email`) VALUES (:firstname, :lastname, :email);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "INSERT INTO `person` (`firstname`, `lastname`, `email`) VALUES (:firstname, :lastname, :email);", "len": 95, "last": 95, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`person`", "value": "person", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`firstname`", "value": "firstname", "keyword": null, "type": 8, "flags": 2, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`lastname`", "value": "lastname", "keyword": null, "type": 8, "flags": 2, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`email`", "value": "email", "keyword": null, "type": 8, "flags": 2, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ":firstname", "value": "firstname", "keyword": null, "type": 8, "flags": 16, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ":lastname", "value": "lastname", "keyword": null, "type": 8, "flags": 16, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ":email", "value": "email", "keyword": null, "type": 8, "flags": 16, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 29, "idx": 29 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "person", "column": null, "expr": "`person`", "alias": null, "function": null, "subquery": null }, "columns": [ "firstname", "lastname", "email" ], "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ ":firstname", ":lastname", ":email" ], "values": [ "firstname", "lastname", "email" ] } ], "set": null, "select": null, "with": null, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 26 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/misc/parseParameter2.in000066400000000000000000000001111455302707200222070ustar00rootroot00000000000000INSERT INTO `person` (`firstname`, `lastname`, `email`) VALUES (?, ?, ?);sql-parser-5.9.0/tests/data/misc/parseParameter2.out000066400000000000000000000264401455302707200224250ustar00rootroot00000000000000{ "query": "INSERT INTO `person` (`firstname`, `lastname`, `email`) VALUES (?, ?, ?);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "INSERT INTO `person` (`firstname`, `lastname`, `email`) VALUES (?, ?, ?);", "len": 73, "last": 73, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`person`", "value": "person", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`firstname`", "value": "firstname", "keyword": null, "type": 8, "flags": 2, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`lastname`", "value": "lastname", "keyword": null, "type": 8, "flags": 2, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`email`", "value": "email", "keyword": null, "type": 8, "flags": 2, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "?", "value": "?", "keyword": null, "type": 8, "flags": 16, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "?", "value": "?", "keyword": null, "type": 8, "flags": 16, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "?", "value": "?", "keyword": null, "type": 8, "flags": 16, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 29, "idx": 29 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "person", "column": null, "expr": "`person`", "alias": null, "function": null, "subquery": null }, "columns": [ "firstname", "lastname", "email" ], "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "?", "?", "?" ], "values": [ "?", "?", "?" ] } ], "set": null, "select": null, "with": null, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 26 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/000077500000000000000000000000001455302707200171725ustar00rootroot00000000000000sql-parser-5.9.0/tests/data/parser/parse.in000066400000000000000000000000111455302707200206240ustar00rootroot00000000000000SELECT 1;sql-parser-5.9.0/tests/data/parser/parse.out000066400000000000000000000066251455302707200210460ustar00rootroot00000000000000{ "query": "SELECT 1;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT 1;", "len": 9, "last": 9, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 5, "idx": 5 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 2 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parse2.in000066400000000000000000000000301455302707200207070ustar00rootroot00000000000000(SELECT 1);((SELECT 2));sql-parser-5.9.0/tests/data/parser/parse2.out000066400000000000000000000171321455302707200211230ustar00rootroot00000000000000{ "query": "(SELECT 1);((SELECT 2));", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "(SELECT 1);((SELECT 2));", "len": 24, "last": 24, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 15, "idx": 15 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "2", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 5, "last": 12 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlter.in000066400000000000000000000001461455302707200216250ustar00rootroot00000000000000ALTER TABLE `actor` ADD PRIMARY KEY (`actor_id`), ADD KEY `idx_actor_last_name` (`last_name`);sql-parser-5.9.0/tests/data/parser/parseAlter.out000066400000000000000000000273571455302707200220430ustar00rootroot00000000000000{ "query": "ALTER TABLE `actor`\n ADD PRIMARY KEY (`actor_id`),\n ADD KEY `idx_actor_last_name` (`last_name`);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE `actor`\n ADD PRIMARY KEY (`actor_id`),\n ADD KEY `idx_actor_last_name` (`last_name`);", "len": 102, "last": 102, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`actor`", "value": "actor", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ADD", "value": "ADD", "keyword": "ADD", "type": 1, "flags": 3, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PRIMARY KEY", "value": "PRIMARY KEY", "keyword": "PRIMARY KEY", "type": 1, "flags": 23, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`actor_id`", "value": "actor_id", "keyword": null, "type": 8, "flags": 2, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ADD", "value": "ADD", "keyword": "ADD", "type": 1, "flags": 3, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "KEY", "value": "KEY", "keyword": "KEY", "type": 1, "flags": 19, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`idx_actor_last_name`", "value": "idx_actor_last_name", "keyword": null, "type": 8, "flags": 2, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`last_name`", "value": "last_name", "keyword": null, "type": 8, "flags": 2, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 26, "idx": 26 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "actor", "column": null, "expr": "`actor`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ADD", "2": "PRIMARY KEY" } }, "field": null, "partitions": null, "unknown": [ { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" } ] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ADD", "2": "KEY" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "idx_actor_last_name", "expr": "`idx_actor_last_name`", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 24 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlter10.in000066400000000000000000000001211455302707200217570ustar00rootroot00000000000000ALTER TABLE `database`.`table` MODIFY `field` INT(11) AUTO_INCREMENT PRIMARY KEY;sql-parser-5.9.0/tests/data/parser/parseAlter10.out000066400000000000000000000241131455302707200221670ustar00rootroot00000000000000{ "query": "ALTER TABLE `database`.`table` MODIFY `field` INT(11) AUTO_INCREMENT PRIMARY KEY;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE `database`.`table` MODIFY `field` INT(11) AUTO_INCREMENT PRIMARY KEY;", "len": 81, "last": 81, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`database`", "value": "database", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`table`", "value": "table", "keyword": null, "type": 8, "flags": 2, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MODIFY", "value": "MODIFY", "keyword": "MODIFY", "type": 1, "flags": 1, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`field`", "value": "field", "keyword": null, "type": 8, "flags": 2, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AUTO_INCREMENT", "value": "AUTO_INCREMENT", "keyword": "AUTO_INCREMENT", "type": 1, "flags": 1, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PRIMARY KEY", "value": "PRIMARY KEY", "keyword": "PRIMARY KEY", "type": 1, "flags": 23, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 22, "idx": 22 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "database", "table": "table", "column": null, "expr": "`database`.`table`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "MODIFY" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "field", "expr": "`field`", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 20 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlter11.in000066400000000000000000000001421455302707200217630ustar00rootroot00000000000000ALTER TABLE `actor` ADD `last_update2` SET ('value1','value2','value3') NOT NULL AFTER last_updatesql-parser-5.9.0/tests/data/parser/parseAlter11.out000066400000000000000000000261141455302707200221730ustar00rootroot00000000000000{ "query": "ALTER TABLE `actor` ADD `last_update2` SET ('value1','value2','value3') NOT NULL AFTER last_update", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE `actor` ADD `last_update2` SET ('value1','value2','value3') NOT NULL AFTER last_update", "len": 98, "last": 98, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`actor`", "value": "actor", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ADD", "value": "ADD", "keyword": "ADD", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`last_update2`", "value": "last_update2", "keyword": null, "type": 8, "flags": 2, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'value1'", "value": "value1", "keyword": null, "type": 7, "flags": 1, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'value2'", "value": "value2", "keyword": null, "type": 7, "flags": 1, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'value3'", "value": "value3", "keyword": null, "type": 7, "flags": 1, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AFTER", "value": "AFTER", "keyword": "AFTER", "type": 1, "flags": 1, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "last_update", "value": "last_update", "keyword": null, "type": 0, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 26, "idx": 26 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "actor", "column": null, "expr": "`actor`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ADD" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "last_update2", "expr": "`last_update2`", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@12" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 25 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlter12.in000066400000000000000000000000721455302707200217660ustar00rootroot00000000000000ALTER TABLE actor ALTER last_update2 SET DEFAULT 'value1';sql-parser-5.9.0/tests/data/parser/parseAlter12.out000066400000000000000000000174161455302707200222010ustar00rootroot00000000000000{ "query": "ALTER TABLE actor ALTER last_update2 SET DEFAULT 'value1';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE actor ALTER last_update2 SET DEFAULT 'value1';", "len": 58, "last": 58, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "actor", "value": "actor", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "last_update2", "value": "last_update2", "keyword": null, "type": 0, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'value1'", "value": "value1", "keyword": null, "type": 7, "flags": 1, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 17, "idx": 17 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "actor", "column": null, "expr": "actor", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ALTER" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "last_update2", "expr": "last_update2", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@12" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 15 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlter13.in000066400000000000000000000001071455302707200217660ustar00rootroot00000000000000ALTER TABLE `actor` ADD `last_update2` SET ('value1','value2','value3')sql-parser-5.9.0/tests/data/parser/parseAlter13.out000066400000000000000000000212711455302707200221740ustar00rootroot00000000000000{ "query": "ALTER TABLE `actor` ADD `last_update2` SET ('value1','value2','value3')", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE `actor` ADD `last_update2` SET ('value1','value2','value3')", "len": 71, "last": 71, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`actor`", "value": "actor", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ADD", "value": "ADD", "keyword": "ADD", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`last_update2`", "value": "last_update2", "keyword": null, "type": 8, "flags": 2, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'value1'", "value": "value1", "keyword": null, "type": 7, "flags": 1, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'value2'", "value": "value2", "keyword": null, "type": 7, "flags": 1, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'value3'", "value": "value3", "keyword": null, "type": 7, "flags": 1, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 20, "idx": 21 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "actor", "column": null, "expr": "`actor`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ADD" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "last_update2", "expr": "`last_update2`", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@12" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 20 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlter14.in000066400000000000000000000001411455302707200217650ustar00rootroot00000000000000ALTER TABLE `table` ADD UNIQUE KEY `functional_index` (`field1`,`field2`, (IFNULL(`field3`,0))); sql-parser-5.9.0/tests/data/parser/parseAlter14.out000066400000000000000000000323011455302707200221710ustar00rootroot00000000000000{ "query": "ALTER TABLE `table` ADD UNIQUE KEY `functional_index` (`field1`,`field2`, (IFNULL(`field3`,0)));\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE `table` ADD UNIQUE KEY `functional_index` (`field1`,`field2`, (IFNULL(`field3`,0)));\n", "len": 97, "last": 97, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`table`", "value": "table", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ADD", "value": "ADD", "keyword": "ADD", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNIQUE KEY", "value": "UNIQUE KEY", "keyword": "UNIQUE KEY", "type": 1, "flags": 23, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`functional_index`", "value": "functional_index", "keyword": null, "type": 8, "flags": 2, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`field1`", "value": "field1", "keyword": null, "type": 8, "flags": 2, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`field2`", "value": "field2", "keyword": null, "type": 8, "flags": 2, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IFNULL", "value": "IFNULL", "keyword": "IFNULL", "type": 1, "flags": 33, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`field3`", "value": "field3", "keyword": null, "type": 8, "flags": 2, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 30, "idx": 30 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table", "column": null, "expr": "`table`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ADD" } }, "field": null, "partitions": null, "unknown": [ { "@type": "@10" }, { "@type": "@11" }, { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 27 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlter2.in000066400000000000000000000001241455302707200217030ustar00rootroot00000000000000ALTER /* */ TABLE /* */ table CONVERT /* */ TO /* */ CHARACTER /* */ SET /* */ utf8;sql-parser-5.9.0/tests/data/parser/parseAlter2.out000066400000000000000000000262301455302707200221120ustar00rootroot00000000000000{ "query": "ALTER /* */ TABLE /* */ table\nCONVERT /* */ TO /* */ CHARACTER /* */ SET /* */ utf8;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER /* */ TABLE /* */ table\nCONVERT /* */ TO /* */ CHARACTER /* */ SET /* */ utf8;", "len": 84, "last": 84, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* */", "value": "/* */", "keyword": null, "type": 4, "flags": 2, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* */", "value": "/* */", "keyword": null, "type": 4, "flags": 2, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CONVERT", "value": "CONVERT", "keyword": "CONVERT", "type": 1, "flags": 35, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* */", "value": "/* */", "keyword": null, "type": 4, "flags": 2, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* */", "value": "/* */", "keyword": null, "type": 4, "flags": 2, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHARACTER", "value": "CHARACTER", "keyword": "CHARACTER", "type": 1, "flags": 11, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* */", "value": "/* */", "keyword": null, "type": 4, "flags": 2, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* */", "value": "/* */", "keyword": null, "type": 4, "flags": 2, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8", "value": "utf8", "keyword": null, "type": 0, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 29, "idx": 29 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": null, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": { "name": "TO", "equals": false, "expr": "CHARACTER", "value": "CHARACTER" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE", "14": "TABLE" } }, "first": 0, "last": 27 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "This option conflicts with \"TABLE\".", { "@type": "@10" }, 0 ], [ "A new statement was found, but no delimiter between it and the previous one.", { "@type": "@24" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseAlter3.in000066400000000000000000000002311455302707200217030ustar00rootroot00000000000000ALTER TABLE `tbl` CHANGE `uid` `uid` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT ALTER TABLE `tbl` CHANGE `field_1` `field_2` INT( 10 ) UNSIGNED NOT NULLsql-parser-5.9.0/tests/data/parser/parseAlter3.out000066400000000000000000000456541455302707200221260ustar00rootroot00000000000000{ "query": "ALTER TABLE `tbl` CHANGE `uid` `uid` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT\n\nALTER TABLE `tbl` CHANGE `field_1` `field_2` INT( 10 ) UNSIGNED NOT NULL", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE `tbl` CHANGE `uid` `uid` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT\n\nALTER TABLE `tbl` CHANGE `field_1` `field_2` INT( 10 ) UNSIGNED NOT NULL", "len": 153, "last": 153, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`tbl`", "value": "tbl", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHANGE", "value": "CHANGE", "keyword": "CHANGE", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`uid`", "value": "uid", "keyword": null, "type": 8, "flags": 2, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`uid`", "value": "uid", "keyword": null, "type": 8, "flags": 2, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AUTO_INCREMENT", "value": "AUTO_INCREMENT", "keyword": "AUTO_INCREMENT", "type": 1, "flags": 1, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`tbl`", "value": "tbl", "keyword": null, "type": 8, "flags": 2, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHANGE", "value": "CHANGE", "keyword": "CHANGE", "type": 1, "flags": 3, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`field_1`", "value": "field_1", "keyword": null, "type": 8, "flags": 2, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`field_2`", "value": "field_2", "keyword": null, "type": 8, "flags": 2, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 134 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 48, "idx": 48 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "tbl", "column": null, "expr": "`tbl`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "CHANGE" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "uid", "expr": "`uid`", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 47 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "A new statement was found, but no delimiter between it and the previous one.", { "@type": "@27" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseAlter4.in000066400000000000000000000000601455302707200217040ustar00rootroot00000000000000ALTER TABLE my_table COMMENT='Comment of table';sql-parser-5.9.0/tests/data/parser/parseAlter4.out000066400000000000000000000132621455302707200221150ustar00rootroot00000000000000{ "query": "ALTER TABLE my_table COMMENT='Comment of table';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE my_table COMMENT='Comment of table';", "len": 48, "last": 48, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_table", "value": "my_table", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Comment of table'", "value": "Comment of table", "keyword": null, "type": 7, "flags": 1, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 11, "idx": 11 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_table", "column": null, "expr": "my_table", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "COMMENT", "equals": true, "expr": "'Comment of table'", "value": "Comment of table" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 9 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlter5.in000066400000000000000000000000531455302707200217070ustar00rootroot00000000000000ALTER DATABASE `abc` CHARACTER SET = 'utf8'sql-parser-5.9.0/tests/data/parser/parseAlter5.out000066400000000000000000000136731455302707200221240ustar00rootroot00000000000000{ "query": "ALTER DATABASE `abc` CHARACTER SET = 'utf8'", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER DATABASE `abc` CHARACTER SET = 'utf8'", "len": 43, "last": 43, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DATABASE", "value": "DATABASE", "keyword": "DATABASE", "type": 1, "flags": 35, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`abc`", "value": "abc", "keyword": null, "type": 8, "flags": 2, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHARACTER SET", "value": "CHARACTER SET", "keyword": "CHARACTER SET", "type": 1, "flags": 7, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'utf8'", "value": "utf8", "keyword": null, "type": 7, "flags": 1, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 12, "idx": 12 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "abc", "column": null, "expr": "`abc`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "CHARACTER SET", "equals": true, "expr": "'utf8'", "value": "utf8" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "DATABASE" } }, "first": 0, "last": 11 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlter6.in000066400000000000000000000000471455302707200217130ustar00rootroot00000000000000ALTER VIEW `abc` AS SELECT `a` FROM `b`sql-parser-5.9.0/tests/data/parser/parseAlter6.out000066400000000000000000000173041455302707200221200ustar00rootroot00000000000000{ "query": "ALTER VIEW `abc` AS SELECT `a` FROM `b`", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER VIEW `abc` AS SELECT `a` FROM `b`", "len": 39, "last": 39, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VIEW", "value": "VIEW", "keyword": "VIEW", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`abc`", "value": "abc", "keyword": null, "type": 8, "flags": 2, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`a`", "value": "a", "keyword": null, "type": 8, "flags": 2, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`b`", "value": "b", "keyword": null, "type": 8, "flags": 2, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 16, "idx": 16 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "abc", "column": null, "expr": "`abc`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "AS" } }, "field": null, "partitions": null, "unknown": [ { "@type": "@9" }, { "@type": "@10" }, { "@type": "@11" }, { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "VIEW" } }, "first": 0, "last": 15 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlter7.in000066400000000000000000000002071455302707200217120ustar00rootroot00000000000000ALTER TABLE `tbl` CHANGE `uid` `uid` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT, CHANGE `field_1` `field_2` INT( 10 ) UNSIGNED NOT NULLsql-parser-5.9.0/tests/data/parser/parseAlter7.out000066400000000000000000000464251455302707200221270ustar00rootroot00000000000000{ "query": "ALTER TABLE `tbl` CHANGE `uid` `uid` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT, CHANGE `field_1` `field_2` INT( 10 ) UNSIGNED NOT NULL", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE `tbl` CHANGE `uid` `uid` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT, CHANGE `field_1` `field_2` INT( 10 ) UNSIGNED NOT NULL", "len": 135, "last": 135, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`tbl`", "value": "tbl", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHANGE", "value": "CHANGE", "keyword": "CHANGE", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`uid`", "value": "uid", "keyword": null, "type": 8, "flags": 2, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`uid`", "value": "uid", "keyword": null, "type": 8, "flags": 2, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AUTO_INCREMENT", "value": "AUTO_INCREMENT", "keyword": "AUTO_INCREMENT", "type": 1, "flags": 1, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHANGE", "value": "CHANGE", "keyword": "CHANGE", "type": 1, "flags": 3, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`field_1`", "value": "field_1", "keyword": null, "type": 8, "flags": 2, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`field_2`", "value": "field_2", "keyword": null, "type": 8, "flags": 2, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 43, "idx": 43 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "tbl", "column": null, "expr": "`tbl`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "CHANGE" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "uid", "expr": "`uid`", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" } ] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "CHANGE" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "field_1", "expr": "`field_1`", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@32" }, { "@type": "@33" }, { "@type": "@34" }, { "@type": "@35" }, { "@type": "@36" }, { "@type": "@37" }, { "@type": "@38" }, { "@type": "@39" }, { "@type": "@40" }, { "@type": "@41" }, { "@type": "@42" }, { "@type": "@43" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 42 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlter8.in000066400000000000000000000001221455302707200217070ustar00rootroot00000000000000ALTER TABLE `api_tab_user` CHANGE `rank_id` `rank_id` INT(4) NOT NULL DEFAULT '4';sql-parser-5.9.0/tests/data/parser/parseAlter8.out000066400000000000000000000261111455302707200221160ustar00rootroot00000000000000{ "query": "ALTER TABLE `api_tab_user` CHANGE `rank_id` `rank_id` INT(4) NOT NULL DEFAULT '4';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE `api_tab_user` CHANGE `rank_id` `rank_id` INT(4) NOT NULL DEFAULT '4';", "len": 82, "last": 82, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`api_tab_user`", "value": "api_tab_user", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHANGE", "value": "CHANGE", "keyword": "CHANGE", "type": 1, "flags": 3, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`rank_id`", "value": "rank_id", "keyword": null, "type": 8, "flags": 2, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`rank_id`", "value": "rank_id", "keyword": null, "type": 8, "flags": 2, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "4", "value": 4, "keyword": null, "type": 6, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'4'", "value": "4", "keyword": null, "type": 7, "flags": 1, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 24, "idx": 24 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "api_tab_user", "column": null, "expr": "`api_tab_user`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "CHANGE" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "rank_id", "expr": "`rank_id`", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 22 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlter9.in000066400000000000000000000002161455302707200217140ustar00rootroot00000000000000ALTER TABLE place CHANGE COLUMN plc_location_type gplc_location_type ENUM('LOCATION') CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NOT NULL;sql-parser-5.9.0/tests/data/parser/parseAlter9.out000066400000000000000000000330701455302707200221210ustar00rootroot00000000000000{ "query": "ALTER TABLE place CHANGE COLUMN plc_location_type gplc_location_type ENUM('LOCATION') CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NOT NULL;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE place CHANGE COLUMN plc_location_type gplc_location_type ENUM('LOCATION') CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NOT NULL;", "len": 142, "last": 142, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "place", "value": "place", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHANGE", "value": "CHANGE", "keyword": "CHANGE", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLUMN", "value": "COLUMN", "keyword": "COLUMN", "type": 1, "flags": 3, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "plc_location_type", "value": "plc_location_type", "keyword": null, "type": 0, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "gplc_location_type", "value": "gplc_location_type", "keyword": null, "type": 0, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENUM", "value": "ENUM", "keyword": "ENUM", "type": 1, "flags": 9, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'LOCATION'", "value": "LOCATION", "keyword": null, "type": 7, "flags": 1, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHARACTER SET", "value": "CHARACTER SET", "keyword": "CHARACTER SET", "type": 1, "flags": 7, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'utf8'", "value": "utf8", "keyword": null, "type": 7, "flags": 1, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLLATE", "value": "COLLATE", "keyword": "COLLATE", "type": 1, "flags": 3, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'utf8_unicode_ci'", "value": "utf8_unicode_ci", "keyword": null, "type": 7, "flags": 1, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 30, "idx": 30 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "place", "column": null, "expr": "place", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "CHANGE", "2": "COLUMN" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "plc_location_type", "expr": "plc_location_type", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" }, { "@type": "@29" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 28 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterErr.in000066400000000000000000000002601455302707200222730ustar00rootroot00000000000000-- missing comma between alter operations ALTER TABLE `tbl` CHANGE `uid` `uid` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT CHANGE `field_1` `field_2` INT( 10 ) UNSIGNED NOT NULLsql-parser-5.9.0/tests/data/parser/parseAlterErr.out000066400000000000000000000435041455302707200225040ustar00rootroot00000000000000{ "query": "-- missing comma between alter operations\nALTER TABLE `tbl` CHANGE `uid` `uid` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT CHANGE `field_1` `field_2` INT( 10 ) UNSIGNED NOT NULL", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "-- missing comma between alter operations\nALTER TABLE `tbl` CHANGE `uid` `uid` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT CHANGE `field_1` `field_2` INT( 10 ) UNSIGNED NOT NULL", "len": 176, "last": 176, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- missing comma between alter operations", "value": "-- missing comma between alter operations", "keyword": null, "type": 4, "flags": 4, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`tbl`", "value": "tbl", "keyword": null, "type": 8, "flags": 2, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHANGE", "value": "CHANGE", "keyword": "CHANGE", "type": 1, "flags": 3, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`uid`", "value": "uid", "keyword": null, "type": 8, "flags": 2, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`uid`", "value": "uid", "keyword": null, "type": 8, "flags": 2, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AUTO_INCREMENT", "value": "AUTO_INCREMENT", "keyword": "AUTO_INCREMENT", "type": 1, "flags": 1, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHANGE", "value": "CHANGE", "keyword": "CHANGE", "type": 1, "flags": 3, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`field_1`", "value": "field_1", "keyword": null, "type": 8, "flags": 2, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`field_2`", "value": "field_2", "keyword": null, "type": 8, "flags": 2, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 153 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 154 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 159 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 168 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 44, "idx": 44 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "tbl", "column": null, "expr": "`tbl`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "CHANGE" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "uid", "expr": "`uid`", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 43 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Missing comma before start of a new alter operation.", { "@type": "@29" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseAlterErr2.in000066400000000000000000000002241455302707200223550ustar00rootroot00000000000000-- missing comma between alter operations ALTER TABLE tb_foo CHANGE inmsg inmsg date NULL AFTER outmsg2 CHANGE inmsg2 inmsg2 time NULL AFTER inmsg; sql-parser-5.9.0/tests/data/parser/parseAlterErr2.out000066400000000000000000000366561455302707200226000ustar00rootroot00000000000000{ "query": "-- missing comma between alter operations\nALTER TABLE tb_foo CHANGE inmsg inmsg date NULL AFTER outmsg2 CHANGE inmsg2 inmsg2 time NULL AFTER inmsg;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "-- missing comma between alter operations\nALTER TABLE tb_foo CHANGE inmsg inmsg date NULL AFTER outmsg2 CHANGE inmsg2 inmsg2 time NULL AFTER inmsg;\n", "len": 148, "last": 148, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- missing comma between alter operations", "value": "-- missing comma between alter operations", "keyword": null, "type": 4, "flags": 4, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tb_foo", "value": "tb_foo", "keyword": null, "type": 0, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHANGE", "value": "CHANGE", "keyword": "CHANGE", "type": 1, "flags": 3, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "inmsg", "value": "inmsg", "keyword": null, "type": 0, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "inmsg", "value": "inmsg", "keyword": null, "type": 0, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "date", "value": "date", "keyword": "DATE", "type": 1, "flags": 41, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AFTER", "value": "AFTER", "keyword": "AFTER", "type": 1, "flags": 1, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "outmsg2", "value": "outmsg2", "keyword": null, "type": 0, "flags": 0, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHANGE", "value": "CHANGE", "keyword": "CHANGE", "type": 1, "flags": 3, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "inmsg2", "value": "inmsg2", "keyword": null, "type": 0, "flags": 0, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "inmsg2", "value": "inmsg2", "keyword": null, "type": 0, "flags": 0, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "time", "value": "time", "keyword": "TIME", "type": 1, "flags": 41, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 134 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AFTER", "value": "AFTER", "keyword": "AFTER", "type": 1, "flags": 1, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "inmsg", "value": "inmsg", "keyword": null, "type": 0, "flags": 0, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 38, "idx": 38 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "tb_foo", "column": null, "expr": "tb_foo", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "CHANGE" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "inmsg", "expr": "inmsg", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 35 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Missing comma before start of a new alter operation.", { "@type": "@24" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseAlterErr3.in000066400000000000000000000001741455302707200223620ustar00rootroot00000000000000-- missing comma between alter operations ALTER TABLE `database`.`table` MODIFY `field` INT(11) AUTO_INCREMENT PRIMARY KEY; sql-parser-5.9.0/tests/data/parser/parseAlterErr3.out000066400000000000000000000262061455302707200225670ustar00rootroot00000000000000{ "query": "-- missing comma between alter operations\nALTER TABLE `database`.`table` MODIFY `field` INT(11) AUTO_INCREMENT PRIMARY KEY;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "-- missing comma between alter operations\nALTER TABLE `database`.`table` MODIFY `field` INT(11) AUTO_INCREMENT PRIMARY KEY;\n", "len": 124, "last": 124, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- missing comma between alter operations", "value": "-- missing comma between alter operations", "keyword": null, "type": 4, "flags": 4, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`database`", "value": "database", "keyword": null, "type": 8, "flags": 2, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`table`", "value": "table", "keyword": null, "type": 8, "flags": 2, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MODIFY", "value": "MODIFY", "keyword": "MODIFY", "type": 1, "flags": 1, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`field`", "value": "field", "keyword": null, "type": 8, "flags": 2, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AUTO_INCREMENT", "value": "AUTO_INCREMENT", "keyword": "AUTO_INCREMENT", "type": 1, "flags": 1, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PRIMARY KEY", "value": "PRIMARY KEY", "keyword": "PRIMARY KEY", "type": 1, "flags": 23, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 25, "idx": 25 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "database", "table": "table", "column": null, "expr": "`database`.`table`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "MODIFY" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "field", "expr": "`field`", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 22 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterErr4.in000066400000000000000000000000711455302707200223570ustar00rootroot00000000000000ALTER TABLE actor ALTER last_update2 SET DEFAULT value1';sql-parser-5.9.0/tests/data/parser/parseAlterErr4.out000066400000000000000000000200051455302707200225570ustar00rootroot00000000000000{ "query": "ALTER TABLE actor ALTER last_update2 SET DEFAULT value1';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE actor ALTER last_update2 SET DEFAULT value1';", "len": 57, "last": 58, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "actor", "value": "actor", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "last_update2", "value": "last_update2", "keyword": null, "type": 0, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "value1", "value": "value1", "keyword": null, "type": 0, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "';", "value": "", "keyword": null, "type": 7, "flags": 1, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 17, "idx": 17 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "actor", "column": null, "expr": "actor", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ALTER" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "last_update2", "expr": "last_update2", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@12" }, { "@type": "@17" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 16 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [ [ "Ending quote ' was expected.", "", 57, 0 ] ], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterEvent.in000066400000000000000000000000351455302707200226240ustar00rootroot00000000000000ALTER EVENT my_event ENABLE; sql-parser-5.9.0/tests/data/parser/parseAlterEvent.out000066400000000000000000000120671455302707200230350ustar00rootroot00000000000000{ "query": "ALTER EVENT my_event ENABLE;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER EVENT my_event ENABLE;\n", "len": 29, "last": 29, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENABLE", "value": "ENABLE", "keyword": "ENABLE", "type": 1, "flags": 1, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 10 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "8": "ENABLE" } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "EVENT" } }, "first": 0, "last": 7 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterEvent2.in000066400000000000000000000000361455302707200227070ustar00rootroot00000000000000ALTER EVENT my_event DISABLE; sql-parser-5.9.0/tests/data/parser/parseAlterEvent2.out000066400000000000000000000120751455302707200231160ustar00rootroot00000000000000{ "query": "ALTER EVENT my_event DISABLE;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER EVENT my_event DISABLE;\n", "len": 30, "last": 30, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DISABLE", "value": "DISABLE", "keyword": "DISABLE", "type": 1, "flags": 1, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 10 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "8": "DISABLE" } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "EVENT" } }, "first": 0, "last": 7 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterEvent3.in000066400000000000000000000000471455302707200227120ustar00rootroot00000000000000ALTER EVENT my_event DISABLE ON SLAVE; sql-parser-5.9.0/tests/data/parser/parseAlterEvent3.out000066400000000000000000000121631455302707200231150ustar00rootroot00000000000000{ "query": "ALTER EVENT my_event DISABLE ON SLAVE;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER EVENT my_event DISABLE ON SLAVE;\n", "len": 39, "last": 39, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DISABLE ON SLAVE", "value": "DISABLE ON SLAVE", "keyword": "DISABLE ON SLAVE", "type": 1, "flags": 7, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 10 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "8": "DISABLE ON SLAVE" } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "EVENT" } }, "first": 0, "last": 7 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterEvent4.in000066400000000000000000000000551455302707200227120ustar00rootroot00000000000000ALTER EVENT my_event ON COMPLETION PRESERVE; sql-parser-5.9.0/tests/data/parser/parseAlterEvent4.out000066400000000000000000000122271455302707200231170ustar00rootroot00000000000000{ "query": "ALTER EVENT my_event ON COMPLETION PRESERVE;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER EVENT my_event ON COMPLETION PRESERVE;\n", "len": 45, "last": 45, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON COMPLETION PRESERVE", "value": "ON COMPLETION PRESERVE", "keyword": "ON COMPLETION PRESERVE", "type": 1, "flags": 7, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 10 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "5": "ON COMPLETION PRESERVE" } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "EVENT" } }, "first": 0, "last": 7 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterEvent5.in000066400000000000000000000000611455302707200227100ustar00rootroot00000000000000ALTER EVENT my_event ON COMPLETION NOT PRESERVE; sql-parser-5.9.0/tests/data/parser/parseAlterEvent5.out000066400000000000000000000122571455302707200231230ustar00rootroot00000000000000{ "query": "ALTER EVENT my_event ON COMPLETION NOT PRESERVE;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER EVENT my_event ON COMPLETION NOT PRESERVE;\n", "len": 49, "last": 49, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON COMPLETION NOT PRESERVE", "value": "ON COMPLETION NOT PRESERVE", "keyword": "ON COMPLETION NOT PRESERVE", "type": 1, "flags": 7, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 10 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "5": "ON COMPLETION NOT PRESERVE" } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "EVENT" } }, "first": 0, "last": 7 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterEvent6.in000066400000000000000000000000551455302707200227140ustar00rootroot00000000000000ALTER EVENT my_event RENAME TO my_new_event; sql-parser-5.9.0/tests/data/parser/parseAlterEvent6.out000066400000000000000000000161451455302707200231240ustar00rootroot00000000000000{ "query": "ALTER EVENT my_event RENAME TO my_new_event;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER EVENT my_event RENAME TO my_new_event;\n", "len": 45, "last": 45, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RENAME", "value": "RENAME", "keyword": "RENAME", "type": 1, "flags": 3, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_new_event", "value": "my_new_event", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 14, "idx": 14 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "RENAME", "7": { "name": "TO", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_new_event", "column": null, "expr": "my_new_event", "alias": null, "function": null, "subquery": null }, "value": "my_new_event" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "EVENT" } }, "first": 0, "last": 11 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterEvent7.in000066400000000000000000000000611455302707200227120ustar00rootroot00000000000000ALTER EVENT my_event COMMENT 'This is an event'; sql-parser-5.9.0/tests/data/parser/parseAlterEvent7.out000066400000000000000000000137451455302707200231300ustar00rootroot00000000000000{ "query": "ALTER EVENT my_event COMMENT 'This is an event';\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER EVENT my_event COMMENT 'This is an event';\n", "len": 49, "last": 49, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'This is an event'", "value": "This is an event", "keyword": null, "type": 7, "flags": 1, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 12, "idx": 12 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "9": { "name": "COMMENT", "equals": false, "expr": "'This is an event'", "value": "This is an event" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "EVENT" } }, "first": 0, "last": 9 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterEvent8.in000066400000000000000000000000621455302707200227140ustar00rootroot00000000000000ALTER EVENT my_event DO SELECT * FROM my_table; sql-parser-5.9.0/tests/data/parser/parseAlterEvent8.out000066400000000000000000000205341455302707200231230ustar00rootroot00000000000000{ "query": "ALTER EVENT my_event DO\n SELECT * FROM my_table;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER EVENT my_event DO\n SELECT * FROM my_table;\n", "len": 50, "last": 50, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DO", "value": "DO", "keyword": "DO", "type": 1, "flags": 1, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_table", "value": "my_table", "keyword": null, "type": 0, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 18, "idx": 18 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "10": "DO" } }, "field": null, "partitions": null, "unknown": [ { "@type": "@9" }, { "@type": "@10" }, { "@type": "@11" }, { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "EVENT" } }, "first": 0, "last": 15 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterEvent9.in000066400000000000000000000001721455302707200227170ustar00rootroot00000000000000ALTER EVENT old_db.old_event RENAME TO new_db.new_event; ALTER EVENT `old_db`.`old_event` RENAME TO `new_db`.`new_event`; sql-parser-5.9.0/tests/data/parser/parseAlterEvent9.out000066400000000000000000000373451455302707200231340ustar00rootroot00000000000000{ "query": "ALTER EVENT old_db.old_event RENAME TO new_db.new_event;\nALTER EVENT `old_db`.`old_event` RENAME TO `new_db`.`new_event`;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER EVENT old_db.old_event RENAME TO new_db.new_event;\nALTER EVENT `old_db`.`old_event` RENAME TO `new_db`.`new_event`;\n", "len": 122, "last": 122, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "old_db", "value": "old_db", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "old_event", "value": "old_event", "keyword": null, "type": 0, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RENAME", "value": "RENAME", "keyword": "RENAME", "type": 1, "flags": 3, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "new_db", "value": "new_db", "keyword": null, "type": 0, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "new_event", "value": "new_event", "keyword": null, "type": 0, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`old_db`", "value": "old_db", "keyword": null, "type": 8, "flags": 2, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`old_event`", "value": "old_event", "keyword": null, "type": 8, "flags": 2, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RENAME", "value": "RENAME", "keyword": "RENAME", "type": 1, "flags": 3, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`new_db`", "value": "new_db", "keyword": null, "type": 8, "flags": 2, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`new_event`", "value": "new_event", "keyword": null, "type": 8, "flags": 2, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 35, "idx": 35 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "old_db", "table": "old_event", "column": null, "expr": "old_db.old_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "RENAME", "7": { "name": "TO", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "new_db", "table": "new_event", "column": null, "expr": "new_db.new_event", "alias": null, "function": null, "subquery": null }, "value": "new_db.new_event" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "EVENT" } }, "first": 0, "last": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "old_db", "table": "old_event", "column": null, "expr": "`old_db`.`old_event`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "RENAME", "7": { "name": "TO", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "new_db", "table": "new_event", "column": null, "expr": "`new_db`.`new_event`", "alias": null, "function": null, "subquery": null }, "value": "`new_db`.`new_event`" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "EVENT" } }, "first": 16, "last": 32 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterEventComplete.in000066400000000000000000000004571455302707200243250ustar00rootroot00000000000000ALTER EVENT my_event ON SCHEDULE EVERY 2 WEEK STARTS CURRENT_TIMESTAMP + INTERVAL 4 WEEK ENDS '2099-12-30 23:12:01' + INTERVAL 1 DAY ON COMPLETION NOT PRESERVE RENAME TO my_complete_event DISABLE COMMENT 'String as a comment' DO SELECT * FROM my_table; sql-parser-5.9.0/tests/data/parser/parseAlterEventComplete.out000066400000000000000000000653521455302707200245330ustar00rootroot00000000000000{ "query": "ALTER EVENT my_event\n ON SCHEDULE\n EVERY 2 WEEK\n STARTS CURRENT_TIMESTAMP + INTERVAL 4 WEEK\n ENDS '2099-12-30 23:12:01' + INTERVAL 1 DAY\n ON COMPLETION NOT PRESERVE\n RENAME TO my_complete_event\n DISABLE\n COMMENT 'String as a comment'\n DO\n SELECT * FROM my_table;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER EVENT my_event\n ON SCHEDULE\n EVERY 2 WEEK\n STARTS CURRENT_TIMESTAMP + INTERVAL 4 WEEK\n ENDS '2099-12-30 23:12:01' + INTERVAL 1 DAY\n ON COMPLETION NOT PRESERVE\n RENAME TO my_complete_event\n DISABLE\n COMMENT 'String as a comment'\n DO\n SELECT * FROM my_table;\n", "len": 303, "last": 303, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON SCHEDULE", "value": "ON SCHEDULE", "keyword": "ON SCHEDULE", "type": 1, "flags": 7, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVERY", "value": "EVERY", "keyword": "EVERY", "type": 1, "flags": 1, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WEEK", "value": "WEEK", "keyword": "WEEK", "type": 1, "flags": 33, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "STARTS", "value": "STARTS", "keyword": "STARTS", "type": 1, "flags": 1, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CURRENT_TIMESTAMP", "value": "CURRENT_TIMESTAMP", "keyword": "CURRENT_TIMESTAMP", "type": 1, "flags": 35, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTERVAL", "value": "INTERVAL", "keyword": "INTERVAL", "type": 1, "flags": 43, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "4", "value": 4, "keyword": null, "type": 6, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WEEK", "value": "WEEK", "keyword": "WEEK", "type": 1, "flags": 33, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENDS", "value": "ENDS", "keyword": "ENDS", "type": 1, "flags": 1, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'2099-12-30 23:12:01'", "value": "2099-12-30 23:12:01", "keyword": null, "type": 7, "flags": 1, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 137 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTERVAL", "value": "INTERVAL", "keyword": "INTERVAL", "type": 1, "flags": 43, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 150 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DAY", "value": "DAY", "keyword": "DAY", "type": 1, "flags": 33, "position": 151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 154 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON COMPLETION NOT PRESERVE", "value": "ON COMPLETION NOT PRESERVE", "keyword": "ON COMPLETION NOT PRESERVE", "type": 1, "flags": 7, "position": 159 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 185 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RENAME", "value": "RENAME", "keyword": "RENAME", "type": 1, "flags": 3, "position": 190 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 196 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 197 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 199 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_complete_event", "value": "my_complete_event", "keyword": null, "type": 0, "flags": 0, "position": 200 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 217 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DISABLE", "value": "DISABLE", "keyword": "DISABLE", "type": 1, "flags": 1, "position": 222 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 229 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 234 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 241 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'String as a comment'", "value": "String as a comment", "keyword": null, "type": 7, "flags": 1, "position": 242 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 263 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DO", "value": "DO", "keyword": "DO", "type": 1, "flags": 1, "position": 268 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 270 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 279 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 285 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 286 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 287 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 288 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 292 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_table", "value": "my_table", "keyword": null, "type": 0, "flags": 0, "position": 293 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 301 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 302 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 64, "idx": 64 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ON SCHEDULE", "2": { "name": "EVERY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "2 WEEK", "alias": null, "function": null, "subquery": null }, "value": "2 WEEK" }, "3": { "name": "STARTS", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "CURRENT_TIMESTAMP + INTERVAL 4 WEEK", "alias": null, "function": null, "subquery": null }, "value": "CURRENT_TIMESTAMP + INTERVAL 4 WEEK" }, "4": { "name": "ENDS", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "2099-12-30 23:12:01", "expr": "'2099-12-30 23:12:01'+ INTERVAL 1 DAY", "alias": null, "function": null, "subquery": null }, "value": "'2099-12-30 23:12:01'+ INTERVAL 1 DAY" }, "5": "ON COMPLETION NOT PRESERVE", "6": "RENAME", "7": { "name": "TO", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_complete_event", "column": null, "expr": "my_complete_event", "alias": null, "function": null, "subquery": null }, "value": "my_complete_event" }, "8": "DISABLE", "9": { "name": "COMMENT", "equals": false, "expr": "'String as a comment'", "value": "String as a comment" }, "10": "DO" } }, "field": null, "partitions": null, "unknown": [ { "@type": "@55" }, { "@type": "@56" }, { "@type": "@57" }, { "@type": "@58" }, { "@type": "@59" }, { "@type": "@60" }, { "@type": "@61" }, { "@type": "@62" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "EVENT" } }, "first": 0, "last": 61 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterEventErr.in000066400000000000000000000000631455302707200232760ustar00rootroot00000000000000-- No option in ALTER EVENT. ALTER EVENT my_event; sql-parser-5.9.0/tests/data/parser/parseAlterEventErr.out000066400000000000000000000111671455302707200235060ustar00rootroot00000000000000{ "query": "-- No option in ALTER EVENT.\nALTER EVENT my_event;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "-- No option in ALTER EVENT.\nALTER EVENT my_event;\n", "len": 51, "last": 51, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- No option in ALTER EVENT.", "value": "-- No option in ALTER EVENT.", "keyword": null, "type": 4, "flags": 4, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 10 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "EVENT" } }, "first": 0, "last": 7 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterEventOnScheduleAt.in000066400000000000000000000000751455302707200250670ustar00rootroot00000000000000ALTER EVENT my_event ON SCHEDULE AT '2023-01-01 01:23:45'; sql-parser-5.9.0/tests/data/parser/parseAlterEventOnScheduleAt.out000066400000000000000000000163071455302707200252750ustar00rootroot00000000000000{ "query": "ALTER EVENT my_event ON SCHEDULE\n AT '2023-01-01 01:23:45';\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER EVENT my_event ON SCHEDULE\n AT '2023-01-01 01:23:45';\n", "len": 61, "last": 61, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON SCHEDULE", "value": "ON SCHEDULE", "keyword": "ON SCHEDULE", "type": 1, "flags": 7, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AT", "value": "AT", "keyword": "AT", "type": 1, "flags": 1, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'2023-01-01 01:23:45'", "value": "2023-01-01 01:23:45", "keyword": null, "type": 7, "flags": 1, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 14, "idx": 14 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ON SCHEDULE", "2": { "name": "AT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "2023-01-01 01:23:45", "expr": "'2023-01-01 01:23:45'", "alias": null, "function": null, "subquery": null }, "value": "'2023-01-01 01:23:45'" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "EVENT" } }, "first": 0, "last": 11 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterEventOnScheduleAt2.in000066400000000000000000000001161455302707200251450ustar00rootroot00000000000000ALTER EVENT my_event ON SCHEDULE AT '2023-01-01 01:23:45' + INTERVAL 1 DAY; sql-parser-5.9.0/tests/data/parser/parseAlterEventOnScheduleAt2.out000066400000000000000000000232121455302707200253500ustar00rootroot00000000000000{ "query": "ALTER EVENT my_event ON SCHEDULE\n AT '2023-01-01 01:23:45' + INTERVAL 1 DAY;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER EVENT my_event ON SCHEDULE\n AT '2023-01-01 01:23:45' + INTERVAL 1 DAY;\n", "len": 78, "last": 78, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON SCHEDULE", "value": "ON SCHEDULE", "keyword": "ON SCHEDULE", "type": 1, "flags": 7, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AT", "value": "AT", "keyword": "AT", "type": 1, "flags": 1, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'2023-01-01 01:23:45'", "value": "2023-01-01 01:23:45", "keyword": null, "type": 7, "flags": 1, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTERVAL", "value": "INTERVAL", "keyword": "INTERVAL", "type": 1, "flags": 43, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DAY", "value": "DAY", "keyword": "DAY", "type": 1, "flags": 33, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 22, "idx": 22 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ON SCHEDULE", "2": { "name": "AT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "2023-01-01 01:23:45", "expr": "'2023-01-01 01:23:45'+ INTERVAL 1 DAY", "alias": null, "function": null, "subquery": null }, "value": "'2023-01-01 01:23:45'+ INTERVAL 1 DAY" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "EVENT" } }, "first": 0, "last": 19 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterEventOnScheduleEvery.in000066400000000000000000000000611455302707200256100ustar00rootroot00000000000000ALTER EVENT my_event ON SCHEDULE EVERY 2 WEEK; sql-parser-5.9.0/tests/data/parser/parseAlterEventOnScheduleEvery.out000066400000000000000000000173071455302707200260240ustar00rootroot00000000000000{ "query": "ALTER EVENT my_event ON SCHEDULE\n EVERY 2 WEEK;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER EVENT my_event ON SCHEDULE\n EVERY 2 WEEK;\n", "len": 49, "last": 49, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON SCHEDULE", "value": "ON SCHEDULE", "keyword": "ON SCHEDULE", "type": 1, "flags": 7, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVERY", "value": "EVERY", "keyword": "EVERY", "type": 1, "flags": 1, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WEEK", "value": "WEEK", "keyword": "WEEK", "type": 1, "flags": 33, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 16, "idx": 16 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ON SCHEDULE", "2": { "name": "EVERY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "2 WEEK", "alias": null, "function": null, "subquery": null }, "value": "2 WEEK" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "EVENT" } }, "first": 0, "last": 13 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterEventOnScheduleEvery2.in000066400000000000000000000001031455302707200256670ustar00rootroot00000000000000ALTER EVENT my_event ON SCHEDULE EVERY 2 WEEK + INTERVAL 4 HOUR; sql-parser-5.9.0/tests/data/parser/parseAlterEventOnScheduleEvery2.out000066400000000000000000000242231455302707200261010ustar00rootroot00000000000000{ "query": "ALTER EVENT my_event ON SCHEDULE\n EVERY 2 WEEK + INTERVAL 4 HOUR;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER EVENT my_event ON SCHEDULE\n EVERY 2 WEEK + INTERVAL 4 HOUR;\n", "len": 67, "last": 67, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON SCHEDULE", "value": "ON SCHEDULE", "keyword": "ON SCHEDULE", "type": 1, "flags": 7, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVERY", "value": "EVERY", "keyword": "EVERY", "type": 1, "flags": 1, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WEEK", "value": "WEEK", "keyword": "WEEK", "type": 1, "flags": 33, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTERVAL", "value": "INTERVAL", "keyword": "INTERVAL", "type": 1, "flags": 43, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "4", "value": 4, "keyword": null, "type": 6, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "HOUR", "value": "HOUR", "keyword": "HOUR", "type": 1, "flags": 33, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 24, "idx": 24 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ON SCHEDULE", "2": { "name": "EVERY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "2 WEEK + INTERVAL 4 HOUR", "alias": null, "function": null, "subquery": null }, "value": "2 WEEK + INTERVAL 4 HOUR" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "EVENT" } }, "first": 0, "last": 21 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterEventOnScheduleEvery3.in000066400000000000000000000001141455302707200256720ustar00rootroot00000000000000ALTER EVENT my_event ON SCHEDULE EVERY 2 WEEK STARTS CURRENT_TIMESTAMP; sql-parser-5.9.0/tests/data/parser/parseAlterEventOnScheduleEvery3.out000066400000000000000000000234711455302707200261060ustar00rootroot00000000000000{ "query": "ALTER EVENT my_event ON SCHEDULE\n EVERY 2 WEEK\n STARTS CURRENT_TIMESTAMP;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER EVENT my_event ON SCHEDULE\n EVERY 2 WEEK\n STARTS CURRENT_TIMESTAMP;\n", "len": 76, "last": 76, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON SCHEDULE", "value": "ON SCHEDULE", "keyword": "ON SCHEDULE", "type": 1, "flags": 7, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVERY", "value": "EVERY", "keyword": "EVERY", "type": 1, "flags": 1, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WEEK", "value": "WEEK", "keyword": "WEEK", "type": 1, "flags": 33, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "STARTS", "value": "STARTS", "keyword": "STARTS", "type": 1, "flags": 1, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CURRENT_TIMESTAMP", "value": "CURRENT_TIMESTAMP", "keyword": "CURRENT_TIMESTAMP", "type": 1, "flags": 35, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 20, "idx": 20 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ON SCHEDULE", "2": { "name": "EVERY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "2 WEEK", "alias": null, "function": null, "subquery": null }, "value": "2 WEEK" }, "3": { "name": "STARTS", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "CURRENT_TIMESTAMP", "alias": null, "function": null, "subquery": null }, "value": "CURRENT_TIMESTAMP" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "EVENT" } }, "first": 0, "last": 17 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterEventOnScheduleEvery4.in000066400000000000000000000001361455302707200256770ustar00rootroot00000000000000ALTER EVENT my_event ON SCHEDULE EVERY 2 WEEK STARTS CURRENT_TIMESTAMP + INTERVAL 4 HOUR; sql-parser-5.9.0/tests/data/parser/parseAlterEventOnScheduleEvery4.out000066400000000000000000000304051455302707200261020ustar00rootroot00000000000000{ "query": "ALTER EVENT my_event ON SCHEDULE\n EVERY 2 WEEK\n STARTS CURRENT_TIMESTAMP + INTERVAL 4 HOUR;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER EVENT my_event ON SCHEDULE\n EVERY 2 WEEK\n STARTS CURRENT_TIMESTAMP + INTERVAL 4 HOUR;\n", "len": 94, "last": 94, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON SCHEDULE", "value": "ON SCHEDULE", "keyword": "ON SCHEDULE", "type": 1, "flags": 7, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVERY", "value": "EVERY", "keyword": "EVERY", "type": 1, "flags": 1, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WEEK", "value": "WEEK", "keyword": "WEEK", "type": 1, "flags": 33, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "STARTS", "value": "STARTS", "keyword": "STARTS", "type": 1, "flags": 1, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CURRENT_TIMESTAMP", "value": "CURRENT_TIMESTAMP", "keyword": "CURRENT_TIMESTAMP", "type": 1, "flags": 35, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTERVAL", "value": "INTERVAL", "keyword": "INTERVAL", "type": 1, "flags": 43, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "4", "value": 4, "keyword": null, "type": 6, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "HOUR", "value": "HOUR", "keyword": "HOUR", "type": 1, "flags": 33, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 28, "idx": 28 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ON SCHEDULE", "2": { "name": "EVERY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "2 WEEK", "alias": null, "function": null, "subquery": null }, "value": "2 WEEK" }, "3": { "name": "STARTS", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "CURRENT_TIMESTAMP + INTERVAL 4 HOUR", "alias": null, "function": null, "subquery": null }, "value": "CURRENT_TIMESTAMP + INTERVAL 4 HOUR" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "EVENT" } }, "first": 0, "last": 25 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterEventOnScheduleEvery5.in000066400000000000000000000001511455302707200256750ustar00rootroot00000000000000ALTER EVENT my_event ON SCHEDULE EVERY 2 WEEK STARTS CURRENT_TIMESTAMP ENDS '2099-12-30 23:12:01'; sql-parser-5.9.0/tests/data/parser/parseAlterEventOnScheduleEvery5.out000066400000000000000000000276721455302707200261170ustar00rootroot00000000000000{ "query": "ALTER EVENT my_event ON SCHEDULE\n EVERY 2 WEEK\n STARTS CURRENT_TIMESTAMP\n ENDS '2099-12-30 23:12:01';\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER EVENT my_event ON SCHEDULE\n EVERY 2 WEEK\n STARTS CURRENT_TIMESTAMP\n ENDS '2099-12-30 23:12:01';\n", "len": 105, "last": 105, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON SCHEDULE", "value": "ON SCHEDULE", "keyword": "ON SCHEDULE", "type": 1, "flags": 7, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVERY", "value": "EVERY", "keyword": "EVERY", "type": 1, "flags": 1, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WEEK", "value": "WEEK", "keyword": "WEEK", "type": 1, "flags": 33, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "STARTS", "value": "STARTS", "keyword": "STARTS", "type": 1, "flags": 1, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CURRENT_TIMESTAMP", "value": "CURRENT_TIMESTAMP", "keyword": "CURRENT_TIMESTAMP", "type": 1, "flags": 35, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENDS", "value": "ENDS", "keyword": "ENDS", "type": 1, "flags": 1, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'2099-12-30 23:12:01'", "value": "2099-12-30 23:12:01", "keyword": null, "type": 7, "flags": 1, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 24, "idx": 24 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ON SCHEDULE", "2": { "name": "EVERY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "2 WEEK", "alias": null, "function": null, "subquery": null }, "value": "2 WEEK" }, "3": { "name": "STARTS", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "CURRENT_TIMESTAMP", "alias": null, "function": null, "subquery": null }, "value": "CURRENT_TIMESTAMP" }, "4": { "name": "ENDS", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "2099-12-30 23:12:01", "expr": "'2099-12-30 23:12:01'", "alias": null, "function": null, "subquery": null }, "value": "'2099-12-30 23:12:01'" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "EVENT" } }, "first": 0, "last": 21 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterEventOnScheduleEvery6.in000066400000000000000000000001721455302707200257010ustar00rootroot00000000000000ALTER EVENT my_event ON SCHEDULE EVERY 2 WEEK STARTS CURRENT_TIMESTAMP ENDS '2099-12-30 23:12:01' + INTERVAL 1 DAY; sql-parser-5.9.0/tests/data/parser/parseAlterEventOnScheduleEvery6.out000066400000000000000000000346051455302707200261120ustar00rootroot00000000000000{ "query": "ALTER EVENT my_event ON SCHEDULE\n EVERY 2 WEEK\n STARTS CURRENT_TIMESTAMP\n ENDS '2099-12-30 23:12:01' + INTERVAL 1 DAY;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER EVENT my_event ON SCHEDULE\n EVERY 2 WEEK\n STARTS CURRENT_TIMESTAMP\n ENDS '2099-12-30 23:12:01' + INTERVAL 1 DAY;\n", "len": 122, "last": 122, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON SCHEDULE", "value": "ON SCHEDULE", "keyword": "ON SCHEDULE", "type": 1, "flags": 7, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVERY", "value": "EVERY", "keyword": "EVERY", "type": 1, "flags": 1, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WEEK", "value": "WEEK", "keyword": "WEEK", "type": 1, "flags": 33, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "STARTS", "value": "STARTS", "keyword": "STARTS", "type": 1, "flags": 1, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CURRENT_TIMESTAMP", "value": "CURRENT_TIMESTAMP", "keyword": "CURRENT_TIMESTAMP", "type": 1, "flags": 35, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENDS", "value": "ENDS", "keyword": "ENDS", "type": 1, "flags": 1, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'2099-12-30 23:12:01'", "value": "2099-12-30 23:12:01", "keyword": null, "type": 7, "flags": 1, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTERVAL", "value": "INTERVAL", "keyword": "INTERVAL", "type": 1, "flags": 43, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DAY", "value": "DAY", "keyword": "DAY", "type": 1, "flags": 33, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 32, "idx": 32 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ON SCHEDULE", "2": { "name": "EVERY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "2 WEEK", "alias": null, "function": null, "subquery": null }, "value": "2 WEEK" }, "3": { "name": "STARTS", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "CURRENT_TIMESTAMP", "alias": null, "function": null, "subquery": null }, "value": "CURRENT_TIMESTAMP" }, "4": { "name": "ENDS", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "2099-12-30 23:12:01", "expr": "'2099-12-30 23:12:01'+ INTERVAL 1 DAY", "alias": null, "function": null, "subquery": null }, "value": "'2099-12-30 23:12:01'+ INTERVAL 1 DAY" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "EVENT" } }, "first": 0, "last": 29 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterEventWithDefiner.in000066400000000000000000000000541455302707200247560ustar00rootroot00000000000000ALTER DEFINER = user EVENT my_event ENABLE; sql-parser-5.9.0/tests/data/parser/parseAlterEventWithDefiner.out000066400000000000000000000170611455302707200251650ustar00rootroot00000000000000{ "query": "ALTER DEFINER = user EVENT my_event ENABLE;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER DEFINER = user EVENT my_event ENABLE;\n", "len": 44, "last": 44, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFINER", "value": "DEFINER", "keyword": "DEFINER", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "user", "value": "user", "keyword": "USER", "type": 1, "flags": 33, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENABLE", "value": "ENABLE", "keyword": "ENABLE", "type": 1, "flags": 1, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 16, "idx": 16 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "8": "ENABLE" } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "DEFINER", "equals": true, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "user", "alias": null, "function": null, "subquery": null }, "value": "user" }, "3": "EVENT" } }, "first": 0, "last": 13 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterEventWithOtherDefiners.in000066400000000000000000000003671455302707200261520ustar00rootroot00000000000000ALTER DEFINER = 'user' EVENT my_event ENABLE; ALTER DEFINER = `user` EVENT my_event ENABLE; ALTER DEFINER = user@host EVENT my_event ENABLE; ALTER DEFINER = 'user'@'host' EVENT my_event ENABLE; ALTER DEFINER = `user`@`host` EVENT my_event ENABLE; sql-parser-5.9.0/tests/data/parser/parseAlterEventWithOtherDefiners.out000066400000000000000000001044101455302707200263450ustar00rootroot00000000000000{ "query": "ALTER DEFINER = 'user' EVENT my_event ENABLE;\nALTER DEFINER = `user` EVENT my_event ENABLE;\nALTER DEFINER = user@host EVENT my_event ENABLE;\nALTER DEFINER = 'user'@'host' EVENT my_event ENABLE;\nALTER DEFINER = `user`@`host` EVENT my_event ENABLE;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER DEFINER = 'user' EVENT my_event ENABLE;\nALTER DEFINER = `user` EVENT my_event ENABLE;\nALTER DEFINER = user@host EVENT my_event ENABLE;\nALTER DEFINER = 'user'@'host' EVENT my_event ENABLE;\nALTER DEFINER = `user`@`host` EVENT my_event ENABLE;\n", "len": 247, "last": 247, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFINER", "value": "DEFINER", "keyword": "DEFINER", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'user'", "value": "user", "keyword": null, "type": 7, "flags": 1, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENABLE", "value": "ENABLE", "keyword": "ENABLE", "type": 1, "flags": 1, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFINER", "value": "DEFINER", "keyword": "DEFINER", "type": 1, "flags": 1, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`user`", "value": "user", "keyword": null, "type": 8, "flags": 2, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENABLE", "value": "ENABLE", "keyword": "ENABLE", "type": 1, "flags": 1, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFINER", "value": "DEFINER", "keyword": "DEFINER", "type": 1, "flags": 1, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "user", "value": "user", "keyword": "USER", "type": 1, "flags": 33, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@host", "value": "host", "keyword": null, "type": 8, "flags": 1, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENABLE", "value": "ENABLE", "keyword": "ENABLE", "type": 1, "flags": 1, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFINER", "value": "DEFINER", "keyword": "DEFINER", "type": 1, "flags": 1, "position": 147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 154 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'user'@'host'", "value": "user@host", "keyword": null, "type": 8, "flags": 4, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 171 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 185 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENABLE", "value": "ENABLE", "keyword": "ENABLE", "type": 1, "flags": 1, "position": 186 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 192 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 193 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 194 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 199 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFINER", "value": "DEFINER", "keyword": "DEFINER", "type": 1, "flags": 1, "position": 200 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 207 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 208 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 209 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`user`@`host`", "value": "user@host", "keyword": null, "type": 8, "flags": 4, "position": 210 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 223 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EVENT", "value": "EVENT", "keyword": "EVENT", "type": 1, "flags": 1, "position": 224 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 229 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_event", "value": "my_event", "keyword": null, "type": 0, "flags": 0, "position": 230 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 238 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENABLE", "value": "ENABLE", "keyword": "ENABLE", "type": 1, "flags": 1, "position": 239 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 245 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 246 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 77, "idx": 77 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "8": "ENABLE" } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "DEFINER", "equals": true, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "user", "expr": "'user'", "alias": null, "function": null, "subquery": null }, "value": "'user'" }, "3": "EVENT" } }, "first": 0, "last": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "8": "ENABLE" } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "DEFINER", "equals": true, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "user", "expr": "`user`", "alias": null, "function": null, "subquery": null }, "value": "`user`" }, "3": "EVENT" } }, "first": 14, "last": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "8": "ENABLE" } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "DEFINER", "equals": true, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "user@host", "alias": null, "function": null, "subquery": null }, "value": "user@host" }, "3": "EVENT" } }, "first": 29, "last": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "8": "ENABLE" } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "DEFINER", "equals": true, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "user@host", "expr": "'user'@'host'", "alias": null, "function": null, "subquery": null }, "value": "'user'@'host'" }, "3": "EVENT" } }, "first": 45, "last": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_event", "column": null, "expr": "my_event", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "8": "ENABLE" } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "DEFINER", "equals": true, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "user@host", "expr": "`user`@`host`", "alias": null, "function": null, "subquery": null }, "value": "`user`@`host`" }, "3": "EVENT" } }, "first": 60, "last": 74 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterRenameColumn.in000066400000000000000000000000561455302707200241330ustar00rootroot00000000000000ALTER TABLE myTable RENAME COLUMN foo TO bar; sql-parser-5.9.0/tests/data/parser/parseAlterRenameColumn.out000066400000000000000000000202611455302707200243340ustar00rootroot00000000000000{ "query": "ALTER TABLE myTable RENAME COLUMN foo TO bar;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE myTable RENAME COLUMN foo TO bar;\n", "len": 46, "last": 46, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "myTable", "value": "myTable", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RENAME", "value": "RENAME", "keyword": "RENAME", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLUMN", "value": "COLUMN", "keyword": "COLUMN", "type": 1, "flags": 3, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bar", "value": "bar", "keyword": null, "type": 0, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 18, "idx": 18 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "myTable", "column": null, "expr": "myTable", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [ "RENAME", "COLUMN", { "name": "TO", "equals": false, "expr": "bar", "value": "bar" } ] }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "foo", "expr": "foo", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 15 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterRenameColumns.in000066400000000000000000000002501455302707200243120ustar00rootroot00000000000000ALTER TABLE myTable RENAME COLUMN a TO b, RENAME COLUMN b TO c, RENAME COLUMN c TO d, RENAME COLUMN d TO a; sql-parser-5.9.0/tests/data/parser/parseAlterRenameColumns.out000066400000000000000000000536601455302707200245300ustar00rootroot00000000000000{ "query": "ALTER TABLE myTable RENAME COLUMN a TO b,\n RENAME COLUMN b TO c,\n RENAME COLUMN c TO d,\n RENAME COLUMN d TO a;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE myTable RENAME COLUMN a TO b,\n RENAME COLUMN b TO c,\n RENAME COLUMN c TO d,\n RENAME COLUMN d TO a;\n", "len": 168, "last": 168, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "myTable", "value": "myTable", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RENAME", "value": "RENAME", "keyword": "RENAME", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLUMN", "value": "COLUMN", "keyword": "COLUMN", "type": 1, "flags": 3, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RENAME", "value": "RENAME", "keyword": "RENAME", "type": 1, "flags": 3, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLUMN", "value": "COLUMN", "keyword": "COLUMN", "type": 1, "flags": 3, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RENAME", "value": "RENAME", "keyword": "RENAME", "type": 1, "flags": 3, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLUMN", "value": "COLUMN", "keyword": "COLUMN", "type": 1, "flags": 3, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "d", "value": "d", "keyword": null, "type": 0, "flags": 0, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RENAME", "value": "RENAME", "keyword": "RENAME", "type": 1, "flags": 3, "position": 146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLUMN", "value": "COLUMN", "keyword": "COLUMN", "type": 1, "flags": 3, "position": 153 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 159 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "d", "value": "d", "keyword": null, "type": 0, "flags": 0, "position": 160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 165 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 166 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 51, "idx": 51 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "myTable", "column": null, "expr": "myTable", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [ "RENAME", "COLUMN", { "name": "TO", "equals": false, "expr": "b", "value": "b" } ] }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "a", "expr": "a", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [ "RENAME", "COLUMN", { "name": "TO", "equals": false, "expr": "c", "value": "c" } ] }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "b", "expr": "b", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [ "RENAME", "COLUMN", { "name": "TO", "equals": false, "expr": "d", "value": "d" } ] }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "c", "expr": "c", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [ "RENAME", "COLUMN", { "name": "TO", "equals": false, "expr": "a", "value": "a" } ] }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "d", "expr": "d", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 48 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterTableAddSpatialIndex1.in000066400000000000000000000001231455302707200255700ustar00rootroot00000000000000ALTER TABLE testtable ADD SPATIAL INDEX(`mypoint`), ALGORITHM=INPLACE, LOCK=SHARED;sql-parser-5.9.0/tests/data/parser/parseAlterTableAddSpatialIndex1.out000066400000000000000000000264711455302707200260070ustar00rootroot00000000000000{ "query": "ALTER TABLE testtable ADD SPATIAL INDEX(`mypoint`), ALGORITHM=INPLACE, LOCK=SHARED;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE testtable ADD SPATIAL INDEX(`mypoint`), ALGORITHM=INPLACE, LOCK=SHARED;", "len": 83, "last": 83, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "testtable", "value": "testtable", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ADD", "value": "ADD", "keyword": "ADD", "type": 1, "flags": 3, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SPATIAL INDEX", "value": "SPATIAL INDEX", "keyword": "SPATIAL INDEX", "type": 1, "flags": 23, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`mypoint`", "value": "mypoint", "keyword": null, "type": 8, "flags": 2, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALGORITHM", "value": "ALGORITHM", "keyword": "ALGORITHM", "type": 1, "flags": 1, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INPLACE", "value": "INPLACE", "keyword": null, "type": 0, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK", "value": "LOCK", "keyword": "LOCK", "type": 1, "flags": 3, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SHARED", "value": "SHARED", "keyword": null, "type": 0, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 24, "idx": 24 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "testtable", "column": null, "expr": "testtable", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ADD" } }, "field": null, "partitions": null, "unknown": [ { "@type": "@10" }, { "@type": "@11" }, { "@type": "@12" }, { "@type": "@13" } ] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ALGORITHM", "equals": true, "expr": "INPLACE", "value": "INPLACE" } } }, "field": null, "partitions": null, "unknown": [] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "LOCK", "equals": true, "expr": "SHARED", "value": "SHARED" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 22 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterTableCharacterSet1.in000066400000000000000000000000741455302707200251470ustar00rootroot00000000000000ALTER TABLE `d` DEFAULT CHARSET=hp8 COLLATE hp8_english_ci; sql-parser-5.9.0/tests/data/parser/parseAlterTableCharacterSet1.out000066400000000000000000000171361455302707200253570ustar00rootroot00000000000000{ "query": "ALTER TABLE `d` DEFAULT CHARSET=hp8 COLLATE hp8_english_ci;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE `d` DEFAULT CHARSET=hp8 COLLATE hp8_english_ci;\n", "len": 60, "last": 60, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`d`", "value": "d", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT CHARSET", "value": "DEFAULT CHARSET", "keyword": "DEFAULT CHARSET", "type": 1, "flags": 7, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "hp8", "value": "hp8", "keyword": null, "type": 0, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLLATE", "value": "COLLATE", "keyword": "COLLATE", "type": 1, "flags": 3, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "hp8_english_ci", "value": "hp8_english_ci", "keyword": null, "type": 0, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 16, "idx": 16 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "d", "column": null, "expr": "`d`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "DEFAULT CHARSET" } }, "field": null, "partitions": null, "unknown": [ { "@type": "@9" }, { "@type": "@10" }, { "@type": "@11" }, { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 13 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterTableCharacterSet2.in000066400000000000000000000000351455302707200251450ustar00rootroot00000000000000ALTER TABLE `d` CHARSET=hp8 sql-parser-5.9.0/tests/data/parser/parseAlterTableCharacterSet2.out000066400000000000000000000132651455302707200253570ustar00rootroot00000000000000{ "query": "ALTER TABLE `d` CHARSET=hp8\n\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE `d` CHARSET=hp8\n\n", "len": 29, "last": 29, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`d`", "value": "d", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHARSET", "value": "CHARSET", "keyword": "CHARSET", "type": 1, "flags": 33, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "hp8", "value": "hp8", "keyword": null, "type": 0, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 11, "idx": 11 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "d", "column": null, "expr": "`d`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "CHARSET" } }, "field": null, "partitions": null, "unknown": [ { "@type": "@9" }, { "@type": "@10" }, { "@type": "@11" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 10 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterTableCharacterSet3.in000066400000000000000000000000351455302707200251460ustar00rootroot00000000000000ALTER TABLE `d` CHARSET=hp8; sql-parser-5.9.0/tests/data/parser/parseAlterTableCharacterSet3.out000066400000000000000000000135611455302707200253570ustar00rootroot00000000000000{ "query": "ALTER TABLE `d` CHARSET=hp8;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE `d` CHARSET=hp8;\n", "len": 29, "last": 29, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`d`", "value": "d", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHARSET", "value": "CHARSET", "keyword": "CHARSET", "type": 1, "flags": 33, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "hp8", "value": "hp8", "keyword": null, "type": 0, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 12, "idx": 12 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "d", "column": null, "expr": "`d`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "CHARSET" } }, "field": null, "partitions": null, "unknown": [ { "@type": "@9" }, { "@type": "@10" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 9 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterTableCharacterSet4.in000066400000000000000000000000751455302707200251530ustar00rootroot00000000000000ALTER TABLE tbl_name CONVERT TO CHARACTER SET charset_name; sql-parser-5.9.0/tests/data/parser/parseAlterTableCharacterSet4.out000066400000000000000000000172531455302707200253620ustar00rootroot00000000000000{ "query": "ALTER TABLE tbl_name CONVERT TO CHARACTER SET charset_name;\n\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE tbl_name CONVERT TO CHARACTER SET charset_name;\n\n", "len": 61, "last": 61, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tbl_name", "value": "tbl_name", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CONVERT", "value": "CONVERT", "keyword": "CONVERT", "type": 1, "flags": 35, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHARACTER SET", "value": "CHARACTER SET", "keyword": "CHARACTER SET", "type": 1, "flags": 7, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "charset_name", "value": "charset_name", "keyword": null, "type": 0, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 16, "idx": 16 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "tbl_name", "column": null, "expr": "tbl_name", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "CONVERT", "3": { "name": "TO", "equals": false, "expr": "CHARACTER SET", "value": "CHARACTER SET" } } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "charset_name", "expr": "charset_name", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 13 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterTableCharacterSet5.in000066400000000000000000000000451455302707200251510ustar00rootroot00000000000000ALTER TABLE `d` CHARACTER SET utf8; sql-parser-5.9.0/tests/data/parser/parseAlterTableCharacterSet5.out000066400000000000000000000141251455302707200253560ustar00rootroot00000000000000{ "query": "ALTER TABLE `d` CHARACTER SET utf8;\n\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE `d` CHARACTER SET utf8;\n\n", "len": 37, "last": 37, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`d`", "value": "d", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHARACTER SET", "value": "CHARACTER SET", "keyword": "CHARACTER SET", "type": 1, "flags": 7, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8", "value": "utf8", "keyword": null, "type": 0, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 12, "idx": 12 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "d", "column": null, "expr": "`d`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "CHARACTER SET" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "utf8", "expr": "utf8", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 9 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterTableCharacterSet6.in000066400000000000000000000000751455302707200251550ustar00rootroot00000000000000ALTER TABLE `d` CHARACTER SET utf8 COLLATE utf8_general_ci; sql-parser-5.9.0/tests/data/parser/parseAlterTableCharacterSet6.out000066400000000000000000000173031455302707200253600ustar00rootroot00000000000000{ "query": "ALTER TABLE `d` CHARACTER SET utf8 COLLATE utf8_general_ci;\n\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE `d` CHARACTER SET utf8 COLLATE utf8_general_ci;\n\n", "len": 61, "last": 61, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`d`", "value": "d", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHARACTER SET", "value": "CHARACTER SET", "keyword": "CHARACTER SET", "type": 1, "flags": 7, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8", "value": "utf8", "keyword": null, "type": 0, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLLATE", "value": "COLLATE", "keyword": "COLLATE", "type": 1, "flags": 3, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8_general_ci", "value": "utf8_general_ci", "keyword": null, "type": 0, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 16, "idx": 16 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "d", "column": null, "expr": "`d`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "CHARACTER SET" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "utf8", "expr": "utf8", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 13 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterTableCharacterSet7.in000066400000000000000000000001131455302707200251470ustar00rootroot00000000000000ALTER TABLE `d` CHARACTER SET utf8 COLLATE utf8_general_ci; sql-parser-5.9.0/tests/data/parser/parseAlterTableCharacterSet7.out000066400000000000000000000173461455302707200253700ustar00rootroot00000000000000{ "query": "ALTER TABLE `d` CHARACTER SET utf8 COLLATE utf8_general_ci;\n\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE `d` CHARACTER SET utf8 COLLATE utf8_general_ci;\n\n", "len": 75, "last": 75, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`d`", "value": "d", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHARACTER SET", "value": "CHARACTER SET", "keyword": "CHARACTER SET", "type": 1, "flags": 7, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8", "value": "utf8", "keyword": null, "type": 0, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLLATE", "value": "COLLATE", "keyword": "COLLATE", "type": 1, "flags": 3, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8_general_ci", "value": "utf8_general_ci", "keyword": null, "type": 0, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 16, "idx": 16 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "d", "column": null, "expr": "`d`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "CHARACTER SET" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "utf8", "expr": "utf8", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 13 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterTableCoalescePartition.in000066400000000000000000000000541455302707200261240ustar00rootroot00000000000000ALTER TABLE `MY_TABLE` COALESCE PARTITION 2;sql-parser-5.9.0/tests/data/parser/parseAlterTableCoalescePartition.out000066400000000000000000000132311455302707200263260ustar00rootroot00000000000000{ "query": "ALTER TABLE `MY_TABLE` COALESCE PARTITION 2;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE `MY_TABLE` COALESCE PARTITION 2;", "len": 44, "last": 44, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`MY_TABLE`", "value": "MY_TABLE", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COALESCE PARTITION", "value": "COALESCE PARTITION", "keyword": "COALESCE PARTITION", "type": 1, "flags": 7, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 11, "idx": 11 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "MY_TABLE", "column": null, "expr": "`MY_TABLE`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "COALESCE PARTITION", "equals": false, "expr": "2", "value": "2" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 9 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterTableDropAddIndex1.in000066400000000000000000000001461455302707200251040ustar00rootroot00000000000000ALTER TABLE testtable DROP INDEX my_index2, ADD INDEX my_index3(id, id3) USING BTREE, ALGORITHM=COPY; sql-parser-5.9.0/tests/data/parser/parseAlterTableDropAddIndex1.out000066400000000000000000000375621455302707200253210ustar00rootroot00000000000000{ "query": "ALTER TABLE testtable DROP INDEX my_index2, ADD INDEX my_index3(id, id3) USING BTREE, ALGORITHM=COPY;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE testtable DROP INDEX my_index2, ADD INDEX my_index3(id, id3) USING BTREE, ALGORITHM=COPY;\n", "len": 102, "last": 102, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "testtable", "value": "testtable", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DROP", "value": "DROP", "keyword": "DROP", "type": 1, "flags": 3, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INDEX", "value": "INDEX", "keyword": "INDEX", "type": 1, "flags": 19, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_index2", "value": "my_index2", "keyword": null, "type": 0, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ADD", "value": "ADD", "keyword": "ADD", "type": 1, "flags": 3, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INDEX", "value": "INDEX", "keyword": "INDEX", "type": 1, "flags": 19, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_index3", "value": "my_index3", "keyword": null, "type": 0, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id3", "value": "id3", "keyword": null, "type": 0, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BTREE", "value": "BTREE", "keyword": "BTREE", "type": 1, "flags": 1, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALGORITHM", "value": "ALGORITHM", "keyword": "ALGORITHM", "type": 1, "flags": 1, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COPY", "value": "COPY", "keyword": null, "type": 0, "flags": 0, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 36, "idx": 36 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "testtable", "column": null, "expr": "testtable", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "DROP", "2": { "name": "INDEX", "equals": false, "expr": "my_index2", "value": "my_index2" } } }, "field": null, "partitions": null, "unknown": [] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ADD", "2": { "name": "INDEX", "equals": false, "expr": "my_index3", "value": "my_index3" } } }, "field": null, "partitions": null, "unknown": [ { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" }, { "@type": "@29" } ] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ALGORITHM", "equals": true, "expr": "COPY", "value": "COPY" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 33 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterTableDropColumn1.in000066400000000000000000000001101455302707200246500ustar00rootroot00000000000000ALTER TABLE `testtable` DROP COLUMN `id2`, ALGORITHM=INPLACE, LOCK=NONE;sql-parser-5.9.0/tests/data/parser/parseAlterTableDropColumn1.out000066400000000000000000000257451455302707200250760ustar00rootroot00000000000000{ "query": "ALTER TABLE `testtable` DROP COLUMN `id2`, ALGORITHM=INPLACE, LOCK=NONE;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE `testtable` DROP COLUMN `id2`, ALGORITHM=INPLACE, LOCK=NONE;", "len": 72, "last": 72, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`testtable`", "value": "testtable", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DROP", "value": "DROP", "keyword": "DROP", "type": 1, "flags": 3, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLUMN", "value": "COLUMN", "keyword": "COLUMN", "type": 1, "flags": 3, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`id2`", "value": "id2", "keyword": null, "type": 8, "flags": 2, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALGORITHM", "value": "ALGORITHM", "keyword": "ALGORITHM", "type": 1, "flags": 1, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INPLACE", "value": "INPLACE", "keyword": null, "type": 0, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK", "value": "LOCK", "keyword": "LOCK", "type": 1, "flags": 3, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NONE", "value": "NONE", "keyword": "NONE", "type": 1, "flags": 1, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 23, "idx": 23 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "testtable", "column": null, "expr": "`testtable`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "DROP", "2": "COLUMN" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "id2", "expr": "`id2`", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ALGORITHM", "equals": true, "expr": "INPLACE", "value": "INPLACE" } } }, "field": null, "partitions": null, "unknown": [] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "LOCK", "equals": true, "expr": "NONE", "value": "NONE" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 21 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterTableModifyColumn.in000066400000000000000000000001251455302707200251200ustar00rootroot00000000000000ALTER TABLE testtable MODIFY COLUMN id INT(11) FIRST, ALGORITHM=INPLACE, LOCK=SHARED;sql-parser-5.9.0/tests/data/parser/parseAlterTableModifyColumn.out000066400000000000000000000333571455302707200253360ustar00rootroot00000000000000{ "query": "ALTER TABLE testtable MODIFY COLUMN id INT(11) FIRST, ALGORITHM=INPLACE, LOCK=SHARED;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE testtable MODIFY COLUMN id INT(11) FIRST, ALGORITHM=INPLACE, LOCK=SHARED;", "len": 85, "last": 85, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "testtable", "value": "testtable", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MODIFY", "value": "MODIFY", "keyword": "MODIFY", "type": 1, "flags": 1, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLUMN", "value": "COLUMN", "keyword": "COLUMN", "type": 1, "flags": 3, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FIRST", "value": "FIRST", "keyword": "FIRST", "type": 1, "flags": 1, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALGORITHM", "value": "ALGORITHM", "keyword": "ALGORITHM", "type": 1, "flags": 1, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INPLACE", "value": "INPLACE", "keyword": null, "type": 0, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK", "value": "LOCK", "keyword": "LOCK", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SHARED", "value": "SHARED", "keyword": null, "type": 0, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 30, "idx": 30 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "testtable", "column": null, "expr": "testtable", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "MODIFY", "2": "COLUMN" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "id", "expr": "id", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" } ] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ALGORITHM", "equals": true, "expr": "INPLACE", "value": "INPLACE" } } }, "field": null, "partitions": null, "unknown": [] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "LOCK", "equals": true, "expr": "SHARED", "value": "SHARED" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 28 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterTableModifyColumnEnum1.in000066400000000000000000000001551455302707200260310ustar00rootroot00000000000000-- ENUM with a string that is a database option. ALTER TABLE `test_table` MODIFY `COL` ENUM("COLLATE") NULL; sql-parser-5.9.0/tests/data/parser/parseAlterTableModifyColumnEnum1.out000066400000000000000000000232571455302707200262420ustar00rootroot00000000000000{ "query": "-- ENUM with a string that is a database option.\nALTER TABLE `test_table` MODIFY `COL` ENUM(\"COLLATE\") NULL;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "-- ENUM with a string that is a database option.\nALTER TABLE `test_table` MODIFY `COL` ENUM(\"COLLATE\") NULL;\n", "len": 109, "last": 109, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- ENUM with a string that is a database option.", "value": "-- ENUM with a string that is a database option.", "keyword": null, "type": 4, "flags": 4, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`test_table`", "value": "test_table", "keyword": null, "type": 8, "flags": 2, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MODIFY", "value": "MODIFY", "keyword": "MODIFY", "type": 1, "flags": 1, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`COL`", "value": "COL", "keyword": null, "type": 8, "flags": 2, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENUM", "value": "ENUM", "keyword": "ENUM", "type": 1, "flags": 9, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"COLLATE\"", "value": "COLLATE", "keyword": null, "type": 7, "flags": 2, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 21, "idx": 21 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test_table", "column": null, "expr": "`test_table`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "MODIFY" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "COL", "expr": "`COL`", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 18 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterTableModifyColumnEnum2.in000066400000000000000000000001471455302707200260330ustar00rootroot00000000000000-- ENUM with a string that is a table option. ALTER TABLE `test_table` MODIFY `COL` ENUM("LOCK") NULL; sql-parser-5.9.0/tests/data/parser/parseAlterTableModifyColumnEnum2.out000066400000000000000000000232241455302707200262350ustar00rootroot00000000000000{ "query": "-- ENUM with a string that is a table option.\nALTER TABLE `test_table` MODIFY `COL` ENUM(\"LOCK\") NULL;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "-- ENUM with a string that is a table option.\nALTER TABLE `test_table` MODIFY `COL` ENUM(\"LOCK\") NULL;\n", "len": 103, "last": 103, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- ENUM with a string that is a table option.", "value": "-- ENUM with a string that is a table option.", "keyword": null, "type": 4, "flags": 4, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`test_table`", "value": "test_table", "keyword": null, "type": 8, "flags": 2, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MODIFY", "value": "MODIFY", "keyword": "MODIFY", "type": 1, "flags": 1, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`COL`", "value": "COL", "keyword": null, "type": 8, "flags": 2, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENUM", "value": "ENUM", "keyword": "ENUM", "type": 1, "flags": 9, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"LOCK\"", "value": "LOCK", "keyword": null, "type": 7, "flags": 2, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 21, "idx": 21 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test_table", "column": null, "expr": "`test_table`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "MODIFY" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "COL", "expr": "`COL`", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 18 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterTableModifyColumnEnum3.in000066400000000000000000000001461455302707200260330ustar00rootroot00000000000000-- ENUM with a string that is a statement. ALTER TABLE `test_table` MODIFY `COL` ENUM("INSERT") NULL; sql-parser-5.9.0/tests/data/parser/parseAlterTableModifyColumnEnum3.out000066400000000000000000000232201455302707200262320ustar00rootroot00000000000000{ "query": "-- ENUM with a string that is a statement.\nALTER TABLE `test_table` MODIFY `COL` ENUM(\"INSERT\") NULL;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "-- ENUM with a string that is a statement.\nALTER TABLE `test_table` MODIFY `COL` ENUM(\"INSERT\") NULL;\n", "len": 102, "last": 102, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- ENUM with a string that is a statement.", "value": "-- ENUM with a string that is a statement.", "keyword": null, "type": 4, "flags": 4, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`test_table`", "value": "test_table", "keyword": null, "type": 8, "flags": 2, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MODIFY", "value": "MODIFY", "keyword": "MODIFY", "type": 1, "flags": 1, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`COL`", "value": "COL", "keyword": null, "type": 8, "flags": 2, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENUM", "value": "ENUM", "keyword": "ENUM", "type": 1, "flags": 9, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"INSERT\"", "value": "INSERT", "keyword": null, "type": 7, "flags": 2, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 21, "idx": 21 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test_table", "column": null, "expr": "`test_table`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "MODIFY" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "COL", "expr": "`COL`", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 18 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterTablePartitionByRange1.in000066400000000000000000000011301455302707200260120ustar00rootroot00000000000000ALTER TABLE trips PARTITION BY RANGE (MONTH(trip_date)) ( PARTITION p01 VALUES LESS THAN (02), PARTITION p02 VALUES LESS THAN (03), PARTITION p03 VALUES LESS THAN (04), PARTITION p04 VALUES LESS THAN (05), PARTITION p05 VALUES LESS THAN (06), PARTITION p06 VALUES LESS THAN (07), PARTITION p07 VALUES LESS THAN (08), PARTITION p08 VALUES LESS THAN (09), PARTITION p09 VALUES LESS THAN (10), PARTITION p10 VALUES LESS THAN (11), PARTITION p11 VALUES LESS THAN (12), PARTITION p12 VALUES LESS THAN (13), PARTITION pmaxval VALUES LESS THAN MAXVALUE );sql-parser-5.9.0/tests/data/parser/parseAlterTablePartitionByRange1.out000066400000000000000000002232431455302707200262260ustar00rootroot00000000000000{ "query": "ALTER TABLE trips PARTITION BY RANGE (MONTH(trip_date))\n(\n PARTITION p01 VALUES LESS THAN (02),\n PARTITION p02 VALUES LESS THAN (03),\n PARTITION p03 VALUES LESS THAN (04),\n PARTITION p04 VALUES LESS THAN (05),\n PARTITION p05 VALUES LESS THAN (06),\n PARTITION p06 VALUES LESS THAN (07),\n PARTITION p07 VALUES LESS THAN (08),\n PARTITION p08 VALUES LESS THAN (09),\n PARTITION p09 VALUES LESS THAN (10),\n PARTITION p10 VALUES LESS THAN (11),\n PARTITION p11 VALUES LESS THAN (12),\n PARTITION p12 VALUES LESS THAN (13),\n PARTITION pmaxval VALUES LESS THAN MAXVALUE\n);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE trips PARTITION BY RANGE (MONTH(trip_date))\n(\n PARTITION p01 VALUES LESS THAN (02),\n PARTITION p02 VALUES LESS THAN (03),\n PARTITION p03 VALUES LESS THAN (04),\n PARTITION p04 VALUES LESS THAN (05),\n PARTITION p05 VALUES LESS THAN (06),\n PARTITION p06 VALUES LESS THAN (07),\n PARTITION p07 VALUES LESS THAN (08),\n PARTITION p08 VALUES LESS THAN (09),\n PARTITION p09 VALUES LESS THAN (10),\n PARTITION p10 VALUES LESS THAN (11),\n PARTITION p11 VALUES LESS THAN (12),\n PARTITION p12 VALUES LESS THAN (13),\n PARTITION pmaxval VALUES LESS THAN MAXVALUE\n);", "len": 600, "last": 600, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "trips", "value": "trips", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION BY", "value": "PARTITION BY", "keyword": "PARTITION BY", "type": 1, "flags": 7, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RANGE", "value": "RANGE", "keyword": "RANGE", "type": 1, "flags": 3, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MONTH", "value": "MONTH", "keyword": "MONTH", "type": 1, "flags": 33, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "trip_date", "value": "trip_date", "keyword": null, "type": 0, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p01", "value": "p01", "keyword": null, "type": 0, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "02", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p02", "value": "p02", "keyword": null, "type": 0, "flags": 0, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 134 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "03", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 137 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 153 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p03", "value": "p03", "keyword": null, "type": 0, "flags": 0, "position": 154 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 165 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 175 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "04", "value": 4, "keyword": null, "type": 6, "flags": 0, "position": 176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 179 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 185 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 194 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p04", "value": "p04", "keyword": null, "type": 0, "flags": 0, "position": 195 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 198 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 199 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 205 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 206 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 215 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 216 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "05", "value": 5, "keyword": null, "type": 6, "flags": 0, "position": 217 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 219 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 220 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 221 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 226 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 235 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p05", "value": "p05", "keyword": null, "type": 0, "flags": 0, "position": 236 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 239 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 240 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 246 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 247 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 256 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 257 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "06", "value": 6, "keyword": null, "type": 6, "flags": 0, "position": 258 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 260 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 261 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 262 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 267 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 276 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p06", "value": "p06", "keyword": null, "type": 0, "flags": 0, "position": 277 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 280 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 281 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 287 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 288 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 297 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 298 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "07", "value": 7, "keyword": null, "type": 6, "flags": 0, "position": 299 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 301 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 302 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 303 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 308 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 317 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p07", "value": "p07", "keyword": null, "type": 0, "flags": 0, "position": 318 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 321 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 322 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 328 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 329 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 338 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 339 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "08", "value": 8, "keyword": null, "type": 6, "flags": 0, "position": 340 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 342 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 343 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 344 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 349 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 358 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p08", "value": "p08", "keyword": null, "type": 0, "flags": 0, "position": 359 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 362 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 363 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 369 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 370 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 379 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 380 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "09", "value": 9, "keyword": null, "type": 6, "flags": 0, "position": 381 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 383 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 384 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 385 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 390 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 399 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p09", "value": "p09", "keyword": null, "type": 0, "flags": 0, "position": 400 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 403 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 404 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 410 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 411 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 420 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 421 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 422 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 424 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 425 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 426 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 431 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 440 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p10", "value": "p10", "keyword": null, "type": 0, "flags": 0, "position": 441 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 444 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 445 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 451 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 452 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 461 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 462 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 463 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 465 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 466 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 467 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 472 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 481 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p11", "value": "p11", "keyword": null, "type": 0, "flags": 0, "position": 482 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 485 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 486 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 492 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 493 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 502 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 503 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "12", "value": 12, "keyword": null, "type": 6, "flags": 0, "position": 504 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 506 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 507 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 508 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 513 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 522 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p12", "value": "p12", "keyword": null, "type": 0, "flags": 0, "position": 523 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 526 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 527 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 533 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 534 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 543 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 544 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "13", "value": 13, "keyword": null, "type": 6, "flags": 0, "position": 545 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 547 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 548 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 549 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 554 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 563 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pmaxval", "value": "pmaxval", "keyword": null, "type": 0, "flags": 0, "position": 564 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 571 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 572 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 578 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 579 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 588 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MAXVALUE", "value": "MAXVALUE", "keyword": "MAXVALUE", "type": 1, "flags": 3, "position": 589 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 597 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 598 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 599 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 188, "idx": 188 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "trips", "column": null, "expr": "trips", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "PARTITION BY" } }, "field": " RANGE (MONTH(trip_date)) ", "partitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p01", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(02)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p02", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(03)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p03", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(04)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p04", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(05)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p05", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(06)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p06", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(07)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p07", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(08)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p08", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(09)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p09", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(10)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p10", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(11)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p11", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(12)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p12", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(13)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "pmaxval", "type": "LESS THAN", "expr": "MAXVALUE", "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 186 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterTablePartitionByRange2.in000066400000000000000000000002201455302707200260120ustar00rootroot00000000000000ALTER TABLE d PARTITION BY RANGE (MONTH(departure_date)) ( PARTITION p01 VALUES LESS THAN (02) , PARTITION pmaxval VALUES LESS THAN MAXVALUE ); sql-parser-5.9.0/tests/data/parser/parseAlterTablePartitionByRange2.out000066400000000000000000000442731455302707200262330ustar00rootroot00000000000000{ "query": "ALTER TABLE d PARTITION BY RANGE (MONTH(departure_date))\n(\nPARTITION p01 VALUES LESS THAN (02) ,\nPARTITION pmaxval VALUES LESS THAN MAXVALUE\n);\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE d PARTITION BY RANGE (MONTH(departure_date))\n(\nPARTITION p01 VALUES LESS THAN (02) ,\nPARTITION pmaxval VALUES LESS THAN MAXVALUE\n);\n", "len": 144, "last": 144, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "d", "value": "d", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION BY", "value": "PARTITION BY", "keyword": "PARTITION BY", "type": 1, "flags": 7, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RANGE", "value": "RANGE", "keyword": "RANGE", "type": 1, "flags": 3, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MONTH", "value": "MONTH", "keyword": "MONTH", "type": 1, "flags": 33, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "departure_date", "value": "departure_date", "keyword": null, "type": 0, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p01", "value": "p01", "keyword": null, "type": 0, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "02", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pmaxval", "value": "pmaxval", "keyword": null, "type": 0, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MAXVALUE", "value": "MAXVALUE", "keyword": "MAXVALUE", "type": 1, "flags": 3, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 47, "idx": 47 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "d", "column": null, "expr": "d", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "PARTITION BY" } }, "field": " RANGE (MONTH(departure_date)) ", "partitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p01", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(02)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "pmaxval", "type": "LESS THAN", "expr": "MAXVALUE", "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 44 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterTableRenameIndex1.in000066400000000000000000000001701455302707200247730ustar00rootroot00000000000000ALTER TABLE `transactions` RENAME INDEX `fk_transactions_catalog_entries1_idx` TO `fk_transactions_catalog_entries2_idx`sql-parser-5.9.0/tests/data/parser/parseAlterTableRenameIndex1.out000066400000000000000000000175461455302707200252130ustar00rootroot00000000000000{ "query": "ALTER TABLE `transactions` RENAME INDEX `fk_transactions_catalog_entries1_idx` TO `fk_transactions_catalog_entries2_idx`", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE `transactions` RENAME INDEX `fk_transactions_catalog_entries1_idx` TO `fk_transactions_catalog_entries2_idx`", "len": 120, "last": 120, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`transactions`", "value": "transactions", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RENAME", "value": "RENAME", "keyword": "RENAME", "type": 1, "flags": 3, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INDEX", "value": "INDEX", "keyword": "INDEX", "type": 1, "flags": 19, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`fk_transactions_catalog_entries1_idx`", "value": "fk_transactions_catalog_entries1_idx", "keyword": null, "type": 8, "flags": 2, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`fk_transactions_catalog_entries2_idx`", "value": "fk_transactions_catalog_entries2_idx", "keyword": null, "type": 8, "flags": 2, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 16, "idx": 16 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "transactions", "column": null, "expr": "`transactions`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "RENAME", "2": { "name": "INDEX", "equals": false, "expr": "`fk_transactions_catalog_entries1_idx`", "value": "fk_transactions_catalog_entries1_idx" }, "3": { "name": "TO", "equals": false, "expr": "`fk_transactions_catalog_entries2_idx`", "value": "fk_transactions_catalog_entries2_idx" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 15 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterTableRenameIndex2.in000066400000000000000000000001271455302707200247760ustar00rootroot00000000000000ALTER TABLE testtable RENAME INDEX my_index TO my_index2, ALGORITHM=INPLACE, LOCK=NONE;sql-parser-5.9.0/tests/data/parser/parseAlterTableRenameIndex2.out000066400000000000000000000305051455302707200252020ustar00rootroot00000000000000{ "query": "ALTER TABLE testtable RENAME INDEX my_index TO my_index2, ALGORITHM=INPLACE, LOCK=NONE;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE testtable RENAME INDEX my_index TO my_index2, ALGORITHM=INPLACE, LOCK=NONE;", "len": 87, "last": 87, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "testtable", "value": "testtable", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RENAME", "value": "RENAME", "keyword": "RENAME", "type": 1, "flags": 3, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INDEX", "value": "INDEX", "keyword": "INDEX", "type": 1, "flags": 19, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_index", "value": "my_index", "keyword": null, "type": 0, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_index2", "value": "my_index2", "keyword": null, "type": 0, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALGORITHM", "value": "ALGORITHM", "keyword": "ALGORITHM", "type": 1, "flags": 1, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INPLACE", "value": "INPLACE", "keyword": null, "type": 0, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK", "value": "LOCK", "keyword": "LOCK", "type": 1, "flags": 3, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NONE", "value": "NONE", "keyword": "NONE", "type": 1, "flags": 1, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 27, "idx": 27 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "testtable", "column": null, "expr": "testtable", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "RENAME", "2": { "name": "INDEX", "equals": false, "expr": "my_index", "value": "my_index" }, "3": { "name": "TO", "equals": false, "expr": "my_index2", "value": "my_index2" } } }, "field": null, "partitions": null, "unknown": [] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ALGORITHM", "equals": true, "expr": "INPLACE", "value": "INPLACE" } } }, "field": null, "partitions": null, "unknown": [] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "LOCK", "equals": true, "expr": "NONE", "value": "NONE" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 25 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterTableSetAutoIncrementError.in000066400000000000000000000000361455302707200267570ustar00rootroot00000000000000ALTER TABLE t1 AUTO_INCREMENT sql-parser-5.9.0/tests/data/parser/parseAlterTableSetAutoIncrementError.out000066400000000000000000000123051455302707200271620ustar00rootroot00000000000000{ "query": "ALTER TABLE t1 AUTO_INCREMENT\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE t1 AUTO_INCREMENT\n", "len": 30, "last": 30, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AUTO_INCREMENT", "value": "AUTO_INCREMENT", "keyword": "AUTO_INCREMENT", "type": 1, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 9, "idx": 9 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t1", "column": null, "expr": "t1", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "AUTO_INCREMENT", "equals": true, "expr": "", "value": "" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 8 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Value/Expression for the option AUTO_INCREMENT was expected.", { "@type": "@9" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseAlterUser.in000066400000000000000000000001201455302707200224540ustar00rootroot00000000000000ALTER USER 'jeffrey'@'localhost' IDENTIFIED BY 'new_password' PASSWORD EXPIRE;sql-parser-5.9.0/tests/data/parser/parseAlterUser.out000066400000000000000000000211221455302707200226620ustar00rootroot00000000000000{ "query": "ALTER USER 'jeffrey'@'localhost'\n IDENTIFIED BY 'new_password' PASSWORD EXPIRE;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER USER 'jeffrey'@'localhost'\n IDENTIFIED BY 'new_password' PASSWORD EXPIRE;", "len": 80, "last": 80, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USER", "value": "USER", "keyword": "USER", "type": 1, "flags": 33, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'jeffrey'@'localhost'", "value": "jeffrey@localhost", "keyword": null, "type": 8, "flags": 4, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IDENTIFIED", "value": "IDENTIFIED", "keyword": "IDENTIFIED", "type": 1, "flags": 1, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BY", "value": "BY", "keyword": "BY", "type": 1, "flags": 3, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'new_password'", "value": "new_password", "keyword": null, "type": 7, "flags": 1, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PASSWORD", "value": "PASSWORD", "keyword": "PASSWORD", "type": 1, "flags": 33, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EXPIRE", "value": "EXPIRE", "keyword": "EXPIRE", "type": 1, "flags": 1, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 17, "idx": 17 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "jeffrey@localhost", "column": null, "expr": "'jeffrey'@'localhost'", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "IDENTIFIED", "4": { "name": "BY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "new_password", "expr": "'new_password' PASSWORD", "alias": null, "function": null, "subquery": null }, "value": "'new_password' PASSWORD" } } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "EXPIRE", "expr": "EXPIRE", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "USER" } }, "first": 0, "last": 15 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterUser1.in000066400000000000000000000000371455302707200225440ustar00rootroot00000000000000ALTER USER trevor REQUIRE NONE;sql-parser-5.9.0/tests/data/parser/parseAlterUser1.out000066400000000000000000000131241455302707200227460ustar00rootroot00000000000000{ "query": "ALTER USER trevor REQUIRE NONE;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER USER trevor REQUIRE NONE;", "len": 31, "last": 31, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USER", "value": "USER", "keyword": "USER", "type": 1, "flags": 33, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "trevor", "value": "trevor", "keyword": null, "type": 0, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REQUIRE", "value": "REQUIRE", "keyword": "REQUIRE", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NONE", "value": "NONE", "keyword": "NONE", "type": 1, "flags": 1, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 11, "idx": 11 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "trevor", "column": null, "expr": "trevor", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "REQUIRE", "equals": false, "expr": "NONE", "value": "NONE" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "USER" } }, "first": 0, "last": 9 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterUser10.in000066400000000000000000000001701455302707200226220ustar00rootroot00000000000000ALTER USER 'bob'@'localhost' IDENTIFIED WITH mysql_native_password USING PASSWORD('vp8LAf4#wu2V&Wi*iJWC#3KPotsHzx3u'); sql-parser-5.9.0/tests/data/parser/parseAlterUser10.out000066400000000000000000000220041455302707200230230ustar00rootroot00000000000000{ "query": "ALTER USER 'bob'@'localhost' IDENTIFIED WITH mysql_native_password USING PASSWORD('vp8LAf4#wu2V&Wi*iJWC#3KPotsHzx3u');\n\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER USER 'bob'@'localhost' IDENTIFIED WITH mysql_native_password USING PASSWORD('vp8LAf4#wu2V&Wi*iJWC#3KPotsHzx3u');\n\n", "len": 120, "last": 120, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USER", "value": "USER", "keyword": "USER", "type": 1, "flags": 33, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'bob'@'localhost'", "value": "bob@localhost", "keyword": null, "type": 8, "flags": 4, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IDENTIFIED WITH", "value": "IDENTIFIED WITH", "keyword": "IDENTIFIED WITH", "type": 1, "flags": 23, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql_native_password", "value": "mysql_native_password", "keyword": null, "type": 0, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PASSWORD", "value": "PASSWORD", "keyword": "PASSWORD", "type": 1, "flags": 33, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'vp8LAf4#wu2V&Wi*iJWC#3KPotsHzx3u'", "value": "vp8LAf4#wu2V&Wi*iJWC#3KPotsHzx3u", "keyword": null, "type": 7, "flags": 1, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 19, "idx": 19 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "bob@localhost", "column": null, "expr": "'bob'@'localhost'", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "IDENTIFIED WITH", "equals": false, "expr": "mysql_native_password", "value": "mysql_native_password" } } }, "field": null, "partitions": null, "unknown": [ { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "USER" } }, "first": 0, "last": 16 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterUser2.in000066400000000000000000000000531455302707200225430ustar00rootroot00000000000000ALTER USER 'user'@'localhost' ACCOUNT LOCK;sql-parser-5.9.0/tests/data/parser/parseAlterUser2.out000066400000000000000000000127231455302707200227530ustar00rootroot00000000000000{ "query": "ALTER USER 'user'@'localhost' ACCOUNT LOCK;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER USER 'user'@'localhost' ACCOUNT LOCK;", "len": 43, "last": 43, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USER", "value": "USER", "keyword": "USER", "type": 1, "flags": 33, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'user'@'localhost'", "value": "user@localhost", "keyword": null, "type": 8, "flags": 4, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ACCOUNT", "value": "ACCOUNT", "keyword": "ACCOUNT", "type": 1, "flags": 1, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK", "value": "LOCK", "keyword": "LOCK", "type": 1, "flags": 3, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 11, "idx": 11 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "user@localhost", "column": null, "expr": "'user'@'localhost'", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ACCOUNT", "2": "LOCK" } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "USER" } }, "first": 0, "last": 9 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterUser3.in000066400000000000000000000001041455302707200225410ustar00rootroot00000000000000ALTER USER 'testosama' REQUIRE SSL WITH MAX_CONNECTIONS_PER_HOUR 20;sql-parser-5.9.0/tests/data/parser/parseAlterUser3.out000066400000000000000000000177131455302707200227600ustar00rootroot00000000000000{ "query": "ALTER USER 'testosama' REQUIRE SSL WITH MAX_CONNECTIONS_PER_HOUR 20;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER USER 'testosama' REQUIRE SSL WITH MAX_CONNECTIONS_PER_HOUR 20;", "len": 68, "last": 68, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USER", "value": "USER", "keyword": "USER", "type": 1, "flags": 33, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'testosama'", "value": "testosama", "keyword": null, "type": 7, "flags": 1, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REQUIRE", "value": "REQUIRE", "keyword": "REQUIRE", "type": 1, "flags": 3, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SSL", "value": "SSL", "keyword": "SSL", "type": 1, "flags": 3, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MAX_CONNECTIONS_PER_HOUR", "value": "MAX_CONNECTIONS_PER_HOUR", "keyword": "MAX_CONNECTIONS_PER_HOUR", "type": 1, "flags": 1, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "20", "value": 20, "keyword": null, "type": 6, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 17, "idx": 17 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "testosama", "column": null, "expr": "'testosama'", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "REQUIRE", "equals": false, "expr": "SSL", "value": "SSL" }, "2": { "name": "WITH", "equals": false, "expr": "MAX_CONNECTIONS_PER_HOUR", "value": "MAX_CONNECTIONS_PER_HOUR" } } }, "field": null, "partitions": null, "unknown": [ { "@type": "@16" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "USER" } }, "first": 0, "last": 15 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterUser4.in000066400000000000000000000001131455302707200225420ustar00rootroot00000000000000ALTER USER 'user' WITH MAX_QUERIES_PER_HOUR 500 MAX_UPDATES_PER_HOUR 100;sql-parser-5.9.0/tests/data/parser/parseAlterUser4.out000066400000000000000000000201601455302707200227470ustar00rootroot00000000000000{ "query": "ALTER USER 'user'\n WITH MAX_QUERIES_PER_HOUR 500 MAX_UPDATES_PER_HOUR 100;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER USER 'user'\n WITH MAX_QUERIES_PER_HOUR 500 MAX_UPDATES_PER_HOUR 100;", "len": 75, "last": 75, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USER", "value": "USER", "keyword": "USER", "type": 1, "flags": 33, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'user'", "value": "user", "keyword": null, "type": 7, "flags": 1, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MAX_QUERIES_PER_HOUR", "value": "MAX_QUERIES_PER_HOUR", "keyword": "MAX_QUERIES_PER_HOUR", "type": 1, "flags": 1, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "500", "value": 500, "keyword": null, "type": 6, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MAX_UPDATES_PER_HOUR", "value": "MAX_UPDATES_PER_HOUR", "keyword": "MAX_UPDATES_PER_HOUR", "type": 1, "flags": 1, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "100", "value": 100, "keyword": null, "type": 6, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 17, "idx": 17 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "user", "column": null, "expr": "'user'", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "WITH", "equals": false, "expr": "MAX_QUERIES_PER_HOUR", "value": "MAX_QUERIES_PER_HOUR" } } }, "field": null, "partitions": null, "unknown": [ { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "USER" } }, "first": 0, "last": 15 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterUser5.in000066400000000000000000000000471455302707200225510ustar00rootroot00000000000000ALTER USER 'user' PASSWORD EXPIRE NEVERsql-parser-5.9.0/tests/data/parser/parseAlterUser5.out000066400000000000000000000145201455302707200227530ustar00rootroot00000000000000{ "query": "ALTER USER 'user' PASSWORD EXPIRE NEVER", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER USER 'user' PASSWORD EXPIRE NEVER", "len": 39, "last": 39, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USER", "value": "USER", "keyword": "USER", "type": 1, "flags": 33, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'user'", "value": "user", "keyword": null, "type": 7, "flags": 1, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PASSWORD", "value": "PASSWORD", "keyword": "PASSWORD", "type": 1, "flags": 33, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EXPIRE", "value": "EXPIRE", "keyword": "EXPIRE", "type": 1, "flags": 1, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NEVER", "value": "NEVER", "keyword": "NEVER", "type": 1, "flags": 1, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 12, "idx": 12 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "user", "column": null, "expr": "'user'", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "PASSWORD", "equals": false, "expr": "EXPIRE", "value": "EXPIRE" } } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "NEVER", "expr": "NEVER", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "USER" } }, "first": 0, "last": 11 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterUser6.in000066400000000000000000000000731455302707200225510ustar00rootroot00000000000000ALTER USER 'user' ATTRIBUTE '{"baz": "faz", "foo": "moo"}';sql-parser-5.9.0/tests/data/parser/parseAlterUser6.out000066400000000000000000000134331455302707200227560ustar00rootroot00000000000000{ "query": "ALTER USER 'user' ATTRIBUTE '{\"baz\": \"faz\", \"foo\": \"moo\"}';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER USER 'user' ATTRIBUTE '{\"baz\": \"faz\", \"foo\": \"moo\"}';", "len": 59, "last": 59, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USER", "value": "USER", "keyword": "USER", "type": 1, "flags": 33, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'user'", "value": "user", "keyword": null, "type": 7, "flags": 1, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ATTRIBUTE", "value": "ATTRIBUTE", "keyword": null, "type": 0, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'{\"baz\": \"faz\", \"foo\": \"moo\"}'", "value": "{\"baz\": \"faz\", \"foo\": \"moo\"}", "keyword": null, "type": 7, "flags": 1, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 11, "idx": 11 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "user", "column": null, "expr": "'user'", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ATTRIBUTE", "equals": false, "expr": "'{\"baz\": \"faz\", \"foo\": \"moo\"}'", "value": "{\"baz\": \"faz\", \"foo\": \"moo\"}" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "USER" } }, "first": 0, "last": 9 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterUser7.in000066400000000000000000000000631455302707200225510ustar00rootroot00000000000000ALTER USER 'user' PASSWORD EXPIRE INTERVAL 180 DAY;sql-parser-5.9.0/tests/data/parser/parseAlterUser7.out000066400000000000000000000177471455302707200227730ustar00rootroot00000000000000{ "query": "ALTER USER 'user' PASSWORD EXPIRE INTERVAL 180 DAY;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER USER 'user' PASSWORD EXPIRE INTERVAL 180 DAY;", "len": 51, "last": 51, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USER", "value": "USER", "keyword": "USER", "type": 1, "flags": 33, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'user'", "value": "user", "keyword": null, "type": 7, "flags": 1, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PASSWORD", "value": "PASSWORD", "keyword": "PASSWORD", "type": 1, "flags": 33, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EXPIRE", "value": "EXPIRE", "keyword": "EXPIRE", "type": 1, "flags": 1, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTERVAL", "value": "INTERVAL", "keyword": "INTERVAL", "type": 1, "flags": 43, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "180", "value": 180, "keyword": null, "type": 6, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DAY", "value": "DAY", "keyword": "DAY", "type": 1, "flags": 33, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 17, "idx": 17 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "user", "column": null, "expr": "'user'", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "PASSWORD", "equals": false, "expr": "EXPIRE", "value": "EXPIRE" } } }, "field": null, "partitions": null, "unknown": [ { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "USER" } }, "first": 0, "last": 15 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterUser8.in000066400000000000000000000000341455302707200225500ustar00rootroot00000000000000ALTER USER 'user' COMMENT ''sql-parser-5.9.0/tests/data/parser/parseAlterUser8.out000066400000000000000000000124171455302707200227610ustar00rootroot00000000000000{ "query": "ALTER USER 'user' COMMENT ''", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER USER 'user' COMMENT ''", "len": 28, "last": 28, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USER", "value": "USER", "keyword": "USER", "type": 1, "flags": 33, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'user'", "value": "user", "keyword": null, "type": 7, "flags": 1, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "''", "value": "", "keyword": null, "type": 7, "flags": 1, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 10 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "user", "column": null, "expr": "'user'", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "COMMENT", "equals": false, "expr": "''", "value": "" } } }, "field": null, "partitions": null, "unknown": [] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "USER" } }, "first": 0, "last": 9 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterUser9.in000066400000000000000000000001661455302707200225570ustar00rootroot00000000000000ALTER USER 'bob'@'localhost' IDENTIFIED VIA mysql_native_password USING PASSWORD('vp8LAf4#wu2V&Wi*iJWC#3KPotsHzx3u'); sql-parser-5.9.0/tests/data/parser/parseAlterUser9.out000066400000000000000000000236611455302707200227650ustar00rootroot00000000000000{ "query": "ALTER USER 'bob'@'localhost' IDENTIFIED VIA mysql_native_password USING PASSWORD('vp8LAf4#wu2V&Wi*iJWC#3KPotsHzx3u');\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER USER 'bob'@'localhost' IDENTIFIED VIA mysql_native_password USING PASSWORD('vp8LAf4#wu2V&Wi*iJWC#3KPotsHzx3u');\n", "len": 118, "last": 118, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USER", "value": "USER", "keyword": "USER", "type": 1, "flags": 33, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'bob'@'localhost'", "value": "bob@localhost", "keyword": null, "type": 8, "flags": 4, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IDENTIFIED", "value": "IDENTIFIED", "keyword": "IDENTIFIED", "type": 1, "flags": 1, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VIA", "value": "VIA", "keyword": null, "type": 0, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql_native_password", "value": "mysql_native_password", "keyword": null, "type": 0, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PASSWORD", "value": "PASSWORD", "keyword": "PASSWORD", "type": 1, "flags": 33, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'vp8LAf4#wu2V&Wi*iJWC#3KPotsHzx3u'", "value": "vp8LAf4#wu2V&Wi*iJWC#3KPotsHzx3u", "keyword": null, "type": 7, "flags": 1, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 21, "idx": 21 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "bob@localhost", "column": null, "expr": "'bob'@'localhost'", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "IDENTIFIED" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "VIA", "expr": "VIA", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "USER" } }, "first": 0, "last": 18 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAlterWithInvisible.in000066400000000000000000000001251455302707200243230ustar00rootroot00000000000000ALTER TABLE t MODIFY x INT INVISIBLE, MODIFY y INT, MODIFY z INT NOT NULL DEFAULT 4; sql-parser-5.9.0/tests/data/parser/parseAlterWithInvisible.out000066400000000000000000000405401455302707200245310ustar00rootroot00000000000000{ "query": "ALTER TABLE t MODIFY x INT INVISIBLE, MODIFY y INT, MODIFY z INT NOT NULL DEFAULT 4;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ALTER TABLE t MODIFY x INT INVISIBLE, MODIFY y INT, MODIFY z INT NOT NULL DEFAULT 4;\n", "len": 85, "last": 85, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t", "value": "t", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MODIFY", "value": "MODIFY", "keyword": "MODIFY", "type": 1, "flags": 1, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "x", "value": "x", "keyword": "X", "type": 1, "flags": 33, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INVISIBLE", "value": "INVISIBLE", "keyword": null, "type": 0, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MODIFY", "value": "MODIFY", "keyword": "MODIFY", "type": 1, "flags": 1, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "y", "value": "y", "keyword": "Y", "type": 1, "flags": 33, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MODIFY", "value": "MODIFY", "keyword": "MODIFY", "type": 1, "flags": 1, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "z", "value": "z", "keyword": null, "type": 0, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "4", "value": 4, "keyword": null, "type": 6, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 36, "idx": 36 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t", "column": null, "expr": "t", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "MODIFY" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "x", "expr": "x", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" } ] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "MODIFY" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "y", "expr": "y", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@21" } ] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "MODIFY" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "z", "expr": "z", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@28" }, { "@type": "@29" }, { "@type": "@30" }, { "@type": "@31" }, { "@type": "@32" }, { "@type": "@33" }, { "@type": "@34" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 0, "last": 33 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAnalyzeErr1.in000066400000000000000000000000321455302707200227050ustar00rootroot00000000000000ANALYZE NO_WRITE_TO_BINLOGsql-parser-5.9.0/tests/data/parser/parseAnalyzeErr1.out000066400000000000000000000053201455302707200231130ustar00rootroot00000000000000{ "query": "ANALYZE NO_WRITE_TO_BINLOG", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ANALYZE NO_WRITE_TO_BINLOG", "len": 26, "last": 26, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ANALYZE", "value": "ANALYZE", "keyword": "ANALYZE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NO_WRITE_TO_BINLOG", "value": "NO_WRITE_TO_BINLOG", "keyword": "NO_WRITE_TO_BINLOG", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 4, "idx": 4 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement", "bodyParser": null, "statementAlias": "ANALYZE", "connectionId": null, "explainedDatabase": null, "explainedTable": null, "explainedColumn": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 2 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected token.", { "@type": "@4" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseAnalyzeErr2.in000066400000000000000000000000071455302707200227100ustar00rootroot00000000000000ANALYZEsql-parser-5.9.0/tests/data/parser/parseAnalyzeErr2.out000066400000000000000000000033721455302707200231210ustar00rootroot00000000000000{ "query": "ANALYZE", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ANALYZE", "len": 7, "last": 7, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ANALYZE", "value": "ANALYZE", "keyword": "ANALYZE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 2, "idx": 2 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement", "bodyParser": null, "statementAlias": "ANALYZE", "connectionId": null, "explainedDatabase": null, "explainedTable": null, "explainedColumn": null, "options": null, "first": 0, "last": 0 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAnalyzeTable.in000066400000000000000000000000211455302707200231210ustar00rootroot00000000000000ANALYZE TABLE tblsql-parser-5.9.0/tests/data/parser/parseAnalyzeTable.out000066400000000000000000000065411455302707200233370ustar00rootroot00000000000000{ "query": "ANALYZE TABLE tbl", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ANALYZE TABLE tbl", "len": 17, "last": 17, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ANALYZE", "value": "ANALYZE", "keyword": "ANALYZE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tbl", "value": "tbl", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 6, "idx": 6 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AnalyzeStatement", "tables": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "tbl", "column": null, "expr": "tbl", "alias": null, "function": null, "subquery": null } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "TABLE" } }, "first": 0, "last": 4 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseAnalyzeTable1.in000066400000000000000000000000441455302707200232070ustar00rootroot00000000000000ANALYZE NO_WRITE_TO_BINLOG TABLE tblsql-parser-5.9.0/tests/data/parser/parseAnalyzeTable1.out000066400000000000000000000101061455302707200234100ustar00rootroot00000000000000{ "query": "ANALYZE NO_WRITE_TO_BINLOG TABLE tbl", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ANALYZE NO_WRITE_TO_BINLOG TABLE tbl", "len": 36, "last": 36, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ANALYZE", "value": "ANALYZE", "keyword": "ANALYZE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NO_WRITE_TO_BINLOG", "value": "NO_WRITE_TO_BINLOG", "keyword": "NO_WRITE_TO_BINLOG", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tbl", "value": "tbl", "keyword": null, "type": 0, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 8, "idx": 8 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AnalyzeStatement", "tables": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "tbl", "column": null, "expr": "tbl", "alias": null, "function": null, "subquery": null } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "TABLE", "2": "NO_WRITE_TO_BINLOG" } }, "first": 0, "last": 6 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseArrayErr1.in000066400000000000000000000000461455302707200223650ustar00rootroot00000000000000SELECT * FROM foo PARTITION bar, baz);sql-parser-5.9.0/tests/data/parser/parseArrayErr1.out000066400000000000000000000203531455302707200225710ustar00rootroot00000000000000{ "query": "SELECT * FROM foo PARTITION bar, baz);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM foo PARTITION bar, baz);", "len": 38, "last": 38, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bar", "value": "bar", "keyword": null, "type": 0, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "baz", "value": "baz", "keyword": null, "type": 0, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 17, "idx": 17 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "foo", "column": null, "expr": "foo", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [], "values": [] }, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 14 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "An opening bracket was expected.", { "@type": "@12" }, 0 ], [ "Unexpected token.", { "@type": "@13" }, 0 ], [ "Unexpected token.", { "@type": "@15" }, 0 ], [ "Unexpected token.", { "@type": "@16" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseArrayErr3.in000066400000000000000000000000461455302707200223670ustar00rootroot00000000000000SELECT * FROM foo PARTITION (bar, baz;sql-parser-5.9.0/tests/data/parser/parseArrayErr3.out000066400000000000000000000176721455302707200226050ustar00rootroot00000000000000{ "query": "SELECT * FROM foo PARTITION (bar, baz;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM foo PARTITION (bar, baz;", "len": 38, "last": 38, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bar", "value": "bar", "keyword": null, "type": 0, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "baz", "value": "baz", "keyword": null, "type": 0, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 17, "idx": 17 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "foo", "column": null, "expr": "foo", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "bar", "baz" ], "values": [ "bar", "baz" ] }, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 15 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "A closing bracket was expected.", { "@type": "@17" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseCall.in000066400000000000000000000000131455302707200214220ustar00rootroot00000000000000CALL foo();sql-parser-5.9.0/tests/data/parser/parseCall.out000066400000000000000000000065321455302707200216370ustar00rootroot00000000000000{ "query": "CALL foo();", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CALL foo();", "len": 11, "last": 11, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CALL", "value": "CALL", "keyword": "CALL", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 7, "idx": 7 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CallStatement", "call": { "@type": "PhpMyAdmin\\SqlParser\\Components\\FunctionCall", "name": "foo", "parameters": { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [], "values": [] } }, "options": null, "first": 0, "last": 4 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCall2.in000066400000000000000000000000251455302707200215070ustar00rootroot00000000000000CALL foo(@bar, @baz);sql-parser-5.9.0/tests/data/parser/parseCall2.out000066400000000000000000000113551455302707200217200ustar00rootroot00000000000000{ "query": "CALL foo(@bar, @baz);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CALL foo(@bar, @baz);", "len": 21, "last": 21, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CALL", "value": "CALL", "keyword": "CALL", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@bar", "value": "bar", "keyword": null, "type": 8, "flags": 1, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@baz", "value": "baz", "keyword": null, "type": 8, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 11, "idx": 11 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CallStatement", "call": { "@type": "PhpMyAdmin\\SqlParser\\Components\\FunctionCall", "name": "foo", "parameters": { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "@bar", "@baz" ], "values": [ "bar", "baz" ] } }, "options": null, "first": 0, "last": 8 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCall3.in000066400000000000000000000000111455302707200215030ustar00rootroot00000000000000CALL foo;sql-parser-5.9.0/tests/data/parser/parseCall3.out000066400000000000000000000051161455302707200217170ustar00rootroot00000000000000{ "query": "CALL foo;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CALL foo;", "len": 9, "last": 9, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CALL", "value": "CALL", "keyword": "CALL", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 5, "idx": 5 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CallStatement", "call": { "@type": "PhpMyAdmin\\SqlParser\\Components\\FunctionCall", "name": "foo", "parameters": null }, "options": null, "first": 0, "last": 2 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCall4.in000066400000000000000000000000171455302707200215120ustar00rootroot00000000000000call e();call fsql-parser-5.9.0/tests/data/parser/parseCall4.out000066400000000000000000000111611455302707200217150ustar00rootroot00000000000000{ "query": "call e();call f", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "call e();call f", "len": 15, "last": 15, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "call", "value": "CALL", "keyword": "CALL", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "e", "value": "e", "keyword": null, "type": 0, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "call", "value": "CALL", "keyword": "CALL", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "f", "value": "f", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 10 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CallStatement", "call": { "@type": "PhpMyAdmin\\SqlParser\\Components\\FunctionCall", "name": "e", "parameters": { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [], "values": [] } }, "options": null, "first": 0, "last": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CallStatement", "call": { "@type": "PhpMyAdmin\\SqlParser\\Components\\FunctionCall", "name": "f", "parameters": null }, "options": null, "first": 5, "last": 8 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCall5.in000066400000000000000000000000151455302707200215110ustar00rootroot00000000000000call e;call fsql-parser-5.9.0/tests/data/parser/parseCall5.out000066400000000000000000000075461455302707200217320ustar00rootroot00000000000000{ "query": "call e;call f", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "call e;call f", "len": 13, "last": 13, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "call", "value": "CALL", "keyword": "CALL", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "e", "value": "e", "keyword": null, "type": 0, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "call", "value": "CALL", "keyword": "CALL", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "f", "value": "f", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 8, "idx": 8 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CallStatement", "call": { "@type": "PhpMyAdmin\\SqlParser\\Components\\FunctionCall", "name": "e", "parameters": null }, "options": null, "first": 0, "last": 2 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CallStatement", "call": { "@type": "PhpMyAdmin\\SqlParser\\Components\\FunctionCall", "name": "f", "parameters": null }, "options": null, "first": 3, "last": 6 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateDatabase.in000066400000000000000000000000711455302707200234030ustar00rootroot00000000000000CREATE DATABASE IF NOT EXISTS pma DEFAULT CHARSET 'utf8';sql-parser-5.9.0/tests/data/parser/parseCreateDatabase.out000066400000000000000000000146341455302707200236160ustar00rootroot00000000000000{ "query": "CREATE DATABASE IF NOT EXISTS pma DEFAULT CHARSET 'utf8';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE DATABASE IF NOT EXISTS pma DEFAULT CHARSET 'utf8';", "len": 57, "last": 57, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DATABASE", "value": "DATABASE", "keyword": "DATABASE", "type": 1, "flags": 35, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF NOT EXISTS", "value": "IF NOT EXISTS", "keyword": "IF NOT EXISTS", "type": 1, "flags": 7, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pma", "value": "pma", "keyword": null, "type": 0, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT CHARSET", "value": "DEFAULT CHARSET", "keyword": "DEFAULT CHARSET", "type": 1, "flags": 7, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'utf8'", "value": "utf8", "keyword": null, "type": 7, "flags": 1, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 13, "idx": 13 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "pma", "table": null, "column": null, "expr": "pma", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "DEFAULT CHARSET", "equals": true, "expr": "'utf8'", "value": "utf8" } } }, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "DATABASE", "7": "IF NOT EXISTS" } }, "first": 0, "last": 10 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateDatabaseErr.in000066400000000000000000000001101455302707200240460ustar00rootroot00000000000000CREATE DATABASE IF NOT EXISTS pma ENGINE='InnoDB' DEFAULT CHARSET 'utf8'sql-parser-5.9.0/tests/data/parser/parseCreateDatabaseErr.out000066400000000000000000000163761455302707200242740ustar00rootroot00000000000000{ "query": "CREATE DATABASE IF NOT EXISTS pma ENGINE='InnoDB' DEFAULT CHARSET 'utf8'", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE DATABASE IF NOT EXISTS pma ENGINE='InnoDB' DEFAULT CHARSET 'utf8'", "len": 72, "last": 72, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DATABASE", "value": "DATABASE", "keyword": "DATABASE", "type": 1, "flags": 35, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF NOT EXISTS", "value": "IF NOT EXISTS", "keyword": "IF NOT EXISTS", "type": 1, "flags": 7, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pma", "value": "pma", "keyword": null, "type": 0, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENGINE", "value": "ENGINE", "keyword": "ENGINE", "type": 1, "flags": 1, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'InnoDB'", "value": "InnoDB", "keyword": null, "type": 7, "flags": 1, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT CHARSET", "value": "DEFAULT CHARSET", "keyword": "DEFAULT CHARSET", "type": 1, "flags": 7, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'utf8'", "value": "utf8", "keyword": null, "type": 7, "flags": 1, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 16, "idx": 17 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "pma", "table": null, "column": null, "expr": "pma", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "DATABASE", "7": "IF NOT EXISTS" } }, "first": 0, "last": 7 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unrecognized statement type.", { "@type": "@10" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseCreateFunction.in000066400000000000000000000003011455302707200234600ustar00rootroot00000000000000DELIMITER $$ CREATE FUNCTION F_TEST(uid INT) RETURNS VARCHAR BEGIN DECLARE username VARCHAR DEFAULT ""; SELECT username INTO username FROM users WHERE ID = uid; RETURN username; ENDsql-parser-5.9.0/tests/data/parser/parseCreateFunction.out000066400000000000000000000613411455302707200236740ustar00rootroot00000000000000{ "query": "DELIMITER $$\nCREATE FUNCTION F_TEST(uid INT) RETURNS VARCHAR\nBEGIN\n DECLARE username VARCHAR DEFAULT \"\";\n SELECT username INTO username FROM users WHERE ID = uid;\n RETURN username;\nEND", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELIMITER $$\nCREATE FUNCTION F_TEST(uid INT) RETURNS VARCHAR\nBEGIN\n DECLARE username VARCHAR DEFAULT \"\";\n SELECT username INTO username FROM users WHERE ID = uid;\n RETURN username;\nEND", "len": 193, "last": 193, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FUNCTION", "value": "FUNCTION", "keyword": "FUNCTION", "type": 1, "flags": 1, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "F_TEST", "value": "F_TEST", "keyword": null, "type": 0, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "uid", "value": "uid", "keyword": null, "type": 0, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RETURNS", "value": "RETURNS", "keyword": "RETURNS", "type": 1, "flags": 1, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BEGIN", "value": "BEGIN", "keyword": "BEGIN", "type": 1, "flags": 1, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DECLARE", "value": "DECLARE", "keyword": "DECLARE", "type": 1, "flags": 3, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"\"", "value": "", "keyword": null, "type": 7, "flags": 2, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "users", "value": "users", "keyword": null, "type": 0, "flags": 0, "position": 147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 153 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ID", "value": "ID", "keyword": null, "type": 0, "flags": 0, "position": 159 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 163 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "uid", "value": "uid", "keyword": null, "type": 0, "flags": 0, "position": 164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 168 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RETURN", "value": "RETURN", "keyword": "RETURN", "type": 1, "flags": 3, "position": 173 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 179 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 188 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 189 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": "END", "type": 1, "flags": 1, "position": 190 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 60, "idx": 60 }, "delimiter": "$$", "delimiterLen": 2, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "F_TEST", "column": null, "expr": "F_TEST", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "parameters": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "uid", "inOut": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } } ], "body": [ { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" }, { "@type": "@29" }, { "@type": "@30" }, { "@type": "@31" }, { "@type": "@32" }, { "@type": "@33" }, { "@type": "@34" }, { "@type": "@35" }, { "@type": "@36" }, { "@type": "@37" }, { "@type": "@38" }, { "@type": "@39" }, { "@type": "@40" }, { "@type": "@41" }, { "@type": "@42" }, { "@type": "@43" }, { "@type": "@44" }, { "@type": "@45" }, { "@type": "@46" }, { "@type": "@47" }, { "@type": "@48" }, { "@type": "@49" }, { "@type": "@50" }, { "@type": "@51" }, { "@type": "@52" }, { "@type": "@53" }, { "@type": "@54" }, { "@type": "@55" }, { "@type": "@56" }, { "@type": "@57" }, { "@type": "@58" }, { "@type": "@59" }, { "@type": "@60" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "FUNCTION" } }, "first": 4, "last": 59 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateFunctionErr1.in000066400000000000000000000002611455302707200242170ustar00rootroot00000000000000DELIMITER $$ CREATE FUNCTION F_TEST(uid INT) BEGIN DECLARE username VARCHAR DEFAULT ""; SELECT username INTO username FROM users WHERE ID = uid; RETURN username; ENDsql-parser-5.9.0/tests/data/parser/parseCreateFunctionErr1.out000066400000000000000000000562321455302707200244310ustar00rootroot00000000000000{ "query": "DELIMITER $$\nCREATE FUNCTION F_TEST(uid INT)\nBEGIN\n DECLARE username VARCHAR DEFAULT \"\";\n SELECT username INTO username FROM users WHERE ID = uid;\n RETURN username;\nEND", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELIMITER $$\nCREATE FUNCTION F_TEST(uid INT)\nBEGIN\n DECLARE username VARCHAR DEFAULT \"\";\n SELECT username INTO username FROM users WHERE ID = uid;\n RETURN username;\nEND", "len": 177, "last": 177, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FUNCTION", "value": "FUNCTION", "keyword": "FUNCTION", "type": 1, "flags": 1, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "F_TEST", "value": "F_TEST", "keyword": null, "type": 0, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "uid", "value": "uid", "keyword": null, "type": 0, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BEGIN", "value": "BEGIN", "keyword": "BEGIN", "type": 1, "flags": 1, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DECLARE", "value": "DECLARE", "keyword": "DECLARE", "type": 1, "flags": 3, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"\"", "value": "", "keyword": null, "type": 7, "flags": 2, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "users", "value": "users", "keyword": null, "type": 0, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 137 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ID", "value": "ID", "keyword": null, "type": 0, "flags": 0, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "uid", "value": "uid", "keyword": null, "type": 0, "flags": 0, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RETURN", "value": "RETURN", "keyword": "RETURN", "type": 1, "flags": 3, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 163 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 172 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 173 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": "END", "type": 1, "flags": 1, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 56, "idx": 56 }, "delimiter": "$$", "delimiterLen": 2, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "F_TEST", "column": null, "expr": "F_TEST", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "uid", "inOut": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } } ], "body": [ { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" }, { "@type": "@29" }, { "@type": "@30" }, { "@type": "@31" }, { "@type": "@32" }, { "@type": "@33" }, { "@type": "@34" }, { "@type": "@35" }, { "@type": "@36" }, { "@type": "@37" }, { "@type": "@38" }, { "@type": "@39" }, { "@type": "@40" }, { "@type": "@41" }, { "@type": "@42" }, { "@type": "@43" }, { "@type": "@44" }, { "@type": "@45" }, { "@type": "@46" }, { "@type": "@47" }, { "@type": "@48" }, { "@type": "@49" }, { "@type": "@50" }, { "@type": "@51" }, { "@type": "@52" }, { "@type": "@53" }, { "@type": "@54" }, { "@type": "@55" }, { "@type": "@56" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "FUNCTION" } }, "first": 4, "last": 55 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "A \"RETURNS\" keyword was expected.", { "@type": "@17" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseCreateFunctionErr2.in000066400000000000000000000000361455302707200242200ustar00rootroot00000000000000CREATE FUNCTION test() RETURNSsql-parser-5.9.0/tests/data/parser/parseCreateFunctionErr2.out000066400000000000000000000121461455302707200244260ustar00rootroot00000000000000{ "query": "CREATE FUNCTION test() RETURNS", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE FUNCTION test() RETURNS", "len": 30, "last": 30, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FUNCTION", "value": "FUNCTION", "keyword": "FUNCTION", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RETURNS", "value": "RETURNS", "keyword": "RETURNS", "type": 1, "flags": 1, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 12 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test", "column": null, "expr": "test", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": [], "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "FUNCTION" } }, "first": 0, "last": 11 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateFunctionErr3.in000066400000000000000000000000551455302707200242220ustar00rootroot00000000000000DELIMITER $$ CREATE FUNCTION coincide END;$$ sql-parser-5.9.0/tests/data/parser/parseCreateFunctionErr3.out000066400000000000000000000154751455302707200244370ustar00rootroot00000000000000{ "query": "DELIMITER $$\nCREATE FUNCTION coincide\nEND;$$\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELIMITER $$\nCREATE FUNCTION coincide\nEND;$$\n", "len": 45, "last": 45, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FUNCTION", "value": "FUNCTION", "keyword": "FUNCTION", "type": 1, "flags": 1, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "coincide", "value": "coincide", "keyword": null, "type": 0, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": "END", "type": 1, "flags": 1, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 15, "idx": 17 }, "delimiter": "$$", "delimiterLen": 2, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "coincide", "column": null, "expr": "coincide", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": [], "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "FUNCTION" } }, "first": 4, "last": 16 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "A \"RETURNS\" keyword was expected.", { "@type": "@12" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseCreateOrReplaceView1.in000066400000000000000000000002541455302707200244720ustar00rootroot00000000000000CREATE OR REPLACE VIEW xviewmytable AS SELECT mytable.id AS id, mytable.personid AS personid FROM mytable WHERE (mytable.birth > '1990-01-19') GROUP BY mytable.personid ;sql-parser-5.9.0/tests/data/parser/parseCreateOrReplaceView1.out000066400000000000000000000531661455302707200247050ustar00rootroot00000000000000{ "query": "CREATE OR REPLACE VIEW xviewmytable AS SELECT mytable.id AS id, mytable.personid AS personid FROM mytable WHERE (mytable.birth > '1990-01-19') GROUP BY mytable.personid ;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE OR REPLACE VIEW xviewmytable AS SELECT mytable.id AS id, mytable.personid AS personid FROM mytable WHERE (mytable.birth > '1990-01-19') GROUP BY mytable.personid ;", "len": 172, "last": 172, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OR REPLACE", "value": "OR REPLACE", "keyword": "OR REPLACE", "type": 1, "flags": 7, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VIEW", "value": "VIEW", "keyword": "VIEW", "type": 1, "flags": 1, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "xviewmytable", "value": "xviewmytable", "keyword": null, "type": 0, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mytable", "value": "mytable", "keyword": null, "type": 0, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mytable", "value": "mytable", "keyword": null, "type": 0, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "personid", "value": "personid", "keyword": null, "type": 0, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "personid", "value": "personid", "keyword": null, "type": 0, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mytable", "value": "mytable", "keyword": null, "type": 0, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mytable", "value": "mytable", "keyword": null, "type": 0, "flags": 0, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "birth", "value": "birth", "keyword": null, "type": 0, "flags": 0, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ">", "value": ">", "keyword": null, "type": 2, "flags": 2, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'1990-01-19'", "value": "1990-01-19", "keyword": null, "type": 7, "flags": 1, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "GROUP BY", "value": "GROUP BY", "keyword": "GROUP BY", "type": 1, "flags": 7, "position": 144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mytable", "value": "mytable", "keyword": null, "type": 0, "flags": 0, "position": 153 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "personid", "value": "personid", "keyword": null, "type": 0, "flags": 0, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 169 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 171 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 53, "idx": 53 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "xviewmytable", "column": null, "expr": "xviewmytable", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": null, "select": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "mytable", "column": "id", "expr": "mytable.id", "alias": "id", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "mytable", "column": "personid", "expr": "mytable.personid", "alias": "personid", "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "mytable", "column": null, "expr": "mytable", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "mytable", "birth", "1990-01-19" ], "isOperator": false, "expr": "(mytable.birth > '1990-01-19')" } ], "group": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\GroupKeyword", "type": null, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "mytable", "column": "personid", "expr": "mytable.personid", "alias": null, "function": null, "subquery": null } } ], "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 10, "last": 50 }, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "OR REPLACE", "6": "VIEW" } }, "first": 0, "last": 51 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateProcedure.in000066400000000000000000000001461455302707200236320ustar00rootroot00000000000000DELIMITER $$ CREATE PROCEDURE P_TEST(uid INT) BEGIN SELECT username FROM users WHERE ID = uid; ENDsql-parser-5.9.0/tests/data/parser/parseCreateProcedure.out000066400000000000000000000365011455302707200240370ustar00rootroot00000000000000{ "query": "DELIMITER $$\nCREATE PROCEDURE P_TEST(uid INT)\nBEGIN\n SELECT username FROM users WHERE ID = uid;\nEND", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELIMITER $$\nCREATE PROCEDURE P_TEST(uid INT)\nBEGIN\n SELECT username FROM users WHERE ID = uid;\nEND", "len": 102, "last": 102, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PROCEDURE", "value": "PROCEDURE", "keyword": "PROCEDURE", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "P_TEST", "value": "P_TEST", "keyword": null, "type": 0, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "uid", "value": "uid", "keyword": null, "type": 0, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BEGIN", "value": "BEGIN", "keyword": "BEGIN", "type": 1, "flags": 1, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "users", "value": "users", "keyword": null, "type": 0, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ID", "value": "ID", "keyword": null, "type": 0, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "uid", "value": "uid", "keyword": null, "type": 0, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": "END", "type": 1, "flags": 1, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 36, "idx": 36 }, "delimiter": "$$", "delimiterLen": 2, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "P_TEST", "column": null, "expr": "P_TEST", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "uid", "inOut": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } } ], "body": [ { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" }, { "@type": "@29" }, { "@type": "@30" }, { "@type": "@31" }, { "@type": "@32" }, { "@type": "@33" }, { "@type": "@34" }, { "@type": "@35" }, { "@type": "@36" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "PROCEDURE" } }, "first": 4, "last": 35 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateProcedure1.in000066400000000000000000000001641455302707200237130ustar00rootroot00000000000000CREATE DEFINER=`root`@`%` PROCEDURE `test2`(IN `_var` INT) NOT DETERMINISTIC NO SQL SQL SECURITY INVOKER SELECT _varsql-parser-5.9.0/tests/data/parser/parseCreateProcedure1.out000066400000000000000000000334171455302707200241230ustar00rootroot00000000000000{ "query": "CREATE DEFINER=`root`@`%` PROCEDURE `test2`(IN `_var` INT) NOT DETERMINISTIC NO SQL SQL SECURITY INVOKER SELECT _var", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE DEFINER=`root`@`%` PROCEDURE `test2`(IN `_var` INT) NOT DETERMINISTIC NO SQL SQL SECURITY INVOKER SELECT _var", "len": 116, "last": 116, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFINER", "value": "DEFINER", "keyword": "DEFINER", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`root`@`%`", "value": "root@%", "keyword": null, "type": 8, "flags": 4, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PROCEDURE", "value": "PROCEDURE", "keyword": "PROCEDURE", "type": 1, "flags": 3, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`test2`", "value": "test2", "keyword": null, "type": 8, "flags": 2, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`_var`", "value": "_var", "keyword": null, "type": 8, "flags": 2, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT", "value": "NOT", "keyword": "NOT", "type": 1, "flags": 3, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DETERMINISTIC", "value": "DETERMINISTIC", "keyword": "DETERMINISTIC", "type": 1, "flags": 3, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NO SQL", "value": "NO SQL", "keyword": "NO SQL", "type": 1, "flags": 7, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SQL SECURITY", "value": "SQL SECURITY", "keyword": "SQL SECURITY", "type": 1, "flags": 7, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INVOKER", "value": "INVOKER", "keyword": "INVOKER", "type": 1, "flags": 1, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "_var", "value": "_var", "keyword": null, "type": 0, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 31, "idx": 31 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test2", "column": null, "expr": "`test2`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "NOT", "equals": false, "expr": "DETERMINISTIC", "value": "DETERMINISTIC" }, "4": "NO SQL", "6": { "name": "SQL SECURITY", "equals": false, "expr": "INVOKER", "value": "INVOKER" } } }, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "_var", "inOut": "IN", "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } } ], "body": [ { "@type": "@29" }, { "@type": "@30" }, { "@type": "@31" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": { "name": "DEFINER", "equals": true, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "root@%", "expr": "`root`@`%`", "alias": null, "function": null, "subquery": null }, "value": "`root`@`%`" }, "6": "PROCEDURE" } }, "first": 0, "last": 30 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateProcedure2.in000066400000000000000000000001741455302707200237150ustar00rootroot00000000000000DELIMITER $$ CREATE PROCEDURE P_TEST(IN uid INT, IN unused VARCHAR) BEGIN SELECT username FROM users WHERE ID = uid; ENDsql-parser-5.9.0/tests/data/parser/parseCreateProcedure2.out000066400000000000000000000453071455302707200241250ustar00rootroot00000000000000{ "query": "DELIMITER $$\nCREATE PROCEDURE P_TEST(IN uid INT, IN unused VARCHAR)\nBEGIN\n SELECT username FROM users WHERE ID = uid;\nEND", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELIMITER $$\nCREATE PROCEDURE P_TEST(IN uid INT, IN unused VARCHAR)\nBEGIN\n SELECT username FROM users WHERE ID = uid;\nEND", "len": 124, "last": 124, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PROCEDURE", "value": "PROCEDURE", "keyword": "PROCEDURE", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "P_TEST", "value": "P_TEST", "keyword": null, "type": 0, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "uid", "value": "uid", "keyword": null, "type": 0, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "unused", "value": "unused", "keyword": null, "type": 0, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BEGIN", "value": "BEGIN", "keyword": "BEGIN", "type": 1, "flags": 1, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "users", "value": "users", "keyword": null, "type": 0, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ID", "value": "ID", "keyword": null, "type": 0, "flags": 0, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "uid", "value": "uid", "keyword": null, "type": 0, "flags": 0, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": "END", "type": 1, "flags": 1, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 45, "idx": 45 }, "delimiter": "$$", "delimiterLen": 2, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "P_TEST", "column": null, "expr": "P_TEST", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "uid", "inOut": "IN", "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "unused", "inOut": "IN", "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } } ], "body": [ { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" }, { "@type": "@29" }, { "@type": "@30" }, { "@type": "@31" }, { "@type": "@32" }, { "@type": "@33" }, { "@type": "@34" }, { "@type": "@35" }, { "@type": "@36" }, { "@type": "@37" }, { "@type": "@38" }, { "@type": "@39" }, { "@type": "@40" }, { "@type": "@41" }, { "@type": "@42" }, { "@type": "@43" }, { "@type": "@44" }, { "@type": "@45" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "PROCEDURE" } }, "first": 4, "last": 44 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateProcedure3.in000066400000000000000000000022271455302707200237170ustar00rootroot00000000000000DELIMITER $$ CREATE DEFINER=`user`@`localhost` PROCEDURE `multiDBqueryRun_V1`(IN `query` TEXT, IN `table_name_var` VARCHAR(255), IN `columns_used_var` TEXT, IN `where_text_var` TEXT, IN `separator_value_var` VARCHAR(255)) COMMENT 'Query: SingleDB → MultiDB (All DBs) + run it' NOT DETERMINISTIC MODIFIES SQL DATA SQL SECURITY INVOKER BEGIN SET @TABLE_NAME = table_name_var; SET @WHERE_TEXT = where_text_var; SET @COLUMNS_USED = columns_used_var; SET @MULTIDB_QUERY = CONCAT('SELECT "$MULTIDB" FROM `$MULTIDB`.', @TABLE_NAME, @WHERE_TEXT); -- EXECUTION -- CREATE TEMPORARY TABLE `MULTIDB_TEMP_DB_TBL_COLS` AS SELECT * FROM ( SELECT TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA NOT IN('mysql', 'test', 'tmp', 'information_schema', 'sys', 'performance_schema') AND TABLE_NAME = @TABLE_NAME AND FIND_IN_SET(COLUMN_NAME, @COLUMNS_USED) ) tbl GROUP BY TABLE_SCHEMA, TABLE_NAME; SELECT GROUP_CONCAT(REPLACE(@MULTIDB_QUERY, '$MULTIDB', CONCAT('', TABLE_SCHEMA, '')) SEPARATOR "\nUNION ALL\n") INTO @stmt_sql FROM `MULTIDB_TEMP_DB_TBL_COLS`; PREPARE stmt FROM @stmt_sql; EXECUTE stmt; DEALLOCATE PREPARE stmt; ENDsql-parser-5.9.0/tests/data/parser/parseCreateProcedure3.out000066400000000000000000003254441455302707200241310ustar00rootroot00000000000000{ "query": "DELIMITER $$\nCREATE DEFINER=`user`@`localhost` PROCEDURE `multiDBqueryRun_V1`(IN `query` TEXT, IN `table_name_var` VARCHAR(255), IN `columns_used_var` TEXT, IN `where_text_var` TEXT, IN `separator_value_var` VARCHAR(255)) COMMENT 'Query: SingleDB → MultiDB (All DBs) + run it' NOT DETERMINISTIC MODIFIES SQL DATA SQL SECURITY INVOKER BEGIN\nSET @TABLE_NAME = table_name_var;\nSET @WHERE_TEXT = where_text_var;\nSET @COLUMNS_USED = columns_used_var;\nSET @MULTIDB_QUERY = CONCAT('SELECT \"$MULTIDB\" FROM `$MULTIDB`.', @TABLE_NAME, @WHERE_TEXT);\n\n-- EXECUTION --\nCREATE TEMPORARY TABLE `MULTIDB_TEMP_DB_TBL_COLS` AS\nSELECT * FROM (\n SELECT TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME\n FROM INFORMATION_SCHEMA.COLUMNS\n WHERE\n TABLE_SCHEMA NOT IN('mysql', 'test', 'tmp', 'information_schema', 'sys', 'performance_schema') AND\n TABLE_NAME = @TABLE_NAME AND\n FIND_IN_SET(COLUMN_NAME, @COLUMNS_USED)\n) tbl\nGROUP BY\n TABLE_SCHEMA,\n TABLE_NAME;\n\nSELECT GROUP_CONCAT(REPLACE(@MULTIDB_QUERY, '$MULTIDB', CONCAT('', TABLE_SCHEMA, '')) SEPARATOR \"\\nUNION ALL\\n\")\nINTO @stmt_sql\nFROM `MULTIDB_TEMP_DB_TBL_COLS`;\n\nPREPARE stmt FROM @stmt_sql;\nEXECUTE stmt;\nDEALLOCATE PREPARE stmt;\nEND", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": { "@type": "PhpMyAdmin\\SqlParser\\UtfString", "str": "DELIMITER $$\nCREATE DEFINER=`user`@`localhost` PROCEDURE `multiDBqueryRun_V1`(IN `query` TEXT, IN `table_name_var` VARCHAR(255), IN `columns_used_var` TEXT, IN `where_text_var` TEXT, IN `separator_value_var` VARCHAR(255)) COMMENT 'Query: SingleDB → MultiDB (All DBs) + run it' NOT DETERMINISTIC MODIFIES SQL DATA SQL SECURITY INVOKER BEGIN\nSET @TABLE_NAME = table_name_var;\nSET @WHERE_TEXT = where_text_var;\nSET @COLUMNS_USED = columns_used_var;\nSET @MULTIDB_QUERY = CONCAT('SELECT \"$MULTIDB\" FROM `$MULTIDB`.', @TABLE_NAME, @WHERE_TEXT);\n\n-- EXECUTION --\nCREATE TEMPORARY TABLE `MULTIDB_TEMP_DB_TBL_COLS` AS\nSELECT * FROM (\n SELECT TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME\n FROM INFORMATION_SCHEMA.COLUMNS\n WHERE\n TABLE_SCHEMA NOT IN('mysql', 'test', 'tmp', 'information_schema', 'sys', 'performance_schema') AND\n TABLE_NAME = @TABLE_NAME AND\n FIND_IN_SET(COLUMN_NAME, @COLUMNS_USED)\n) tbl\nGROUP BY\n TABLE_SCHEMA,\n TABLE_NAME;\n\nSELECT GROUP_CONCAT(REPLACE(@MULTIDB_QUERY, '$MULTIDB', CONCAT('', TABLE_SCHEMA, '')) SEPARATOR \"\\nUNION ALL\\n\")\nINTO @stmt_sql\nFROM `MULTIDB_TEMP_DB_TBL_COLS`;\n\nPREPARE stmt FROM @stmt_sql;\nEXECUTE stmt;\nDEALLOCATE PREPARE stmt;\nEND", "byteIdx": 1174, "charIdx": 1172, "byteLen": 1175, "charLen": 1173 }, "len": 1173, "last": 1173, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFINER", "value": "DEFINER", "keyword": "DEFINER", "type": 1, "flags": 1, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`user`@`localhost`", "value": "user@localhost", "keyword": null, "type": 8, "flags": 4, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PROCEDURE", "value": "PROCEDURE", "keyword": "PROCEDURE", "type": 1, "flags": 3, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`multiDBqueryRun_V1`", "value": "multiDBqueryRun_V1", "keyword": null, "type": 8, "flags": 2, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`query`", "value": "query", "keyword": null, "type": 8, "flags": 2, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TEXT", "value": "TEXT", "keyword": "TEXT", "type": 1, "flags": 9, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`table_name_var`", "value": "table_name_var", "keyword": null, "type": 8, "flags": 2, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "255", "value": 255, "keyword": null, "type": 6, "flags": 0, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`columns_used_var`", "value": "columns_used_var", "keyword": null, "type": 8, "flags": 2, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 150 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TEXT", "value": "TEXT", "keyword": "TEXT", "type": 1, "flags": 9, "position": 151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 159 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`where_text_var`", "value": "where_text_var", "keyword": null, "type": 8, "flags": 2, "position": 160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TEXT", "value": "TEXT", "keyword": "TEXT", "type": 1, "flags": 9, "position": 177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 181 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 182 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 183 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 185 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`separator_value_var`", "value": "separator_value_var", "keyword": null, "type": 8, "flags": 2, "position": 186 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 207 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 208 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 215 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "255", "value": 255, "keyword": null, "type": 6, "flags": 0, "position": 216 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 219 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 220 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 221 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 222 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 229 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Query: SingleDB → MultiDB (All DBs) + run it'", "value": "Query: SingleDB → MultiDB (All DBs) + run it", "keyword": null, "type": 7, "flags": 1, "position": 230 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 276 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT", "value": "NOT", "keyword": "NOT", "type": 1, "flags": 3, "position": 277 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 280 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DETERMINISTIC", "value": "DETERMINISTIC", "keyword": "DETERMINISTIC", "type": 1, "flags": 3, "position": 281 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 294 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MODIFIES SQL DATA", "value": "MODIFIES SQL DATA", "keyword": "MODIFIES SQL DATA", "type": 1, "flags": 7, "position": 295 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 312 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SQL SECURITY", "value": "SQL SECURITY", "keyword": "SQL SECURITY", "type": 1, "flags": 7, "position": 313 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 325 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INVOKER", "value": "INVOKER", "keyword": "INVOKER", "type": 1, "flags": 1, "position": 326 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 333 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BEGIN", "value": "BEGIN", "keyword": "BEGIN", "type": 1, "flags": 1, "position": 334 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 339 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 340 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 343 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@TABLE_NAME", "value": "TABLE_NAME", "keyword": null, "type": 8, "flags": 1, "position": 344 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 355 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 356 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 357 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table_name_var", "value": "table_name_var", "keyword": null, "type": 0, "flags": 0, "position": 358 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 372 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 373 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 374 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 377 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@WHERE_TEXT", "value": "WHERE_TEXT", "keyword": null, "type": 8, "flags": 1, "position": 378 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 389 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 390 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 391 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "where_text_var", "value": "where_text_var", "keyword": null, "type": 0, "flags": 0, "position": 392 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 406 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 407 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 408 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 411 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@COLUMNS_USED", "value": "COLUMNS_USED", "keyword": null, "type": 8, "flags": 1, "position": 412 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 425 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 426 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 427 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "columns_used_var", "value": "columns_used_var", "keyword": null, "type": 0, "flags": 0, "position": 428 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 444 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 445 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 446 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 449 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@MULTIDB_QUERY", "value": "MULTIDB_QUERY", "keyword": null, "type": 8, "flags": 1, "position": 450 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 464 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 465 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 466 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CONCAT", "value": "CONCAT", "keyword": "CONCAT", "type": 1, "flags": 33, "position": 467 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 473 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'SELECT \"$MULTIDB\" FROM `$MULTIDB`.'", "value": "SELECT \"$MULTIDB\" FROM `$MULTIDB`.", "keyword": null, "type": 7, "flags": 1, "position": 474 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 510 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 511 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@TABLE_NAME", "value": "TABLE_NAME", "keyword": null, "type": 8, "flags": 1, "position": 512 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 523 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 524 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@WHERE_TEXT", "value": "WHERE_TEXT", "keyword": null, "type": 8, "flags": 1, "position": 525 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 536 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 537 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 538 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- EXECUTION --", "value": "-- EXECUTION --", "keyword": null, "type": 4, "flags": 4, "position": 540 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 555 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 556 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 562 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TEMPORARY", "value": "TEMPORARY", "keyword": "TEMPORARY", "type": 1, "flags": 1, "position": 563 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 572 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 573 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 578 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`MULTIDB_TEMP_DB_TBL_COLS`", "value": "MULTIDB_TEMP_DB_TBL_COLS", "keyword": null, "type": 8, "flags": 2, "position": 579 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 605 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 606 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 608 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 609 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 615 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 616 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 617 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 618 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 622 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 623 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 624 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 627 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 633 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE_SCHEMA", "value": "TABLE_SCHEMA", "keyword": null, "type": 0, "flags": 0, "position": 634 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 646 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 647 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE_NAME", "value": "TABLE_NAME", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 648 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 658 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 659 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLUMN_NAME", "value": "COLUMN_NAME", "keyword": "COLUMN_NAME", "type": 1, "flags": 1, "position": 660 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 671 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 674 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 678 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INFORMATION_SCHEMA", "value": "INFORMATION_SCHEMA", "keyword": null, "type": 0, "flags": 0, "position": 679 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 697 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLUMNS", "value": "COLUMNS", "keyword": "COLUMNS", "type": 0, "flags": 0, "position": 698 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 705 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 708 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 713 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE_SCHEMA", "value": "TABLE_SCHEMA", "keyword": null, "type": 0, "flags": 0, "position": 718 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 730 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT IN", "value": "NOT IN", "keyword": "NOT IN", "type": 1, "flags": 39, "position": 731 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 737 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'mysql'", "value": "mysql", "keyword": null, "type": 7, "flags": 1, "position": 738 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 745 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 746 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'test'", "value": "test", "keyword": null, "type": 7, "flags": 1, "position": 747 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 753 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 754 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'tmp'", "value": "tmp", "keyword": null, "type": 7, "flags": 1, "position": 755 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 760 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 761 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'information_schema'", "value": "information_schema", "keyword": null, "type": 7, "flags": 1, "position": 762 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 782 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 783 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'sys'", "value": "sys", "keyword": null, "type": 7, "flags": 1, "position": 784 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 789 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 790 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'performance_schema'", "value": "performance_schema", "keyword": null, "type": 7, "flags": 1, "position": 791 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 811 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 812 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 813 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 816 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE_NAME", "value": "TABLE_NAME", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 821 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 831 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 832 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 833 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@TABLE_NAME", "value": "TABLE_NAME", "keyword": null, "type": 8, "flags": 1, "position": 834 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 845 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 846 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 849 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FIND_IN_SET", "value": "FIND_IN_SET", "keyword": "FIND_IN_SET", "type": 1, "flags": 33, "position": 854 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 865 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLUMN_NAME", "value": "COLUMN_NAME", "keyword": "COLUMN_NAME", "type": 1, "flags": 1, "position": 866 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 877 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 878 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@COLUMNS_USED", "value": "COLUMNS_USED", "keyword": null, "type": 8, "flags": 1, "position": 879 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 892 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 893 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 894 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 895 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tbl", "value": "tbl", "keyword": null, "type": 0, "flags": 0, "position": 896 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 899 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "GROUP BY", "value": "GROUP BY", "keyword": "GROUP BY", "type": 1, "flags": 7, "position": 900 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 908 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE_SCHEMA", "value": "TABLE_SCHEMA", "keyword": null, "type": 0, "flags": 0, "position": 911 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 923 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 924 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE_NAME", "value": "TABLE_NAME", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 927 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 937 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 938 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 940 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 946 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "GROUP_CONCAT", "value": "GROUP_CONCAT", "keyword": "GROUP_CONCAT", "type": 1, "flags": 33, "position": 947 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 959 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REPLACE", "value": "REPLACE", "keyword": "REPLACE", "type": 1, "flags": 35, "position": 960 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 967 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@MULTIDB_QUERY", "value": "MULTIDB_QUERY", "keyword": null, "type": 8, "flags": 1, "position": 968 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 982 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 983 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'$MULTIDB'", "value": "$MULTIDB", "keyword": null, "type": 7, "flags": 1, "position": 984 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 994 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 995 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CONCAT", "value": "CONCAT", "keyword": "CONCAT", "type": 1, "flags": 33, "position": 996 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1002 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "''", "value": "", "keyword": null, "type": 7, "flags": 1, "position": 1003 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1005 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1006 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE_SCHEMA", "value": "TABLE_SCHEMA", "keyword": null, "type": 0, "flags": 0, "position": 1007 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1019 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1020 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "''", "value": "", "keyword": null, "type": 7, "flags": 1, "position": 1021 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1023 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1024 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1025 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SEPARATOR", "value": "SEPARATOR", "keyword": "SEPARATOR", "type": 1, "flags": 3, "position": 1026 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1035 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"\\nUNION ALL\\n\"", "value": "\nUNION ALL\n", "keyword": null, "type": 7, "flags": 2, "position": 1036 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1051 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1052 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 1053 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1057 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@stmt_sql", "value": "stmt_sql", "keyword": null, "type": 8, "flags": 1, "position": 1058 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1067 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 1068 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1072 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`MULTIDB_TEMP_DB_TBL_COLS`", "value": "MULTIDB_TEMP_DB_TBL_COLS", "keyword": null, "type": 8, "flags": 2, "position": 1073 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 1099 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PREPARE", "value": "PREPARE", "keyword": "PREPARE", "type": 1, "flags": 1, "position": 1102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "stmt", "value": "stmt", "keyword": null, "type": 0, "flags": 0, "position": 1110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 1115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@stmt_sql", "value": "stmt_sql", "keyword": null, "type": 8, "flags": 1, "position": 1120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 1129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EXECUTE", "value": "EXECUTE", "keyword": "EXECUTE", "type": 1, "flags": 1, "position": 1131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "stmt", "value": "stmt", "keyword": null, "type": 0, "flags": 0, "position": 1139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 1143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEALLOCATE", "value": "DEALLOCATE", "keyword": "DEALLOCATE", "type": 1, "flags": 1, "position": 1145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PREPARE", "value": "PREPARE", "keyword": "PREPARE", "type": 1, "flags": 1, "position": 1156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1163 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "stmt", "value": "stmt", "keyword": null, "type": 0, "flags": 0, "position": 1164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 1168 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1169 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": "END", "type": 1, "flags": 1, "position": 1170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 267, "idx": 267 }, "delimiter": "$$", "delimiterLen": 2, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@2" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "multiDBqueryRun_V1", "column": null, "expr": "`multiDBqueryRun_V1`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "NOT", "equals": false, "expr": "DETERMINISTIC", "value": "DETERMINISTIC" }, "4": "MODIFIES SQL DATA", "6": { "name": "SQL SECURITY", "equals": false, "expr": "INVOKER", "value": "INVOKER" }, "8": { "name": "COMMENT", "equals": false, "expr": "'Query: SingleDB → MultiDB (All DBs) + run it'", "value": "Query: SingleDB → MultiDB (All DBs) + run it" } } }, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "query", "inOut": "IN", "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "TEXT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "table_name_var", "inOut": "IN", "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "255" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "columns_used_var", "inOut": "IN", "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "TEXT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "where_text_var", "inOut": "IN", "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "TEXT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "separator_value_var", "inOut": "IN", "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "255" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } } ], "body": [ { "@type": "@72" }, { "@type": "@73" }, { "@type": "@74" }, { "@type": "@75" }, { "@type": "@76" }, { "@type": "@77" }, { "@type": "@78" }, { "@type": "@79" }, { "@type": "@80" }, { "@type": "@81" }, { "@type": "@82" }, { "@type": "@83" }, { "@type": "@84" }, { "@type": "@85" }, { "@type": "@86" }, { "@type": "@87" }, { "@type": "@88" }, { "@type": "@89" }, { "@type": "@90" }, { "@type": "@91" }, { "@type": "@92" }, { "@type": "@93" }, { "@type": "@94" }, { "@type": "@95" }, { "@type": "@96" }, { "@type": "@97" }, { "@type": "@98" }, { "@type": "@99" }, { "@type": "@100" }, { "@type": "@101" }, { "@type": "@102" }, { "@type": "@103" }, { "@type": "@104" }, { "@type": "@105" }, { "@type": "@106" }, { "@type": "@107" }, { "@type": "@108" }, { "@type": "@109" }, { "@type": "@110" }, { "@type": "@111" }, { "@type": "@112" }, { "@type": "@113" }, { "@type": "@114" }, { "@type": "@115" }, { "@type": "@116" }, { "@type": "@117" }, { "@type": "@118" }, { "@type": "@119" }, { "@type": "@120" }, { "@type": "@121" }, { "@type": "@122" }, { "@type": "@123" }, { "@type": "@124" }, { "@type": "@125" }, { "@type": "@126" }, { "@type": "@127" }, { "@type": "@128" }, { "@type": "@129" }, { "@type": "@130" }, { "@type": "@131" }, { "@type": "@132" }, { "@type": "@133" }, { "@type": "@134" }, { "@type": "@135" }, { "@type": "@136" }, { "@type": "@137" }, { "@type": "@138" }, { "@type": "@139" }, { "@type": "@140" }, { "@type": "@141" }, { "@type": "@142" }, { "@type": "@143" }, { "@type": "@144" }, { "@type": "@145" }, { "@type": "@146" }, { "@type": "@147" }, { "@type": "@148" }, { "@type": "@149" }, { "@type": "@150" }, { "@type": "@151" }, { "@type": "@152" }, { "@type": "@153" }, { "@type": "@154" }, { "@type": "@155" }, { "@type": "@156" }, { "@type": "@157" }, { "@type": "@158" }, { "@type": "@159" }, { "@type": "@160" }, { "@type": "@161" }, { "@type": "@162" }, { "@type": "@163" }, { "@type": "@164" }, { "@type": "@165" }, { "@type": "@166" }, { "@type": "@167" }, { "@type": "@168" }, { "@type": "@169" }, { "@type": "@170" }, { "@type": "@171" }, { "@type": "@172" }, { "@type": "@173" }, { "@type": "@174" }, { "@type": "@175" }, { "@type": "@176" }, { "@type": "@177" }, { "@type": "@178" }, { "@type": "@179" }, { "@type": "@180" }, { "@type": "@181" }, { "@type": "@182" }, { "@type": "@183" }, { "@type": "@184" }, { "@type": "@185" }, { "@type": "@186" }, { "@type": "@187" }, { "@type": "@188" }, { "@type": "@189" }, { "@type": "@190" }, { "@type": "@191" }, { "@type": "@192" }, { "@type": "@193" }, { "@type": "@194" }, { "@type": "@195" }, { "@type": "@196" }, { "@type": "@197" }, { "@type": "@198" }, { "@type": "@199" }, { "@type": "@200" }, { "@type": "@201" }, { "@type": "@202" }, { "@type": "@203" }, { "@type": "@204" }, { "@type": "@205" }, { "@type": "@206" }, { "@type": "@207" }, { "@type": "@208" }, { "@type": "@209" }, { "@type": "@210" }, { "@type": "@211" }, { "@type": "@212" }, { "@type": "@213" }, { "@type": "@214" }, { "@type": "@215" }, { "@type": "@216" }, { "@type": "@217" }, { "@type": "@218" }, { "@type": "@219" }, { "@type": "@220" }, { "@type": "@221" }, { "@type": "@222" }, { "@type": "@223" }, { "@type": "@224" }, { "@type": "@225" }, { "@type": "@226" }, { "@type": "@227" }, { "@type": "@228" }, { "@type": "@229" }, { "@type": "@230" }, { "@type": "@231" }, { "@type": "@232" }, { "@type": "@233" }, { "@type": "@234" }, { "@type": "@235" }, { "@type": "@236" }, { "@type": "@237" }, { "@type": "@238" }, { "@type": "@239" }, { "@type": "@240" }, { "@type": "@241" }, { "@type": "@242" }, { "@type": "@243" }, { "@type": "@244" }, { "@type": "@245" }, { "@type": "@246" }, { "@type": "@247" }, { "@type": "@248" }, { "@type": "@249" }, { "@type": "@250" }, { "@type": "@251" }, { "@type": "@252" }, { "@type": "@253" }, { "@type": "@254" }, { "@type": "@255" }, { "@type": "@256" }, { "@type": "@257" }, { "@type": "@258" }, { "@type": "@259" }, { "@type": "@260" }, { "@type": "@261" }, { "@type": "@262" }, { "@type": "@263" }, { "@type": "@264" }, { "@type": "@265" }, { "@type": "@266" }, { "@type": "@267" }, { "@type": "@268" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": { "name": "DEFINER", "equals": true, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "user@localhost", "expr": "`user`@`localhost`", "alias": null, "function": null, "subquery": null }, "value": "`user`@`localhost`" }, "6": "PROCEDURE" } }, "first": 4, "last": 266 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateProcedure4.in000066400000000000000000000060151455302707200237170ustar00rootroot00000000000000DELIMITER $$ CREATE DEFINER=`user`@`localhost` PROCEDURE `multiDBqueryRun_V12`(IN `query` TEXT, IN `table_name_var` VARCHAR(255), IN `columns_used_var` TEXT, IN `where_text_var` TEXT, IN `separator_value_var` VARCHAR(255)) COMMENT 'Query: SingleDB → MultiDB (All DBs) + run it' NOT DETERMINISTIC MODIFIES SQL DATA SQL SECURITY INVOKER BEGIN SET @TABLE_NAME = table_name_var; SET @WHERE_TEXT = where_text_var; SET @COLUMNS_USED = columns_used_var; SET @MULTIDB_QUERY = CONCAT('SELECT "$MULTIDB" FROM `$MULTIDB`.', @TABLE_NAME, @WHERE_TEXT); -- EXECUTION -- CREATE TEMPORARY TABLE `MULTIDB_TEMP_DB_TBL_COLS` AS SELECT * FROM ( SELECT TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA NOT IN('mysql', 'test', 'tmp', 'information_schema', 'sys', 'performance_schema') AND TABLE_NAME = @TABLE_NAME AND FIND_IN_SET(COLUMN_NAME, @COLUMNS_USED) ) tbl GROUP BY TABLE_SCHEMA, TABLE_NAME; SELECT GROUP_CONCAT(REPLACE(@MULTIDB_QUERY, '$MULTIDB', CONCAT('', TABLE_SCHEMA, '')) SEPARATOR "\nUNION ALL\n") INTO @stmt_sql FROM `MULTIDB_TEMP_DB_TBL_COLS`; PREPARE stmt FROM @stmt_sql; EXECUTE stmt; DEALLOCATE PREPARE stmt; END$$ -- -- Functions -- DELIMITER $$ CREATE DEFINER=`root`@`localhost` FUNCTION `attrParentShiftIds` (`parent_id` TEXT, `option_id_shift` INT, `option_value_id_shift` INT) RETURNS TEXT CHARSET utf8mb4 COLLATE utf8mb4_unicode_520_ci DETERMINISTIC READS SQL DATA SQL SECURITY INVOKER BEGIN DECLARE i INT UNSIGNED DEFAULT 0; DECLARE pair_count INT UNSIGNED; DECLARE result TEXT DEFAULT ''; DECLARE pair VARCHAR(255) DEFAULT ''; DECLARE oid INT DEFAULT ''; DECLARE vid INT DEFAULT ''; SET pair_count = substrCount(parent_id, ',') + 1; WHILE i < pair_count DO SET result = CONCAT(result, IF(i <= 0, '', ',')); SET pair = split(parent_id, ',', i + 1); SET oid = split(pair, '-', 1) + option_id_shift; SET vid = split(pair, '-', 2) + option_value_id_shift; SET pair = CONCAT(oid, '-', vid); SET result = CONCAT(result, pair); SET i = i + 1; END WHILE; RETURN result; END$$ DELIMITER $$ CREATE DEFINER=`user`@`localhost` FUNCTION `split` (`string` TEXT, `delim` TEXT, `n` INT) RETURNS TEXT CHARSET utf8mb4 COLLATE utf8mb4_unicode_520_ci DETERMINISTIC SQL SECURITY INVOKER RETURN IF( (LENGTH(string) - LENGTH(REPLACE(string, delim, ''))) / LENGTH(delim) < n - 1, NULL, SUBSTRING_INDEX(SUBSTRING_INDEX(string, delim, n), delim, -1) )$$ DELIMITER $$ CREATE DEFINER=`root`@`localhost` FUNCTION `substrCount` (`s` VARCHAR(255), `ss` VARCHAR(255)) RETURNS TINYINT(3) UNSIGNED DETERMINISTIC READS SQL DATA SQL SECURITY INVOKER BEGIN DECLARE COUNT TINYINT(3) UNSIGNED; DECLARE OFFSET_I TINYINT(3) UNSIGNED; DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET s = NULL; SET COUNT = 0; SET OFFSET_I = 1; REPEAT IF NOT ISNULL(s) AND OFFSET_I > 0 THEN SET OFFSET_I = LOCATE(ss, s, OFFSET_I); IF OFFSET_I > 0 THEN SET COUNT = COUNT + 1; SET OFFSET_I = OFFSET_I + 1; END IF; END IF; UNTIL ISNULL(s) OR OFFSET_I = 0 END REPEAT; RETURN COUNT; END$$ DELIMITER ; sql-parser-5.9.0/tests/data/parser/parseCreateProcedure4.out000066400000000000000000013312241455302707200241240ustar00rootroot00000000000000{ "query": "DELIMITER $$\nCREATE DEFINER=`user`@`localhost` PROCEDURE `multiDBqueryRun_V12`(IN `query` TEXT, IN `table_name_var` VARCHAR(255), IN `columns_used_var` TEXT, IN `where_text_var` TEXT, IN `separator_value_var` VARCHAR(255)) COMMENT 'Query: SingleDB → MultiDB (All DBs) + run it' NOT DETERMINISTIC MODIFIES SQL DATA SQL SECURITY INVOKER BEGIN\nSET @TABLE_NAME = table_name_var;\nSET @WHERE_TEXT = where_text_var;\nSET @COLUMNS_USED = columns_used_var;\nSET @MULTIDB_QUERY = CONCAT('SELECT \"$MULTIDB\" FROM `$MULTIDB`.', @TABLE_NAME, @WHERE_TEXT);\n\n-- EXECUTION --\nCREATE TEMPORARY TABLE `MULTIDB_TEMP_DB_TBL_COLS` AS\nSELECT * FROM (\n SELECT TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME\n FROM INFORMATION_SCHEMA.COLUMNS\n WHERE\n TABLE_SCHEMA NOT IN('mysql', 'test', 'tmp', 'information_schema', 'sys', 'performance_schema') AND\n TABLE_NAME = @TABLE_NAME AND\n FIND_IN_SET(COLUMN_NAME, @COLUMNS_USED)\n) tbl\nGROUP BY\n TABLE_SCHEMA,\n TABLE_NAME;\n\nSELECT GROUP_CONCAT(REPLACE(@MULTIDB_QUERY, '$MULTIDB', CONCAT('', TABLE_SCHEMA, '')) SEPARATOR \"\\nUNION ALL\\n\")\nINTO @stmt_sql\nFROM `MULTIDB_TEMP_DB_TBL_COLS`;\n\nPREPARE stmt FROM @stmt_sql;\nEXECUTE stmt;\nDEALLOCATE PREPARE stmt;\nEND$$\n\n--\n-- Functions\n--\nDELIMITER $$\nCREATE DEFINER=`root`@`localhost` FUNCTION `attrParentShiftIds` (`parent_id` TEXT, `option_id_shift` INT, `option_value_id_shift` INT) RETURNS TEXT CHARSET utf8mb4 COLLATE utf8mb4_unicode_520_ci DETERMINISTIC READS SQL DATA SQL SECURITY INVOKER BEGIN\n DECLARE i INT UNSIGNED DEFAULT 0;\n DECLARE pair_count INT UNSIGNED;\n DECLARE result TEXT DEFAULT '';\n\n DECLARE pair VARCHAR(255) DEFAULT '';\n DECLARE oid INT DEFAULT '';\n DECLARE vid INT DEFAULT '';\n\n SET pair_count = substrCount(parent_id, ',') + 1;\n\n WHILE i < pair_count DO\n SET result = CONCAT(result, IF(i <= 0, '', ','));\n\n SET pair = split(parent_id, ',', i + 1);\n\n SET oid = split(pair, '-', 1) + option_id_shift;\n SET vid = split(pair, '-', 2) + option_value_id_shift;\n\n SET pair = CONCAT(oid, '-', vid);\n SET result = CONCAT(result, pair);\n\n SET i = i + 1;\n END WHILE;\n\n RETURN result;\nEND$$\n\nDELIMITER $$\nCREATE DEFINER=`user`@`localhost` FUNCTION `split` (`string` TEXT, `delim` TEXT, `n` INT) RETURNS TEXT CHARSET utf8mb4 COLLATE utf8mb4_unicode_520_ci DETERMINISTIC SQL SECURITY INVOKER RETURN IF(\n (LENGTH(string) - LENGTH(REPLACE(string, delim, ''))) / LENGTH(delim) < n - 1,\n NULL,\n SUBSTRING_INDEX(SUBSTRING_INDEX(string, delim, n), delim, -1)\n)$$\n\nDELIMITER $$\nCREATE DEFINER=`root`@`localhost` FUNCTION `substrCount` (`s` VARCHAR(255), `ss` VARCHAR(255)) RETURNS TINYINT(3) UNSIGNED DETERMINISTIC READS SQL DATA SQL SECURITY INVOKER BEGIN\nDECLARE COUNT TINYINT(3) UNSIGNED;\nDECLARE OFFSET_I TINYINT(3) UNSIGNED;\nDECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET s = NULL;\n\nSET COUNT = 0;\nSET OFFSET_I = 1;\n\nREPEAT\nIF NOT ISNULL(s) AND OFFSET_I > 0 THEN\nSET OFFSET_I = LOCATE(ss, s, OFFSET_I);\nIF OFFSET_I > 0 THEN\nSET COUNT = COUNT + 1;\nSET OFFSET_I = OFFSET_I + 1;\nEND IF;\nEND IF;\nUNTIL ISNULL(s) OR OFFSET_I = 0 END REPEAT;\n\nRETURN COUNT;\nEND$$\n\nDELIMITER ;\n\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": { "@type": "PhpMyAdmin\\SqlParser\\UtfString", "str": "DELIMITER $$\nCREATE DEFINER=`user`@`localhost` PROCEDURE `multiDBqueryRun_V12`(IN `query` TEXT, IN `table_name_var` VARCHAR(255), IN `columns_used_var` TEXT, IN `where_text_var` TEXT, IN `separator_value_var` VARCHAR(255)) COMMENT 'Query: SingleDB → MultiDB (All DBs) + run it' NOT DETERMINISTIC MODIFIES SQL DATA SQL SECURITY INVOKER BEGIN\nSET @TABLE_NAME = table_name_var;\nSET @WHERE_TEXT = where_text_var;\nSET @COLUMNS_USED = columns_used_var;\nSET @MULTIDB_QUERY = CONCAT('SELECT \"$MULTIDB\" FROM `$MULTIDB`.', @TABLE_NAME, @WHERE_TEXT);\n\n-- EXECUTION --\nCREATE TEMPORARY TABLE `MULTIDB_TEMP_DB_TBL_COLS` AS\nSELECT * FROM (\n SELECT TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME\n FROM INFORMATION_SCHEMA.COLUMNS\n WHERE\n TABLE_SCHEMA NOT IN('mysql', 'test', 'tmp', 'information_schema', 'sys', 'performance_schema') AND\n TABLE_NAME = @TABLE_NAME AND\n FIND_IN_SET(COLUMN_NAME, @COLUMNS_USED)\n) tbl\nGROUP BY\n TABLE_SCHEMA,\n TABLE_NAME;\n\nSELECT GROUP_CONCAT(REPLACE(@MULTIDB_QUERY, '$MULTIDB', CONCAT('', TABLE_SCHEMA, '')) SEPARATOR \"\\nUNION ALL\\n\")\nINTO @stmt_sql\nFROM `MULTIDB_TEMP_DB_TBL_COLS`;\n\nPREPARE stmt FROM @stmt_sql;\nEXECUTE stmt;\nDEALLOCATE PREPARE stmt;\nEND$$\n\n--\n-- Functions\n--\nDELIMITER $$\nCREATE DEFINER=`root`@`localhost` FUNCTION `attrParentShiftIds` (`parent_id` TEXT, `option_id_shift` INT, `option_value_id_shift` INT) RETURNS TEXT CHARSET utf8mb4 COLLATE utf8mb4_unicode_520_ci DETERMINISTIC READS SQL DATA SQL SECURITY INVOKER BEGIN\n DECLARE i INT UNSIGNED DEFAULT 0;\n DECLARE pair_count INT UNSIGNED;\n DECLARE result TEXT DEFAULT '';\n\n DECLARE pair VARCHAR(255) DEFAULT '';\n DECLARE oid INT DEFAULT '';\n DECLARE vid INT DEFAULT '';\n\n SET pair_count = substrCount(parent_id, ',') + 1;\n\n WHILE i < pair_count DO\n SET result = CONCAT(result, IF(i <= 0, '', ','));\n\n SET pair = split(parent_id, ',', i + 1);\n\n SET oid = split(pair, '-', 1) + option_id_shift;\n SET vid = split(pair, '-', 2) + option_value_id_shift;\n\n SET pair = CONCAT(oid, '-', vid);\n SET result = CONCAT(result, pair);\n\n SET i = i + 1;\n END WHILE;\n\n RETURN result;\nEND$$\n\nDELIMITER $$\nCREATE DEFINER=`user`@`localhost` FUNCTION `split` (`string` TEXT, `delim` TEXT, `n` INT) RETURNS TEXT CHARSET utf8mb4 COLLATE utf8mb4_unicode_520_ci DETERMINISTIC SQL SECURITY INVOKER RETURN IF(\n (LENGTH(string) - LENGTH(REPLACE(string, delim, ''))) / LENGTH(delim) < n - 1,\n NULL,\n SUBSTRING_INDEX(SUBSTRING_INDEX(string, delim, n), delim, -1)\n)$$\n\nDELIMITER $$\nCREATE DEFINER=`root`@`localhost` FUNCTION `substrCount` (`s` VARCHAR(255), `ss` VARCHAR(255)) RETURNS TINYINT(3) UNSIGNED DETERMINISTIC READS SQL DATA SQL SECURITY INVOKER BEGIN\nDECLARE COUNT TINYINT(3) UNSIGNED;\nDECLARE OFFSET_I TINYINT(3) UNSIGNED;\nDECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET s = NULL;\n\nSET COUNT = 0;\nSET OFFSET_I = 1;\n\nREPEAT\nIF NOT ISNULL(s) AND OFFSET_I > 0 THEN\nSET OFFSET_I = LOCATE(ss, s, OFFSET_I);\nIF OFFSET_I > 0 THEN\nSET COUNT = COUNT + 1;\nSET OFFSET_I = OFFSET_I + 1;\nEND IF;\nEND IF;\nUNTIL ISNULL(s) OR OFFSET_I = 0 END REPEAT;\n\nRETURN COUNT;\nEND$$\n\nDELIMITER ;\n\n", "byteIdx": 3084, "charIdx": 3082, "byteLen": 3085, "charLen": 3083 }, "len": 3083, "last": 3083, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFINER", "value": "DEFINER", "keyword": "DEFINER", "type": 1, "flags": 1, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`user`@`localhost`", "value": "user@localhost", "keyword": null, "type": 8, "flags": 4, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PROCEDURE", "value": "PROCEDURE", "keyword": "PROCEDURE", "type": 1, "flags": 3, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`multiDBqueryRun_V12`", "value": "multiDBqueryRun_V12", "keyword": null, "type": 8, "flags": 2, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`query`", "value": "query", "keyword": null, "type": 8, "flags": 2, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TEXT", "value": "TEXT", "keyword": "TEXT", "type": 1, "flags": 9, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`table_name_var`", "value": "table_name_var", "keyword": null, "type": 8, "flags": 2, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "255", "value": 255, "keyword": null, "type": 6, "flags": 0, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`columns_used_var`", "value": "columns_used_var", "keyword": null, "type": 8, "flags": 2, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TEXT", "value": "TEXT", "keyword": "TEXT", "type": 1, "flags": 9, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`where_text_var`", "value": "where_text_var", "keyword": null, "type": 8, "flags": 2, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TEXT", "value": "TEXT", "keyword": "TEXT", "type": 1, "flags": 9, "position": 178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 182 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 183 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 184 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 186 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`separator_value_var`", "value": "separator_value_var", "keyword": null, "type": 8, "flags": 2, "position": 187 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 208 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 209 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 216 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "255", "value": 255, "keyword": null, "type": 6, "flags": 0, "position": 217 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 220 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 221 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 222 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 223 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 230 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Query: SingleDB → MultiDB (All DBs) + run it'", "value": "Query: SingleDB → MultiDB (All DBs) + run it", "keyword": null, "type": 7, "flags": 1, "position": 231 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 277 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT", "value": "NOT", "keyword": "NOT", "type": 1, "flags": 3, "position": 278 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 281 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DETERMINISTIC", "value": "DETERMINISTIC", "keyword": "DETERMINISTIC", "type": 1, "flags": 3, "position": 282 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 295 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MODIFIES SQL DATA", "value": "MODIFIES SQL DATA", "keyword": "MODIFIES SQL DATA", "type": 1, "flags": 7, "position": 296 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 313 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SQL SECURITY", "value": "SQL SECURITY", "keyword": "SQL SECURITY", "type": 1, "flags": 7, "position": 314 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 326 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INVOKER", "value": "INVOKER", "keyword": "INVOKER", "type": 1, "flags": 1, "position": 327 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 334 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BEGIN", "value": "BEGIN", "keyword": "BEGIN", "type": 1, "flags": 1, "position": 335 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 340 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 341 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 344 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@TABLE_NAME", "value": "TABLE_NAME", "keyword": null, "type": 8, "flags": 1, "position": 345 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 356 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 357 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 358 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table_name_var", "value": "table_name_var", "keyword": null, "type": 0, "flags": 0, "position": 359 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 373 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 374 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 375 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 378 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@WHERE_TEXT", "value": "WHERE_TEXT", "keyword": null, "type": 8, "flags": 1, "position": 379 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 390 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 391 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 392 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "where_text_var", "value": "where_text_var", "keyword": null, "type": 0, "flags": 0, "position": 393 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 407 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 408 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 409 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 412 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@COLUMNS_USED", "value": "COLUMNS_USED", "keyword": null, "type": 8, "flags": 1, "position": 413 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 426 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 427 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 428 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "columns_used_var", "value": "columns_used_var", "keyword": null, "type": 0, "flags": 0, "position": 429 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 445 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 446 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 447 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 450 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@MULTIDB_QUERY", "value": "MULTIDB_QUERY", "keyword": null, "type": 8, "flags": 1, "position": 451 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 465 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 466 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 467 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CONCAT", "value": "CONCAT", "keyword": "CONCAT", "type": 1, "flags": 33, "position": 468 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 474 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'SELECT \"$MULTIDB\" FROM `$MULTIDB`.'", "value": "SELECT \"$MULTIDB\" FROM `$MULTIDB`.", "keyword": null, "type": 7, "flags": 1, "position": 475 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 511 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 512 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@TABLE_NAME", "value": "TABLE_NAME", "keyword": null, "type": 8, "flags": 1, "position": 513 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 524 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 525 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@WHERE_TEXT", "value": "WHERE_TEXT", "keyword": null, "type": 8, "flags": 1, "position": 526 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 537 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 538 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 539 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- EXECUTION --", "value": "-- EXECUTION --", "keyword": null, "type": 4, "flags": 4, "position": 541 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 556 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 557 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 563 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TEMPORARY", "value": "TEMPORARY", "keyword": "TEMPORARY", "type": 1, "flags": 1, "position": 564 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 573 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 574 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 579 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`MULTIDB_TEMP_DB_TBL_COLS`", "value": "MULTIDB_TEMP_DB_TBL_COLS", "keyword": null, "type": 8, "flags": 2, "position": 580 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 606 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 607 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 609 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 610 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 616 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 617 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 618 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 619 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 623 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 624 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 625 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 628 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 634 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE_SCHEMA", "value": "TABLE_SCHEMA", "keyword": null, "type": 0, "flags": 0, "position": 635 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 647 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 648 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE_NAME", "value": "TABLE_NAME", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 649 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 659 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 660 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLUMN_NAME", "value": "COLUMN_NAME", "keyword": "COLUMN_NAME", "type": 1, "flags": 1, "position": 661 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 672 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 675 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 679 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INFORMATION_SCHEMA", "value": "INFORMATION_SCHEMA", "keyword": null, "type": 0, "flags": 0, "position": 680 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 698 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLUMNS", "value": "COLUMNS", "keyword": "COLUMNS", "type": 0, "flags": 0, "position": 699 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 706 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 709 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 714 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE_SCHEMA", "value": "TABLE_SCHEMA", "keyword": null, "type": 0, "flags": 0, "position": 719 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 731 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT IN", "value": "NOT IN", "keyword": "NOT IN", "type": 1, "flags": 39, "position": 732 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 738 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'mysql'", "value": "mysql", "keyword": null, "type": 7, "flags": 1, "position": 739 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 746 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 747 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'test'", "value": "test", "keyword": null, "type": 7, "flags": 1, "position": 748 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 754 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 755 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'tmp'", "value": "tmp", "keyword": null, "type": 7, "flags": 1, "position": 756 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 761 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 762 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'information_schema'", "value": "information_schema", "keyword": null, "type": 7, "flags": 1, "position": 763 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 783 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 784 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'sys'", "value": "sys", "keyword": null, "type": 7, "flags": 1, "position": 785 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 790 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 791 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'performance_schema'", "value": "performance_schema", "keyword": null, "type": 7, "flags": 1, "position": 792 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 812 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 813 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 814 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 817 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE_NAME", "value": "TABLE_NAME", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 822 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 832 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 833 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 834 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@TABLE_NAME", "value": "TABLE_NAME", "keyword": null, "type": 8, "flags": 1, "position": 835 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 846 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 847 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 850 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FIND_IN_SET", "value": "FIND_IN_SET", "keyword": "FIND_IN_SET", "type": 1, "flags": 33, "position": 855 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 866 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLUMN_NAME", "value": "COLUMN_NAME", "keyword": "COLUMN_NAME", "type": 1, "flags": 1, "position": 867 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 878 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 879 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@COLUMNS_USED", "value": "COLUMNS_USED", "keyword": null, "type": 8, "flags": 1, "position": 880 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 893 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 894 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 895 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 896 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tbl", "value": "tbl", "keyword": null, "type": 0, "flags": 0, "position": 897 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 900 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "GROUP BY", "value": "GROUP BY", "keyword": "GROUP BY", "type": 1, "flags": 7, "position": 901 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 909 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE_SCHEMA", "value": "TABLE_SCHEMA", "keyword": null, "type": 0, "flags": 0, "position": 912 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 924 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 925 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE_NAME", "value": "TABLE_NAME", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 928 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 938 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 939 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 941 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 947 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "GROUP_CONCAT", "value": "GROUP_CONCAT", "keyword": "GROUP_CONCAT", "type": 1, "flags": 33, "position": 948 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 960 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REPLACE", "value": "REPLACE", "keyword": "REPLACE", "type": 1, "flags": 35, "position": 961 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 968 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@MULTIDB_QUERY", "value": "MULTIDB_QUERY", "keyword": null, "type": 8, "flags": 1, "position": 969 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 983 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 984 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'$MULTIDB'", "value": "$MULTIDB", "keyword": null, "type": 7, "flags": 1, "position": 985 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 995 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 996 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CONCAT", "value": "CONCAT", "keyword": "CONCAT", "type": 1, "flags": 33, "position": 997 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1003 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "''", "value": "", "keyword": null, "type": 7, "flags": 1, "position": 1004 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1006 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1007 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE_SCHEMA", "value": "TABLE_SCHEMA", "keyword": null, "type": 0, "flags": 0, "position": 1008 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1020 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1021 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "''", "value": "", "keyword": null, "type": 7, "flags": 1, "position": 1022 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1024 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1025 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1026 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SEPARATOR", "value": "SEPARATOR", "keyword": "SEPARATOR", "type": 1, "flags": 3, "position": 1027 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1036 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"\\nUNION ALL\\n\"", "value": "\nUNION ALL\n", "keyword": null, "type": 7, "flags": 2, "position": 1037 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1052 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1053 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 1054 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1058 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@stmt_sql", "value": "stmt_sql", "keyword": null, "type": 8, "flags": 1, "position": 1059 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1068 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 1069 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1073 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`MULTIDB_TEMP_DB_TBL_COLS`", "value": "MULTIDB_TEMP_DB_TBL_COLS", "keyword": null, "type": 8, "flags": 2, "position": 1074 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 1100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PREPARE", "value": "PREPARE", "keyword": "PREPARE", "type": 1, "flags": 1, "position": 1103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "stmt", "value": "stmt", "keyword": null, "type": 0, "flags": 0, "position": 1111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 1116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@stmt_sql", "value": "stmt_sql", "keyword": null, "type": 8, "flags": 1, "position": 1121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 1130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EXECUTE", "value": "EXECUTE", "keyword": "EXECUTE", "type": 1, "flags": 1, "position": 1132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "stmt", "value": "stmt", "keyword": null, "type": 0, "flags": 0, "position": 1140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 1144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEALLOCATE", "value": "DEALLOCATE", "keyword": "DEALLOCATE", "type": 1, "flags": 1, "position": 1146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PREPARE", "value": "PREPARE", "keyword": "PREPARE", "type": 1, "flags": 1, "position": 1157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "stmt", "value": "stmt", "keyword": null, "type": 0, "flags": 0, "position": 1165 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 1169 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": null, "type": 0, "flags": 0, "position": 1171 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 1174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "--\n", "value": "--\n", "keyword": null, "type": 4, "flags": 4, "position": 1178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- Functions", "value": "-- Functions", "keyword": null, "type": 4, "flags": 4, "position": 1181 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1193 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "--\n", "value": "--\n", "keyword": null, "type": 4, "flags": 4, "position": 1194 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1196 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 1197 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1206 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 1207 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1209 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 1210 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1216 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFINER", "value": "DEFINER", "keyword": "DEFINER", "type": 1, "flags": 1, "position": 1217 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 1224 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`root`@`localhost`", "value": "root@localhost", "keyword": null, "type": 8, "flags": 4, "position": 1225 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1243 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FUNCTION", "value": "FUNCTION", "keyword": "FUNCTION", "type": 1, "flags": 1, "position": 1244 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1252 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`attrParentShiftIds`", "value": "attrParentShiftIds", "keyword": null, "type": 8, "flags": 2, "position": 1253 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1273 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1274 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`parent_id`", "value": "parent_id", "keyword": null, "type": 8, "flags": 2, "position": 1275 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1286 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TEXT", "value": "TEXT", "keyword": "TEXT", "type": 1, "flags": 9, "position": 1287 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1291 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1292 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`option_id_shift`", "value": "option_id_shift", "keyword": null, "type": 8, "flags": 2, "position": 1293 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1310 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 1311 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1314 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1315 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`option_value_id_shift`", "value": "option_value_id_shift", "keyword": null, "type": 8, "flags": 2, "position": 1316 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1339 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 1340 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1343 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1344 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RETURNS", "value": "RETURNS", "keyword": "RETURNS", "type": 1, "flags": 1, "position": 1345 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1352 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TEXT", "value": "TEXT", "keyword": "TEXT", "type": 1, "flags": 9, "position": 1353 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1357 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHARSET", "value": "CHARSET", "keyword": "CHARSET", "type": 1, "flags": 33, "position": 1358 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1365 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8mb4", "value": "utf8mb4", "keyword": null, "type": 0, "flags": 0, "position": 1366 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1373 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLLATE", "value": "COLLATE", "keyword": "COLLATE", "type": 1, "flags": 3, "position": 1374 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1381 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8mb4_unicode_520_ci", "value": "utf8mb4_unicode_520_ci", "keyword": null, "type": 0, "flags": 0, "position": 1382 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1404 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DETERMINISTIC", "value": "DETERMINISTIC", "keyword": "DETERMINISTIC", "type": 1, "flags": 3, "position": 1405 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1418 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "READS SQL DATA", "value": "READS SQL DATA", "keyword": "READS SQL DATA", "type": 1, "flags": 7, "position": 1419 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1433 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SQL SECURITY", "value": "SQL SECURITY", "keyword": "SQL SECURITY", "type": 1, "flags": 7, "position": 1434 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1446 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INVOKER", "value": "INVOKER", "keyword": "INVOKER", "type": 1, "flags": 1, "position": 1447 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1454 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BEGIN", "value": "BEGIN", "keyword": "BEGIN", "type": 1, "flags": 1, "position": 1455 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1460 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DECLARE", "value": "DECLARE", "keyword": "DECLARE", "type": 1, "flags": 3, "position": 1463 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1470 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "i", "value": "i", "keyword": null, "type": 0, "flags": 0, "position": 1471 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1472 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 1473 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1476 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 1477 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1485 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 1486 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1493 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 1494 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 1495 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1496 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DECLARE", "value": "DECLARE", "keyword": "DECLARE", "type": 1, "flags": 3, "position": 1499 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1506 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pair_count", "value": "pair_count", "keyword": null, "type": 0, "flags": 0, "position": 1507 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1517 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 1518 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1521 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 1522 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 1530 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1531 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DECLARE", "value": "DECLARE", "keyword": "DECLARE", "type": 1, "flags": 3, "position": 1534 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1541 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "result", "value": "result", "keyword": null, "type": 0, "flags": 0, "position": 1542 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1548 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TEXT", "value": "TEXT", "keyword": "TEXT", "type": 1, "flags": 9, "position": 1549 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1553 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 1554 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1561 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "''", "value": "", "keyword": null, "type": 7, "flags": 1, "position": 1562 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 1564 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1565 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DECLARE", "value": "DECLARE", "keyword": "DECLARE", "type": 1, "flags": 3, "position": 1569 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1576 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pair", "value": "pair", "keyword": null, "type": 0, "flags": 0, "position": 1577 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1581 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 1582 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1589 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "255", "value": 255, "keyword": null, "type": 6, "flags": 0, "position": 1590 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1593 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1594 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 1595 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1602 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "''", "value": "", "keyword": null, "type": 7, "flags": 1, "position": 1603 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 1605 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1606 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DECLARE", "value": "DECLARE", "keyword": "DECLARE", "type": 1, "flags": 3, "position": 1609 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1616 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "oid", "value": "oid", "keyword": null, "type": 0, "flags": 0, "position": 1617 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1620 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 1621 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1624 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 1625 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1632 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "''", "value": "", "keyword": null, "type": 7, "flags": 1, "position": 1633 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 1635 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1636 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DECLARE", "value": "DECLARE", "keyword": "DECLARE", "type": 1, "flags": 3, "position": 1639 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1646 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "vid", "value": "vid", "keyword": null, "type": 0, "flags": 0, "position": 1647 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1650 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 1651 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1654 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 1655 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1662 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "''", "value": "", "keyword": null, "type": 7, "flags": 1, "position": 1663 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 1665 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1666 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 1670 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1673 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pair_count", "value": "pair_count", "keyword": null, "type": 0, "flags": 0, "position": 1674 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1684 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 1685 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1686 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "substrCount", "value": "substrCount", "keyword": null, "type": 0, "flags": 0, "position": 1687 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1698 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "parent_id", "value": "parent_id", "keyword": null, "type": 0, "flags": 0, "position": 1699 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1708 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1709 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "','", "value": ",", "keyword": null, "type": 7, "flags": 1, "position": 1710 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1713 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1714 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 1715 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1716 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 1717 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 1718 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1719 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHILE", "value": "WHILE", "keyword": "WHILE", "type": 1, "flags": 3, "position": 1723 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1728 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "i", "value": "i", "keyword": null, "type": 0, "flags": 0, "position": 1729 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1730 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "<", "value": "<", "keyword": null, "type": 2, "flags": 2, "position": 1731 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1732 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pair_count", "value": "pair_count", "keyword": null, "type": 0, "flags": 0, "position": 1733 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1743 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DO", "value": "DO", "keyword": "DO", "type": 1, "flags": 1, "position": 1744 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1746 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 1751 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1754 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "result", "value": "result", "keyword": null, "type": 0, "flags": 0, "position": 1755 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1761 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 1762 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1763 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CONCAT", "value": "CONCAT", "keyword": "CONCAT", "type": 1, "flags": 33, "position": 1764 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1770 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "result", "value": "result", "keyword": null, "type": 0, "flags": 0, "position": 1771 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1777 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1778 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF", "value": "IF", "keyword": "IF", "type": 1, "flags": 35, "position": 1779 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1781 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "i", "value": "i", "keyword": null, "type": 0, "flags": 0, "position": 1782 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1783 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "<=", "value": "<=", "keyword": null, "type": 2, "flags": 2, "position": 1784 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1786 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 1787 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1788 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1789 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "''", "value": "", "keyword": null, "type": 7, "flags": 1, "position": 1790 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1792 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1793 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "','", "value": ",", "keyword": null, "type": 7, "flags": 1, "position": 1794 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1797 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1798 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 1799 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1800 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 1806 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1809 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pair", "value": "pair", "keyword": null, "type": 0, "flags": 0, "position": 1810 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1814 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 1815 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1816 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "split", "value": "split", "keyword": null, "type": 0, "flags": 0, "position": 1817 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1822 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "parent_id", "value": "parent_id", "keyword": null, "type": 0, "flags": 0, "position": 1823 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1832 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1833 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "','", "value": ",", "keyword": null, "type": 7, "flags": 1, "position": 1834 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1837 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1838 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "i", "value": "i", "keyword": null, "type": 0, "flags": 0, "position": 1839 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1840 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 1841 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1842 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 1843 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1844 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 1845 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1846 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 1852 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1855 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "oid", "value": "oid", "keyword": null, "type": 0, "flags": 0, "position": 1856 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1859 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 1860 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1861 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "split", "value": "split", "keyword": null, "type": 0, "flags": 0, "position": 1862 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1867 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pair", "value": "pair", "keyword": null, "type": 0, "flags": 0, "position": 1868 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1872 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1873 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'-'", "value": "-", "keyword": null, "type": 7, "flags": 1, "position": 1874 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1877 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1878 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 1879 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1880 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1881 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 1882 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1883 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "option_id_shift", "value": "option_id_shift", "keyword": null, "type": 0, "flags": 0, "position": 1884 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 1899 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1900 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 1905 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1908 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "vid", "value": "vid", "keyword": null, "type": 0, "flags": 0, "position": 1909 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1912 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 1913 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1914 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "split", "value": "split", "keyword": null, "type": 0, "flags": 0, "position": 1915 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1920 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pair", "value": "pair", "keyword": null, "type": 0, "flags": 0, "position": 1921 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1925 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1926 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'-'", "value": "-", "keyword": null, "type": 7, "flags": 1, "position": 1927 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1930 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1931 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 1932 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1933 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1934 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 1935 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1936 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "option_value_id_shift", "value": "option_value_id_shift", "keyword": null, "type": 0, "flags": 0, "position": 1937 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 1958 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1959 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 1965 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1968 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pair", "value": "pair", "keyword": null, "type": 0, "flags": 0, "position": 1969 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1973 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 1974 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1975 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CONCAT", "value": "CONCAT", "keyword": "CONCAT", "type": 1, "flags": 33, "position": 1976 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1982 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "oid", "value": "oid", "keyword": null, "type": 0, "flags": 0, "position": 1983 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1986 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1987 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'-'", "value": "-", "keyword": null, "type": 7, "flags": 1, "position": 1988 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1991 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1992 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "vid", "value": "vid", "keyword": null, "type": 0, "flags": 0, "position": 1993 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1996 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 1997 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1998 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 2003 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2006 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "result", "value": "result", "keyword": null, "type": 0, "flags": 0, "position": 2007 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2013 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2014 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2015 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CONCAT", "value": "CONCAT", "keyword": "CONCAT", "type": 1, "flags": 33, "position": 2016 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2022 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "result", "value": "result", "keyword": null, "type": 0, "flags": 0, "position": 2023 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2029 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2030 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pair", "value": "pair", "keyword": null, "type": 0, "flags": 0, "position": 2031 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2035 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 2036 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2037 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 2043 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2046 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "i", "value": "i", "keyword": null, "type": 0, "flags": 0, "position": 2047 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2048 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2049 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2050 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "i", "value": "i", "keyword": null, "type": 0, "flags": 0, "position": 2051 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2052 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 2053 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2054 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 2055 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 2056 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2057 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": "END", "type": 1, "flags": 1, "position": 2060 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2063 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHILE", "value": "WHILE", "keyword": "WHILE", "type": 1, "flags": 3, "position": 2064 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 2069 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2070 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RETURN", "value": "RETURN", "keyword": "RETURN", "type": 1, "flags": 3, "position": 2074 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2080 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "result", "value": "result", "keyword": null, "type": 0, "flags": 0, "position": 2081 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 2087 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2088 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": null, "type": 0, "flags": 0, "position": 2089 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 2092 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2094 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 2096 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 2106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 2109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFINER", "value": "DEFINER", "keyword": "DEFINER", "type": 1, "flags": 1, "position": 2116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`user`@`localhost`", "value": "user@localhost", "keyword": null, "type": 8, "flags": 4, "position": 2124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FUNCTION", "value": "FUNCTION", "keyword": "FUNCTION", "type": 1, "flags": 1, "position": 2143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`split`", "value": "split", "keyword": null, "type": 8, "flags": 2, "position": 2152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2159 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`string`", "value": "string", "keyword": null, "type": 8, "flags": 2, "position": 2161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2169 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TEXT", "value": "TEXT", "keyword": "TEXT", "type": 1, "flags": 9, "position": 2170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2175 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`delim`", "value": "delim", "keyword": null, "type": 8, "flags": 2, "position": 2176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2183 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TEXT", "value": "TEXT", "keyword": "TEXT", "type": 1, "flags": 9, "position": 2184 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2188 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2189 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`n`", "value": "n", "keyword": null, "type": 8, "flags": 2, "position": 2190 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2193 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 2194 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2197 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2198 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RETURNS", "value": "RETURNS", "keyword": "RETURNS", "type": 1, "flags": 1, "position": 2199 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2206 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TEXT", "value": "TEXT", "keyword": "TEXT", "type": 1, "flags": 9, "position": 2207 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2211 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHARSET", "value": "CHARSET", "keyword": "CHARSET", "type": 1, "flags": 33, "position": 2212 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2219 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8mb4", "value": "utf8mb4", "keyword": null, "type": 0, "flags": 0, "position": 2220 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2227 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLLATE", "value": "COLLATE", "keyword": "COLLATE", "type": 1, "flags": 3, "position": 2228 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2235 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8mb4_unicode_520_ci", "value": "utf8mb4_unicode_520_ci", "keyword": null, "type": 0, "flags": 0, "position": 2236 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2258 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DETERMINISTIC", "value": "DETERMINISTIC", "keyword": "DETERMINISTIC", "type": 1, "flags": 3, "position": 2259 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2272 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SQL SECURITY", "value": "SQL SECURITY", "keyword": "SQL SECURITY", "type": 1, "flags": 7, "position": 2273 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2285 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INVOKER", "value": "INVOKER", "keyword": "INVOKER", "type": 1, "flags": 1, "position": 2286 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2293 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RETURN", "value": "RETURN", "keyword": "RETURN", "type": 1, "flags": 3, "position": 2294 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2300 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF", "value": "IF", "keyword": "IF", "type": 1, "flags": 35, "position": 2301 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2303 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2304 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2309 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LENGTH", "value": "LENGTH", "keyword": "LENGTH", "type": 1, "flags": 33, "position": 2310 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2316 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "string", "value": "string", "keyword": "STRING", "type": 1, "flags": 1, "position": 2317 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2323 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2324 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-", "value": "-", "keyword": null, "type": 2, "flags": 1, "position": 2325 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2326 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LENGTH", "value": "LENGTH", "keyword": "LENGTH", "type": 1, "flags": 33, "position": 2327 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2333 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REPLACE", "value": "REPLACE", "keyword": "REPLACE", "type": 1, "flags": 35, "position": 2334 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2341 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "string", "value": "string", "keyword": "STRING", "type": 1, "flags": 1, "position": 2342 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2348 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2349 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "delim", "value": "delim", "keyword": null, "type": 0, "flags": 0, "position": 2350 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2355 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2356 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "''", "value": "", "keyword": null, "type": 7, "flags": 1, "position": 2357 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2359 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2360 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2361 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2362 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/", "value": "/", "keyword": null, "type": 2, "flags": 1, "position": 2363 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2364 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LENGTH", "value": "LENGTH", "keyword": "LENGTH", "type": 1, "flags": 33, "position": 2365 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2371 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "delim", "value": "delim", "keyword": null, "type": 0, "flags": 0, "position": 2372 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2377 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2378 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "<", "value": "<", "keyword": null, "type": 2, "flags": 2, "position": 2379 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2380 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "n", "value": "n", "keyword": null, "type": 0, "flags": 0, "position": 2381 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2382 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-", "value": "-", "keyword": null, "type": 2, "flags": 1, "position": 2383 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2384 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 2385 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2386 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2387 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 2392 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2396 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2397 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBSTRING_INDEX", "value": "SUBSTRING_INDEX", "keyword": "SUBSTRING_INDEX", "type": 1, "flags": 33, "position": 2402 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2417 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBSTRING_INDEX", "value": "SUBSTRING_INDEX", "keyword": "SUBSTRING_INDEX", "type": 1, "flags": 33, "position": 2418 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2433 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "string", "value": "string", "keyword": "STRING", "type": 1, "flags": 1, "position": 2434 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2440 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2441 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "delim", "value": "delim", "keyword": null, "type": 0, "flags": 0, "position": 2442 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2447 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2448 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "n", "value": "n", "keyword": null, "type": 0, "flags": 0, "position": 2449 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2450 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2451 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2452 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "delim", "value": "delim", "keyword": null, "type": 0, "flags": 0, "position": 2453 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2458 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2459 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-1", "value": -1, "keyword": null, "type": 6, "flags": 8, "position": 2460 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2462 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2463 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2464 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 2465 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2467 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 2469 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2478 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 2479 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2481 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 2482 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2488 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFINER", "value": "DEFINER", "keyword": "DEFINER", "type": 1, "flags": 1, "position": 2489 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2496 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`root`@`localhost`", "value": "root@localhost", "keyword": null, "type": 8, "flags": 4, "position": 2497 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2515 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FUNCTION", "value": "FUNCTION", "keyword": "FUNCTION", "type": 1, "flags": 1, "position": 2516 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2524 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`substrCount`", "value": "substrCount", "keyword": null, "type": 8, "flags": 2, "position": 2525 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2538 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2539 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`s`", "value": "s", "keyword": null, "type": 8, "flags": 2, "position": 2540 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2543 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 2544 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2551 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "255", "value": 255, "keyword": null, "type": 6, "flags": 0, "position": 2552 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2555 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2556 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2557 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`ss`", "value": "ss", "keyword": null, "type": 8, "flags": 2, "position": 2558 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2562 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 2563 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2570 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "255", "value": 255, "keyword": null, "type": 6, "flags": 0, "position": 2571 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2574 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2575 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2576 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RETURNS", "value": "RETURNS", "keyword": "RETURNS", "type": 1, "flags": 1, "position": 2577 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2584 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TINYINT", "value": "TINYINT", "keyword": "TINYINT", "type": 1, "flags": 11, "position": 2585 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2592 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 2593 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2594 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2595 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 2596 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2604 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DETERMINISTIC", "value": "DETERMINISTIC", "keyword": "DETERMINISTIC", "type": 1, "flags": 3, "position": 2605 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2618 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "READS SQL DATA", "value": "READS SQL DATA", "keyword": "READS SQL DATA", "type": 1, "flags": 7, "position": 2619 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2633 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SQL SECURITY", "value": "SQL SECURITY", "keyword": "SQL SECURITY", "type": 1, "flags": 7, "position": 2634 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2646 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INVOKER", "value": "INVOKER", "keyword": "INVOKER", "type": 1, "flags": 1, "position": 2647 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2654 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BEGIN", "value": "BEGIN", "keyword": "BEGIN", "type": 1, "flags": 1, "position": 2655 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2660 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DECLARE", "value": "DECLARE", "keyword": "DECLARE", "type": 1, "flags": 3, "position": 2661 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2668 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COUNT", "value": "COUNT", "keyword": "COUNT", "type": 1, "flags": 33, "position": 2669 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2674 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TINYINT", "value": "TINYINT", "keyword": "TINYINT", "type": 1, "flags": 11, "position": 2675 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2682 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 2683 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2684 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2685 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 2686 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 2694 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2695 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DECLARE", "value": "DECLARE", "keyword": "DECLARE", "type": 1, "flags": 3, "position": 2696 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2703 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OFFSET_I", "value": "OFFSET_I", "keyword": null, "type": 0, "flags": 0, "position": 2704 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2712 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TINYINT", "value": "TINYINT", "keyword": "TINYINT", "type": 1, "flags": 11, "position": 2713 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2720 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 2721 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2722 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2723 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 2724 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 2732 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2733 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DECLARE", "value": "DECLARE", "keyword": "DECLARE", "type": 1, "flags": 3, "position": 2734 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2741 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CONTINUE", "value": "CONTINUE", "keyword": "CONTINUE", "type": 1, "flags": 3, "position": 2742 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2750 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "HANDLER", "value": "HANDLER", "keyword": "HANDLER", "type": 1, "flags": 1, "position": 2751 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2758 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FOR", "value": "FOR", "keyword": "FOR", "type": 1, "flags": 3, "position": 2759 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2762 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SQLSTATE", "value": "SQLSTATE", "keyword": "SQLSTATE", "type": 1, "flags": 3, "position": 2763 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2771 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'02000'", "value": "02000", "keyword": null, "type": 7, "flags": 1, "position": 2772 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2779 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 2780 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2783 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "s", "value": "s", "keyword": null, "type": 0, "flags": 0, "position": 2784 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2785 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2786 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2787 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 2788 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 2792 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2793 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 2795 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2798 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COUNT", "value": "COUNT", "keyword": "COUNT", "type": 1, "flags": 33, "position": 2799 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2804 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2805 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2806 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 2807 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 2808 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2809 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 2810 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2813 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OFFSET_I", "value": "OFFSET_I", "keyword": null, "type": 0, "flags": 0, "position": 2814 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2822 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2823 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2824 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 2825 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 2826 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2827 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REPEAT", "value": "REPEAT", "keyword": "REPEAT", "type": 1, "flags": 35, "position": 2829 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2835 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF", "value": "IF", "keyword": "IF", "type": 1, "flags": 35, "position": 2836 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2838 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT", "value": "NOT", "keyword": "NOT", "type": 1, "flags": 3, "position": 2839 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2842 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ISNULL", "value": "ISNULL", "keyword": "ISNULL", "type": 1, "flags": 33, "position": 2843 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2849 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "s", "value": "s", "keyword": null, "type": 0, "flags": 0, "position": 2850 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2851 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2852 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 2853 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2856 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OFFSET_I", "value": "OFFSET_I", "keyword": null, "type": 0, "flags": 0, "position": 2857 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2865 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ">", "value": ">", "keyword": null, "type": 2, "flags": 2, "position": 2866 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2867 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 2868 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2869 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "THEN", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 2870 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2874 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 2875 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2878 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OFFSET_I", "value": "OFFSET_I", "keyword": null, "type": 0, "flags": 0, "position": 2879 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2887 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2888 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2889 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCATE", "value": "LOCATE", "keyword": "LOCATE", "type": 1, "flags": 33, "position": 2890 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2896 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ss", "value": "ss", "keyword": null, "type": 0, "flags": 0, "position": 2897 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2899 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2900 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "s", "value": "s", "keyword": null, "type": 0, "flags": 0, "position": 2901 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2902 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2903 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OFFSET_I", "value": "OFFSET_I", "keyword": null, "type": 0, "flags": 0, "position": 2904 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2912 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 2913 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2914 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF", "value": "IF", "keyword": "IF", "type": 1, "flags": 35, "position": 2915 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2917 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OFFSET_I", "value": "OFFSET_I", "keyword": null, "type": 0, "flags": 0, "position": 2918 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2926 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ">", "value": ">", "keyword": null, "type": 2, "flags": 2, "position": 2927 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2928 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 2929 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2930 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "THEN", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 2931 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2935 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 2936 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2939 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COUNT", "value": "COUNT", "keyword": "COUNT", "type": 1, "flags": 33, "position": 2940 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2945 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2946 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2947 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COUNT", "value": "COUNT", "keyword": "COUNT", "type": 1, "flags": 33, "position": 2948 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2953 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 2954 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2955 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 2956 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 2957 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2958 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 2959 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2962 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OFFSET_I", "value": "OFFSET_I", "keyword": null, "type": 0, "flags": 0, "position": 2963 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2971 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2972 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2973 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OFFSET_I", "value": "OFFSET_I", "keyword": null, "type": 0, "flags": 0, "position": 2974 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2982 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 2983 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2984 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 2985 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 2986 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2987 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": "END", "type": 1, "flags": 1, "position": 2988 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2991 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF", "value": "IF", "keyword": "IF", "type": 1, "flags": 35, "position": 2992 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 2994 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2995 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": "END", "type": 1, "flags": 1, "position": 2996 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2999 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF", "value": "IF", "keyword": "IF", "type": 1, "flags": 35, "position": 3000 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 3002 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3003 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNTIL", "value": "UNTIL", "keyword": "UNTIL", "type": 1, "flags": 1, "position": 3004 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3009 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ISNULL", "value": "ISNULL", "keyword": "ISNULL", "type": 1, "flags": 33, "position": 3010 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 3016 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "s", "value": "s", "keyword": null, "type": 0, "flags": 0, "position": 3017 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 3018 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3019 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OR", "value": "OR", "keyword": "OR", "type": 1, "flags": 3, "position": 3020 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3022 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OFFSET_I", "value": "OFFSET_I", "keyword": null, "type": 0, "flags": 0, "position": 3023 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3031 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 3032 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3033 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 3034 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3035 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": "END", "type": 1, "flags": 1, "position": 3036 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3039 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REPEAT", "value": "REPEAT", "keyword": "REPEAT", "type": 1, "flags": 35, "position": 3040 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 3046 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3047 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RETURN", "value": "RETURN", "keyword": "RETURN", "type": 1, "flags": 3, "position": 3049 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3055 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COUNT", "value": "COUNT", "keyword": "COUNT", "type": 1, "flags": 33, "position": 3056 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 2, "flags": 16, "position": 3061 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3062 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": null, "type": 0, "flags": 0, "position": 3063 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 3066 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3068 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 3070 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3079 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 3080 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3081 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 926, "idx": 926 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@2" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "multiDBqueryRun_V12", "column": null, "expr": "`multiDBqueryRun_V12`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "NOT", "equals": false, "expr": "DETERMINISTIC", "value": "DETERMINISTIC" }, "4": "MODIFIES SQL DATA", "6": { "name": "SQL SECURITY", "equals": false, "expr": "INVOKER", "value": "INVOKER" }, "8": { "name": "COMMENT", "equals": false, "expr": "'Query: SingleDB → MultiDB (All DBs) + run it'", "value": "Query: SingleDB → MultiDB (All DBs) + run it" } } }, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "query", "inOut": "IN", "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "TEXT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "table_name_var", "inOut": "IN", "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "255" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "columns_used_var", "inOut": "IN", "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "TEXT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "where_text_var", "inOut": "IN", "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "TEXT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "separator_value_var", "inOut": "IN", "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "255" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } } ], "body": [ { "@type": "@72" }, { "@type": "@73" }, { "@type": "@74" }, { "@type": "@75" }, { "@type": "@76" }, { "@type": "@77" }, { "@type": "@78" }, { "@type": "@79" }, { "@type": "@80" }, { "@type": "@81" }, { "@type": "@82" }, { "@type": "@83" }, { "@type": "@84" }, { "@type": "@85" }, { "@type": "@86" }, { "@type": "@87" }, { "@type": "@88" }, { "@type": "@89" }, { "@type": "@90" }, { "@type": "@91" }, { "@type": "@92" }, { "@type": "@93" }, { "@type": "@94" }, { "@type": "@95" }, { "@type": "@96" }, { "@type": "@97" }, { "@type": "@98" }, { "@type": "@99" }, { "@type": "@100" }, { "@type": "@101" }, { "@type": "@102" }, { "@type": "@103" }, { "@type": "@104" }, { "@type": "@105" }, { "@type": "@106" }, { "@type": "@107" }, { "@type": "@108" }, { "@type": "@109" }, { "@type": "@110" }, { "@type": "@111" }, { "@type": "@112" }, { "@type": "@113" }, { "@type": "@114" }, { "@type": "@115" }, { "@type": "@116" }, { "@type": "@117" }, { "@type": "@118" }, { "@type": "@119" }, { "@type": "@120" }, { "@type": "@121" }, { "@type": "@122" }, { "@type": "@123" }, { "@type": "@124" }, { "@type": "@125" }, { "@type": "@126" }, { "@type": "@127" }, { "@type": "@128" }, { "@type": "@129" }, { "@type": "@130" }, { "@type": "@131" }, { "@type": "@132" }, { "@type": "@133" }, { "@type": "@134" }, { "@type": "@135" }, { "@type": "@136" }, { "@type": "@137" }, { "@type": "@138" }, { "@type": "@139" }, { "@type": "@140" }, { "@type": "@141" }, { "@type": "@142" }, { "@type": "@143" }, { "@type": "@144" }, { "@type": "@145" }, { "@type": "@146" }, { "@type": "@147" }, { "@type": "@148" }, { "@type": "@149" }, { "@type": "@150" }, { "@type": "@151" }, { "@type": "@152" }, { "@type": "@153" }, { "@type": "@154" }, { "@type": "@155" }, { "@type": "@156" }, { "@type": "@157" }, { "@type": "@158" }, { "@type": "@159" }, { "@type": "@160" }, { "@type": "@161" }, { "@type": "@162" }, { "@type": "@163" }, { "@type": "@164" }, { "@type": "@165" }, { "@type": "@166" }, { "@type": "@167" }, { "@type": "@168" }, { "@type": "@169" }, { "@type": "@170" }, { "@type": "@171" }, { "@type": "@172" }, { "@type": "@173" }, { "@type": "@174" }, { "@type": "@175" }, { "@type": "@176" }, { "@type": "@177" }, { "@type": "@178" }, { "@type": "@179" }, { "@type": "@180" }, { "@type": "@181" }, { "@type": "@182" }, { "@type": "@183" }, { "@type": "@184" }, { "@type": "@185" }, { "@type": "@186" }, { "@type": "@187" }, { "@type": "@188" }, { "@type": "@189" }, { "@type": "@190" }, { "@type": "@191" }, { "@type": "@192" }, { "@type": "@193" }, { "@type": "@194" }, { "@type": "@195" }, { "@type": "@196" }, { "@type": "@197" }, { "@type": "@198" }, { "@type": "@199" }, { "@type": "@200" }, { "@type": "@201" }, { "@type": "@202" }, { "@type": "@203" }, { "@type": "@204" }, { "@type": "@205" }, { "@type": "@206" }, { "@type": "@207" }, { "@type": "@208" }, { "@type": "@209" }, { "@type": "@210" }, { "@type": "@211" }, { "@type": "@212" }, { "@type": "@213" }, { "@type": "@214" }, { "@type": "@215" }, { "@type": "@216" }, { "@type": "@217" }, { "@type": "@218" }, { "@type": "@219" }, { "@type": "@220" }, { "@type": "@221" }, { "@type": "@222" }, { "@type": "@223" }, { "@type": "@224" }, { "@type": "@225" }, { "@type": "@226" }, { "@type": "@227" }, { "@type": "@228" }, { "@type": "@229" }, { "@type": "@230" }, { "@type": "@231" }, { "@type": "@232" }, { "@type": "@233" }, { "@type": "@234" }, { "@type": "@235" }, { "@type": "@236" }, { "@type": "@237" }, { "@type": "@238" }, { "@type": "@239" }, { "@type": "@240" }, { "@type": "@241" }, { "@type": "@242" }, { "@type": "@243" }, { "@type": "@244" }, { "@type": "@245" }, { "@type": "@246" }, { "@type": "@247" }, { "@type": "@248" }, { "@type": "@249" }, { "@type": "@250" }, { "@type": "@251" }, { "@type": "@252" }, { "@type": "@253" }, { "@type": "@254" }, { "@type": "@255" }, { "@type": "@256" }, { "@type": "@257" }, { "@type": "@258" }, { "@type": "@259" }, { "@type": "@260" }, { "@type": "@261" }, { "@type": "@262" }, { "@type": "@263" }, { "@type": "@264" }, { "@type": "@265" }, { "@type": "@266" }, { "@type": "@267" }, { "@type": "@268" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": { "name": "DEFINER", "equals": true, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "user@localhost", "expr": "`user`@`localhost`", "alias": null, "function": null, "subquery": null }, "value": "`user`@`localhost`" }, "6": "PROCEDURE" } }, "first": 4, "last": 266 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "attrParentShiftIds", "column": null, "expr": "`attrParentShiftIds`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "DETERMINISTIC", "4": "READS SQL DATA", "6": { "name": "SQL SECURITY", "equals": false, "expr": "INVOKER", "value": "INVOKER" } } }, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "TEXT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "CHARSET", "equals": false, "expr": "utf8mb4", "value": "utf8mb4" }, "3": { "name": "COLLATE", "equals": false, "expr": "utf8mb4_unicode_520_ci", "value": "utf8mb4_unicode_520_ci" } } } }, "parameters": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "parent_id", "inOut": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "TEXT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "option_id_shift", "inOut": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "option_value_id_shift", "inOut": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } } ], "body": [ { "@type": "@327" }, { "@type": "@328" }, { "@type": "@329" }, { "@type": "@330" }, { "@type": "@331" }, { "@type": "@332" }, { "@type": "@333" }, { "@type": "@334" }, { "@type": "@335" }, { "@type": "@336" }, { "@type": "@337" }, { "@type": "@338" }, { "@type": "@339" }, { "@type": "@340" }, { "@type": "@341" }, { "@type": "@342" }, { "@type": "@343" }, { "@type": "@344" }, { "@type": "@345" }, { "@type": "@346" }, { "@type": "@347" }, { "@type": "@348" }, { "@type": "@349" }, { "@type": "@350" }, { "@type": "@351" }, { "@type": "@352" }, { "@type": "@353" }, { "@type": "@354" }, { "@type": "@355" }, { "@type": "@356" }, { "@type": "@357" }, { "@type": "@358" }, { "@type": "@359" }, { "@type": "@360" }, { "@type": "@361" }, { "@type": "@362" }, { "@type": "@363" }, { "@type": "@364" }, { "@type": "@365" }, { "@type": "@366" }, { "@type": "@367" }, { "@type": "@368" }, { "@type": "@369" }, { "@type": "@370" }, { "@type": "@371" }, { "@type": "@372" }, { "@type": "@373" }, { "@type": "@374" }, { "@type": "@375" }, { "@type": "@376" }, { "@type": "@377" }, { "@type": "@378" }, { "@type": "@379" }, { "@type": "@380" }, { "@type": "@381" }, { "@type": "@382" }, { "@type": "@383" }, { "@type": "@384" }, { "@type": "@385" }, { "@type": "@386" }, { "@type": "@387" }, { "@type": "@388" }, { "@type": "@389" }, { "@type": "@390" }, { "@type": "@391" }, { "@type": "@392" }, { "@type": "@393" }, { "@type": "@394" }, { "@type": "@395" }, { "@type": "@396" }, { "@type": "@397" }, { "@type": "@398" }, { "@type": "@399" }, { "@type": "@400" }, { "@type": "@401" }, { "@type": "@402" }, { "@type": "@403" }, { "@type": "@404" }, { "@type": "@405" }, { "@type": "@406" }, { "@type": "@407" }, { "@type": "@408" }, { "@type": "@409" }, { "@type": "@410" }, { "@type": "@411" }, { "@type": "@412" }, { "@type": "@413" }, { "@type": "@414" }, { "@type": "@415" }, { "@type": "@416" }, { "@type": "@417" }, { "@type": "@418" }, { "@type": "@419" }, { "@type": "@420" }, { "@type": "@421" }, { "@type": "@422" }, { "@type": "@423" }, { "@type": "@424" }, { "@type": "@425" }, { "@type": "@426" }, { "@type": "@427" }, { "@type": "@428" }, { "@type": "@429" }, { "@type": "@430" }, { "@type": "@431" }, { "@type": "@432" }, { "@type": "@433" }, { "@type": "@434" }, { "@type": "@435" }, { "@type": "@436" }, { "@type": "@437" }, { "@type": "@438" }, { "@type": "@439" }, { "@type": "@440" }, { "@type": "@441" }, { "@type": "@442" }, { "@type": "@443" }, { "@type": "@444" }, { "@type": "@445" }, { "@type": "@446" }, { "@type": "@447" }, { "@type": "@448" }, { "@type": "@449" }, { "@type": "@450" }, { "@type": "@451" }, { "@type": "@452" }, { "@type": "@453" }, { "@type": "@454" }, { "@type": "@455" }, { "@type": "@456" }, { "@type": "@457" }, { "@type": "@458" }, { "@type": "@459" }, { "@type": "@460" }, { "@type": "@461" }, { "@type": "@462" }, { "@type": "@463" }, { "@type": "@464" }, { "@type": "@465" }, { "@type": "@466" }, { "@type": "@467" }, { "@type": "@468" }, { "@type": "@469" }, { "@type": "@470" }, { "@type": "@471" }, { "@type": "@472" }, { "@type": "@473" }, { "@type": "@474" }, { "@type": "@475" }, { "@type": "@476" }, { "@type": "@477" }, { "@type": "@478" }, { "@type": "@479" }, { "@type": "@480" }, { "@type": "@481" }, { "@type": "@482" }, { "@type": "@483" }, { "@type": "@484" }, { "@type": "@485" }, { "@type": "@486" }, { "@type": "@487" }, { "@type": "@488" }, { "@type": "@489" }, { "@type": "@490" }, { "@type": "@491" }, { "@type": "@492" }, { "@type": "@493" }, { "@type": "@494" }, { "@type": "@495" }, { "@type": "@496" }, { "@type": "@497" }, { "@type": "@498" }, { "@type": "@499" }, { "@type": "@500" }, { "@type": "@501" }, { "@type": "@502" }, { "@type": "@503" }, { "@type": "@504" }, { "@type": "@505" }, { "@type": "@506" }, { "@type": "@507" }, { "@type": "@508" }, { "@type": "@509" }, { "@type": "@510" }, { "@type": "@511" }, { "@type": "@512" }, { "@type": "@513" }, { "@type": "@514" }, { "@type": "@515" }, { "@type": "@516" }, { "@type": "@517" }, { "@type": "@518" }, { "@type": "@519" }, { "@type": "@520" }, { "@type": "@521" }, { "@type": "@522" }, { "@type": "@523" }, { "@type": "@524" }, { "@type": "@525" }, { "@type": "@526" }, { "@type": "@527" }, { "@type": "@528" }, { "@type": "@529" }, { "@type": "@530" }, { "@type": "@531" }, { "@type": "@532" }, { "@type": "@533" }, { "@type": "@534" }, { "@type": "@535" }, { "@type": "@536" }, { "@type": "@537" }, { "@type": "@538" }, { "@type": "@539" }, { "@type": "@540" }, { "@type": "@541" }, { "@type": "@542" }, { "@type": "@543" }, { "@type": "@544" }, { "@type": "@545" }, { "@type": "@546" }, { "@type": "@547" }, { "@type": "@548" }, { "@type": "@549" }, { "@type": "@550" }, { "@type": "@551" }, { "@type": "@552" }, { "@type": "@553" }, { "@type": "@554" }, { "@type": "@555" }, { "@type": "@556" }, { "@type": "@557" }, { "@type": "@558" }, { "@type": "@559" }, { "@type": "@560" }, { "@type": "@561" }, { "@type": "@562" }, { "@type": "@563" }, { "@type": "@564" }, { "@type": "@565" }, { "@type": "@566" }, { "@type": "@567" }, { "@type": "@568" }, { "@type": "@569" }, { "@type": "@570" }, { "@type": "@571" }, { "@type": "@572" }, { "@type": "@573" }, { "@type": "@574" }, { "@type": "@575" }, { "@type": "@576" }, { "@type": "@577" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": { "name": "DEFINER", "equals": true, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "root@localhost", "expr": "`root`@`localhost`", "alias": null, "function": null, "subquery": null }, "value": "`root`@`localhost`" }, "6": "FUNCTION" } }, "first": 278, "last": 575 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "split", "column": null, "expr": "`split`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "DETERMINISTIC", "6": { "name": "SQL SECURITY", "equals": false, "expr": "INVOKER", "value": "INVOKER" } } }, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "TEXT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "CHARSET", "equals": false, "expr": "utf8mb4", "value": "utf8mb4" }, "3": { "name": "COLLATE", "equals": false, "expr": "utf8mb4_unicode_520_ci", "value": "utf8mb4_unicode_520_ci" } } } }, "parameters": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "string", "inOut": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "TEXT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "delim", "inOut": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "TEXT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "n", "inOut": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } } ], "body": [ { "@type": "@628" }, { "@type": "@629" }, { "@type": "@630" }, { "@type": "@631" }, { "@type": "@632" }, { "@type": "@633" }, { "@type": "@634" }, { "@type": "@635" }, { "@type": "@636" }, { "@type": "@637" }, { "@type": "@638" }, { "@type": "@639" }, { "@type": "@640" }, { "@type": "@641" }, { "@type": "@642" }, { "@type": "@643" }, { "@type": "@644" }, { "@type": "@645" }, { "@type": "@646" }, { "@type": "@647" }, { "@type": "@648" }, { "@type": "@649" }, { "@type": "@650" }, { "@type": "@651" }, { "@type": "@652" }, { "@type": "@653" }, { "@type": "@654" }, { "@type": "@655" }, { "@type": "@656" }, { "@type": "@657" }, { "@type": "@658" }, { "@type": "@659" }, { "@type": "@660" }, { "@type": "@661" }, { "@type": "@662" }, { "@type": "@663" }, { "@type": "@664" }, { "@type": "@665" }, { "@type": "@666" }, { "@type": "@667" }, { "@type": "@668" }, { "@type": "@669" }, { "@type": "@670" }, { "@type": "@671" }, { "@type": "@672" }, { "@type": "@673" }, { "@type": "@674" }, { "@type": "@675" }, { "@type": "@676" }, { "@type": "@677" }, { "@type": "@678" }, { "@type": "@679" }, { "@type": "@680" }, { "@type": "@681" }, { "@type": "@682" }, { "@type": "@683" }, { "@type": "@684" }, { "@type": "@685" }, { "@type": "@686" }, { "@type": "@687" }, { "@type": "@688" }, { "@type": "@689" }, { "@type": "@690" }, { "@type": "@691" }, { "@type": "@692" }, { "@type": "@693" }, { "@type": "@694" }, { "@type": "@695" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": { "name": "DEFINER", "equals": true, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "user@localhost", "expr": "`user`@`localhost`", "alias": null, "function": null, "subquery": null }, "value": "`user`@`localhost`" }, "6": "FUNCTION" } }, "first": 581, "last": 693 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "substrCount", "column": null, "expr": "`substrCount`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "DETERMINISTIC", "4": "READS SQL DATA", "6": { "name": "SQL SECURITY", "equals": false, "expr": "INVOKER", "value": "INVOKER" } } }, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "TINYINT", "parameters": [ "3" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "parameters": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "s", "inOut": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "255" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\ParameterDefinition", "name": "ss", "inOut": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "255" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } } ], "body": [ { "@type": "@746" }, { "@type": "@747" }, { "@type": "@748" }, { "@type": "@749" }, { "@type": "@750" }, { "@type": "@751" }, { "@type": "@752" }, { "@type": "@753" }, { "@type": "@754" }, { "@type": "@755" }, { "@type": "@756" }, { "@type": "@757" }, { "@type": "@758" }, { "@type": "@759" }, { "@type": "@760" }, { "@type": "@761" }, { "@type": "@762" }, { "@type": "@763" }, { "@type": "@764" }, { "@type": "@765" }, { "@type": "@766" }, { "@type": "@767" }, { "@type": "@768" }, { "@type": "@769" }, { "@type": "@770" }, { "@type": "@771" }, { "@type": "@772" }, { "@type": "@773" }, { "@type": "@774" }, { "@type": "@775" }, { "@type": "@776" }, { "@type": "@777" }, { "@type": "@778" }, { "@type": "@779" }, { "@type": "@780" }, { "@type": "@781" }, { "@type": "@782" }, { "@type": "@783" }, { "@type": "@784" }, { "@type": "@785" }, { "@type": "@786" }, { "@type": "@787" }, { "@type": "@788" }, { "@type": "@789" }, { "@type": "@790" }, { "@type": "@791" }, { "@type": "@792" }, { "@type": "@793" }, { "@type": "@794" }, { "@type": "@795" }, { "@type": "@796" }, { "@type": "@797" }, { "@type": "@798" }, { "@type": "@799" }, { "@type": "@800" }, { "@type": "@801" }, { "@type": "@802" }, { "@type": "@803" }, { "@type": "@804" }, { "@type": "@805" }, { "@type": "@806" }, { "@type": "@807" }, { "@type": "@808" }, { "@type": "@809" }, { "@type": "@810" }, { "@type": "@811" }, { "@type": "@812" }, { "@type": "@813" }, { "@type": "@814" }, { "@type": "@815" }, { "@type": "@816" }, { "@type": "@817" }, { "@type": "@818" }, { "@type": "@819" }, { "@type": "@820" }, { "@type": "@821" }, { "@type": "@822" }, { "@type": "@823" }, { "@type": "@824" }, { "@type": "@825" }, { "@type": "@826" }, { "@type": "@827" }, { "@type": "@828" }, { "@type": "@829" }, { "@type": "@830" }, { "@type": "@831" }, { "@type": "@832" }, { "@type": "@833" }, { "@type": "@834" }, { "@type": "@835" }, { "@type": "@836" }, { "@type": "@837" }, { "@type": "@838" }, { "@type": "@839" }, { "@type": "@840" }, { "@type": "@841" }, { "@type": "@842" }, { "@type": "@843" }, { "@type": "@844" }, { "@type": "@845" }, { "@type": "@846" }, { "@type": "@847" }, { "@type": "@848" }, { "@type": "@849" }, { "@type": "@850" }, { "@type": "@851" }, { "@type": "@852" }, { "@type": "@853" }, { "@type": "@854" }, { "@type": "@855" }, { "@type": "@856" }, { "@type": "@857" }, { "@type": "@858" }, { "@type": "@859" }, { "@type": "@860" }, { "@type": "@861" }, { "@type": "@862" }, { "@type": "@863" }, { "@type": "@864" }, { "@type": "@865" }, { "@type": "@866" }, { "@type": "@867" }, { "@type": "@868" }, { "@type": "@869" }, { "@type": "@870" }, { "@type": "@871" }, { "@type": "@872" }, { "@type": "@873" }, { "@type": "@874" }, { "@type": "@875" }, { "@type": "@876" }, { "@type": "@877" }, { "@type": "@878" }, { "@type": "@879" }, { "@type": "@880" }, { "@type": "@881" }, { "@type": "@882" }, { "@type": "@883" }, { "@type": "@884" }, { "@type": "@885" }, { "@type": "@886" }, { "@type": "@887" }, { "@type": "@888" }, { "@type": "@889" }, { "@type": "@890" }, { "@type": "@891" }, { "@type": "@892" }, { "@type": "@893" }, { "@type": "@894" }, { "@type": "@895" }, { "@type": "@896" }, { "@type": "@897" }, { "@type": "@898" }, { "@type": "@899" }, { "@type": "@900" }, { "@type": "@901" }, { "@type": "@902" }, { "@type": "@903" }, { "@type": "@904" }, { "@type": "@905" }, { "@type": "@906" }, { "@type": "@907" }, { "@type": "@908" }, { "@type": "@909" }, { "@type": "@910" }, { "@type": "@911" }, { "@type": "@912" }, { "@type": "@913" }, { "@type": "@914" }, { "@type": "@915" }, { "@type": "@916" }, { "@type": "@917" }, { "@type": "@918" }, { "@type": "@919" }, { "@type": "@920" }, { "@type": "@921" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": { "name": "DEFINER", "equals": true, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "root@localhost", "expr": "`root`@`localhost`", "alias": null, "function": null, "subquery": null }, "value": "`root`@`localhost`" }, "6": "FUNCTION" } }, "first": 699, "last": 919 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateSchema.in000066400000000000000000000000711455302707200230770ustar00rootroot00000000000000CREATE DATABASE IF NOT EXISTS pma DEFAULT CHARSET 'utf8';sql-parser-5.9.0/tests/data/parser/parseCreateSchema.out000066400000000000000000000146341455302707200233120ustar00rootroot00000000000000{ "query": "CREATE DATABASE IF NOT EXISTS pma DEFAULT CHARSET 'utf8';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE DATABASE IF NOT EXISTS pma DEFAULT CHARSET 'utf8';", "len": 57, "last": 57, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DATABASE", "value": "DATABASE", "keyword": "DATABASE", "type": 1, "flags": 35, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF NOT EXISTS", "value": "IF NOT EXISTS", "keyword": "IF NOT EXISTS", "type": 1, "flags": 7, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pma", "value": "pma", "keyword": null, "type": 0, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT CHARSET", "value": "DEFAULT CHARSET", "keyword": "DEFAULT CHARSET", "type": 1, "flags": 7, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'utf8'", "value": "utf8", "keyword": null, "type": 7, "flags": 1, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 13, "idx": 13 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "pma", "table": null, "column": null, "expr": "pma", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "DEFAULT CHARSET", "equals": true, "expr": "'utf8'", "value": "utf8" } } }, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "DATABASE", "7": "IF NOT EXISTS" } }, "first": 0, "last": 10 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateSchemaErr.in000066400000000000000000000001061455302707200235470ustar00rootroot00000000000000CREATE SCHEMA IF NOT EXISTS pma ENGINE='InnoDB' DEFAULT CHARSET 'utf8'sql-parser-5.9.0/tests/data/parser/parseCreateSchemaErr.out000066400000000000000000000163621455302707200237630ustar00rootroot00000000000000{ "query": "CREATE SCHEMA IF NOT EXISTS pma ENGINE='InnoDB' DEFAULT CHARSET 'utf8'", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE SCHEMA IF NOT EXISTS pma ENGINE='InnoDB' DEFAULT CHARSET 'utf8'", "len": 70, "last": 70, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SCHEMA", "value": "SCHEMA", "keyword": "SCHEMA", "type": 1, "flags": 35, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF NOT EXISTS", "value": "IF NOT EXISTS", "keyword": "IF NOT EXISTS", "type": 1, "flags": 7, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pma", "value": "pma", "keyword": null, "type": 0, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENGINE", "value": "ENGINE", "keyword": "ENGINE", "type": 1, "flags": 1, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'InnoDB'", "value": "InnoDB", "keyword": null, "type": 7, "flags": 1, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT CHARSET", "value": "DEFAULT CHARSET", "keyword": "DEFAULT CHARSET", "type": 1, "flags": 7, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'utf8'", "value": "utf8", "keyword": null, "type": 7, "flags": 1, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 16, "idx": 17 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "pma", "table": null, "column": null, "expr": "pma", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "SCHEMA", "7": "IF NOT EXISTS" } }, "first": 0, "last": 7 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unrecognized statement type.", { "@type": "@10" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseCreateTable.in000066400000000000000000000003451455302707200227320ustar00rootroot00000000000000CREATE TABLE IF NOT EXISTS users ( `id` INT NOT NULL AUTO_INCREMENT, username VARCHAR(64) NULL, `password` VARCHAR(256) DEFAULT '123456', CONSTRAINT pk_id PRIMARY KEY (`id`), UNIQUE (username) ) ENGINE=InnoDB;sql-parser-5.9.0/tests/data/parser/parseCreateTable.out000066400000000000000000000704011455302707200231330ustar00rootroot00000000000000{ "query": "CREATE TABLE IF NOT EXISTS users (\n `id` INT NOT NULL AUTO_INCREMENT,\n username VARCHAR(64) NULL,\n `password` VARCHAR(256) DEFAULT '123456',\n CONSTRAINT pk_id PRIMARY KEY (`id`),\n UNIQUE (username)\n) ENGINE=InnoDB;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE IF NOT EXISTS users (\n `id` INT NOT NULL AUTO_INCREMENT,\n username VARCHAR(64) NULL,\n `password` VARCHAR(256) DEFAULT '123456',\n CONSTRAINT pk_id PRIMARY KEY (`id`),\n UNIQUE (username)\n) ENGINE=InnoDB;", "len": 229, "last": 229, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF NOT EXISTS", "value": "IF NOT EXISTS", "keyword": "IF NOT EXISTS", "type": 1, "flags": 7, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "users", "value": "users", "keyword": null, "type": 0, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`id`", "value": "id", "keyword": null, "type": 8, "flags": 2, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AUTO_INCREMENT", "value": "AUTO_INCREMENT", "keyword": "AUTO_INCREMENT", "type": 1, "flags": 1, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "64", "value": 64, "keyword": null, "type": 6, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`password`", "value": "password", "keyword": null, "type": 8, "flags": 2, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "256", "value": 256, "keyword": null, "type": 6, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'123456'", "value": "123456", "keyword": null, "type": 7, "flags": 1, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CONSTRAINT", "value": "CONSTRAINT", "keyword": "CONSTRAINT", "type": 1, "flags": 3, "position": 154 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pk_id", "value": "pk_id", "keyword": null, "type": 0, "flags": 0, "position": 165 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PRIMARY KEY", "value": "PRIMARY KEY", "keyword": "PRIMARY KEY", "type": 1, "flags": 23, "position": 171 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 182 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 183 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`id`", "value": "id", "keyword": null, "type": 8, "flags": 2, "position": 184 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 188 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 189 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 190 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNIQUE", "value": "UNIQUE", "keyword": "UNIQUE", "type": 1, "flags": 19, "position": 195 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 201 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 202 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 203 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 211 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 212 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 213 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 214 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENGINE", "value": "ENGINE", "keyword": "ENGINE", "type": 1, "flags": 1, "position": 215 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 221 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "InnoDB", "value": "InnoDB", "keyword": null, "type": 0, "flags": 0, "position": 222 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 228 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 65, "idx": 65 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "users", "column": null, "expr": "users", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ENGINE", "equals": true, "expr": "InnoDB", "value": "InnoDB" } } }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "3": "AUTO_INCREMENT" } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "username", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "64" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NULL" } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "password", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "256" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "123456", "expr": "'123456'", "alias": null, "function": null, "subquery": null }, "value": "'123456'" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "pk_id", "isConstraint": true, "type": null, "key": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Key", "name": null, "columns": [ { "name": "id" } ], "type": "PRIMARY KEY", "expr": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "references": null, "options": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": null, "isConstraint": null, "type": null, "key": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Key", "name": null, "columns": [ { "name": "username" } ], "type": "UNIQUE", "expr": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "references": null, "options": null } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE", "7": "IF NOT EXISTS" } }, "first": 0, "last": 63 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTable10.in000066400000000000000000000005771455302707200231020ustar00rootroot00000000000000CREATE TABLE `trips2` ( `id` bigint(20) UNSIGNED NOT NULL PRIMARY KEY COMMENT 'Unique trip Id', `trip_code` int(11) UNSIGNED NOT NULL COMMENT 'Trip code', `trip_category` int(11) UNSIGNED NOT NULL COMMENT 'Trip category', `trip_date` date NOT NULL COMMENT 'The trip date' ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'The trips';sql-parser-5.9.0/tests/data/parser/parseCreateTable10.out000066400000000000000000001142041455302707200232740ustar00rootroot00000000000000{ "query": "CREATE TABLE `trips2` (\n `id` bigint(20) UNSIGNED NOT NULL PRIMARY KEY COMMENT 'Unique trip Id',\n `trip_code` int(11) UNSIGNED NOT NULL COMMENT 'Trip code',\n `trip_category` int(11) UNSIGNED NOT NULL COMMENT 'Trip category',\n `trip_date` date NOT NULL COMMENT 'The trip date'\n) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'The trips';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE `trips2` (\n `id` bigint(20) UNSIGNED NOT NULL PRIMARY KEY COMMENT 'Unique trip Id',\n `trip_code` int(11) UNSIGNED NOT NULL COMMENT 'Trip code',\n `trip_category` int(11) UNSIGNED NOT NULL COMMENT 'Trip category',\n `trip_date` date NOT NULL COMMENT 'The trip date'\n) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'The trips';", "len": 383, "last": 383, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`trips2`", "value": "trips2", "keyword": null, "type": 8, "flags": 2, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`id`", "value": "id", "keyword": null, "type": 8, "flags": 2, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bigint", "value": "BIGINT", "keyword": "BIGINT", "type": 1, "flags": 11, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "20", "value": 20, "keyword": null, "type": 6, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PRIMARY KEY", "value": "PRIMARY KEY", "keyword": "PRIMARY KEY", "type": 1, "flags": 23, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Unique trip Id'", "value": "Unique trip Id", "keyword": null, "type": 7, "flags": 1, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`trip_code`", "value": "trip_code", "keyword": null, "type": 8, "flags": 2, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "int", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Trip code'", "value": "Trip code", "keyword": null, "type": 7, "flags": 1, "position": 150 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`trip_category`", "value": "trip_category", "keyword": null, "type": 8, "flags": 2, "position": 167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 182 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "int", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 183 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 186 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 187 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 189 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 190 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 191 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 199 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 200 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 208 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 209 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 216 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Trip category'", "value": "Trip category", "keyword": null, "type": 7, "flags": 1, "position": 217 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 232 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 233 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`trip_date`", "value": "trip_date", "keyword": null, "type": 8, "flags": 2, "position": 238 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 249 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "date", "value": "date", "keyword": "DATE", "type": 1, "flags": 41, "position": 250 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 254 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 255 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 263 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 264 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 271 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'The trip date'", "value": "The trip date", "keyword": null, "type": 7, "flags": 1, "position": 272 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 287 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 288 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 289 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENGINE", "value": "ENGINE", "keyword": "ENGINE", "type": 1, "flags": 1, "position": 290 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 296 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 297 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 298 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "InnoDB", "value": "InnoDB", "keyword": null, "type": 0, "flags": 0, "position": 299 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 305 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT CHARSET", "value": "DEFAULT CHARSET", "keyword": "DEFAULT CHARSET", "type": 1, "flags": 7, "position": 306 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 321 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 322 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 323 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8mb4", "value": "utf8mb4", "keyword": null, "type": 0, "flags": 0, "position": 324 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 331 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLLATE", "value": "COLLATE", "keyword": "COLLATE", "type": 1, "flags": 3, "position": 332 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 339 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 340 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 341 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8mb4_unicode_ci", "value": "utf8mb4_unicode_ci", "keyword": null, "type": 0, "flags": 0, "position": 342 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 360 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 361 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 368 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 369 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 370 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'The trips'", "value": "The trips", "keyword": null, "type": 7, "flags": 1, "position": 371 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 382 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 95, "idx": 95 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "trips2", "column": null, "expr": "`trips2`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ENGINE", "equals": true, "expr": "InnoDB", "value": "InnoDB" }, "4": { "name": "DEFAULT CHARSET", "equals": true, "expr": "utf8mb4", "value": "utf8mb4" }, "6": { "name": "COLLATE", "equals": true, "expr": "utf8mb4_unicode_ci", "value": "utf8mb4_unicode_ci" }, "7": { "name": "COMMENT", "equals": true, "expr": "'The trips'", "value": "The trips" } } }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "BIGINT", "parameters": [ "20" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "4": "PRIMARY KEY", "5": { "name": "COMMENT", "equals": false, "expr": "'Unique trip Id'", "value": "Unique trip Id" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "trip_code", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [ "11" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "5": { "name": "COMMENT", "equals": false, "expr": "'Trip code'", "value": "Trip code" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "trip_category", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [ "11" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "5": { "name": "COMMENT", "equals": false, "expr": "'Trip category'", "value": "Trip category" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "trip_date", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "DATE", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "5": { "name": "COMMENT", "equals": false, "expr": "'The trip date'", "value": "The trip date" } } } } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 93 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTable11.in000066400000000000000000000441041455302707200230750ustar00rootroot00000000000000CREATE TABLE `trips` ( `id` bigint(20) UNSIGNED NOT NULL COMMENT 'Unique trip Id', `trip_category` int(11) UNSIGNED NOT NULL COMMENT 'Trip category', `trip_month` int(11) UNSIGNED NOT NULL COMMENT 'Trip month', `trip_date` date NOT NULL COMMENT 'The trip date' ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'The trips' PARTITION BY RANGE(trip_month) SUBPARTITION BY HASH(DAY(trip_date)) ( PARTITION p_month_Jan VALUES LESS THAN (0) ( SUBPARTITION p_month_Jan_day_0, SUBPARTITION p_month_Jan_day_1, SUBPARTITION p_month_Jan_day_2, SUBPARTITION p_month_Jan_day_3, SUBPARTITION p_month_Jan_day_4, SUBPARTITION p_month_Jan_day_5, SUBPARTITION p_month_Jan_day_6, SUBPARTITION p_month_Jan_day_7, SUBPARTITION p_month_Jan_day_8, SUBPARTITION p_month_Jan_day_9, SUBPARTITION p_month_Jan_day_10, SUBPARTITION p_month_Jan_day_11, SUBPARTITION p_month_Jan_day_12, SUBPARTITION p_month_Jan_day_13, SUBPARTITION p_month_Jan_day_14, SUBPARTITION p_month_Jan_day_15, SUBPARTITION p_month_Jan_day_16, SUBPARTITION p_month_Jan_day_17, SUBPARTITION p_month_Jan_day_18, SUBPARTITION p_month_Jan_day_19, SUBPARTITION p_month_Jan_day_20, SUBPARTITION p_month_Jan_day_21, SUBPARTITION p_month_Jan_day_22, SUBPARTITION p_month_Jan_day_23, SUBPARTITION p_month_Jan_day_24, SUBPARTITION p_month_Jan_day_25, SUBPARTITION p_month_Jan_day_26, SUBPARTITION p_month_Jan_day_27, SUBPARTITION p_month_Jan_day_28, SUBPARTITION p_month_Jan_day_29, SUBPARTITION p_month_Jan_day_30, SUBPARTITION p_month_Jan_day_31 ), PARTITION p_month_Feb VALUES LESS THAN (1) ( SUBPARTITION p_month_Feb_day_0, SUBPARTITION p_month_Feb_day_1, SUBPARTITION p_month_Feb_day_2, SUBPARTITION p_month_Feb_day_3, SUBPARTITION p_month_Feb_day_4, SUBPARTITION p_month_Feb_day_5, SUBPARTITION p_month_Feb_day_6, SUBPARTITION p_month_Feb_day_7, SUBPARTITION p_month_Feb_day_8, SUBPARTITION p_month_Feb_day_9, SUBPARTITION p_month_Feb_day_10, SUBPARTITION p_month_Feb_day_11, SUBPARTITION p_month_Feb_day_12, SUBPARTITION p_month_Feb_day_13, SUBPARTITION p_month_Feb_day_14, SUBPARTITION p_month_Feb_day_15, SUBPARTITION p_month_Feb_day_16, SUBPARTITION p_month_Feb_day_17, SUBPARTITION p_month_Feb_day_18, SUBPARTITION p_month_Feb_day_19, SUBPARTITION p_month_Feb_day_20, SUBPARTITION p_month_Feb_day_21, SUBPARTITION p_month_Feb_day_22, SUBPARTITION p_month_Feb_day_23, SUBPARTITION p_month_Feb_day_24, SUBPARTITION p_month_Feb_day_25, SUBPARTITION p_month_Feb_day_26, SUBPARTITION p_month_Feb_day_27, SUBPARTITION p_month_Feb_day_28, SUBPARTITION p_month_Feb_day_29, SUBPARTITION p_month_Feb_day_30, SUBPARTITION p_month_Feb_day_31 ), PARTITION p_month_Mar VALUES LESS THAN (2) ( SUBPARTITION p_month_Mar_day_0, SUBPARTITION p_month_Mar_day_1, SUBPARTITION p_month_Mar_day_2, SUBPARTITION p_month_Mar_day_3, SUBPARTITION p_month_Mar_day_4, SUBPARTITION p_month_Mar_day_5, SUBPARTITION p_month_Mar_day_6, SUBPARTITION p_month_Mar_day_7, SUBPARTITION p_month_Mar_day_8, SUBPARTITION p_month_Mar_day_9, SUBPARTITION p_month_Mar_day_10, SUBPARTITION p_month_Mar_day_11, SUBPARTITION p_month_Mar_day_12, SUBPARTITION p_month_Mar_day_13, SUBPARTITION p_month_Mar_day_14, SUBPARTITION p_month_Mar_day_15, SUBPARTITION p_month_Mar_day_16, SUBPARTITION p_month_Mar_day_17, SUBPARTITION p_month_Mar_day_18, SUBPARTITION p_month_Mar_day_19, SUBPARTITION p_month_Mar_day_20, SUBPARTITION p_month_Mar_day_21, SUBPARTITION p_month_Mar_day_22, SUBPARTITION p_month_Mar_day_23, SUBPARTITION p_month_Mar_day_24, SUBPARTITION p_month_Mar_day_25, SUBPARTITION p_month_Mar_day_26, SUBPARTITION p_month_Mar_day_27, SUBPARTITION p_month_Mar_day_28, SUBPARTITION p_month_Mar_day_29, SUBPARTITION p_month_Mar_day_30, SUBPARTITION p_month_Mar_day_31 ), PARTITION p_month_Apr VALUES LESS THAN (3) ( SUBPARTITION p_month_Apr_day_0, SUBPARTITION p_month_Apr_day_1, SUBPARTITION p_month_Apr_day_2, SUBPARTITION p_month_Apr_day_3, SUBPARTITION p_month_Apr_day_4, SUBPARTITION p_month_Apr_day_5, SUBPARTITION p_month_Apr_day_6, SUBPARTITION p_month_Apr_day_7, SUBPARTITION p_month_Apr_day_8, SUBPARTITION p_month_Apr_day_9, SUBPARTITION p_month_Apr_day_10, SUBPARTITION p_month_Apr_day_11, SUBPARTITION p_month_Apr_day_12, SUBPARTITION p_month_Apr_day_13, SUBPARTITION p_month_Apr_day_14, SUBPARTITION p_month_Apr_day_15, SUBPARTITION p_month_Apr_day_16, SUBPARTITION p_month_Apr_day_17, SUBPARTITION p_month_Apr_day_18, SUBPARTITION p_month_Apr_day_19, SUBPARTITION p_month_Apr_day_20, SUBPARTITION p_month_Apr_day_21, SUBPARTITION p_month_Apr_day_22, SUBPARTITION p_month_Apr_day_23, SUBPARTITION p_month_Apr_day_24, SUBPARTITION p_month_Apr_day_25, SUBPARTITION p_month_Apr_day_26, SUBPARTITION p_month_Apr_day_27, SUBPARTITION p_month_Apr_day_28, SUBPARTITION p_month_Apr_day_29, SUBPARTITION p_month_Apr_day_30, SUBPARTITION p_month_Apr_day_31 ), PARTITION p_month_Mai VALUES LESS THAN (4) ( SUBPARTITION p_month_Mai_day_0, SUBPARTITION p_month_Mai_day_1, SUBPARTITION p_month_Mai_day_2, SUBPARTITION p_month_Mai_day_3, SUBPARTITION p_month_Mai_day_4, SUBPARTITION p_month_Mai_day_5, SUBPARTITION p_month_Mai_day_6, SUBPARTITION p_month_Mai_day_7, SUBPARTITION p_month_Mai_day_8, SUBPARTITION p_month_Mai_day_9, SUBPARTITION p_month_Mai_day_10, SUBPARTITION p_month_Mai_day_11, SUBPARTITION p_month_Mai_day_12, SUBPARTITION p_month_Mai_day_13, SUBPARTITION p_month_Mai_day_14, SUBPARTITION p_month_Mai_day_15, SUBPARTITION p_month_Mai_day_16, SUBPARTITION p_month_Mai_day_17, SUBPARTITION p_month_Mai_day_18, SUBPARTITION p_month_Mai_day_19, SUBPARTITION p_month_Mai_day_20, SUBPARTITION p_month_Mai_day_21, SUBPARTITION p_month_Mai_day_22, SUBPARTITION p_month_Mai_day_23, SUBPARTITION p_month_Mai_day_24, SUBPARTITION p_month_Mai_day_25, SUBPARTITION p_month_Mai_day_26, SUBPARTITION p_month_Mai_day_27, SUBPARTITION p_month_Mai_day_28, SUBPARTITION p_month_Mai_day_29, SUBPARTITION p_month_Mai_day_30, SUBPARTITION p_month_Mai_day_31 ), PARTITION p_month_Jun VALUES LESS THAN (5) ( SUBPARTITION p_month_Jun_day_0, SUBPARTITION p_month_Jun_day_1, SUBPARTITION p_month_Jun_day_2, SUBPARTITION p_month_Jun_day_3, SUBPARTITION p_month_Jun_day_4, SUBPARTITION p_month_Jun_day_5, SUBPARTITION p_month_Jun_day_6, SUBPARTITION p_month_Jun_day_7, SUBPARTITION p_month_Jun_day_8, SUBPARTITION p_month_Jun_day_9, SUBPARTITION p_month_Jun_day_10, SUBPARTITION p_month_Jun_day_11, SUBPARTITION p_month_Jun_day_12, SUBPARTITION p_month_Jun_day_13, SUBPARTITION p_month_Jun_day_14, SUBPARTITION p_month_Jun_day_15, SUBPARTITION p_month_Jun_day_16, SUBPARTITION p_month_Jun_day_17, SUBPARTITION p_month_Jun_day_18, SUBPARTITION p_month_Jun_day_19, SUBPARTITION p_month_Jun_day_20, SUBPARTITION p_month_Jun_day_21, SUBPARTITION p_month_Jun_day_22, SUBPARTITION p_month_Jun_day_23, SUBPARTITION p_month_Jun_day_24, SUBPARTITION p_month_Jun_day_25, SUBPARTITION p_month_Jun_day_26, SUBPARTITION p_month_Jun_day_27, SUBPARTITION p_month_Jun_day_28, SUBPARTITION p_month_Jun_day_29, SUBPARTITION p_month_Jun_day_30, SUBPARTITION p_month_Jun_day_31 ), PARTITION p_month_Jul VALUES LESS THAN (6) ( SUBPARTITION p_month_Jul_day_0, SUBPARTITION p_month_Jul_day_1, SUBPARTITION p_month_Jul_day_2, SUBPARTITION p_month_Jul_day_3, SUBPARTITION p_month_Jul_day_4, SUBPARTITION p_month_Jul_day_5, SUBPARTITION p_month_Jul_day_6, SUBPARTITION p_month_Jul_day_7, SUBPARTITION p_month_Jul_day_8, SUBPARTITION p_month_Jul_day_9, SUBPARTITION p_month_Jul_day_10, SUBPARTITION p_month_Jul_day_11, SUBPARTITION p_month_Jul_day_12, SUBPARTITION p_month_Jul_day_13, SUBPARTITION p_month_Jul_day_14, SUBPARTITION p_month_Jul_day_15, SUBPARTITION p_month_Jul_day_16, SUBPARTITION p_month_Jul_day_17, SUBPARTITION p_month_Jul_day_18, SUBPARTITION p_month_Jul_day_19, SUBPARTITION p_month_Jul_day_20, SUBPARTITION p_month_Jul_day_21, SUBPARTITION p_month_Jul_day_22, SUBPARTITION p_month_Jul_day_23, SUBPARTITION p_month_Jul_day_24, SUBPARTITION p_month_Jul_day_25, SUBPARTITION p_month_Jul_day_26, SUBPARTITION p_month_Jul_day_27, SUBPARTITION p_month_Jul_day_28, SUBPARTITION p_month_Jul_day_29, SUBPARTITION p_month_Jul_day_30, SUBPARTITION p_month_Jul_day_31 ), PARTITION p_month_Aug VALUES LESS THAN (7) ( SUBPARTITION p_month_Aug_day_0, SUBPARTITION p_month_Aug_day_1, SUBPARTITION p_month_Aug_day_2, SUBPARTITION p_month_Aug_day_3, SUBPARTITION p_month_Aug_day_4, SUBPARTITION p_month_Aug_day_5, SUBPARTITION p_month_Aug_day_6, SUBPARTITION p_month_Aug_day_7, SUBPARTITION p_month_Aug_day_8, SUBPARTITION p_month_Aug_day_9, SUBPARTITION p_month_Aug_day_10, SUBPARTITION p_month_Aug_day_11, SUBPARTITION p_month_Aug_day_12, SUBPARTITION p_month_Aug_day_13, SUBPARTITION p_month_Aug_day_14, SUBPARTITION p_month_Aug_day_15, SUBPARTITION p_month_Aug_day_16, SUBPARTITION p_month_Aug_day_17, SUBPARTITION p_month_Aug_day_18, SUBPARTITION p_month_Aug_day_19, SUBPARTITION p_month_Aug_day_20, SUBPARTITION p_month_Aug_day_21, SUBPARTITION p_month_Aug_day_22, SUBPARTITION p_month_Aug_day_23, SUBPARTITION p_month_Aug_day_24, SUBPARTITION p_month_Aug_day_25, SUBPARTITION p_month_Aug_day_26, SUBPARTITION p_month_Aug_day_27, SUBPARTITION p_month_Aug_day_28, SUBPARTITION p_month_Aug_day_29, SUBPARTITION p_month_Aug_day_30, SUBPARTITION p_month_Aug_day_31 ), PARTITION p_month_Sep VALUES LESS THAN (8) ( SUBPARTITION p_month_Sep_day_0, SUBPARTITION p_month_Sep_day_1, SUBPARTITION p_month_Sep_day_2, SUBPARTITION p_month_Sep_day_3, SUBPARTITION p_month_Sep_day_4, SUBPARTITION p_month_Sep_day_5, SUBPARTITION p_month_Sep_day_6, SUBPARTITION p_month_Sep_day_7, SUBPARTITION p_month_Sep_day_8, SUBPARTITION p_month_Sep_day_9, SUBPARTITION p_month_Sep_day_10, SUBPARTITION p_month_Sep_day_11, SUBPARTITION p_month_Sep_day_12, SUBPARTITION p_month_Sep_day_13, SUBPARTITION p_month_Sep_day_14, SUBPARTITION p_month_Sep_day_15, SUBPARTITION p_month_Sep_day_16, SUBPARTITION p_month_Sep_day_17, SUBPARTITION p_month_Sep_day_18, SUBPARTITION p_month_Sep_day_19, SUBPARTITION p_month_Sep_day_20, SUBPARTITION p_month_Sep_day_21, SUBPARTITION p_month_Sep_day_22, SUBPARTITION p_month_Sep_day_23, SUBPARTITION p_month_Sep_day_24, SUBPARTITION p_month_Sep_day_25, SUBPARTITION p_month_Sep_day_26, SUBPARTITION p_month_Sep_day_27, SUBPARTITION p_month_Sep_day_28, SUBPARTITION p_month_Sep_day_29, SUBPARTITION p_month_Sep_day_30, SUBPARTITION p_month_Sep_day_31 ), PARTITION p_month_Oct VALUES LESS THAN (9) ( SUBPARTITION p_month_Oct_day_0, SUBPARTITION p_month_Oct_day_1, SUBPARTITION p_month_Oct_day_2, SUBPARTITION p_month_Oct_day_3, SUBPARTITION p_month_Oct_day_4, SUBPARTITION p_month_Oct_day_5, SUBPARTITION p_month_Oct_day_6, SUBPARTITION p_month_Oct_day_7, SUBPARTITION p_month_Oct_day_8, SUBPARTITION p_month_Oct_day_9, SUBPARTITION p_month_Oct_day_10, SUBPARTITION p_month_Oct_day_11, SUBPARTITION p_month_Oct_day_12, SUBPARTITION p_month_Oct_day_13, SUBPARTITION p_month_Oct_day_14, SUBPARTITION p_month_Oct_day_15, SUBPARTITION p_month_Oct_day_16, SUBPARTITION p_month_Oct_day_17, SUBPARTITION p_month_Oct_day_18, SUBPARTITION p_month_Oct_day_19, SUBPARTITION p_month_Oct_day_20, SUBPARTITION p_month_Oct_day_21, SUBPARTITION p_month_Oct_day_22, SUBPARTITION p_month_Oct_day_23, SUBPARTITION p_month_Oct_day_24, SUBPARTITION p_month_Oct_day_25, SUBPARTITION p_month_Oct_day_26, SUBPARTITION p_month_Oct_day_27, SUBPARTITION p_month_Oct_day_28, SUBPARTITION p_month_Oct_day_29, SUBPARTITION p_month_Oct_day_30, SUBPARTITION p_month_Oct_day_31 ), PARTITION p_month_Nov VALUES LESS THAN (10) ( SUBPARTITION p_month_Nov_day_0, SUBPARTITION p_month_Nov_day_1, SUBPARTITION p_month_Nov_day_2, SUBPARTITION p_month_Nov_day_3, SUBPARTITION p_month_Nov_day_4, SUBPARTITION p_month_Nov_day_5, SUBPARTITION p_month_Nov_day_6, SUBPARTITION p_month_Nov_day_7, SUBPARTITION p_month_Nov_day_8, SUBPARTITION p_month_Nov_day_9, SUBPARTITION p_month_Nov_day_10, SUBPARTITION p_month_Nov_day_11, SUBPARTITION p_month_Nov_day_12, SUBPARTITION p_month_Nov_day_13, SUBPARTITION p_month_Nov_day_14, SUBPARTITION p_month_Nov_day_15, SUBPARTITION p_month_Nov_day_16, SUBPARTITION p_month_Nov_day_17, SUBPARTITION p_month_Nov_day_18, SUBPARTITION p_month_Nov_day_19, SUBPARTITION p_month_Nov_day_20, SUBPARTITION p_month_Nov_day_21, SUBPARTITION p_month_Nov_day_22, SUBPARTITION p_month_Nov_day_23, SUBPARTITION p_month_Nov_day_24, SUBPARTITION p_month_Nov_day_25, SUBPARTITION p_month_Nov_day_26, SUBPARTITION p_month_Nov_day_27, SUBPARTITION p_month_Nov_day_28, SUBPARTITION p_month_Nov_day_29, SUBPARTITION p_month_Nov_day_30, SUBPARTITION p_month_Nov_day_31 ), PARTITION p_month_Dec VALUES LESS THAN (11) ( SUBPARTITION p_month_Dec_day_0, SUBPARTITION p_month_Dec_day_1, SUBPARTITION p_month_Dec_day_2, SUBPARTITION p_month_Dec_day_3, SUBPARTITION p_month_Dec_day_4, SUBPARTITION p_month_Dec_day_5, SUBPARTITION p_month_Dec_day_6, SUBPARTITION p_month_Dec_day_7, SUBPARTITION p_month_Dec_day_8, SUBPARTITION p_month_Dec_day_9, SUBPARTITION p_month_Dec_day_10, SUBPARTITION p_month_Dec_day_11, SUBPARTITION p_month_Dec_day_12, SUBPARTITION p_month_Dec_day_13, SUBPARTITION p_month_Dec_day_14, SUBPARTITION p_month_Dec_day_15, SUBPARTITION p_month_Dec_day_16, SUBPARTITION p_month_Dec_day_17, SUBPARTITION p_month_Dec_day_18, SUBPARTITION p_month_Dec_day_19, SUBPARTITION p_month_Dec_day_20, SUBPARTITION p_month_Dec_day_21, SUBPARTITION p_month_Dec_day_22, SUBPARTITION p_month_Dec_day_23, SUBPARTITION p_month_Dec_day_24, SUBPARTITION p_month_Dec_day_25, SUBPARTITION p_month_Dec_day_26, SUBPARTITION p_month_Dec_day_27, SUBPARTITION p_month_Dec_day_28, SUBPARTITION p_month_Dec_day_29, SUBPARTITION p_month_Dec_day_30, SUBPARTITION p_month_Dec_day_31 ) )sql-parser-5.9.0/tests/data/parser/parseCreateTable11.out000066400000000000000000036773761455302707200233300ustar00rootroot00000000000000{ "query": "CREATE TABLE `trips` (\n `id` bigint(20) UNSIGNED NOT NULL COMMENT 'Unique trip Id',\n `trip_category` int(11) UNSIGNED NOT NULL COMMENT 'Trip category',\n `trip_month` int(11) UNSIGNED NOT NULL COMMENT 'Trip month',\n `trip_date` date NOT NULL COMMENT 'The trip date'\n) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'The trips'\nPARTITION BY RANGE(trip_month) SUBPARTITION BY HASH(DAY(trip_date)) (\n PARTITION p_month_Jan\n VALUES\n LESS THAN (0) (\n SUBPARTITION p_month_Jan_day_0,\n SUBPARTITION p_month_Jan_day_1,\n SUBPARTITION p_month_Jan_day_2,\n SUBPARTITION p_month_Jan_day_3,\n SUBPARTITION p_month_Jan_day_4,\n SUBPARTITION p_month_Jan_day_5,\n SUBPARTITION p_month_Jan_day_6,\n SUBPARTITION p_month_Jan_day_7,\n SUBPARTITION p_month_Jan_day_8,\n SUBPARTITION p_month_Jan_day_9,\n SUBPARTITION p_month_Jan_day_10,\n SUBPARTITION p_month_Jan_day_11,\n SUBPARTITION p_month_Jan_day_12,\n SUBPARTITION p_month_Jan_day_13,\n SUBPARTITION p_month_Jan_day_14,\n SUBPARTITION p_month_Jan_day_15,\n SUBPARTITION p_month_Jan_day_16,\n SUBPARTITION p_month_Jan_day_17,\n SUBPARTITION p_month_Jan_day_18,\n SUBPARTITION p_month_Jan_day_19,\n SUBPARTITION p_month_Jan_day_20,\n SUBPARTITION p_month_Jan_day_21,\n SUBPARTITION p_month_Jan_day_22,\n SUBPARTITION p_month_Jan_day_23,\n SUBPARTITION p_month_Jan_day_24,\n SUBPARTITION p_month_Jan_day_25,\n SUBPARTITION p_month_Jan_day_26,\n SUBPARTITION p_month_Jan_day_27,\n SUBPARTITION p_month_Jan_day_28,\n SUBPARTITION p_month_Jan_day_29,\n SUBPARTITION p_month_Jan_day_30,\n SUBPARTITION p_month_Jan_day_31\n ),\n PARTITION p_month_Feb\n VALUES\n LESS THAN (1) (\n SUBPARTITION p_month_Feb_day_0,\n SUBPARTITION p_month_Feb_day_1,\n SUBPARTITION p_month_Feb_day_2,\n SUBPARTITION p_month_Feb_day_3,\n SUBPARTITION p_month_Feb_day_4,\n SUBPARTITION p_month_Feb_day_5,\n SUBPARTITION p_month_Feb_day_6,\n SUBPARTITION p_month_Feb_day_7,\n SUBPARTITION p_month_Feb_day_8,\n SUBPARTITION p_month_Feb_day_9,\n SUBPARTITION p_month_Feb_day_10,\n SUBPARTITION p_month_Feb_day_11,\n SUBPARTITION p_month_Feb_day_12,\n SUBPARTITION p_month_Feb_day_13,\n SUBPARTITION p_month_Feb_day_14,\n SUBPARTITION p_month_Feb_day_15,\n SUBPARTITION p_month_Feb_day_16,\n SUBPARTITION p_month_Feb_day_17,\n SUBPARTITION p_month_Feb_day_18,\n SUBPARTITION p_month_Feb_day_19,\n SUBPARTITION p_month_Feb_day_20,\n SUBPARTITION p_month_Feb_day_21,\n SUBPARTITION p_month_Feb_day_22,\n SUBPARTITION p_month_Feb_day_23,\n SUBPARTITION p_month_Feb_day_24,\n SUBPARTITION p_month_Feb_day_25,\n SUBPARTITION p_month_Feb_day_26,\n SUBPARTITION p_month_Feb_day_27,\n SUBPARTITION p_month_Feb_day_28,\n SUBPARTITION p_month_Feb_day_29,\n SUBPARTITION p_month_Feb_day_30,\n SUBPARTITION p_month_Feb_day_31\n ),\n PARTITION p_month_Mar\n VALUES\n LESS THAN (2) (\n SUBPARTITION p_month_Mar_day_0,\n SUBPARTITION p_month_Mar_day_1,\n SUBPARTITION p_month_Mar_day_2,\n SUBPARTITION p_month_Mar_day_3,\n SUBPARTITION p_month_Mar_day_4,\n SUBPARTITION p_month_Mar_day_5,\n SUBPARTITION p_month_Mar_day_6,\n SUBPARTITION p_month_Mar_day_7,\n SUBPARTITION p_month_Mar_day_8,\n SUBPARTITION p_month_Mar_day_9,\n SUBPARTITION p_month_Mar_day_10,\n SUBPARTITION p_month_Mar_day_11,\n SUBPARTITION p_month_Mar_day_12,\n SUBPARTITION p_month_Mar_day_13,\n SUBPARTITION p_month_Mar_day_14,\n SUBPARTITION p_month_Mar_day_15,\n SUBPARTITION p_month_Mar_day_16,\n SUBPARTITION p_month_Mar_day_17,\n SUBPARTITION p_month_Mar_day_18,\n SUBPARTITION p_month_Mar_day_19,\n SUBPARTITION p_month_Mar_day_20,\n SUBPARTITION p_month_Mar_day_21,\n SUBPARTITION p_month_Mar_day_22,\n SUBPARTITION p_month_Mar_day_23,\n SUBPARTITION p_month_Mar_day_24,\n SUBPARTITION p_month_Mar_day_25,\n SUBPARTITION p_month_Mar_day_26,\n SUBPARTITION p_month_Mar_day_27,\n SUBPARTITION p_month_Mar_day_28,\n SUBPARTITION p_month_Mar_day_29,\n SUBPARTITION p_month_Mar_day_30,\n SUBPARTITION p_month_Mar_day_31\n ),\n PARTITION p_month_Apr\n VALUES\n LESS THAN (3) (\n SUBPARTITION p_month_Apr_day_0,\n SUBPARTITION p_month_Apr_day_1,\n SUBPARTITION p_month_Apr_day_2,\n SUBPARTITION p_month_Apr_day_3,\n SUBPARTITION p_month_Apr_day_4,\n SUBPARTITION p_month_Apr_day_5,\n SUBPARTITION p_month_Apr_day_6,\n SUBPARTITION p_month_Apr_day_7,\n SUBPARTITION p_month_Apr_day_8,\n SUBPARTITION p_month_Apr_day_9,\n SUBPARTITION p_month_Apr_day_10,\n SUBPARTITION p_month_Apr_day_11,\n SUBPARTITION p_month_Apr_day_12,\n SUBPARTITION p_month_Apr_day_13,\n SUBPARTITION p_month_Apr_day_14,\n SUBPARTITION p_month_Apr_day_15,\n SUBPARTITION p_month_Apr_day_16,\n SUBPARTITION p_month_Apr_day_17,\n SUBPARTITION p_month_Apr_day_18,\n SUBPARTITION p_month_Apr_day_19,\n SUBPARTITION p_month_Apr_day_20,\n SUBPARTITION p_month_Apr_day_21,\n SUBPARTITION p_month_Apr_day_22,\n SUBPARTITION p_month_Apr_day_23,\n SUBPARTITION p_month_Apr_day_24,\n SUBPARTITION p_month_Apr_day_25,\n SUBPARTITION p_month_Apr_day_26,\n SUBPARTITION p_month_Apr_day_27,\n SUBPARTITION p_month_Apr_day_28,\n SUBPARTITION p_month_Apr_day_29,\n SUBPARTITION p_month_Apr_day_30,\n SUBPARTITION p_month_Apr_day_31\n ),\n PARTITION p_month_Mai\n VALUES\n LESS THAN (4) (\n SUBPARTITION p_month_Mai_day_0,\n SUBPARTITION p_month_Mai_day_1,\n SUBPARTITION p_month_Mai_day_2,\n SUBPARTITION p_month_Mai_day_3,\n SUBPARTITION p_month_Mai_day_4,\n SUBPARTITION p_month_Mai_day_5,\n SUBPARTITION p_month_Mai_day_6,\n SUBPARTITION p_month_Mai_day_7,\n SUBPARTITION p_month_Mai_day_8,\n SUBPARTITION p_month_Mai_day_9,\n SUBPARTITION p_month_Mai_day_10,\n SUBPARTITION p_month_Mai_day_11,\n SUBPARTITION p_month_Mai_day_12,\n SUBPARTITION p_month_Mai_day_13,\n SUBPARTITION p_month_Mai_day_14,\n SUBPARTITION p_month_Mai_day_15,\n SUBPARTITION p_month_Mai_day_16,\n SUBPARTITION p_month_Mai_day_17,\n SUBPARTITION p_month_Mai_day_18,\n SUBPARTITION p_month_Mai_day_19,\n SUBPARTITION p_month_Mai_day_20,\n SUBPARTITION p_month_Mai_day_21,\n SUBPARTITION p_month_Mai_day_22,\n SUBPARTITION p_month_Mai_day_23,\n SUBPARTITION p_month_Mai_day_24,\n SUBPARTITION p_month_Mai_day_25,\n SUBPARTITION p_month_Mai_day_26,\n SUBPARTITION p_month_Mai_day_27,\n SUBPARTITION p_month_Mai_day_28,\n SUBPARTITION p_month_Mai_day_29,\n SUBPARTITION p_month_Mai_day_30,\n SUBPARTITION p_month_Mai_day_31\n ),\n PARTITION p_month_Jun\n VALUES\n LESS THAN (5) (\n SUBPARTITION p_month_Jun_day_0,\n SUBPARTITION p_month_Jun_day_1,\n SUBPARTITION p_month_Jun_day_2,\n SUBPARTITION p_month_Jun_day_3,\n SUBPARTITION p_month_Jun_day_4,\n SUBPARTITION p_month_Jun_day_5,\n SUBPARTITION p_month_Jun_day_6,\n SUBPARTITION p_month_Jun_day_7,\n SUBPARTITION p_month_Jun_day_8,\n SUBPARTITION p_month_Jun_day_9,\n SUBPARTITION p_month_Jun_day_10,\n SUBPARTITION p_month_Jun_day_11,\n SUBPARTITION p_month_Jun_day_12,\n SUBPARTITION p_month_Jun_day_13,\n SUBPARTITION p_month_Jun_day_14,\n SUBPARTITION p_month_Jun_day_15,\n SUBPARTITION p_month_Jun_day_16,\n SUBPARTITION p_month_Jun_day_17,\n SUBPARTITION p_month_Jun_day_18,\n SUBPARTITION p_month_Jun_day_19,\n SUBPARTITION p_month_Jun_day_20,\n SUBPARTITION p_month_Jun_day_21,\n SUBPARTITION p_month_Jun_day_22,\n SUBPARTITION p_month_Jun_day_23,\n SUBPARTITION p_month_Jun_day_24,\n SUBPARTITION p_month_Jun_day_25,\n SUBPARTITION p_month_Jun_day_26,\n SUBPARTITION p_month_Jun_day_27,\n SUBPARTITION p_month_Jun_day_28,\n SUBPARTITION p_month_Jun_day_29,\n SUBPARTITION p_month_Jun_day_30,\n SUBPARTITION p_month_Jun_day_31\n ),\n PARTITION p_month_Jul\n VALUES\n LESS THAN (6) (\n SUBPARTITION p_month_Jul_day_0,\n SUBPARTITION p_month_Jul_day_1,\n SUBPARTITION p_month_Jul_day_2,\n SUBPARTITION p_month_Jul_day_3,\n SUBPARTITION p_month_Jul_day_4,\n SUBPARTITION p_month_Jul_day_5,\n SUBPARTITION p_month_Jul_day_6,\n SUBPARTITION p_month_Jul_day_7,\n SUBPARTITION p_month_Jul_day_8,\n SUBPARTITION p_month_Jul_day_9,\n SUBPARTITION p_month_Jul_day_10,\n SUBPARTITION p_month_Jul_day_11,\n SUBPARTITION p_month_Jul_day_12,\n SUBPARTITION p_month_Jul_day_13,\n SUBPARTITION p_month_Jul_day_14,\n SUBPARTITION p_month_Jul_day_15,\n SUBPARTITION p_month_Jul_day_16,\n SUBPARTITION p_month_Jul_day_17,\n SUBPARTITION p_month_Jul_day_18,\n SUBPARTITION p_month_Jul_day_19,\n SUBPARTITION p_month_Jul_day_20,\n SUBPARTITION p_month_Jul_day_21,\n SUBPARTITION p_month_Jul_day_22,\n SUBPARTITION p_month_Jul_day_23,\n SUBPARTITION p_month_Jul_day_24,\n SUBPARTITION p_month_Jul_day_25,\n SUBPARTITION p_month_Jul_day_26,\n SUBPARTITION p_month_Jul_day_27,\n SUBPARTITION p_month_Jul_day_28,\n SUBPARTITION p_month_Jul_day_29,\n SUBPARTITION p_month_Jul_day_30,\n SUBPARTITION p_month_Jul_day_31\n ),\n PARTITION p_month_Aug\n VALUES\n LESS THAN (7) (\n SUBPARTITION p_month_Aug_day_0,\n SUBPARTITION p_month_Aug_day_1,\n SUBPARTITION p_month_Aug_day_2,\n SUBPARTITION p_month_Aug_day_3,\n SUBPARTITION p_month_Aug_day_4,\n SUBPARTITION p_month_Aug_day_5,\n SUBPARTITION p_month_Aug_day_6,\n SUBPARTITION p_month_Aug_day_7,\n SUBPARTITION p_month_Aug_day_8,\n SUBPARTITION p_month_Aug_day_9,\n SUBPARTITION p_month_Aug_day_10,\n SUBPARTITION p_month_Aug_day_11,\n SUBPARTITION p_month_Aug_day_12,\n SUBPARTITION p_month_Aug_day_13,\n SUBPARTITION p_month_Aug_day_14,\n SUBPARTITION p_month_Aug_day_15,\n SUBPARTITION p_month_Aug_day_16,\n SUBPARTITION p_month_Aug_day_17,\n SUBPARTITION p_month_Aug_day_18,\n SUBPARTITION p_month_Aug_day_19,\n SUBPARTITION p_month_Aug_day_20,\n SUBPARTITION p_month_Aug_day_21,\n SUBPARTITION p_month_Aug_day_22,\n SUBPARTITION p_month_Aug_day_23,\n SUBPARTITION p_month_Aug_day_24,\n SUBPARTITION p_month_Aug_day_25,\n SUBPARTITION p_month_Aug_day_26,\n SUBPARTITION p_month_Aug_day_27,\n SUBPARTITION p_month_Aug_day_28,\n SUBPARTITION p_month_Aug_day_29,\n SUBPARTITION p_month_Aug_day_30,\n SUBPARTITION p_month_Aug_day_31\n ),\n PARTITION p_month_Sep\n VALUES\n LESS THAN (8) (\n SUBPARTITION p_month_Sep_day_0,\n SUBPARTITION p_month_Sep_day_1,\n SUBPARTITION p_month_Sep_day_2,\n SUBPARTITION p_month_Sep_day_3,\n SUBPARTITION p_month_Sep_day_4,\n SUBPARTITION p_month_Sep_day_5,\n SUBPARTITION p_month_Sep_day_6,\n SUBPARTITION p_month_Sep_day_7,\n SUBPARTITION p_month_Sep_day_8,\n SUBPARTITION p_month_Sep_day_9,\n SUBPARTITION p_month_Sep_day_10,\n SUBPARTITION p_month_Sep_day_11,\n SUBPARTITION p_month_Sep_day_12,\n SUBPARTITION p_month_Sep_day_13,\n SUBPARTITION p_month_Sep_day_14,\n SUBPARTITION p_month_Sep_day_15,\n SUBPARTITION p_month_Sep_day_16,\n SUBPARTITION p_month_Sep_day_17,\n SUBPARTITION p_month_Sep_day_18,\n SUBPARTITION p_month_Sep_day_19,\n SUBPARTITION p_month_Sep_day_20,\n SUBPARTITION p_month_Sep_day_21,\n SUBPARTITION p_month_Sep_day_22,\n SUBPARTITION p_month_Sep_day_23,\n SUBPARTITION p_month_Sep_day_24,\n SUBPARTITION p_month_Sep_day_25,\n SUBPARTITION p_month_Sep_day_26,\n SUBPARTITION p_month_Sep_day_27,\n SUBPARTITION p_month_Sep_day_28,\n SUBPARTITION p_month_Sep_day_29,\n SUBPARTITION p_month_Sep_day_30,\n SUBPARTITION p_month_Sep_day_31\n ),\n PARTITION p_month_Oct\n VALUES\n LESS THAN (9) (\n SUBPARTITION p_month_Oct_day_0,\n SUBPARTITION p_month_Oct_day_1,\n SUBPARTITION p_month_Oct_day_2,\n SUBPARTITION p_month_Oct_day_3,\n SUBPARTITION p_month_Oct_day_4,\n SUBPARTITION p_month_Oct_day_5,\n SUBPARTITION p_month_Oct_day_6,\n SUBPARTITION p_month_Oct_day_7,\n SUBPARTITION p_month_Oct_day_8,\n SUBPARTITION p_month_Oct_day_9,\n SUBPARTITION p_month_Oct_day_10,\n SUBPARTITION p_month_Oct_day_11,\n SUBPARTITION p_month_Oct_day_12,\n SUBPARTITION p_month_Oct_day_13,\n SUBPARTITION p_month_Oct_day_14,\n SUBPARTITION p_month_Oct_day_15,\n SUBPARTITION p_month_Oct_day_16,\n SUBPARTITION p_month_Oct_day_17,\n SUBPARTITION p_month_Oct_day_18,\n SUBPARTITION p_month_Oct_day_19,\n SUBPARTITION p_month_Oct_day_20,\n SUBPARTITION p_month_Oct_day_21,\n SUBPARTITION p_month_Oct_day_22,\n SUBPARTITION p_month_Oct_day_23,\n SUBPARTITION p_month_Oct_day_24,\n SUBPARTITION p_month_Oct_day_25,\n SUBPARTITION p_month_Oct_day_26,\n SUBPARTITION p_month_Oct_day_27,\n SUBPARTITION p_month_Oct_day_28,\n SUBPARTITION p_month_Oct_day_29,\n SUBPARTITION p_month_Oct_day_30,\n SUBPARTITION p_month_Oct_day_31\n ),\n PARTITION p_month_Nov\n VALUES\n LESS THAN (10) (\n SUBPARTITION p_month_Nov_day_0,\n SUBPARTITION p_month_Nov_day_1,\n SUBPARTITION p_month_Nov_day_2,\n SUBPARTITION p_month_Nov_day_3,\n SUBPARTITION p_month_Nov_day_4,\n SUBPARTITION p_month_Nov_day_5,\n SUBPARTITION p_month_Nov_day_6,\n SUBPARTITION p_month_Nov_day_7,\n SUBPARTITION p_month_Nov_day_8,\n SUBPARTITION p_month_Nov_day_9,\n SUBPARTITION p_month_Nov_day_10,\n SUBPARTITION p_month_Nov_day_11,\n SUBPARTITION p_month_Nov_day_12,\n SUBPARTITION p_month_Nov_day_13,\n SUBPARTITION p_month_Nov_day_14,\n SUBPARTITION p_month_Nov_day_15,\n SUBPARTITION p_month_Nov_day_16,\n SUBPARTITION p_month_Nov_day_17,\n SUBPARTITION p_month_Nov_day_18,\n SUBPARTITION p_month_Nov_day_19,\n SUBPARTITION p_month_Nov_day_20,\n SUBPARTITION p_month_Nov_day_21,\n SUBPARTITION p_month_Nov_day_22,\n SUBPARTITION p_month_Nov_day_23,\n SUBPARTITION p_month_Nov_day_24,\n SUBPARTITION p_month_Nov_day_25,\n SUBPARTITION p_month_Nov_day_26,\n SUBPARTITION p_month_Nov_day_27,\n SUBPARTITION p_month_Nov_day_28,\n SUBPARTITION p_month_Nov_day_29,\n SUBPARTITION p_month_Nov_day_30,\n SUBPARTITION p_month_Nov_day_31\n ),\n PARTITION p_month_Dec\n VALUES\n LESS THAN (11) (\n SUBPARTITION p_month_Dec_day_0,\n SUBPARTITION p_month_Dec_day_1,\n SUBPARTITION p_month_Dec_day_2,\n SUBPARTITION p_month_Dec_day_3,\n SUBPARTITION p_month_Dec_day_4,\n SUBPARTITION p_month_Dec_day_5,\n SUBPARTITION p_month_Dec_day_6,\n SUBPARTITION p_month_Dec_day_7,\n SUBPARTITION p_month_Dec_day_8,\n SUBPARTITION p_month_Dec_day_9,\n SUBPARTITION p_month_Dec_day_10,\n SUBPARTITION p_month_Dec_day_11,\n SUBPARTITION p_month_Dec_day_12,\n SUBPARTITION p_month_Dec_day_13,\n SUBPARTITION p_month_Dec_day_14,\n SUBPARTITION p_month_Dec_day_15,\n SUBPARTITION p_month_Dec_day_16,\n SUBPARTITION p_month_Dec_day_17,\n SUBPARTITION p_month_Dec_day_18,\n SUBPARTITION p_month_Dec_day_19,\n SUBPARTITION p_month_Dec_day_20,\n SUBPARTITION p_month_Dec_day_21,\n SUBPARTITION p_month_Dec_day_22,\n SUBPARTITION p_month_Dec_day_23,\n SUBPARTITION p_month_Dec_day_24,\n SUBPARTITION p_month_Dec_day_25,\n SUBPARTITION p_month_Dec_day_26,\n SUBPARTITION p_month_Dec_day_27,\n SUBPARTITION p_month_Dec_day_28,\n SUBPARTITION p_month_Dec_day_29,\n SUBPARTITION p_month_Dec_day_30,\n SUBPARTITION p_month_Dec_day_31\n )\n)", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE `trips` (\n `id` bigint(20) UNSIGNED NOT NULL COMMENT 'Unique trip Id',\n `trip_category` int(11) UNSIGNED NOT NULL COMMENT 'Trip category',\n `trip_month` int(11) UNSIGNED NOT NULL COMMENT 'Trip month',\n `trip_date` date NOT NULL COMMENT 'The trip date'\n) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'The trips'\nPARTITION BY RANGE(trip_month) SUBPARTITION BY HASH(DAY(trip_date)) (\n PARTITION p_month_Jan\n VALUES\n LESS THAN (0) (\n SUBPARTITION p_month_Jan_day_0,\n SUBPARTITION p_month_Jan_day_1,\n SUBPARTITION p_month_Jan_day_2,\n SUBPARTITION p_month_Jan_day_3,\n SUBPARTITION p_month_Jan_day_4,\n SUBPARTITION p_month_Jan_day_5,\n SUBPARTITION p_month_Jan_day_6,\n SUBPARTITION p_month_Jan_day_7,\n SUBPARTITION p_month_Jan_day_8,\n SUBPARTITION p_month_Jan_day_9,\n SUBPARTITION p_month_Jan_day_10,\n SUBPARTITION p_month_Jan_day_11,\n SUBPARTITION p_month_Jan_day_12,\n SUBPARTITION p_month_Jan_day_13,\n SUBPARTITION p_month_Jan_day_14,\n SUBPARTITION p_month_Jan_day_15,\n SUBPARTITION p_month_Jan_day_16,\n SUBPARTITION p_month_Jan_day_17,\n SUBPARTITION p_month_Jan_day_18,\n SUBPARTITION p_month_Jan_day_19,\n SUBPARTITION p_month_Jan_day_20,\n SUBPARTITION p_month_Jan_day_21,\n SUBPARTITION p_month_Jan_day_22,\n SUBPARTITION p_month_Jan_day_23,\n SUBPARTITION p_month_Jan_day_24,\n SUBPARTITION p_month_Jan_day_25,\n SUBPARTITION p_month_Jan_day_26,\n SUBPARTITION p_month_Jan_day_27,\n SUBPARTITION p_month_Jan_day_28,\n SUBPARTITION p_month_Jan_day_29,\n SUBPARTITION p_month_Jan_day_30,\n SUBPARTITION p_month_Jan_day_31\n ),\n PARTITION p_month_Feb\n VALUES\n LESS THAN (1) (\n SUBPARTITION p_month_Feb_day_0,\n SUBPARTITION p_month_Feb_day_1,\n SUBPARTITION p_month_Feb_day_2,\n SUBPARTITION p_month_Feb_day_3,\n SUBPARTITION p_month_Feb_day_4,\n SUBPARTITION p_month_Feb_day_5,\n SUBPARTITION p_month_Feb_day_6,\n SUBPARTITION p_month_Feb_day_7,\n SUBPARTITION p_month_Feb_day_8,\n SUBPARTITION p_month_Feb_day_9,\n SUBPARTITION p_month_Feb_day_10,\n SUBPARTITION p_month_Feb_day_11,\n SUBPARTITION p_month_Feb_day_12,\n SUBPARTITION p_month_Feb_day_13,\n SUBPARTITION p_month_Feb_day_14,\n SUBPARTITION p_month_Feb_day_15,\n SUBPARTITION p_month_Feb_day_16,\n SUBPARTITION p_month_Feb_day_17,\n SUBPARTITION p_month_Feb_day_18,\n SUBPARTITION p_month_Feb_day_19,\n SUBPARTITION p_month_Feb_day_20,\n SUBPARTITION p_month_Feb_day_21,\n SUBPARTITION p_month_Feb_day_22,\n SUBPARTITION p_month_Feb_day_23,\n SUBPARTITION p_month_Feb_day_24,\n SUBPARTITION p_month_Feb_day_25,\n SUBPARTITION p_month_Feb_day_26,\n SUBPARTITION p_month_Feb_day_27,\n SUBPARTITION p_month_Feb_day_28,\n SUBPARTITION p_month_Feb_day_29,\n SUBPARTITION p_month_Feb_day_30,\n SUBPARTITION p_month_Feb_day_31\n ),\n PARTITION p_month_Mar\n VALUES\n LESS THAN (2) (\n SUBPARTITION p_month_Mar_day_0,\n SUBPARTITION p_month_Mar_day_1,\n SUBPARTITION p_month_Mar_day_2,\n SUBPARTITION p_month_Mar_day_3,\n SUBPARTITION p_month_Mar_day_4,\n SUBPARTITION p_month_Mar_day_5,\n SUBPARTITION p_month_Mar_day_6,\n SUBPARTITION p_month_Mar_day_7,\n SUBPARTITION p_month_Mar_day_8,\n SUBPARTITION p_month_Mar_day_9,\n SUBPARTITION p_month_Mar_day_10,\n SUBPARTITION p_month_Mar_day_11,\n SUBPARTITION p_month_Mar_day_12,\n SUBPARTITION p_month_Mar_day_13,\n SUBPARTITION p_month_Mar_day_14,\n SUBPARTITION p_month_Mar_day_15,\n SUBPARTITION p_month_Mar_day_16,\n SUBPARTITION p_month_Mar_day_17,\n SUBPARTITION p_month_Mar_day_18,\n SUBPARTITION p_month_Mar_day_19,\n SUBPARTITION p_month_Mar_day_20,\n SUBPARTITION p_month_Mar_day_21,\n SUBPARTITION p_month_Mar_day_22,\n SUBPARTITION p_month_Mar_day_23,\n SUBPARTITION p_month_Mar_day_24,\n SUBPARTITION p_month_Mar_day_25,\n SUBPARTITION p_month_Mar_day_26,\n SUBPARTITION p_month_Mar_day_27,\n SUBPARTITION p_month_Mar_day_28,\n SUBPARTITION p_month_Mar_day_29,\n SUBPARTITION p_month_Mar_day_30,\n SUBPARTITION p_month_Mar_day_31\n ),\n PARTITION p_month_Apr\n VALUES\n LESS THAN (3) (\n SUBPARTITION p_month_Apr_day_0,\n SUBPARTITION p_month_Apr_day_1,\n SUBPARTITION p_month_Apr_day_2,\n SUBPARTITION p_month_Apr_day_3,\n SUBPARTITION p_month_Apr_day_4,\n SUBPARTITION p_month_Apr_day_5,\n SUBPARTITION p_month_Apr_day_6,\n SUBPARTITION p_month_Apr_day_7,\n SUBPARTITION p_month_Apr_day_8,\n SUBPARTITION p_month_Apr_day_9,\n SUBPARTITION p_month_Apr_day_10,\n SUBPARTITION p_month_Apr_day_11,\n SUBPARTITION p_month_Apr_day_12,\n SUBPARTITION p_month_Apr_day_13,\n SUBPARTITION p_month_Apr_day_14,\n SUBPARTITION p_month_Apr_day_15,\n SUBPARTITION p_month_Apr_day_16,\n SUBPARTITION p_month_Apr_day_17,\n SUBPARTITION p_month_Apr_day_18,\n SUBPARTITION p_month_Apr_day_19,\n SUBPARTITION p_month_Apr_day_20,\n SUBPARTITION p_month_Apr_day_21,\n SUBPARTITION p_month_Apr_day_22,\n SUBPARTITION p_month_Apr_day_23,\n SUBPARTITION p_month_Apr_day_24,\n SUBPARTITION p_month_Apr_day_25,\n SUBPARTITION p_month_Apr_day_26,\n SUBPARTITION p_month_Apr_day_27,\n SUBPARTITION p_month_Apr_day_28,\n SUBPARTITION p_month_Apr_day_29,\n SUBPARTITION p_month_Apr_day_30,\n SUBPARTITION p_month_Apr_day_31\n ),\n PARTITION p_month_Mai\n VALUES\n LESS THAN (4) (\n SUBPARTITION p_month_Mai_day_0,\n SUBPARTITION p_month_Mai_day_1,\n SUBPARTITION p_month_Mai_day_2,\n SUBPARTITION p_month_Mai_day_3,\n SUBPARTITION p_month_Mai_day_4,\n SUBPARTITION p_month_Mai_day_5,\n SUBPARTITION p_month_Mai_day_6,\n SUBPARTITION p_month_Mai_day_7,\n SUBPARTITION p_month_Mai_day_8,\n SUBPARTITION p_month_Mai_day_9,\n SUBPARTITION p_month_Mai_day_10,\n SUBPARTITION p_month_Mai_day_11,\n SUBPARTITION p_month_Mai_day_12,\n SUBPARTITION p_month_Mai_day_13,\n SUBPARTITION p_month_Mai_day_14,\n SUBPARTITION p_month_Mai_day_15,\n SUBPARTITION p_month_Mai_day_16,\n SUBPARTITION p_month_Mai_day_17,\n SUBPARTITION p_month_Mai_day_18,\n SUBPARTITION p_month_Mai_day_19,\n SUBPARTITION p_month_Mai_day_20,\n SUBPARTITION p_month_Mai_day_21,\n SUBPARTITION p_month_Mai_day_22,\n SUBPARTITION p_month_Mai_day_23,\n SUBPARTITION p_month_Mai_day_24,\n SUBPARTITION p_month_Mai_day_25,\n SUBPARTITION p_month_Mai_day_26,\n SUBPARTITION p_month_Mai_day_27,\n SUBPARTITION p_month_Mai_day_28,\n SUBPARTITION p_month_Mai_day_29,\n SUBPARTITION p_month_Mai_day_30,\n SUBPARTITION p_month_Mai_day_31\n ),\n PARTITION p_month_Jun\n VALUES\n LESS THAN (5) (\n SUBPARTITION p_month_Jun_day_0,\n SUBPARTITION p_month_Jun_day_1,\n SUBPARTITION p_month_Jun_day_2,\n SUBPARTITION p_month_Jun_day_3,\n SUBPARTITION p_month_Jun_day_4,\n SUBPARTITION p_month_Jun_day_5,\n SUBPARTITION p_month_Jun_day_6,\n SUBPARTITION p_month_Jun_day_7,\n SUBPARTITION p_month_Jun_day_8,\n SUBPARTITION p_month_Jun_day_9,\n SUBPARTITION p_month_Jun_day_10,\n SUBPARTITION p_month_Jun_day_11,\n SUBPARTITION p_month_Jun_day_12,\n SUBPARTITION p_month_Jun_day_13,\n SUBPARTITION p_month_Jun_day_14,\n SUBPARTITION p_month_Jun_day_15,\n SUBPARTITION p_month_Jun_day_16,\n SUBPARTITION p_month_Jun_day_17,\n SUBPARTITION p_month_Jun_day_18,\n SUBPARTITION p_month_Jun_day_19,\n SUBPARTITION p_month_Jun_day_20,\n SUBPARTITION p_month_Jun_day_21,\n SUBPARTITION p_month_Jun_day_22,\n SUBPARTITION p_month_Jun_day_23,\n SUBPARTITION p_month_Jun_day_24,\n SUBPARTITION p_month_Jun_day_25,\n SUBPARTITION p_month_Jun_day_26,\n SUBPARTITION p_month_Jun_day_27,\n SUBPARTITION p_month_Jun_day_28,\n SUBPARTITION p_month_Jun_day_29,\n SUBPARTITION p_month_Jun_day_30,\n SUBPARTITION p_month_Jun_day_31\n ),\n PARTITION p_month_Jul\n VALUES\n LESS THAN (6) (\n SUBPARTITION p_month_Jul_day_0,\n SUBPARTITION p_month_Jul_day_1,\n SUBPARTITION p_month_Jul_day_2,\n SUBPARTITION p_month_Jul_day_3,\n SUBPARTITION p_month_Jul_day_4,\n SUBPARTITION p_month_Jul_day_5,\n SUBPARTITION p_month_Jul_day_6,\n SUBPARTITION p_month_Jul_day_7,\n SUBPARTITION p_month_Jul_day_8,\n SUBPARTITION p_month_Jul_day_9,\n SUBPARTITION p_month_Jul_day_10,\n SUBPARTITION p_month_Jul_day_11,\n SUBPARTITION p_month_Jul_day_12,\n SUBPARTITION p_month_Jul_day_13,\n SUBPARTITION p_month_Jul_day_14,\n SUBPARTITION p_month_Jul_day_15,\n SUBPARTITION p_month_Jul_day_16,\n SUBPARTITION p_month_Jul_day_17,\n SUBPARTITION p_month_Jul_day_18,\n SUBPARTITION p_month_Jul_day_19,\n SUBPARTITION p_month_Jul_day_20,\n SUBPARTITION p_month_Jul_day_21,\n SUBPARTITION p_month_Jul_day_22,\n SUBPARTITION p_month_Jul_day_23,\n SUBPARTITION p_month_Jul_day_24,\n SUBPARTITION p_month_Jul_day_25,\n SUBPARTITION p_month_Jul_day_26,\n SUBPARTITION p_month_Jul_day_27,\n SUBPARTITION p_month_Jul_day_28,\n SUBPARTITION p_month_Jul_day_29,\n SUBPARTITION p_month_Jul_day_30,\n SUBPARTITION p_month_Jul_day_31\n ),\n PARTITION p_month_Aug\n VALUES\n LESS THAN (7) (\n SUBPARTITION p_month_Aug_day_0,\n SUBPARTITION p_month_Aug_day_1,\n SUBPARTITION p_month_Aug_day_2,\n SUBPARTITION p_month_Aug_day_3,\n SUBPARTITION p_month_Aug_day_4,\n SUBPARTITION p_month_Aug_day_5,\n SUBPARTITION p_month_Aug_day_6,\n SUBPARTITION p_month_Aug_day_7,\n SUBPARTITION p_month_Aug_day_8,\n SUBPARTITION p_month_Aug_day_9,\n SUBPARTITION p_month_Aug_day_10,\n SUBPARTITION p_month_Aug_day_11,\n SUBPARTITION p_month_Aug_day_12,\n SUBPARTITION p_month_Aug_day_13,\n SUBPARTITION p_month_Aug_day_14,\n SUBPARTITION p_month_Aug_day_15,\n SUBPARTITION p_month_Aug_day_16,\n SUBPARTITION p_month_Aug_day_17,\n SUBPARTITION p_month_Aug_day_18,\n SUBPARTITION p_month_Aug_day_19,\n SUBPARTITION p_month_Aug_day_20,\n SUBPARTITION p_month_Aug_day_21,\n SUBPARTITION p_month_Aug_day_22,\n SUBPARTITION p_month_Aug_day_23,\n SUBPARTITION p_month_Aug_day_24,\n SUBPARTITION p_month_Aug_day_25,\n SUBPARTITION p_month_Aug_day_26,\n SUBPARTITION p_month_Aug_day_27,\n SUBPARTITION p_month_Aug_day_28,\n SUBPARTITION p_month_Aug_day_29,\n SUBPARTITION p_month_Aug_day_30,\n SUBPARTITION p_month_Aug_day_31\n ),\n PARTITION p_month_Sep\n VALUES\n LESS THAN (8) (\n SUBPARTITION p_month_Sep_day_0,\n SUBPARTITION p_month_Sep_day_1,\n SUBPARTITION p_month_Sep_day_2,\n SUBPARTITION p_month_Sep_day_3,\n SUBPARTITION p_month_Sep_day_4,\n SUBPARTITION p_month_Sep_day_5,\n SUBPARTITION p_month_Sep_day_6,\n SUBPARTITION p_month_Sep_day_7,\n SUBPARTITION p_month_Sep_day_8,\n SUBPARTITION p_month_Sep_day_9,\n SUBPARTITION p_month_Sep_day_10,\n SUBPARTITION p_month_Sep_day_11,\n SUBPARTITION p_month_Sep_day_12,\n SUBPARTITION p_month_Sep_day_13,\n SUBPARTITION p_month_Sep_day_14,\n SUBPARTITION p_month_Sep_day_15,\n SUBPARTITION p_month_Sep_day_16,\n SUBPARTITION p_month_Sep_day_17,\n SUBPARTITION p_month_Sep_day_18,\n SUBPARTITION p_month_Sep_day_19,\n SUBPARTITION p_month_Sep_day_20,\n SUBPARTITION p_month_Sep_day_21,\n SUBPARTITION p_month_Sep_day_22,\n SUBPARTITION p_month_Sep_day_23,\n SUBPARTITION p_month_Sep_day_24,\n SUBPARTITION p_month_Sep_day_25,\n SUBPARTITION p_month_Sep_day_26,\n SUBPARTITION p_month_Sep_day_27,\n SUBPARTITION p_month_Sep_day_28,\n SUBPARTITION p_month_Sep_day_29,\n SUBPARTITION p_month_Sep_day_30,\n SUBPARTITION p_month_Sep_day_31\n ),\n PARTITION p_month_Oct\n VALUES\n LESS THAN (9) (\n SUBPARTITION p_month_Oct_day_0,\n SUBPARTITION p_month_Oct_day_1,\n SUBPARTITION p_month_Oct_day_2,\n SUBPARTITION p_month_Oct_day_3,\n SUBPARTITION p_month_Oct_day_4,\n SUBPARTITION p_month_Oct_day_5,\n SUBPARTITION p_month_Oct_day_6,\n SUBPARTITION p_month_Oct_day_7,\n SUBPARTITION p_month_Oct_day_8,\n SUBPARTITION p_month_Oct_day_9,\n SUBPARTITION p_month_Oct_day_10,\n SUBPARTITION p_month_Oct_day_11,\n SUBPARTITION p_month_Oct_day_12,\n SUBPARTITION p_month_Oct_day_13,\n SUBPARTITION p_month_Oct_day_14,\n SUBPARTITION p_month_Oct_day_15,\n SUBPARTITION p_month_Oct_day_16,\n SUBPARTITION p_month_Oct_day_17,\n SUBPARTITION p_month_Oct_day_18,\n SUBPARTITION p_month_Oct_day_19,\n SUBPARTITION p_month_Oct_day_20,\n SUBPARTITION p_month_Oct_day_21,\n SUBPARTITION p_month_Oct_day_22,\n SUBPARTITION p_month_Oct_day_23,\n SUBPARTITION p_month_Oct_day_24,\n SUBPARTITION p_month_Oct_day_25,\n SUBPARTITION p_month_Oct_day_26,\n SUBPARTITION p_month_Oct_day_27,\n SUBPARTITION p_month_Oct_day_28,\n SUBPARTITION p_month_Oct_day_29,\n SUBPARTITION p_month_Oct_day_30,\n SUBPARTITION p_month_Oct_day_31\n ),\n PARTITION p_month_Nov\n VALUES\n LESS THAN (10) (\n SUBPARTITION p_month_Nov_day_0,\n SUBPARTITION p_month_Nov_day_1,\n SUBPARTITION p_month_Nov_day_2,\n SUBPARTITION p_month_Nov_day_3,\n SUBPARTITION p_month_Nov_day_4,\n SUBPARTITION p_month_Nov_day_5,\n SUBPARTITION p_month_Nov_day_6,\n SUBPARTITION p_month_Nov_day_7,\n SUBPARTITION p_month_Nov_day_8,\n SUBPARTITION p_month_Nov_day_9,\n SUBPARTITION p_month_Nov_day_10,\n SUBPARTITION p_month_Nov_day_11,\n SUBPARTITION p_month_Nov_day_12,\n SUBPARTITION p_month_Nov_day_13,\n SUBPARTITION p_month_Nov_day_14,\n SUBPARTITION p_month_Nov_day_15,\n SUBPARTITION p_month_Nov_day_16,\n SUBPARTITION p_month_Nov_day_17,\n SUBPARTITION p_month_Nov_day_18,\n SUBPARTITION p_month_Nov_day_19,\n SUBPARTITION p_month_Nov_day_20,\n SUBPARTITION p_month_Nov_day_21,\n SUBPARTITION p_month_Nov_day_22,\n SUBPARTITION p_month_Nov_day_23,\n SUBPARTITION p_month_Nov_day_24,\n SUBPARTITION p_month_Nov_day_25,\n SUBPARTITION p_month_Nov_day_26,\n SUBPARTITION p_month_Nov_day_27,\n SUBPARTITION p_month_Nov_day_28,\n SUBPARTITION p_month_Nov_day_29,\n SUBPARTITION p_month_Nov_day_30,\n SUBPARTITION p_month_Nov_day_31\n ),\n PARTITION p_month_Dec\n VALUES\n LESS THAN (11) (\n SUBPARTITION p_month_Dec_day_0,\n SUBPARTITION p_month_Dec_day_1,\n SUBPARTITION p_month_Dec_day_2,\n SUBPARTITION p_month_Dec_day_3,\n SUBPARTITION p_month_Dec_day_4,\n SUBPARTITION p_month_Dec_day_5,\n SUBPARTITION p_month_Dec_day_6,\n SUBPARTITION p_month_Dec_day_7,\n SUBPARTITION p_month_Dec_day_8,\n SUBPARTITION p_month_Dec_day_9,\n SUBPARTITION p_month_Dec_day_10,\n SUBPARTITION p_month_Dec_day_11,\n SUBPARTITION p_month_Dec_day_12,\n SUBPARTITION p_month_Dec_day_13,\n SUBPARTITION p_month_Dec_day_14,\n SUBPARTITION p_month_Dec_day_15,\n SUBPARTITION p_month_Dec_day_16,\n SUBPARTITION p_month_Dec_day_17,\n SUBPARTITION p_month_Dec_day_18,\n SUBPARTITION p_month_Dec_day_19,\n SUBPARTITION p_month_Dec_day_20,\n SUBPARTITION p_month_Dec_day_21,\n SUBPARTITION p_month_Dec_day_22,\n SUBPARTITION p_month_Dec_day_23,\n SUBPARTITION p_month_Dec_day_24,\n SUBPARTITION p_month_Dec_day_25,\n SUBPARTITION p_month_Dec_day_26,\n SUBPARTITION p_month_Dec_day_27,\n SUBPARTITION p_month_Dec_day_28,\n SUBPARTITION p_month_Dec_day_29,\n SUBPARTITION p_month_Dec_day_30,\n SUBPARTITION p_month_Dec_day_31\n )\n)", "len": 18500, "last": 18500, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`trips`", "value": "trips", "keyword": null, "type": 8, "flags": 2, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`id`", "value": "id", "keyword": null, "type": 8, "flags": 2, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bigint", "value": "BIGINT", "keyword": "BIGINT", "type": 1, "flags": 11, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "20", "value": 20, "keyword": null, "type": 6, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Unique trip Id'", "value": "Unique trip Id", "keyword": null, "type": 7, "flags": 1, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`trip_category`", "value": "trip_category", "keyword": null, "type": 8, "flags": 2, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "int", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Trip category'", "value": "Trip category", "keyword": null, "type": 7, "flags": 1, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`trip_month`", "value": "trip_month", "keyword": null, "type": 8, "flags": 2, "position": 162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "int", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 175 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 179 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 181 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 182 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 183 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 191 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 192 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 200 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 201 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 208 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Trip month'", "value": "Trip month", "keyword": null, "type": 7, "flags": 1, "position": 209 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 221 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 222 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`trip_date`", "value": "trip_date", "keyword": null, "type": 8, "flags": 2, "position": 227 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 238 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "date", "value": "date", "keyword": "DATE", "type": 1, "flags": 41, "position": 239 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 243 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 244 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 252 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 253 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 260 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'The trip date'", "value": "The trip date", "keyword": null, "type": 7, "flags": 1, "position": 261 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 276 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 277 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 278 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENGINE", "value": "ENGINE", "keyword": "ENGINE", "type": 1, "flags": 1, "position": 279 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 285 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 286 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 287 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "InnoDB", "value": "InnoDB", "keyword": null, "type": 0, "flags": 0, "position": 288 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 294 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT CHARSET", "value": "DEFAULT CHARSET", "keyword": "DEFAULT CHARSET", "type": 1, "flags": 7, "position": 295 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 310 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 311 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 312 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8mb4", "value": "utf8mb4", "keyword": null, "type": 0, "flags": 0, "position": 313 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 320 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLLATE", "value": "COLLATE", "keyword": "COLLATE", "type": 1, "flags": 3, "position": 321 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 328 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 329 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 330 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8mb4_unicode_ci", "value": "utf8mb4_unicode_ci", "keyword": null, "type": 0, "flags": 0, "position": 331 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 349 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 350 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 357 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 358 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 359 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'The trips'", "value": "The trips", "keyword": null, "type": 7, "flags": 1, "position": 360 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 371 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION BY", "value": "PARTITION BY", "keyword": "PARTITION BY", "type": 1, "flags": 7, "position": 372 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 384 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RANGE", "value": "RANGE", "keyword": "RANGE", "type": 1, "flags": 3, "position": 385 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 390 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "trip_month", "value": "trip_month", "keyword": null, "type": 0, "flags": 0, "position": 391 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 401 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 402 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION BY", "value": "SUBPARTITION BY", "keyword": "SUBPARTITION BY", "type": 1, "flags": 7, "position": 403 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 418 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "HASH", "value": "HASH", "keyword": "HASH", "type": 1, "flags": 1, "position": 419 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 423 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DAY", "value": "DAY", "keyword": "DAY", "type": 1, "flags": 33, "position": 424 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 427 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "trip_date", "value": "trip_date", "keyword": null, "type": 0, "flags": 0, "position": 428 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 437 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 438 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 439 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 440 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 441 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 446 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 455 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan", "value": "p_month_Jan", "keyword": null, "type": 0, "flags": 0, "position": 456 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 467 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 472 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 478 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 487 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 496 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 497 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 498 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 499 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 500 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 501 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 502 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 515 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 527 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_0", "value": "p_month_Jan_day_0", "keyword": null, "type": 0, "flags": 0, "position": 528 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 545 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 546 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 559 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 571 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_1", "value": "p_month_Jan_day_1", "keyword": null, "type": 0, "flags": 0, "position": 572 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 589 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 590 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 603 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 615 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_2", "value": "p_month_Jan_day_2", "keyword": null, "type": 0, "flags": 0, "position": 616 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 633 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 634 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 647 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 659 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_3", "value": "p_month_Jan_day_3", "keyword": null, "type": 0, "flags": 0, "position": 660 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 677 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 678 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 691 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 703 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_4", "value": "p_month_Jan_day_4", "keyword": null, "type": 0, "flags": 0, "position": 704 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 721 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 722 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 735 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 747 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_5", "value": "p_month_Jan_day_5", "keyword": null, "type": 0, "flags": 0, "position": 748 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 765 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 766 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 779 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 791 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_6", "value": "p_month_Jan_day_6", "keyword": null, "type": 0, "flags": 0, "position": 792 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 809 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 810 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 823 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 835 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_7", "value": "p_month_Jan_day_7", "keyword": null, "type": 0, "flags": 0, "position": 836 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 853 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 854 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 867 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 879 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_8", "value": "p_month_Jan_day_8", "keyword": null, "type": 0, "flags": 0, "position": 880 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 897 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 898 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 911 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 923 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_9", "value": "p_month_Jan_day_9", "keyword": null, "type": 0, "flags": 0, "position": 924 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 941 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 942 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 955 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 967 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_10", "value": "p_month_Jan_day_10", "keyword": null, "type": 0, "flags": 0, "position": 968 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 986 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 987 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 1000 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1012 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_11", "value": "p_month_Jan_day_11", "keyword": null, "type": 0, "flags": 0, "position": 1013 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1031 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1032 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 1045 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1057 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_12", "value": "p_month_Jan_day_12", "keyword": null, "type": 0, "flags": 0, "position": 1058 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1076 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1077 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 1090 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_13", "value": "p_month_Jan_day_13", "keyword": null, "type": 0, "flags": 0, "position": 1103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 1135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_14", "value": "p_month_Jan_day_14", "keyword": null, "type": 0, "flags": 0, "position": 1148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1166 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 1180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1192 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_15", "value": "p_month_Jan_day_15", "keyword": null, "type": 0, "flags": 0, "position": 1193 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1211 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1212 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 1225 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1237 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_16", "value": "p_month_Jan_day_16", "keyword": null, "type": 0, "flags": 0, "position": 1238 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1256 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1257 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 1270 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1282 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_17", "value": "p_month_Jan_day_17", "keyword": null, "type": 0, "flags": 0, "position": 1283 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1301 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1302 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 1315 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1327 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_18", "value": "p_month_Jan_day_18", "keyword": null, "type": 0, "flags": 0, "position": 1328 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1346 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1347 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 1360 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1372 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_19", "value": "p_month_Jan_day_19", "keyword": null, "type": 0, "flags": 0, "position": 1373 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1391 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1392 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 1405 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1417 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_20", "value": "p_month_Jan_day_20", "keyword": null, "type": 0, "flags": 0, "position": 1418 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1436 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1437 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 1450 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1462 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_21", "value": "p_month_Jan_day_21", "keyword": null, "type": 0, "flags": 0, "position": 1463 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1481 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1482 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 1495 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1507 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_22", "value": "p_month_Jan_day_22", "keyword": null, "type": 0, "flags": 0, "position": 1508 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1526 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1527 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 1540 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1552 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_23", "value": "p_month_Jan_day_23", "keyword": null, "type": 0, "flags": 0, "position": 1553 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1571 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1572 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 1585 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1597 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_24", "value": "p_month_Jan_day_24", "keyword": null, "type": 0, "flags": 0, "position": 1598 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1616 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1617 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 1630 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1642 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_25", "value": "p_month_Jan_day_25", "keyword": null, "type": 0, "flags": 0, "position": 1643 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1661 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1662 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 1675 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1687 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_26", "value": "p_month_Jan_day_26", "keyword": null, "type": 0, "flags": 0, "position": 1688 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1706 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1707 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 1720 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1732 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_27", "value": "p_month_Jan_day_27", "keyword": null, "type": 0, "flags": 0, "position": 1733 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1751 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1752 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 1765 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1777 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_28", "value": "p_month_Jan_day_28", "keyword": null, "type": 0, "flags": 0, "position": 1778 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1796 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1797 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 1810 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1822 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_29", "value": "p_month_Jan_day_29", "keyword": null, "type": 0, "flags": 0, "position": 1823 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1841 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1842 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 1855 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1867 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_30", "value": "p_month_Jan_day_30", "keyword": null, "type": 0, "flags": 0, "position": 1868 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1886 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1887 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 1900 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1912 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jan_day_31", "value": "p_month_Jan_day_31", "keyword": null, "type": 0, "flags": 0, "position": 1913 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1931 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1940 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1941 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1942 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 1951 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1960 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb", "value": "p_month_Feb", "keyword": null, "type": 0, "flags": 0, "position": 1961 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1972 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 1977 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1983 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 1992 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2001 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2002 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 2003 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2004 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2005 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2006 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2007 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 2020 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2032 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_0", "value": "p_month_Feb_day_0", "keyword": null, "type": 0, "flags": 0, "position": 2033 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2050 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2051 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 2064 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2076 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_1", "value": "p_month_Feb_day_1", "keyword": null, "type": 0, "flags": 0, "position": 2077 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2094 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2095 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 2108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_2", "value": "p_month_Feb_day_2", "keyword": null, "type": 0, "flags": 0, "position": 2121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 2152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_3", "value": "p_month_Feb_day_3", "keyword": null, "type": 0, "flags": 0, "position": 2165 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2182 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2183 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 2196 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2208 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_4", "value": "p_month_Feb_day_4", "keyword": null, "type": 0, "flags": 0, "position": 2209 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2226 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2227 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 2240 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2252 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_5", "value": "p_month_Feb_day_5", "keyword": null, "type": 0, "flags": 0, "position": 2253 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2270 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2271 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 2284 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2296 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_6", "value": "p_month_Feb_day_6", "keyword": null, "type": 0, "flags": 0, "position": 2297 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2314 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2315 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 2328 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2340 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_7", "value": "p_month_Feb_day_7", "keyword": null, "type": 0, "flags": 0, "position": 2341 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2358 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2359 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 2372 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2384 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_8", "value": "p_month_Feb_day_8", "keyword": null, "type": 0, "flags": 0, "position": 2385 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2402 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2403 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 2416 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2428 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_9", "value": "p_month_Feb_day_9", "keyword": null, "type": 0, "flags": 0, "position": 2429 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2446 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2447 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 2460 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2472 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_10", "value": "p_month_Feb_day_10", "keyword": null, "type": 0, "flags": 0, "position": 2473 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2491 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2492 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 2505 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2517 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_11", "value": "p_month_Feb_day_11", "keyword": null, "type": 0, "flags": 0, "position": 2518 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2536 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2537 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 2550 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2562 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_12", "value": "p_month_Feb_day_12", "keyword": null, "type": 0, "flags": 0, "position": 2563 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2581 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2582 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 2595 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2607 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_13", "value": "p_month_Feb_day_13", "keyword": null, "type": 0, "flags": 0, "position": 2608 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2626 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2627 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 2640 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2652 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_14", "value": "p_month_Feb_day_14", "keyword": null, "type": 0, "flags": 0, "position": 2653 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2671 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2672 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 2685 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2697 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_15", "value": "p_month_Feb_day_15", "keyword": null, "type": 0, "flags": 0, "position": 2698 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2716 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2717 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 2730 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2742 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_16", "value": "p_month_Feb_day_16", "keyword": null, "type": 0, "flags": 0, "position": 2743 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2761 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2762 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 2775 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2787 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_17", "value": "p_month_Feb_day_17", "keyword": null, "type": 0, "flags": 0, "position": 2788 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2806 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2807 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 2820 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2832 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_18", "value": "p_month_Feb_day_18", "keyword": null, "type": 0, "flags": 0, "position": 2833 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2851 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2852 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 2865 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2877 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_19", "value": "p_month_Feb_day_19", "keyword": null, "type": 0, "flags": 0, "position": 2878 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2896 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2897 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 2910 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2922 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_20", "value": "p_month_Feb_day_20", "keyword": null, "type": 0, "flags": 0, "position": 2923 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2941 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2942 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 2955 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2967 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_21", "value": "p_month_Feb_day_21", "keyword": null, "type": 0, "flags": 0, "position": 2968 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2986 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2987 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 3000 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3012 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_22", "value": "p_month_Feb_day_22", "keyword": null, "type": 0, "flags": 0, "position": 3013 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3031 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3032 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 3045 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3057 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_23", "value": "p_month_Feb_day_23", "keyword": null, "type": 0, "flags": 0, "position": 3058 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3076 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3077 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 3090 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_24", "value": "p_month_Feb_day_24", "keyword": null, "type": 0, "flags": 0, "position": 3103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 3135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_25", "value": "p_month_Feb_day_25", "keyword": null, "type": 0, "flags": 0, "position": 3148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3166 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 3180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3192 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_26", "value": "p_month_Feb_day_26", "keyword": null, "type": 0, "flags": 0, "position": 3193 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3211 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3212 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 3225 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3237 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_27", "value": "p_month_Feb_day_27", "keyword": null, "type": 0, "flags": 0, "position": 3238 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3256 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3257 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 3270 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3282 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_28", "value": "p_month_Feb_day_28", "keyword": null, "type": 0, "flags": 0, "position": 3283 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3301 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3302 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 3315 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3327 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_29", "value": "p_month_Feb_day_29", "keyword": null, "type": 0, "flags": 0, "position": 3328 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3346 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3347 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 3360 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3372 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_30", "value": "p_month_Feb_day_30", "keyword": null, "type": 0, "flags": 0, "position": 3373 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3391 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3392 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 3405 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3417 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Feb_day_31", "value": "p_month_Feb_day_31", "keyword": null, "type": 0, "flags": 0, "position": 3418 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3436 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 3445 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3446 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3447 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 3456 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3465 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar", "value": "p_month_Mar", "keyword": null, "type": 0, "flags": 0, "position": 3466 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3477 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 3482 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3488 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 3497 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3506 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 3507 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 3508 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 3509 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3510 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 3511 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3512 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 3525 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3537 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_0", "value": "p_month_Mar_day_0", "keyword": null, "type": 0, "flags": 0, "position": 3538 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3555 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3556 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 3569 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3581 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_1", "value": "p_month_Mar_day_1", "keyword": null, "type": 0, "flags": 0, "position": 3582 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3599 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3600 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 3613 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3625 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_2", "value": "p_month_Mar_day_2", "keyword": null, "type": 0, "flags": 0, "position": 3626 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3643 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3644 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 3657 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3669 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_3", "value": "p_month_Mar_day_3", "keyword": null, "type": 0, "flags": 0, "position": 3670 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3687 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3688 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 3701 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3713 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_4", "value": "p_month_Mar_day_4", "keyword": null, "type": 0, "flags": 0, "position": 3714 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3731 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3732 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 3745 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3757 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_5", "value": "p_month_Mar_day_5", "keyword": null, "type": 0, "flags": 0, "position": 3758 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3775 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3776 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 3789 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3801 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_6", "value": "p_month_Mar_day_6", "keyword": null, "type": 0, "flags": 0, "position": 3802 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3819 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3820 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 3833 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3845 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_7", "value": "p_month_Mar_day_7", "keyword": null, "type": 0, "flags": 0, "position": 3846 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3863 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3864 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 3877 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3889 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_8", "value": "p_month_Mar_day_8", "keyword": null, "type": 0, "flags": 0, "position": 3890 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3907 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3908 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 3921 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3933 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_9", "value": "p_month_Mar_day_9", "keyword": null, "type": 0, "flags": 0, "position": 3934 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3951 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3952 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 3965 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3977 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_10", "value": "p_month_Mar_day_10", "keyword": null, "type": 0, "flags": 0, "position": 3978 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3996 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3997 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 4010 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4022 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_11", "value": "p_month_Mar_day_11", "keyword": null, "type": 0, "flags": 0, "position": 4023 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 4041 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4042 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 4055 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4067 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_12", "value": "p_month_Mar_day_12", "keyword": null, "type": 0, "flags": 0, "position": 4068 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 4086 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4087 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 4100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_13", "value": "p_month_Mar_day_13", "keyword": null, "type": 0, "flags": 0, "position": 4113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 4131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 4145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_14", "value": "p_month_Mar_day_14", "keyword": null, "type": 0, "flags": 0, "position": 4158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 4176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 4190 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4202 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_15", "value": "p_month_Mar_day_15", "keyword": null, "type": 0, "flags": 0, "position": 4203 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 4221 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4222 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 4235 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4247 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_16", "value": "p_month_Mar_day_16", "keyword": null, "type": 0, "flags": 0, "position": 4248 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 4266 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4267 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 4280 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4292 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_17", "value": "p_month_Mar_day_17", "keyword": null, "type": 0, "flags": 0, "position": 4293 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 4311 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4312 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 4325 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4337 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_18", "value": "p_month_Mar_day_18", "keyword": null, "type": 0, "flags": 0, "position": 4338 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 4356 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4357 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 4370 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4382 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_19", "value": "p_month_Mar_day_19", "keyword": null, "type": 0, "flags": 0, "position": 4383 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 4401 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4402 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 4415 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4427 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_20", "value": "p_month_Mar_day_20", "keyword": null, "type": 0, "flags": 0, "position": 4428 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 4446 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4447 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 4460 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4472 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_21", "value": "p_month_Mar_day_21", "keyword": null, "type": 0, "flags": 0, "position": 4473 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 4491 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4492 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 4505 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4517 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_22", "value": "p_month_Mar_day_22", "keyword": null, "type": 0, "flags": 0, "position": 4518 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 4536 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4537 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 4550 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4562 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_23", "value": "p_month_Mar_day_23", "keyword": null, "type": 0, "flags": 0, "position": 4563 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 4581 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4582 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 4595 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4607 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_24", "value": "p_month_Mar_day_24", "keyword": null, "type": 0, "flags": 0, "position": 4608 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 4626 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4627 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 4640 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4652 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_25", "value": "p_month_Mar_day_25", "keyword": null, "type": 0, "flags": 0, "position": 4653 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 4671 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4672 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 4685 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4697 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_26", "value": "p_month_Mar_day_26", "keyword": null, "type": 0, "flags": 0, "position": 4698 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 4716 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4717 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 4730 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4742 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_27", "value": "p_month_Mar_day_27", "keyword": null, "type": 0, "flags": 0, "position": 4743 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 4761 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4762 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 4775 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4787 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_28", "value": "p_month_Mar_day_28", "keyword": null, "type": 0, "flags": 0, "position": 4788 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 4806 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4807 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 4820 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4832 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_29", "value": "p_month_Mar_day_29", "keyword": null, "type": 0, "flags": 0, "position": 4833 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 4851 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4852 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 4865 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4877 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_30", "value": "p_month_Mar_day_30", "keyword": null, "type": 0, "flags": 0, "position": 4878 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 4896 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4897 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 4910 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4922 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mar_day_31", "value": "p_month_Mar_day_31", "keyword": null, "type": 0, "flags": 0, "position": 4923 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4941 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 4950 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 4951 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4952 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 4961 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4970 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr", "value": "p_month_Apr", "keyword": null, "type": 0, "flags": 0, "position": 4971 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4982 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 4987 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4993 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 5002 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5011 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 5012 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 5013 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 5014 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5015 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 5016 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5017 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 5030 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5042 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_0", "value": "p_month_Apr_day_0", "keyword": null, "type": 0, "flags": 0, "position": 5043 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 5060 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5061 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 5074 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5086 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_1", "value": "p_month_Apr_day_1", "keyword": null, "type": 0, "flags": 0, "position": 5087 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 5104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 5118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_2", "value": "p_month_Apr_day_2", "keyword": null, "type": 0, "flags": 0, "position": 5131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 5148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 5162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_3", "value": "p_month_Apr_day_3", "keyword": null, "type": 0, "flags": 0, "position": 5175 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 5192 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5193 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 5206 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5218 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_4", "value": "p_month_Apr_day_4", "keyword": null, "type": 0, "flags": 0, "position": 5219 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 5236 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5237 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 5250 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5262 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_5", "value": "p_month_Apr_day_5", "keyword": null, "type": 0, "flags": 0, "position": 5263 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 5280 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5281 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 5294 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5306 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_6", "value": "p_month_Apr_day_6", "keyword": null, "type": 0, "flags": 0, "position": 5307 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 5324 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5325 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 5338 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5350 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_7", "value": "p_month_Apr_day_7", "keyword": null, "type": 0, "flags": 0, "position": 5351 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 5368 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5369 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 5382 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5394 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_8", "value": "p_month_Apr_day_8", "keyword": null, "type": 0, "flags": 0, "position": 5395 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 5412 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5413 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 5426 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5438 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_9", "value": "p_month_Apr_day_9", "keyword": null, "type": 0, "flags": 0, "position": 5439 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 5456 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5457 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 5470 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5482 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_10", "value": "p_month_Apr_day_10", "keyword": null, "type": 0, "flags": 0, "position": 5483 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 5501 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5502 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 5515 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5527 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_11", "value": "p_month_Apr_day_11", "keyword": null, "type": 0, "flags": 0, "position": 5528 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 5546 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5547 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 5560 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5572 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_12", "value": "p_month_Apr_day_12", "keyword": null, "type": 0, "flags": 0, "position": 5573 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 5591 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5592 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 5605 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5617 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_13", "value": "p_month_Apr_day_13", "keyword": null, "type": 0, "flags": 0, "position": 5618 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 5636 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5637 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 5650 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5662 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_14", "value": "p_month_Apr_day_14", "keyword": null, "type": 0, "flags": 0, "position": 5663 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 5681 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5682 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 5695 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5707 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_15", "value": "p_month_Apr_day_15", "keyword": null, "type": 0, "flags": 0, "position": 5708 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 5726 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5727 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 5740 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5752 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_16", "value": "p_month_Apr_day_16", "keyword": null, "type": 0, "flags": 0, "position": 5753 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 5771 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5772 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 5785 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5797 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_17", "value": "p_month_Apr_day_17", "keyword": null, "type": 0, "flags": 0, "position": 5798 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 5816 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5817 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 5830 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5842 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_18", "value": "p_month_Apr_day_18", "keyword": null, "type": 0, "flags": 0, "position": 5843 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 5861 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5862 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 5875 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5887 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_19", "value": "p_month_Apr_day_19", "keyword": null, "type": 0, "flags": 0, "position": 5888 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 5906 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5907 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 5920 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5932 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_20", "value": "p_month_Apr_day_20", "keyword": null, "type": 0, "flags": 0, "position": 5933 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 5951 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5952 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 5965 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5977 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_21", "value": "p_month_Apr_day_21", "keyword": null, "type": 0, "flags": 0, "position": 5978 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 5996 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5997 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 6010 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6022 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_22", "value": "p_month_Apr_day_22", "keyword": null, "type": 0, "flags": 0, "position": 6023 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 6041 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6042 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 6055 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6067 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_23", "value": "p_month_Apr_day_23", "keyword": null, "type": 0, "flags": 0, "position": 6068 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 6086 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6087 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 6100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_24", "value": "p_month_Apr_day_24", "keyword": null, "type": 0, "flags": 0, "position": 6113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 6131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 6145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_25", "value": "p_month_Apr_day_25", "keyword": null, "type": 0, "flags": 0, "position": 6158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 6176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 6190 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6202 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_26", "value": "p_month_Apr_day_26", "keyword": null, "type": 0, "flags": 0, "position": 6203 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 6221 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6222 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 6235 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6247 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_27", "value": "p_month_Apr_day_27", "keyword": null, "type": 0, "flags": 0, "position": 6248 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 6266 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6267 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 6280 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6292 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_28", "value": "p_month_Apr_day_28", "keyword": null, "type": 0, "flags": 0, "position": 6293 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 6311 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6312 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 6325 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6337 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_29", "value": "p_month_Apr_day_29", "keyword": null, "type": 0, "flags": 0, "position": 6338 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 6356 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6357 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 6370 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6382 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_30", "value": "p_month_Apr_day_30", "keyword": null, "type": 0, "flags": 0, "position": 6383 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 6401 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6402 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 6415 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6427 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Apr_day_31", "value": "p_month_Apr_day_31", "keyword": null, "type": 0, "flags": 0, "position": 6428 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6446 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 6455 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 6456 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6457 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 6466 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6475 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai", "value": "p_month_Mai", "keyword": null, "type": 0, "flags": 0, "position": 6476 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6487 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 6492 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6498 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 6507 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6516 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 6517 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "4", "value": 4, "keyword": null, "type": 6, "flags": 0, "position": 6518 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 6519 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6520 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 6521 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6522 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 6535 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6547 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_0", "value": "p_month_Mai_day_0", "keyword": null, "type": 0, "flags": 0, "position": 6548 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 6565 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6566 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 6579 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6591 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_1", "value": "p_month_Mai_day_1", "keyword": null, "type": 0, "flags": 0, "position": 6592 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 6609 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6610 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 6623 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6635 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_2", "value": "p_month_Mai_day_2", "keyword": null, "type": 0, "flags": 0, "position": 6636 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 6653 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6654 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 6667 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6679 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_3", "value": "p_month_Mai_day_3", "keyword": null, "type": 0, "flags": 0, "position": 6680 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 6697 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6698 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 6711 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6723 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_4", "value": "p_month_Mai_day_4", "keyword": null, "type": 0, "flags": 0, "position": 6724 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 6741 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6742 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 6755 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6767 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_5", "value": "p_month_Mai_day_5", "keyword": null, "type": 0, "flags": 0, "position": 6768 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 6785 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6786 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 6799 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6811 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_6", "value": "p_month_Mai_day_6", "keyword": null, "type": 0, "flags": 0, "position": 6812 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 6829 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6830 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 6843 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6855 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_7", "value": "p_month_Mai_day_7", "keyword": null, "type": 0, "flags": 0, "position": 6856 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 6873 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6874 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 6887 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6899 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_8", "value": "p_month_Mai_day_8", "keyword": null, "type": 0, "flags": 0, "position": 6900 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 6917 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6918 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 6931 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6943 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_9", "value": "p_month_Mai_day_9", "keyword": null, "type": 0, "flags": 0, "position": 6944 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 6961 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6962 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 6975 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6987 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_10", "value": "p_month_Mai_day_10", "keyword": null, "type": 0, "flags": 0, "position": 6988 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 7006 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7007 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 7020 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7032 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_11", "value": "p_month_Mai_day_11", "keyword": null, "type": 0, "flags": 0, "position": 7033 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 7051 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7052 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 7065 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7077 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_12", "value": "p_month_Mai_day_12", "keyword": null, "type": 0, "flags": 0, "position": 7078 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 7096 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7097 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 7110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_13", "value": "p_month_Mai_day_13", "keyword": null, "type": 0, "flags": 0, "position": 7123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 7141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 7155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_14", "value": "p_month_Mai_day_14", "keyword": null, "type": 0, "flags": 0, "position": 7168 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 7186 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7187 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 7200 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7212 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_15", "value": "p_month_Mai_day_15", "keyword": null, "type": 0, "flags": 0, "position": 7213 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 7231 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7232 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 7245 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7257 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_16", "value": "p_month_Mai_day_16", "keyword": null, "type": 0, "flags": 0, "position": 7258 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 7276 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7277 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 7290 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7302 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_17", "value": "p_month_Mai_day_17", "keyword": null, "type": 0, "flags": 0, "position": 7303 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 7321 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7322 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 7335 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7347 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_18", "value": "p_month_Mai_day_18", "keyword": null, "type": 0, "flags": 0, "position": 7348 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 7366 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7367 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 7380 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7392 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_19", "value": "p_month_Mai_day_19", "keyword": null, "type": 0, "flags": 0, "position": 7393 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 7411 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7412 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 7425 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7437 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_20", "value": "p_month_Mai_day_20", "keyword": null, "type": 0, "flags": 0, "position": 7438 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 7456 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7457 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 7470 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7482 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_21", "value": "p_month_Mai_day_21", "keyword": null, "type": 0, "flags": 0, "position": 7483 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 7501 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7502 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 7515 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7527 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_22", "value": "p_month_Mai_day_22", "keyword": null, "type": 0, "flags": 0, "position": 7528 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 7546 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7547 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 7560 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7572 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_23", "value": "p_month_Mai_day_23", "keyword": null, "type": 0, "flags": 0, "position": 7573 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 7591 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7592 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 7605 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7617 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_24", "value": "p_month_Mai_day_24", "keyword": null, "type": 0, "flags": 0, "position": 7618 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 7636 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7637 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 7650 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7662 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_25", "value": "p_month_Mai_day_25", "keyword": null, "type": 0, "flags": 0, "position": 7663 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 7681 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7682 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 7695 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7707 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_26", "value": "p_month_Mai_day_26", "keyword": null, "type": 0, "flags": 0, "position": 7708 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 7726 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7727 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 7740 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7752 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_27", "value": "p_month_Mai_day_27", "keyword": null, "type": 0, "flags": 0, "position": 7753 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 7771 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7772 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 7785 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7797 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_28", "value": "p_month_Mai_day_28", "keyword": null, "type": 0, "flags": 0, "position": 7798 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 7816 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7817 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 7830 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7842 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_29", "value": "p_month_Mai_day_29", "keyword": null, "type": 0, "flags": 0, "position": 7843 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 7861 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7862 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 7875 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7887 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_30", "value": "p_month_Mai_day_30", "keyword": null, "type": 0, "flags": 0, "position": 7888 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 7906 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7907 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 7920 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7932 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Mai_day_31", "value": "p_month_Mai_day_31", "keyword": null, "type": 0, "flags": 0, "position": 7933 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7951 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 7960 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 7961 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7962 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 7971 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7980 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun", "value": "p_month_Jun", "keyword": null, "type": 0, "flags": 0, "position": 7981 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7992 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 7997 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8003 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 8012 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8021 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 8022 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "5", "value": 5, "keyword": null, "type": 6, "flags": 0, "position": 8023 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 8024 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8025 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 8026 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8027 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 8040 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8052 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_0", "value": "p_month_Jun_day_0", "keyword": null, "type": 0, "flags": 0, "position": 8053 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8070 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8071 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 8084 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8096 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_1", "value": "p_month_Jun_day_1", "keyword": null, "type": 0, "flags": 0, "position": 8097 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 8128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_2", "value": "p_month_Jun_day_2", "keyword": null, "type": 0, "flags": 0, "position": 8141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8159 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 8172 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8184 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_3", "value": "p_month_Jun_day_3", "keyword": null, "type": 0, "flags": 0, "position": 8185 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8202 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8203 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 8216 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8228 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_4", "value": "p_month_Jun_day_4", "keyword": null, "type": 0, "flags": 0, "position": 8229 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8246 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8247 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 8260 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8272 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_5", "value": "p_month_Jun_day_5", "keyword": null, "type": 0, "flags": 0, "position": 8273 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8290 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8291 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 8304 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8316 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_6", "value": "p_month_Jun_day_6", "keyword": null, "type": 0, "flags": 0, "position": 8317 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8334 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8335 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 8348 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8360 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_7", "value": "p_month_Jun_day_7", "keyword": null, "type": 0, "flags": 0, "position": 8361 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8378 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8379 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 8392 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8404 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_8", "value": "p_month_Jun_day_8", "keyword": null, "type": 0, "flags": 0, "position": 8405 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8422 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8423 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 8436 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8448 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_9", "value": "p_month_Jun_day_9", "keyword": null, "type": 0, "flags": 0, "position": 8449 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8466 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8467 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 8480 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8492 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_10", "value": "p_month_Jun_day_10", "keyword": null, "type": 0, "flags": 0, "position": 8493 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8511 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8512 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 8525 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8537 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_11", "value": "p_month_Jun_day_11", "keyword": null, "type": 0, "flags": 0, "position": 8538 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8556 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8557 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 8570 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8582 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_12", "value": "p_month_Jun_day_12", "keyword": null, "type": 0, "flags": 0, "position": 8583 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8601 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8602 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 8615 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8627 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_13", "value": "p_month_Jun_day_13", "keyword": null, "type": 0, "flags": 0, "position": 8628 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8646 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8647 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 8660 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8672 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_14", "value": "p_month_Jun_day_14", "keyword": null, "type": 0, "flags": 0, "position": 8673 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8691 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8692 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 8705 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8717 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_15", "value": "p_month_Jun_day_15", "keyword": null, "type": 0, "flags": 0, "position": 8718 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8736 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8737 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 8750 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8762 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_16", "value": "p_month_Jun_day_16", "keyword": null, "type": 0, "flags": 0, "position": 8763 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8781 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8782 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 8795 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8807 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_17", "value": "p_month_Jun_day_17", "keyword": null, "type": 0, "flags": 0, "position": 8808 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8826 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8827 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 8840 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8852 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_18", "value": "p_month_Jun_day_18", "keyword": null, "type": 0, "flags": 0, "position": 8853 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8871 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8872 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 8885 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8897 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_19", "value": "p_month_Jun_day_19", "keyword": null, "type": 0, "flags": 0, "position": 8898 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8916 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8917 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 8930 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8942 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_20", "value": "p_month_Jun_day_20", "keyword": null, "type": 0, "flags": 0, "position": 8943 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8961 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8962 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 8975 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8987 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_21", "value": "p_month_Jun_day_21", "keyword": null, "type": 0, "flags": 0, "position": 8988 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9006 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9007 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 9020 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9032 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_22", "value": "p_month_Jun_day_22", "keyword": null, "type": 0, "flags": 0, "position": 9033 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9051 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9052 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 9065 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9077 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_23", "value": "p_month_Jun_day_23", "keyword": null, "type": 0, "flags": 0, "position": 9078 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9096 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9097 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 9110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_24", "value": "p_month_Jun_day_24", "keyword": null, "type": 0, "flags": 0, "position": 9123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 9155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_25", "value": "p_month_Jun_day_25", "keyword": null, "type": 0, "flags": 0, "position": 9168 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9186 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9187 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 9200 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9212 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_26", "value": "p_month_Jun_day_26", "keyword": null, "type": 0, "flags": 0, "position": 9213 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9231 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9232 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 9245 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9257 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_27", "value": "p_month_Jun_day_27", "keyword": null, "type": 0, "flags": 0, "position": 9258 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9276 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9277 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 9290 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9302 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_28", "value": "p_month_Jun_day_28", "keyword": null, "type": 0, "flags": 0, "position": 9303 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9321 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9322 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 9335 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9347 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_29", "value": "p_month_Jun_day_29", "keyword": null, "type": 0, "flags": 0, "position": 9348 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9366 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9367 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 9380 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9392 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_30", "value": "p_month_Jun_day_30", "keyword": null, "type": 0, "flags": 0, "position": 9393 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9411 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9412 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 9425 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9437 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jun_day_31", "value": "p_month_Jun_day_31", "keyword": null, "type": 0, "flags": 0, "position": 9438 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9456 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 9465 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9466 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9467 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 9476 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9485 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul", "value": "p_month_Jul", "keyword": null, "type": 0, "flags": 0, "position": 9486 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9497 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 9502 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9508 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 9517 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9526 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 9527 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "6", "value": 6, "keyword": null, "type": 6, "flags": 0, "position": 9528 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 9529 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9530 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 9531 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9532 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 9545 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9557 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_0", "value": "p_month_Jul_day_0", "keyword": null, "type": 0, "flags": 0, "position": 9558 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9575 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9576 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 9589 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9601 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_1", "value": "p_month_Jul_day_1", "keyword": null, "type": 0, "flags": 0, "position": 9602 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9619 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9620 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 9633 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9645 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_2", "value": "p_month_Jul_day_2", "keyword": null, "type": 0, "flags": 0, "position": 9646 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9663 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9664 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 9677 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9689 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_3", "value": "p_month_Jul_day_3", "keyword": null, "type": 0, "flags": 0, "position": 9690 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9707 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9708 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 9721 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9733 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_4", "value": "p_month_Jul_day_4", "keyword": null, "type": 0, "flags": 0, "position": 9734 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9751 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9752 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 9765 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9777 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_5", "value": "p_month_Jul_day_5", "keyword": null, "type": 0, "flags": 0, "position": 9778 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9795 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9796 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 9809 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9821 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_6", "value": "p_month_Jul_day_6", "keyword": null, "type": 0, "flags": 0, "position": 9822 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9839 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9840 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 9853 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9865 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_7", "value": "p_month_Jul_day_7", "keyword": null, "type": 0, "flags": 0, "position": 9866 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9883 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9884 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 9897 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9909 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_8", "value": "p_month_Jul_day_8", "keyword": null, "type": 0, "flags": 0, "position": 9910 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9927 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9928 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 9941 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9953 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_9", "value": "p_month_Jul_day_9", "keyword": null, "type": 0, "flags": 0, "position": 9954 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9971 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9972 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 9985 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9997 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_10", "value": "p_month_Jul_day_10", "keyword": null, "type": 0, "flags": 0, "position": 9998 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10016 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10017 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 10030 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10042 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_11", "value": "p_month_Jul_day_11", "keyword": null, "type": 0, "flags": 0, "position": 10043 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10061 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10062 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 10075 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10087 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_12", "value": "p_month_Jul_day_12", "keyword": null, "type": 0, "flags": 0, "position": 10088 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 10120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_13", "value": "p_month_Jul_day_13", "keyword": null, "type": 0, "flags": 0, "position": 10133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 10165 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_14", "value": "p_month_Jul_day_14", "keyword": null, "type": 0, "flags": 0, "position": 10178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10196 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10197 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 10210 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10222 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_15", "value": "p_month_Jul_day_15", "keyword": null, "type": 0, "flags": 0, "position": 10223 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10241 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10242 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 10255 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10267 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_16", "value": "p_month_Jul_day_16", "keyword": null, "type": 0, "flags": 0, "position": 10268 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10286 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10287 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 10300 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10312 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_17", "value": "p_month_Jul_day_17", "keyword": null, "type": 0, "flags": 0, "position": 10313 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10331 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10332 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 10345 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10357 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_18", "value": "p_month_Jul_day_18", "keyword": null, "type": 0, "flags": 0, "position": 10358 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10376 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10377 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 10390 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10402 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_19", "value": "p_month_Jul_day_19", "keyword": null, "type": 0, "flags": 0, "position": 10403 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10421 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10422 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 10435 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10447 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_20", "value": "p_month_Jul_day_20", "keyword": null, "type": 0, "flags": 0, "position": 10448 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10466 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10467 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 10480 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10492 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_21", "value": "p_month_Jul_day_21", "keyword": null, "type": 0, "flags": 0, "position": 10493 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10511 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10512 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 10525 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10537 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_22", "value": "p_month_Jul_day_22", "keyword": null, "type": 0, "flags": 0, "position": 10538 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10556 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10557 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 10570 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10582 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_23", "value": "p_month_Jul_day_23", "keyword": null, "type": 0, "flags": 0, "position": 10583 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10601 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10602 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 10615 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10627 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_24", "value": "p_month_Jul_day_24", "keyword": null, "type": 0, "flags": 0, "position": 10628 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10646 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10647 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 10660 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10672 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_25", "value": "p_month_Jul_day_25", "keyword": null, "type": 0, "flags": 0, "position": 10673 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10691 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10692 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 10705 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10717 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_26", "value": "p_month_Jul_day_26", "keyword": null, "type": 0, "flags": 0, "position": 10718 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10736 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10737 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 10750 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10762 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_27", "value": "p_month_Jul_day_27", "keyword": null, "type": 0, "flags": 0, "position": 10763 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10781 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10782 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 10795 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10807 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_28", "value": "p_month_Jul_day_28", "keyword": null, "type": 0, "flags": 0, "position": 10808 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10826 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10827 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 10840 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10852 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_29", "value": "p_month_Jul_day_29", "keyword": null, "type": 0, "flags": 0, "position": 10853 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10871 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10872 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 10885 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10897 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_30", "value": "p_month_Jul_day_30", "keyword": null, "type": 0, "flags": 0, "position": 10898 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10916 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10917 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 10930 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10942 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Jul_day_31", "value": "p_month_Jul_day_31", "keyword": null, "type": 0, "flags": 0, "position": 10943 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10961 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 10970 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10971 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10972 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 10981 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10990 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug", "value": "p_month_Aug", "keyword": null, "type": 0, "flags": 0, "position": 10991 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11002 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 11007 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11013 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 11022 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11031 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 11032 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "7", "value": 7, "keyword": null, "type": 6, "flags": 0, "position": 11033 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 11034 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11035 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 11036 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11037 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 11050 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11062 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_0", "value": "p_month_Aug_day_0", "keyword": null, "type": 0, "flags": 0, "position": 11063 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11080 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11081 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 11094 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_1", "value": "p_month_Aug_day_1", "keyword": null, "type": 0, "flags": 0, "position": 11107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 11138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11150 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_2", "value": "p_month_Aug_day_2", "keyword": null, "type": 0, "flags": 0, "position": 11151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11168 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11169 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 11182 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11194 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_3", "value": "p_month_Aug_day_3", "keyword": null, "type": 0, "flags": 0, "position": 11195 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11212 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11213 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 11226 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11238 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_4", "value": "p_month_Aug_day_4", "keyword": null, "type": 0, "flags": 0, "position": 11239 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11256 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11257 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 11270 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11282 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_5", "value": "p_month_Aug_day_5", "keyword": null, "type": 0, "flags": 0, "position": 11283 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11300 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11301 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 11314 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11326 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_6", "value": "p_month_Aug_day_6", "keyword": null, "type": 0, "flags": 0, "position": 11327 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11344 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11345 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 11358 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11370 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_7", "value": "p_month_Aug_day_7", "keyword": null, "type": 0, "flags": 0, "position": 11371 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11388 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11389 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 11402 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11414 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_8", "value": "p_month_Aug_day_8", "keyword": null, "type": 0, "flags": 0, "position": 11415 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11432 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11433 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 11446 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11458 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_9", "value": "p_month_Aug_day_9", "keyword": null, "type": 0, "flags": 0, "position": 11459 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11476 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11477 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 11490 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11502 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_10", "value": "p_month_Aug_day_10", "keyword": null, "type": 0, "flags": 0, "position": 11503 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11521 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11522 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 11535 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11547 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_11", "value": "p_month_Aug_day_11", "keyword": null, "type": 0, "flags": 0, "position": 11548 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11566 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11567 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 11580 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11592 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_12", "value": "p_month_Aug_day_12", "keyword": null, "type": 0, "flags": 0, "position": 11593 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11611 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11612 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 11625 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11637 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_13", "value": "p_month_Aug_day_13", "keyword": null, "type": 0, "flags": 0, "position": 11638 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11656 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11657 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 11670 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11682 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_14", "value": "p_month_Aug_day_14", "keyword": null, "type": 0, "flags": 0, "position": 11683 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11701 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11702 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 11715 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11727 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_15", "value": "p_month_Aug_day_15", "keyword": null, "type": 0, "flags": 0, "position": 11728 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11746 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11747 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 11760 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11772 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_16", "value": "p_month_Aug_day_16", "keyword": null, "type": 0, "flags": 0, "position": 11773 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11791 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11792 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 11805 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11817 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_17", "value": "p_month_Aug_day_17", "keyword": null, "type": 0, "flags": 0, "position": 11818 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11836 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11837 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 11850 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11862 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_18", "value": "p_month_Aug_day_18", "keyword": null, "type": 0, "flags": 0, "position": 11863 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11881 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11882 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 11895 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11907 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_19", "value": "p_month_Aug_day_19", "keyword": null, "type": 0, "flags": 0, "position": 11908 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11926 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11927 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 11940 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11952 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_20", "value": "p_month_Aug_day_20", "keyword": null, "type": 0, "flags": 0, "position": 11953 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11971 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11972 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 11985 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11997 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_21", "value": "p_month_Aug_day_21", "keyword": null, "type": 0, "flags": 0, "position": 11998 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12016 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12017 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 12030 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12042 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_22", "value": "p_month_Aug_day_22", "keyword": null, "type": 0, "flags": 0, "position": 12043 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12061 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12062 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 12075 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12087 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_23", "value": "p_month_Aug_day_23", "keyword": null, "type": 0, "flags": 0, "position": 12088 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 12120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_24", "value": "p_month_Aug_day_24", "keyword": null, "type": 0, "flags": 0, "position": 12133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 12165 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_25", "value": "p_month_Aug_day_25", "keyword": null, "type": 0, "flags": 0, "position": 12178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12196 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12197 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 12210 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12222 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_26", "value": "p_month_Aug_day_26", "keyword": null, "type": 0, "flags": 0, "position": 12223 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12241 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12242 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 12255 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12267 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_27", "value": "p_month_Aug_day_27", "keyword": null, "type": 0, "flags": 0, "position": 12268 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12286 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12287 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 12300 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12312 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_28", "value": "p_month_Aug_day_28", "keyword": null, "type": 0, "flags": 0, "position": 12313 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12331 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12332 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 12345 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12357 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_29", "value": "p_month_Aug_day_29", "keyword": null, "type": 0, "flags": 0, "position": 12358 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12376 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12377 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 12390 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12402 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_30", "value": "p_month_Aug_day_30", "keyword": null, "type": 0, "flags": 0, "position": 12403 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12421 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12422 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 12435 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12447 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Aug_day_31", "value": "p_month_Aug_day_31", "keyword": null, "type": 0, "flags": 0, "position": 12448 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12466 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 12475 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12476 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12477 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 12486 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12495 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep", "value": "p_month_Sep", "keyword": null, "type": 0, "flags": 0, "position": 12496 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12507 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 12512 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12518 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 12527 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12536 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 12537 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "8", "value": 8, "keyword": null, "type": 6, "flags": 0, "position": 12538 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 12539 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12540 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 12541 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12542 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 12555 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12567 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_0", "value": "p_month_Sep_day_0", "keyword": null, "type": 0, "flags": 0, "position": 12568 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12585 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12586 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 12599 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12611 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_1", "value": "p_month_Sep_day_1", "keyword": null, "type": 0, "flags": 0, "position": 12612 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12629 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12630 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 12643 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12655 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_2", "value": "p_month_Sep_day_2", "keyword": null, "type": 0, "flags": 0, "position": 12656 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12673 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12674 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 12687 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12699 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_3", "value": "p_month_Sep_day_3", "keyword": null, "type": 0, "flags": 0, "position": 12700 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12717 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12718 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 12731 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12743 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_4", "value": "p_month_Sep_day_4", "keyword": null, "type": 0, "flags": 0, "position": 12744 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12761 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12762 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 12775 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12787 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_5", "value": "p_month_Sep_day_5", "keyword": null, "type": 0, "flags": 0, "position": 12788 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12805 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12806 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 12819 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12831 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_6", "value": "p_month_Sep_day_6", "keyword": null, "type": 0, "flags": 0, "position": 12832 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12849 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12850 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 12863 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12875 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_7", "value": "p_month_Sep_day_7", "keyword": null, "type": 0, "flags": 0, "position": 12876 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12893 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12894 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 12907 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12919 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_8", "value": "p_month_Sep_day_8", "keyword": null, "type": 0, "flags": 0, "position": 12920 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12937 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12938 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 12951 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12963 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_9", "value": "p_month_Sep_day_9", "keyword": null, "type": 0, "flags": 0, "position": 12964 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 12981 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12982 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 12995 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13007 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_10", "value": "p_month_Sep_day_10", "keyword": null, "type": 0, "flags": 0, "position": 13008 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13026 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13027 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 13040 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13052 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_11", "value": "p_month_Sep_day_11", "keyword": null, "type": 0, "flags": 0, "position": 13053 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13071 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13072 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 13085 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13097 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_12", "value": "p_month_Sep_day_12", "keyword": null, "type": 0, "flags": 0, "position": 13098 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 13130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_13", "value": "p_month_Sep_day_13", "keyword": null, "type": 0, "flags": 0, "position": 13143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 13175 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13187 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_14", "value": "p_month_Sep_day_14", "keyword": null, "type": 0, "flags": 0, "position": 13188 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13206 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13207 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 13220 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13232 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_15", "value": "p_month_Sep_day_15", "keyword": null, "type": 0, "flags": 0, "position": 13233 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13251 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13252 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 13265 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13277 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_16", "value": "p_month_Sep_day_16", "keyword": null, "type": 0, "flags": 0, "position": 13278 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13296 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13297 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 13310 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13322 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_17", "value": "p_month_Sep_day_17", "keyword": null, "type": 0, "flags": 0, "position": 13323 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13341 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13342 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 13355 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13367 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_18", "value": "p_month_Sep_day_18", "keyword": null, "type": 0, "flags": 0, "position": 13368 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13386 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13387 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 13400 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13412 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_19", "value": "p_month_Sep_day_19", "keyword": null, "type": 0, "flags": 0, "position": 13413 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13431 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13432 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 13445 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13457 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_20", "value": "p_month_Sep_day_20", "keyword": null, "type": 0, "flags": 0, "position": 13458 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13476 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13477 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 13490 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13502 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_21", "value": "p_month_Sep_day_21", "keyword": null, "type": 0, "flags": 0, "position": 13503 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13521 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13522 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 13535 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13547 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_22", "value": "p_month_Sep_day_22", "keyword": null, "type": 0, "flags": 0, "position": 13548 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13566 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13567 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 13580 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13592 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_23", "value": "p_month_Sep_day_23", "keyword": null, "type": 0, "flags": 0, "position": 13593 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13611 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13612 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 13625 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13637 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_24", "value": "p_month_Sep_day_24", "keyword": null, "type": 0, "flags": 0, "position": 13638 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13656 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13657 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 13670 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13682 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_25", "value": "p_month_Sep_day_25", "keyword": null, "type": 0, "flags": 0, "position": 13683 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13701 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13702 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 13715 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13727 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_26", "value": "p_month_Sep_day_26", "keyword": null, "type": 0, "flags": 0, "position": 13728 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13746 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13747 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 13760 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13772 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_27", "value": "p_month_Sep_day_27", "keyword": null, "type": 0, "flags": 0, "position": 13773 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13791 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13792 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 13805 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13817 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_28", "value": "p_month_Sep_day_28", "keyword": null, "type": 0, "flags": 0, "position": 13818 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13836 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13837 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 13850 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13862 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_29", "value": "p_month_Sep_day_29", "keyword": null, "type": 0, "flags": 0, "position": 13863 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13881 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13882 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 13895 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13907 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_30", "value": "p_month_Sep_day_30", "keyword": null, "type": 0, "flags": 0, "position": 13908 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13926 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13927 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 13940 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13952 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Sep_day_31", "value": "p_month_Sep_day_31", "keyword": null, "type": 0, "flags": 0, "position": 13953 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13971 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 13980 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13981 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13982 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 13991 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14000 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct", "value": "p_month_Oct", "keyword": null, "type": 0, "flags": 0, "position": 14001 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14012 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 14017 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14023 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 14032 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14041 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 14042 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "9", "value": 9, "keyword": null, "type": 6, "flags": 0, "position": 14043 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 14044 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14045 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 14046 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14047 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 14060 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14072 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_0", "value": "p_month_Oct_day_0", "keyword": null, "type": 0, "flags": 0, "position": 14073 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 14090 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14091 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 14104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_1", "value": "p_month_Oct_day_1", "keyword": null, "type": 0, "flags": 0, "position": 14117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 14134 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 14148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_2", "value": "p_month_Oct_day_2", "keyword": null, "type": 0, "flags": 0, "position": 14161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 14178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14179 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 14192 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14204 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_3", "value": "p_month_Oct_day_3", "keyword": null, "type": 0, "flags": 0, "position": 14205 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 14222 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14223 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 14236 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14248 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_4", "value": "p_month_Oct_day_4", "keyword": null, "type": 0, "flags": 0, "position": 14249 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 14266 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14267 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 14280 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14292 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_5", "value": "p_month_Oct_day_5", "keyword": null, "type": 0, "flags": 0, "position": 14293 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 14310 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14311 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 14324 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14336 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_6", "value": "p_month_Oct_day_6", "keyword": null, "type": 0, "flags": 0, "position": 14337 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 14354 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14355 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 14368 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14380 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_7", "value": "p_month_Oct_day_7", "keyword": null, "type": 0, "flags": 0, "position": 14381 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 14398 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14399 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 14412 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14424 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_8", "value": "p_month_Oct_day_8", "keyword": null, "type": 0, "flags": 0, "position": 14425 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 14442 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14443 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 14456 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14468 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_9", "value": "p_month_Oct_day_9", "keyword": null, "type": 0, "flags": 0, "position": 14469 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 14486 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14487 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 14500 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14512 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_10", "value": "p_month_Oct_day_10", "keyword": null, "type": 0, "flags": 0, "position": 14513 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 14531 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14532 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 14545 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14557 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_11", "value": "p_month_Oct_day_11", "keyword": null, "type": 0, "flags": 0, "position": 14558 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 14576 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14577 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 14590 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14602 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_12", "value": "p_month_Oct_day_12", "keyword": null, "type": 0, "flags": 0, "position": 14603 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 14621 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14622 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 14635 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14647 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_13", "value": "p_month_Oct_day_13", "keyword": null, "type": 0, "flags": 0, "position": 14648 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 14666 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14667 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 14680 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14692 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_14", "value": "p_month_Oct_day_14", "keyword": null, "type": 0, "flags": 0, "position": 14693 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 14711 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14712 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 14725 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14737 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_15", "value": "p_month_Oct_day_15", "keyword": null, "type": 0, "flags": 0, "position": 14738 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 14756 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14757 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 14770 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14782 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_16", "value": "p_month_Oct_day_16", "keyword": null, "type": 0, "flags": 0, "position": 14783 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 14801 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14802 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 14815 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14827 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_17", "value": "p_month_Oct_day_17", "keyword": null, "type": 0, "flags": 0, "position": 14828 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 14846 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14847 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 14860 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14872 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_18", "value": "p_month_Oct_day_18", "keyword": null, "type": 0, "flags": 0, "position": 14873 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 14891 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14892 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 14905 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14917 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_19", "value": "p_month_Oct_day_19", "keyword": null, "type": 0, "flags": 0, "position": 14918 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 14936 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14937 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 14950 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14962 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_20", "value": "p_month_Oct_day_20", "keyword": null, "type": 0, "flags": 0, "position": 14963 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 14981 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14982 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 14995 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15007 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_21", "value": "p_month_Oct_day_21", "keyword": null, "type": 0, "flags": 0, "position": 15008 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15026 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15027 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 15040 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15052 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_22", "value": "p_month_Oct_day_22", "keyword": null, "type": 0, "flags": 0, "position": 15053 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15071 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15072 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 15085 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15097 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_23", "value": "p_month_Oct_day_23", "keyword": null, "type": 0, "flags": 0, "position": 15098 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 15130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_24", "value": "p_month_Oct_day_24", "keyword": null, "type": 0, "flags": 0, "position": 15143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 15175 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15187 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_25", "value": "p_month_Oct_day_25", "keyword": null, "type": 0, "flags": 0, "position": 15188 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15206 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15207 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 15220 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15232 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_26", "value": "p_month_Oct_day_26", "keyword": null, "type": 0, "flags": 0, "position": 15233 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15251 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15252 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 15265 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15277 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_27", "value": "p_month_Oct_day_27", "keyword": null, "type": 0, "flags": 0, "position": 15278 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15296 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15297 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 15310 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15322 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_28", "value": "p_month_Oct_day_28", "keyword": null, "type": 0, "flags": 0, "position": 15323 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15341 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15342 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 15355 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15367 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_29", "value": "p_month_Oct_day_29", "keyword": null, "type": 0, "flags": 0, "position": 15368 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15386 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15387 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 15400 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15412 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_30", "value": "p_month_Oct_day_30", "keyword": null, "type": 0, "flags": 0, "position": 15413 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15431 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15432 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 15445 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15457 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Oct_day_31", "value": "p_month_Oct_day_31", "keyword": null, "type": 0, "flags": 0, "position": 15458 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15476 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 15485 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15486 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15487 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 15496 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15505 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov", "value": "p_month_Nov", "keyword": null, "type": 0, "flags": 0, "position": 15506 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15517 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 15522 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15528 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 15537 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15546 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 15547 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 15548 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 15550 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15551 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 15552 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15553 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 15566 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15578 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_0", "value": "p_month_Nov_day_0", "keyword": null, "type": 0, "flags": 0, "position": 15579 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15596 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15597 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 15610 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15622 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_1", "value": "p_month_Nov_day_1", "keyword": null, "type": 0, "flags": 0, "position": 15623 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15640 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15641 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 15654 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15666 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_2", "value": "p_month_Nov_day_2", "keyword": null, "type": 0, "flags": 0, "position": 15667 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15684 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15685 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 15698 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15710 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_3", "value": "p_month_Nov_day_3", "keyword": null, "type": 0, "flags": 0, "position": 15711 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15728 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15729 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 15742 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15754 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_4", "value": "p_month_Nov_day_4", "keyword": null, "type": 0, "flags": 0, "position": 15755 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15772 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15773 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 15786 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15798 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_5", "value": "p_month_Nov_day_5", "keyword": null, "type": 0, "flags": 0, "position": 15799 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15816 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15817 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 15830 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15842 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_6", "value": "p_month_Nov_day_6", "keyword": null, "type": 0, "flags": 0, "position": 15843 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15860 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15861 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 15874 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15886 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_7", "value": "p_month_Nov_day_7", "keyword": null, "type": 0, "flags": 0, "position": 15887 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15904 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15905 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 15918 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15930 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_8", "value": "p_month_Nov_day_8", "keyword": null, "type": 0, "flags": 0, "position": 15931 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15948 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15949 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 15962 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15974 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_9", "value": "p_month_Nov_day_9", "keyword": null, "type": 0, "flags": 0, "position": 15975 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15992 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15993 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 16006 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16018 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_10", "value": "p_month_Nov_day_10", "keyword": null, "type": 0, "flags": 0, "position": 16019 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16037 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16038 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 16051 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16063 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_11", "value": "p_month_Nov_day_11", "keyword": null, "type": 0, "flags": 0, "position": 16064 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16082 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16083 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 16096 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_12", "value": "p_month_Nov_day_12", "keyword": null, "type": 0, "flags": 0, "position": 16109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 16141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16153 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_13", "value": "p_month_Nov_day_13", "keyword": null, "type": 0, "flags": 0, "position": 16154 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16172 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16173 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 16186 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16198 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_14", "value": "p_month_Nov_day_14", "keyword": null, "type": 0, "flags": 0, "position": 16199 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16217 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16218 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 16231 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16243 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_15", "value": "p_month_Nov_day_15", "keyword": null, "type": 0, "flags": 0, "position": 16244 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16262 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16263 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 16276 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16288 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_16", "value": "p_month_Nov_day_16", "keyword": null, "type": 0, "flags": 0, "position": 16289 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16307 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16308 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 16321 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16333 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_17", "value": "p_month_Nov_day_17", "keyword": null, "type": 0, "flags": 0, "position": 16334 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16352 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16353 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 16366 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16378 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_18", "value": "p_month_Nov_day_18", "keyword": null, "type": 0, "flags": 0, "position": 16379 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16397 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16398 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 16411 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16423 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_19", "value": "p_month_Nov_day_19", "keyword": null, "type": 0, "flags": 0, "position": 16424 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16442 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16443 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 16456 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16468 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_20", "value": "p_month_Nov_day_20", "keyword": null, "type": 0, "flags": 0, "position": 16469 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16487 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16488 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 16501 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16513 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_21", "value": "p_month_Nov_day_21", "keyword": null, "type": 0, "flags": 0, "position": 16514 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16532 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16533 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 16546 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16558 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_22", "value": "p_month_Nov_day_22", "keyword": null, "type": 0, "flags": 0, "position": 16559 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16577 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16578 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 16591 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16603 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_23", "value": "p_month_Nov_day_23", "keyword": null, "type": 0, "flags": 0, "position": 16604 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16622 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16623 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 16636 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16648 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_24", "value": "p_month_Nov_day_24", "keyword": null, "type": 0, "flags": 0, "position": 16649 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16667 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16668 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 16681 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16693 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_25", "value": "p_month_Nov_day_25", "keyword": null, "type": 0, "flags": 0, "position": 16694 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16712 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16713 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 16726 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16738 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_26", "value": "p_month_Nov_day_26", "keyword": null, "type": 0, "flags": 0, "position": 16739 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16757 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16758 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 16771 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16783 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_27", "value": "p_month_Nov_day_27", "keyword": null, "type": 0, "flags": 0, "position": 16784 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16802 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16803 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 16816 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16828 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_28", "value": "p_month_Nov_day_28", "keyword": null, "type": 0, "flags": 0, "position": 16829 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16847 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16848 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 16861 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16873 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_29", "value": "p_month_Nov_day_29", "keyword": null, "type": 0, "flags": 0, "position": 16874 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16892 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16893 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 16906 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16918 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_30", "value": "p_month_Nov_day_30", "keyword": null, "type": 0, "flags": 0, "position": 16919 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16937 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16938 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 16951 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16963 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Nov_day_31", "value": "p_month_Nov_day_31", "keyword": null, "type": 0, "flags": 0, "position": 16964 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16982 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 16991 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16992 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16993 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 17002 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17011 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec", "value": "p_month_Dec", "keyword": null, "type": 0, "flags": 0, "position": 17012 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17023 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 17028 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17034 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 17043 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17052 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 17053 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 17054 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 17056 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17057 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 17058 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17059 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 17072 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17084 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_0", "value": "p_month_Dec_day_0", "keyword": null, "type": 0, "flags": 0, "position": 17085 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 17102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 17116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_1", "value": "p_month_Dec_day_1", "keyword": null, "type": 0, "flags": 0, "position": 17129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 17146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 17160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17172 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_2", "value": "p_month_Dec_day_2", "keyword": null, "type": 0, "flags": 0, "position": 17173 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 17190 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17191 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 17204 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17216 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_3", "value": "p_month_Dec_day_3", "keyword": null, "type": 0, "flags": 0, "position": 17217 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 17234 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17235 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 17248 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17260 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_4", "value": "p_month_Dec_day_4", "keyword": null, "type": 0, "flags": 0, "position": 17261 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 17278 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17279 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 17292 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17304 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_5", "value": "p_month_Dec_day_5", "keyword": null, "type": 0, "flags": 0, "position": 17305 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 17322 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17323 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 17336 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17348 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_6", "value": "p_month_Dec_day_6", "keyword": null, "type": 0, "flags": 0, "position": 17349 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 17366 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17367 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 17380 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17392 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_7", "value": "p_month_Dec_day_7", "keyword": null, "type": 0, "flags": 0, "position": 17393 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 17410 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17411 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 17424 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17436 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_8", "value": "p_month_Dec_day_8", "keyword": null, "type": 0, "flags": 0, "position": 17437 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 17454 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17455 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 17468 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17480 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_9", "value": "p_month_Dec_day_9", "keyword": null, "type": 0, "flags": 0, "position": 17481 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 17498 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17499 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 17512 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17524 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_10", "value": "p_month_Dec_day_10", "keyword": null, "type": 0, "flags": 0, "position": 17525 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 17543 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17544 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 17557 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17569 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_11", "value": "p_month_Dec_day_11", "keyword": null, "type": 0, "flags": 0, "position": 17570 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 17588 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17589 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 17602 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17614 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_12", "value": "p_month_Dec_day_12", "keyword": null, "type": 0, "flags": 0, "position": 17615 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 17633 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17634 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 17647 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17659 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_13", "value": "p_month_Dec_day_13", "keyword": null, "type": 0, "flags": 0, "position": 17660 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 17678 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17679 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 17692 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17704 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_14", "value": "p_month_Dec_day_14", "keyword": null, "type": 0, "flags": 0, "position": 17705 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 17723 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17724 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 17737 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17749 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_15", "value": "p_month_Dec_day_15", "keyword": null, "type": 0, "flags": 0, "position": 17750 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 17768 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17769 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 17782 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17794 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_16", "value": "p_month_Dec_day_16", "keyword": null, "type": 0, "flags": 0, "position": 17795 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 17813 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17814 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 17827 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17839 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_17", "value": "p_month_Dec_day_17", "keyword": null, "type": 0, "flags": 0, "position": 17840 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 17858 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17859 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 17872 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17884 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_18", "value": "p_month_Dec_day_18", "keyword": null, "type": 0, "flags": 0, "position": 17885 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 17903 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17904 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 17917 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17929 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_19", "value": "p_month_Dec_day_19", "keyword": null, "type": 0, "flags": 0, "position": 17930 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 17948 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17949 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 17962 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17974 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_20", "value": "p_month_Dec_day_20", "keyword": null, "type": 0, "flags": 0, "position": 17975 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 17993 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17994 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 18007 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18019 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_21", "value": "p_month_Dec_day_21", "keyword": null, "type": 0, "flags": 0, "position": 18020 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 18038 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18039 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 18052 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18064 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_22", "value": "p_month_Dec_day_22", "keyword": null, "type": 0, "flags": 0, "position": 18065 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 18083 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18084 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 18097 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_23", "value": "p_month_Dec_day_23", "keyword": null, "type": 0, "flags": 0, "position": 18110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 18128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 18142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18154 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_24", "value": "p_month_Dec_day_24", "keyword": null, "type": 0, "flags": 0, "position": 18155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 18173 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 18187 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18199 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_25", "value": "p_month_Dec_day_25", "keyword": null, "type": 0, "flags": 0, "position": 18200 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 18218 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18219 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 18232 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18244 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_26", "value": "p_month_Dec_day_26", "keyword": null, "type": 0, "flags": 0, "position": 18245 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 18263 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18264 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 18277 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18289 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_27", "value": "p_month_Dec_day_27", "keyword": null, "type": 0, "flags": 0, "position": 18290 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 18308 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18309 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 18322 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18334 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_28", "value": "p_month_Dec_day_28", "keyword": null, "type": 0, "flags": 0, "position": 18335 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 18353 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18354 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 18367 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18379 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_29", "value": "p_month_Dec_day_29", "keyword": null, "type": 0, "flags": 0, "position": 18380 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 18398 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18399 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 18412 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18424 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_30", "value": "p_month_Dec_day_30", "keyword": null, "type": 0, "flags": 0, "position": 18425 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 18443 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18444 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 18457 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18469 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p_month_Dec_day_31", "value": "p_month_Dec_day_31", "keyword": null, "type": 0, "flags": 0, "position": 18470 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18488 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 18497 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18498 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 18499 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 2224, "idx": 2224 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "trips", "column": null, "expr": "`trips`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ENGINE", "equals": true, "expr": "InnoDB", "value": "InnoDB" }, "4": { "name": "DEFAULT CHARSET", "equals": true, "expr": "utf8mb4", "value": "utf8mb4" }, "6": { "name": "COLLATE", "equals": true, "expr": "utf8mb4_unicode_ci", "value": "utf8mb4_unicode_ci" }, "7": { "name": "COMMENT", "equals": true, "expr": "'The trips'", "value": "The trips" } } }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "BIGINT", "parameters": [ "20" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "5": { "name": "COMMENT", "equals": false, "expr": "'Unique trip Id'", "value": "Unique trip Id" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "trip_category", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [ "11" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "5": { "name": "COMMENT", "equals": false, "expr": "'Trip category'", "value": "Trip category" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "trip_month", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [ "11" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "5": { "name": "COMMENT", "equals": false, "expr": "'Trip month'", "value": "Trip month" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "trip_date", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "DATE", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "5": { "name": "COMMENT", "equals": false, "expr": "'The trip date'", "value": "The trip date" } } } } ], "with": null, "select": null, "like": null, "partitionBy": "RANGE(trip_month)", "partitionsNum": null, "subpartitionBy": "HASH(DAY(trip_date))", "subpartitionsNum": null, "partitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p_month_Jan", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(0)", "alias": null, "function": null, "subquery": null }, "subpartitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_0", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_1", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_2", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_3", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_4", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_5", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_6", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_7", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_8", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_9", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_10", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_11", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_12", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_13", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_14", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_15", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_16", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_17", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_18", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_19", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_20", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_21", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_22", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_23", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_24", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_25", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_26", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_27", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_28", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_29", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_30", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jan_day_31", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p_month_Feb", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(1)", "alias": null, "function": null, "subquery": null }, "subpartitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_0", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_1", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_2", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_3", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_4", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_5", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_6", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_7", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_8", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_9", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_10", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_11", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_12", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_13", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_14", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_15", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_16", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_17", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_18", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_19", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_20", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_21", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_22", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_23", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_24", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_25", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_26", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_27", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_28", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_29", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_30", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Feb_day_31", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p_month_Mar", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(2)", "alias": null, "function": null, "subquery": null }, "subpartitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_0", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_1", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_2", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_3", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_4", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_5", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_6", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_7", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_8", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_9", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_10", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_11", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_12", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_13", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_14", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_15", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_16", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_17", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_18", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_19", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_20", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_21", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_22", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_23", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_24", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_25", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_26", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_27", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_28", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_29", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_30", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mar_day_31", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p_month_Apr", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(3)", "alias": null, "function": null, "subquery": null }, "subpartitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_0", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_1", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_2", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_3", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_4", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_5", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_6", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_7", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_8", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_9", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_10", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_11", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_12", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_13", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_14", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_15", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_16", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_17", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_18", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_19", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_20", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_21", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_22", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_23", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_24", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_25", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_26", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_27", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_28", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_29", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_30", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Apr_day_31", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p_month_Mai", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(4)", "alias": null, "function": null, "subquery": null }, "subpartitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_0", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_1", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_2", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_3", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_4", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_5", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_6", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_7", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_8", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_9", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_10", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_11", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_12", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_13", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_14", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_15", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_16", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_17", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_18", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_19", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_20", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_21", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_22", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_23", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_24", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_25", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_26", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_27", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_28", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_29", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_30", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Mai_day_31", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p_month_Jun", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(5)", "alias": null, "function": null, "subquery": null }, "subpartitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_0", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_1", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_2", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_3", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_4", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_5", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_6", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_7", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_8", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_9", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_10", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_11", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_12", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_13", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_14", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_15", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_16", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_17", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_18", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_19", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_20", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_21", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_22", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_23", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_24", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_25", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_26", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_27", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_28", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_29", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_30", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jun_day_31", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p_month_Jul", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(6)", "alias": null, "function": null, "subquery": null }, "subpartitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_0", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_1", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_2", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_3", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_4", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_5", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_6", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_7", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_8", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_9", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_10", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_11", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_12", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_13", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_14", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_15", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_16", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_17", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_18", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_19", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_20", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_21", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_22", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_23", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_24", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_25", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_26", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_27", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_28", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_29", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_30", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Jul_day_31", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p_month_Aug", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(7)", "alias": null, "function": null, "subquery": null }, "subpartitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_0", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_1", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_2", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_3", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_4", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_5", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_6", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_7", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_8", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_9", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_10", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_11", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_12", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_13", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_14", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_15", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_16", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_17", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_18", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_19", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_20", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_21", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_22", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_23", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_24", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_25", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_26", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_27", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_28", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_29", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_30", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Aug_day_31", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p_month_Sep", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(8)", "alias": null, "function": null, "subquery": null }, "subpartitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_0", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_1", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_2", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_3", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_4", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_5", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_6", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_7", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_8", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_9", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_10", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_11", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_12", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_13", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_14", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_15", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_16", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_17", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_18", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_19", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_20", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_21", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_22", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_23", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_24", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_25", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_26", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_27", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_28", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_29", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_30", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Sep_day_31", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p_month_Oct", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(9)", "alias": null, "function": null, "subquery": null }, "subpartitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_0", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_1", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_2", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_3", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_4", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_5", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_6", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_7", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_8", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_9", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_10", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_11", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_12", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_13", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_14", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_15", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_16", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_17", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_18", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_19", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_20", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_21", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_22", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_23", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_24", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_25", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_26", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_27", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_28", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_29", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_30", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Oct_day_31", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p_month_Nov", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(10)", "alias": null, "function": null, "subquery": null }, "subpartitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_0", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_1", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_2", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_3", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_4", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_5", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_6", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_7", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_8", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_9", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_10", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_11", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_12", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_13", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_14", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_15", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_16", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_17", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_18", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_19", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_20", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_21", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_22", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_23", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_24", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_25", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_26", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_27", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_28", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_29", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_30", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Nov_day_31", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p_month_Dec", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(11)", "alias": null, "function": null, "subquery": null }, "subpartitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_0", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_1", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_2", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_3", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_4", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_5", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_6", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_7", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_8", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_9", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_10", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_11", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_12", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_13", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_14", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_15", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_16", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_17", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_18", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_19", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_20", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_21", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_22", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_23", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_24", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_25", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_26", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_27", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_28", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_29", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_30", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "p_month_Dec_day_31", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 2222 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTable12.in000066400000000000000000000001131455302707200230660ustar00rootroot00000000000000CREATE OR REPLACE TABLE t1 (v1 INT) PARTITION BY KEY (v1) PARTITIONS 2;sql-parser-5.9.0/tests/data/parser/parseCreateTable12.out000066400000000000000000000263521455302707200233040ustar00rootroot00000000000000{ "query": "CREATE OR REPLACE TABLE t1 (v1 INT)\n PARTITION BY KEY (v1)\n PARTITIONS 2;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE OR REPLACE TABLE t1 (v1 INT)\n PARTITION BY KEY (v1)\n PARTITIONS 2;", "len": 75, "last": 75, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OR REPLACE", "value": "OR REPLACE", "keyword": "OR REPLACE", "type": 1, "flags": 7, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "v1", "value": "v1", "keyword": null, "type": 0, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION BY", "value": "PARTITION BY", "keyword": "PARTITION BY", "type": 1, "flags": 7, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "KEY", "value": "KEY", "keyword": "KEY", "type": 1, "flags": 19, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "v1", "value": "v1", "keyword": null, "type": 0, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITIONS", "value": "PARTITIONS", "keyword": "PARTITIONS", "type": 1, "flags": 1, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 27, "idx": 27 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t1", "column": null, "expr": "t1", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "v1", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "with": null, "select": null, "like": null, "partitionBy": "KEY (v1)", "partitionsNum": 2, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "OR REPLACE", "6": "TABLE" } }, "first": 0, "last": 25 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTable13.in000066400000000000000000000002121455302707200230670ustar00rootroot00000000000000CREATE TABLE autos ( auto_id INT UNSIGNED NOT NULL AUTO_INCREMENT KEY, make VARCHAR(128), year INTEGER, mileage INTEGER );sql-parser-5.9.0/tests/data/parser/parseCreateTable13.out000066400000000000000000000452141455302707200233030ustar00rootroot00000000000000{ "query": "CREATE TABLE autos (\n auto_id INT UNSIGNED NOT NULL AUTO_INCREMENT KEY,\n make VARCHAR(128),\n year INTEGER,\n mileage INTEGER\n);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE autos (\n auto_id INT UNSIGNED NOT NULL AUTO_INCREMENT KEY,\n make VARCHAR(128),\n year INTEGER,\n mileage INTEGER\n);", "len": 138, "last": 138, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "autos", "value": "autos", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "auto_id", "value": "auto_id", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AUTO_INCREMENT", "value": "AUTO_INCREMENT", "keyword": "AUTO_INCREMENT", "type": 1, "flags": 1, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "KEY", "value": "KEY", "keyword": "KEY", "type": 1, "flags": 19, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "make", "value": "make", "keyword": null, "type": 0, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "128", "value": 128, "keyword": null, "type": 6, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "year", "value": "year", "keyword": "YEAR", "type": 1, "flags": 41, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTEGER", "value": "INTEGER", "keyword": "INTEGER", "type": 1, "flags": 11, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mileage", "value": "mileage", "keyword": null, "type": 0, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTEGER", "value": "INTEGER", "keyword": "INTEGER", "type": 1, "flags": 11, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 137 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 41, "idx": 41 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "autos", "column": null, "expr": "autos", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "auto_id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "3": "AUTO_INCREMENT", "4": "KEY" } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "make", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "128" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "year", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INTEGER", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "mileage", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INTEGER", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 39 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTable14.in000066400000000000000000000001731455302707200230760ustar00rootroot00000000000000CREATE TABLE autos ( auto_id INT UNSIGNED NOT NULL KEY, make VARCHAR(128), year INTEGER, mileage INTEGER );sql-parser-5.9.0/tests/data/parser/parseCreateTable14.out000066400000000000000000000436631455302707200233120ustar00rootroot00000000000000{ "query": "CREATE TABLE autos (\n auto_id INT UNSIGNED NOT NULL KEY,\n make VARCHAR(128),\n year INTEGER,\n mileage INTEGER\n);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE autos (\n auto_id INT UNSIGNED NOT NULL KEY,\n make VARCHAR(128),\n year INTEGER,\n mileage INTEGER\n);", "len": 123, "last": 123, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "autos", "value": "autos", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "auto_id", "value": "auto_id", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "KEY", "value": "KEY", "keyword": "KEY", "type": 1, "flags": 19, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "make", "value": "make", "keyword": null, "type": 0, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "128", "value": 128, "keyword": null, "type": 6, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "year", "value": "year", "keyword": "YEAR", "type": 1, "flags": 41, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTEGER", "value": "INTEGER", "keyword": "INTEGER", "type": 1, "flags": 11, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mileage", "value": "mileage", "keyword": null, "type": 0, "flags": 0, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTEGER", "value": "INTEGER", "keyword": "INTEGER", "type": 1, "flags": 11, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 39, "idx": 39 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "autos", "column": null, "expr": "autos", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "auto_id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "4": "KEY" } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "make", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "128" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "year", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INTEGER", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "mileage", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INTEGER", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 37 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTable15.in000066400000000000000000000002041455302707200230720ustar00rootroot00000000000000CREATE TABLE autos ( auto_id INT UNSIGNED ZEROFILL NOT NULL KEY, make VARCHAR(128), year INTEGER, mileage INTEGER );sql-parser-5.9.0/tests/data/parser/parseCreateTable15.out000066400000000000000000000451531455302707200233070ustar00rootroot00000000000000{ "query": "CREATE TABLE autos (\n auto_id INT UNSIGNED ZEROFILL NOT NULL KEY,\n make VARCHAR(128),\n year INTEGER,\n mileage INTEGER\n);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE autos (\n auto_id INT UNSIGNED ZEROFILL NOT NULL KEY,\n make VARCHAR(128),\n year INTEGER,\n mileage INTEGER\n);", "len": 132, "last": 132, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "autos", "value": "autos", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "auto_id", "value": "auto_id", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ZEROFILL", "value": "ZEROFILL", "keyword": "ZEROFILL", "type": 1, "flags": 3, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "KEY", "value": "KEY", "keyword": "KEY", "type": 1, "flags": 19, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "make", "value": "make", "keyword": null, "type": 0, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "128", "value": 128, "keyword": null, "type": 6, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "year", "value": "year", "keyword": "YEAR", "type": 1, "flags": 41, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTEGER", "value": "INTEGER", "keyword": "INTEGER", "type": 1, "flags": 11, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mileage", "value": "mileage", "keyword": null, "type": 0, "flags": 0, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTEGER", "value": "INTEGER", "keyword": "INTEGER", "type": 1, "flags": 11, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 41, "idx": 41 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "autos", "column": null, "expr": "autos", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "auto_id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED", "5": "ZEROFILL" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "4": "KEY" } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "make", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "128" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "year", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INTEGER", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "mileage", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INTEGER", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 39 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTable16.in000066400000000000000000000001011455302707200230670ustar00rootroot00000000000000CREATE TABLE test ( user_id INT, INDEX `test` (user_id ASC) )sql-parser-5.9.0/tests/data/parser/parseCreateTable16.out000066400000000000000000000271341455302707200233070ustar00rootroot00000000000000{ "query": "CREATE TABLE test (\n user_id INT,\n INDEX `test` (user_id ASC)\n)", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE test (\n user_id INT,\n INDEX `test` (user_id ASC)\n)", "len": 65, "last": 65, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "user_id", "value": "user_id", "keyword": null, "type": 0, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INDEX", "value": "INDEX", "keyword": "INDEX", "type": 1, "flags": 19, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`test`", "value": "test", "keyword": null, "type": 8, "flags": 2, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "user_id", "value": "user_id", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ASC", "value": "ASC", "keyword": "ASC", "type": 1, "flags": 3, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 25, "idx": 25 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test", "column": null, "expr": "test", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "user_id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": null, "isConstraint": null, "type": null, "key": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Key", "name": "test", "columns": [ { "name": "user_id", "order": "ASC" } ], "type": "INDEX", "expr": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "references": null, "options": null } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 24 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTable17.in000066400000000000000000000005031455302707200230760ustar00rootroot00000000000000CREATE TABLE `autos8` ( `auto_id` int(10) UNSIGNED NOT NULL UNIQUE KEY, `make` varchar(128) DEFAULT NULL, `year` int(11) DEFAULT NULL, `mileage` int(11) DEFAULT NULL, `city` point NOT NULL, SPATIAL INDEX `city_index` (`city`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci;sql-parser-5.9.0/tests/data/parser/parseCreateTable17.out000066400000000000000000001204321455302707200233030ustar00rootroot00000000000000{ "query": "CREATE TABLE `autos8` (\n `auto_id` int(10) UNSIGNED NOT NULL UNIQUE KEY,\n `make` varchar(128) DEFAULT NULL,\n `year` int(11) DEFAULT NULL,\n `mileage` int(11) DEFAULT NULL,\n `city` point NOT NULL,\n SPATIAL INDEX `city_index` (`city`)\n) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE `autos8` (\n `auto_id` int(10) UNSIGNED NOT NULL UNIQUE KEY,\n `make` varchar(128) DEFAULT NULL,\n `year` int(11) DEFAULT NULL,\n `mileage` int(11) DEFAULT NULL,\n `city` point NOT NULL,\n SPATIAL INDEX `city_index` (`city`)\n) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci;", "len": 323, "last": 323, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`autos8`", "value": "autos8", "keyword": null, "type": 8, "flags": 2, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`auto_id`", "value": "auto_id", "keyword": null, "type": 8, "flags": 2, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "int", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNIQUE KEY", "value": "UNIQUE KEY", "keyword": "UNIQUE KEY", "type": 1, "flags": 23, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`make`", "value": "make", "keyword": null, "type": 8, "flags": 2, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "varchar", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "128", "value": 128, "keyword": null, "type": 6, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`year`", "value": "year", "keyword": null, "type": 8, "flags": 2, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "int", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`mileage`", "value": "mileage", "keyword": null, "type": 8, "flags": 2, "position": 151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "int", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 165 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 168 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 169 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 181 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 182 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`city`", "value": "city", "keyword": null, "type": 8, "flags": 2, "position": 187 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 193 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "point", "value": "point", "keyword": "POINT", "type": 1, "flags": 41, "position": 194 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 199 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 200 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 208 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 209 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SPATIAL INDEX", "value": "SPATIAL INDEX", "keyword": "SPATIAL INDEX", "type": 1, "flags": 23, "position": 214 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 227 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`city_index`", "value": "city_index", "keyword": null, "type": 8, "flags": 2, "position": 228 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 240 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 241 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`city`", "value": "city", "keyword": null, "type": 8, "flags": 2, "position": 242 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 248 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 249 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 250 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 251 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENGINE", "value": "ENGINE", "keyword": "ENGINE", "type": 1, "flags": 1, "position": 252 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 258 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 259 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 260 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "InnoDB", "value": "InnoDB", "keyword": null, "type": 0, "flags": 0, "position": 261 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 267 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT CHARSET", "value": "DEFAULT CHARSET", "keyword": "DEFAULT CHARSET", "type": 1, "flags": 7, "position": 268 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 283 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 284 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 285 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8mb4", "value": "utf8mb4", "keyword": null, "type": 0, "flags": 0, "position": 286 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 293 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLLATE", "value": "COLLATE", "keyword": "COLLATE", "type": 1, "flags": 3, "position": 294 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 301 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 302 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 303 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8mb4_general_ci", "value": "utf8mb4_general_ci", "keyword": null, "type": 0, "flags": 0, "position": 304 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 322 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 94, "idx": 94 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "autos8", "column": null, "expr": "`autos8`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ENGINE", "equals": true, "expr": "InnoDB", "value": "InnoDB" }, "4": { "name": "DEFAULT CHARSET", "equals": true, "expr": "utf8mb4", "value": "utf8mb4" }, "6": { "name": "COLLATE", "equals": true, "expr": "utf8mb4_general_ci", "value": "utf8mb4_general_ci" } } }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "auto_id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [ "10" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "4": "UNIQUE KEY" } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "make", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "128" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "NULL", "alias": null, "function": null, "subquery": null }, "value": "NULL" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "year", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [ "11" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "NULL", "alias": null, "function": null, "subquery": null }, "value": "NULL" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "mileage", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [ "11" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "NULL", "alias": null, "function": null, "subquery": null }, "value": "NULL" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "city", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "POINT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL" } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": null, "isConstraint": null, "type": null, "key": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Key", "name": "city_index", "columns": [ { "name": "city" } ], "type": "SPATIAL INDEX", "expr": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "references": null, "options": null } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 92 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTable18.in000066400000000000000000000003041455302707200230760ustar00rootroot00000000000000CREATE TABLE test ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, data VARCHAR(64) DEFAULT NULL, ts TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (id) );sql-parser-5.9.0/tests/data/parser/parseCreateTable18.out000066400000000000000000000631241455302707200233100ustar00rootroot00000000000000{ "query": "CREATE TABLE test (\n id INT UNSIGNED NOT NULL AUTO_INCREMENT,\n data VARCHAR(64) DEFAULT NULL,\n ts TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n PRIMARY KEY (id)\n);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE test (\n id INT UNSIGNED NOT NULL AUTO_INCREMENT,\n data VARCHAR(64) DEFAULT NULL,\n ts TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n PRIMARY KEY (id)\n);", "len": 196, "last": 196, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AUTO_INCREMENT", "value": "AUTO_INCREMENT", "keyword": "AUTO_INCREMENT", "type": 1, "flags": 1, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "data", "value": "data", "keyword": "DATA", "type": 1, "flags": 1, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "64", "value": 64, "keyword": null, "type": 6, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ts", "value": "ts", "keyword": null, "type": 0, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TIMESTAMP", "value": "TIMESTAMP", "keyword": "TIMESTAMP", "type": 1, "flags": 41, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CURRENT_TIMESTAMP", "value": "CURRENT_TIMESTAMP", "keyword": "CURRENT_TIMESTAMP", "type": 1, "flags": 35, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON UPDATE", "value": "ON UPDATE", "keyword": "ON UPDATE", "type": 1, "flags": 7, "position": 146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CURRENT_TIMESTAMP", "value": "CURRENT_TIMESTAMP", "keyword": "CURRENT_TIMESTAMP", "type": 1, "flags": 35, "position": 156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 173 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PRIMARY KEY", "value": "PRIMARY KEY", "keyword": "PRIMARY KEY", "type": 1, "flags": 23, "position": 177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 188 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 189 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 190 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 192 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 193 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 194 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 195 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 55, "idx": 55 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test", "column": null, "expr": "test", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "3": "AUTO_INCREMENT" } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "data", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "64" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "NULL", "alias": null, "function": null, "subquery": null }, "value": "NULL" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "ts", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "TIMESTAMP", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "CURRENT_TIMESTAMP", "alias": null, "function": null, "subquery": null }, "value": "CURRENT_TIMESTAMP" }, "7": { "name": "ON UPDATE", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "CURRENT_TIMESTAMP", "alias": null, "function": null, "subquery": null }, "value": "CURRENT_TIMESTAMP" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": null, "isConstraint": null, "type": null, "key": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Key", "name": null, "columns": [ { "name": "id" } ], "type": "PRIMARY KEY", "expr": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "references": null, "options": null } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 53 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTable2.in000066400000000000000000000016541455302707200230200ustar00rootroot00000000000000CREATE TABLE `payment` ( `payment_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `customer_id` smallint(5) unsigned NOT NULL, `staff_id` tinyint(3) unsigned NOT NULL, `rental_id` int(11) DEFAULT NULL, `amount` decimal(5,2) NOT NULL, `payment_date` datetime NOT NULL, `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`payment_id`), KEY `idx_fk_staff_id` (`staff_id`), KEY `idx_fk_customer_id` (`customer_id`), KEY `fk_payment_rental` (`rental_id`), CONSTRAINT `fk_payment_customer` FOREIGN KEY (`customer_id`) REFERENCES `customer` (`customer_id`) ON UPDATE CASCADE, CONSTRAINT `fk_payment_rental` FOREIGN KEY (`rental_id`) REFERENCES `rental` (`rental_id`) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT `fk_payment_staff` FOREIGN KEY (`staff_id`) REFERENCES `staff` (`staff_id`) ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=16050 DEFAULT CHARSET=utf8sql-parser-5.9.0/tests/data/parser/parseCreateTable2.out000066400000000000000000002640541455302707200232260ustar00rootroot00000000000000{ "query": "CREATE TABLE `payment` (\n `payment_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,\n `customer_id` smallint(5) unsigned NOT NULL,\n `staff_id` tinyint(3) unsigned NOT NULL,\n `rental_id` int(11) DEFAULT NULL,\n `amount` decimal(5,2) NOT NULL,\n `payment_date` datetime NOT NULL,\n `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n PRIMARY KEY (`payment_id`),\n KEY `idx_fk_staff_id` (`staff_id`),\n KEY `idx_fk_customer_id` (`customer_id`),\n KEY `fk_payment_rental` (`rental_id`),\n CONSTRAINT `fk_payment_customer` FOREIGN KEY (`customer_id`) REFERENCES `customer` (`customer_id`) ON UPDATE CASCADE,\n CONSTRAINT `fk_payment_rental` FOREIGN KEY (`rental_id`) REFERENCES `rental` (`rental_id`) ON DELETE SET NULL ON UPDATE CASCADE,\n CONSTRAINT `fk_payment_staff` FOREIGN KEY (`staff_id`) REFERENCES `staff` (`staff_id`) ON UPDATE CASCADE\n) ENGINE=InnoDB AUTO_INCREMENT=16050 DEFAULT CHARSET=utf8", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE `payment` (\n `payment_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,\n `customer_id` smallint(5) unsigned NOT NULL,\n `staff_id` tinyint(3) unsigned NOT NULL,\n `rental_id` int(11) DEFAULT NULL,\n `amount` decimal(5,2) NOT NULL,\n `payment_date` datetime NOT NULL,\n `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n PRIMARY KEY (`payment_id`),\n KEY `idx_fk_staff_id` (`staff_id`),\n KEY `idx_fk_customer_id` (`customer_id`),\n KEY `fk_payment_rental` (`rental_id`),\n CONSTRAINT `fk_payment_customer` FOREIGN KEY (`customer_id`) REFERENCES `customer` (`customer_id`) ON UPDATE CASCADE,\n CONSTRAINT `fk_payment_rental` FOREIGN KEY (`rental_id`) REFERENCES `rental` (`rental_id`) ON DELETE SET NULL ON UPDATE CASCADE,\n CONSTRAINT `fk_payment_staff` FOREIGN KEY (`staff_id`) REFERENCES `staff` (`staff_id`) ON UPDATE CASCADE\n) ENGINE=InnoDB AUTO_INCREMENT=16050 DEFAULT CHARSET=utf8", "len": 940, "last": 940, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`payment`", "value": "payment", "keyword": null, "type": 8, "flags": 2, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`payment_id`", "value": "payment_id", "keyword": null, "type": 8, "flags": 2, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "smallint", "value": "SMALLINT", "keyword": "SMALLINT", "type": 1, "flags": 11, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "5", "value": 5, "keyword": null, "type": 6, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "unsigned", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AUTO_INCREMENT", "value": "AUTO_INCREMENT", "keyword": "AUTO_INCREMENT", "type": 1, "flags": 1, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`customer_id`", "value": "customer_id", "keyword": null, "type": 8, "flags": 2, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "smallint", "value": "SMALLINT", "keyword": "SMALLINT", "type": 1, "flags": 11, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "5", "value": 5, "keyword": null, "type": 6, "flags": 0, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "unsigned", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`staff_id`", "value": "staff_id", "keyword": null, "type": 8, "flags": 2, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tinyint", "value": "TINYINT", "keyword": "TINYINT", "type": 1, "flags": 11, "position": 146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 153 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 154 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "unsigned", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 165 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 166 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 175 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`rental_id`", "value": "rental_id", "keyword": null, "type": 8, "flags": 2, "position": 178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 189 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "int", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 190 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 193 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 194 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 196 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 197 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 198 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 205 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 206 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 210 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 211 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`amount`", "value": "amount", "keyword": null, "type": 8, "flags": 2, "position": 214 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 222 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "decimal", "value": "DECIMAL", "keyword": "DECIMAL", "type": 1, "flags": 11, "position": 223 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 230 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "5", "value": 5, "keyword": null, "type": 6, "flags": 0, "position": 231 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 232 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 233 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 234 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 235 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 236 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 244 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 245 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`payment_date`", "value": "payment_date", "keyword": null, "type": 8, "flags": 2, "position": 248 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 262 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "datetime", "value": "datetime", "keyword": "DATETIME", "type": 1, "flags": 9, "position": 263 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 271 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 272 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 280 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 281 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`last_update`", "value": "last_update", "keyword": null, "type": 8, "flags": 2, "position": 284 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 297 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "timestamp", "value": "timestamp", "keyword": "TIMESTAMP", "type": 1, "flags": 41, "position": 298 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 307 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 308 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 316 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 317 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 324 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CURRENT_TIMESTAMP", "value": "CURRENT_TIMESTAMP", "keyword": "CURRENT_TIMESTAMP", "type": 1, "flags": 35, "position": 325 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 342 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON UPDATE", "value": "ON UPDATE", "keyword": "ON UPDATE", "type": 1, "flags": 7, "position": 343 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 352 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CURRENT_TIMESTAMP", "value": "CURRENT_TIMESTAMP", "keyword": "CURRENT_TIMESTAMP", "type": 1, "flags": 35, "position": 353 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 370 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 371 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PRIMARY KEY", "value": "PRIMARY KEY", "keyword": "PRIMARY KEY", "type": 1, "flags": 23, "position": 374 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 385 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 386 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`payment_id`", "value": "payment_id", "keyword": null, "type": 8, "flags": 2, "position": 387 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 399 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 400 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 401 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "KEY", "value": "KEY", "keyword": "KEY", "type": 1, "flags": 19, "position": 404 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 407 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`idx_fk_staff_id`", "value": "idx_fk_staff_id", "keyword": null, "type": 8, "flags": 2, "position": 408 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 425 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 426 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`staff_id`", "value": "staff_id", "keyword": null, "type": 8, "flags": 2, "position": 427 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 437 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 438 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 439 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "KEY", "value": "KEY", "keyword": "KEY", "type": 1, "flags": 19, "position": 442 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 445 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`idx_fk_customer_id`", "value": "idx_fk_customer_id", "keyword": null, "type": 8, "flags": 2, "position": 446 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 466 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 467 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`customer_id`", "value": "customer_id", "keyword": null, "type": 8, "flags": 2, "position": 468 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 481 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 482 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 483 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "KEY", "value": "KEY", "keyword": "KEY", "type": 1, "flags": 19, "position": 486 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 489 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`fk_payment_rental`", "value": "fk_payment_rental", "keyword": null, "type": 8, "flags": 2, "position": 490 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 509 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 510 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`rental_id`", "value": "rental_id", "keyword": null, "type": 8, "flags": 2, "position": 511 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 522 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 523 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 524 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CONSTRAINT", "value": "CONSTRAINT", "keyword": "CONSTRAINT", "type": 1, "flags": 3, "position": 527 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 537 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`fk_payment_customer`", "value": "fk_payment_customer", "keyword": null, "type": 8, "flags": 2, "position": 538 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 559 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FOREIGN KEY", "value": "FOREIGN KEY", "keyword": "FOREIGN KEY", "type": 1, "flags": 23, "position": 560 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 571 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 572 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`customer_id`", "value": "customer_id", "keyword": null, "type": 8, "flags": 2, "position": 573 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 586 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 587 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REFERENCES", "value": "REFERENCES", "keyword": "REFERENCES", "type": 1, "flags": 3, "position": 588 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 598 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`customer`", "value": "customer", "keyword": null, "type": 8, "flags": 2, "position": 599 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 609 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 610 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`customer_id`", "value": "customer_id", "keyword": null, "type": 8, "flags": 2, "position": 611 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 624 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 625 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON UPDATE", "value": "ON UPDATE", "keyword": "ON UPDATE", "type": 1, "flags": 7, "position": 626 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 635 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CASCADE", "value": "CASCADE", "keyword": "CASCADE", "type": 1, "flags": 3, "position": 636 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 643 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 644 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CONSTRAINT", "value": "CONSTRAINT", "keyword": "CONSTRAINT", "type": 1, "flags": 3, "position": 647 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 657 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`fk_payment_rental`", "value": "fk_payment_rental", "keyword": null, "type": 8, "flags": 2, "position": 658 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 677 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FOREIGN KEY", "value": "FOREIGN KEY", "keyword": "FOREIGN KEY", "type": 1, "flags": 23, "position": 678 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 689 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 690 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`rental_id`", "value": "rental_id", "keyword": null, "type": 8, "flags": 2, "position": 691 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 702 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 703 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REFERENCES", "value": "REFERENCES", "keyword": "REFERENCES", "type": 1, "flags": 3, "position": 704 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 714 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`rental`", "value": "rental", "keyword": null, "type": 8, "flags": 2, "position": 715 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 723 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 724 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`rental_id`", "value": "rental_id", "keyword": null, "type": 8, "flags": 2, "position": 725 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 736 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 737 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON DELETE", "value": "ON DELETE", "keyword": "ON DELETE", "type": 1, "flags": 7, "position": 738 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 747 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET NULL", "value": "SET NULL", "keyword": "SET NULL", "type": 1, "flags": 7, "position": 748 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 756 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON UPDATE", "value": "ON UPDATE", "keyword": "ON UPDATE", "type": 1, "flags": 7, "position": 757 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 766 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CASCADE", "value": "CASCADE", "keyword": "CASCADE", "type": 1, "flags": 3, "position": 767 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 774 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 775 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CONSTRAINT", "value": "CONSTRAINT", "keyword": "CONSTRAINT", "type": 1, "flags": 3, "position": 778 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 788 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`fk_payment_staff`", "value": "fk_payment_staff", "keyword": null, "type": 8, "flags": 2, "position": 789 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 807 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FOREIGN KEY", "value": "FOREIGN KEY", "keyword": "FOREIGN KEY", "type": 1, "flags": 23, "position": 808 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 819 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 820 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`staff_id`", "value": "staff_id", "keyword": null, "type": 8, "flags": 2, "position": 821 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 831 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 832 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REFERENCES", "value": "REFERENCES", "keyword": "REFERENCES", "type": 1, "flags": 3, "position": 833 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 843 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`staff`", "value": "staff", "keyword": null, "type": 8, "flags": 2, "position": 844 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 851 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 852 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`staff_id`", "value": "staff_id", "keyword": null, "type": 8, "flags": 2, "position": 853 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 863 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 864 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON UPDATE", "value": "ON UPDATE", "keyword": "ON UPDATE", "type": 1, "flags": 7, "position": 865 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 874 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CASCADE", "value": "CASCADE", "keyword": "CASCADE", "type": 1, "flags": 3, "position": 875 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 882 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 883 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 884 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENGINE", "value": "ENGINE", "keyword": "ENGINE", "type": 1, "flags": 1, "position": 885 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 891 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "InnoDB", "value": "InnoDB", "keyword": null, "type": 0, "flags": 0, "position": 892 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 898 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AUTO_INCREMENT", "value": "AUTO_INCREMENT", "keyword": "AUTO_INCREMENT", "type": 1, "flags": 1, "position": 899 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 913 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "16050", "value": 16050, "keyword": null, "type": 6, "flags": 0, "position": 914 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 919 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT CHARSET", "value": "DEFAULT CHARSET", "keyword": "DEFAULT CHARSET", "type": 1, "flags": 7, "position": 920 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 935 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8", "value": "utf8", "keyword": null, "type": 0, "flags": 0, "position": 936 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 212, "idx": 212 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "payment", "column": null, "expr": "`payment`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ENGINE", "equals": true, "expr": "InnoDB", "value": "InnoDB" }, "2": { "name": "AUTO_INCREMENT", "equals": true, "expr": "16050", "value": "16050" }, "4": { "name": "DEFAULT CHARSET", "equals": true, "expr": "utf8", "value": "utf8" } } }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "payment_id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "SMALLINT", "parameters": [ "5" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "3": "AUTO_INCREMENT" } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "customer_id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "SMALLINT", "parameters": [ "5" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL" } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "staff_id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "TINYINT", "parameters": [ "3" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL" } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "rental_id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [ "11" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "NULL", "alias": null, "function": null, "subquery": null }, "value": "NULL" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "amount", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "DECIMAL", "parameters": [ "5", "2" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL" } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "payment_date", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "DATETIME", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL" } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "last_update", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "TIMESTAMP", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "CURRENT_TIMESTAMP", "alias": null, "function": null, "subquery": null }, "value": "CURRENT_TIMESTAMP" }, "7": { "name": "ON UPDATE", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "CURRENT_TIMESTAMP", "alias": null, "function": null, "subquery": null }, "value": "CURRENT_TIMESTAMP" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": null, "isConstraint": null, "type": null, "key": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Key", "name": null, "columns": [ { "name": "payment_id" } ], "type": "PRIMARY KEY", "expr": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "references": null, "options": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": null, "isConstraint": null, "type": null, "key": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Key", "name": "idx_fk_staff_id", "columns": [ { "name": "staff_id" } ], "type": "KEY", "expr": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "references": null, "options": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": null, "isConstraint": null, "type": null, "key": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Key", "name": "idx_fk_customer_id", "columns": [ { "name": "customer_id" } ], "type": "KEY", "expr": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "references": null, "options": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": null, "isConstraint": null, "type": null, "key": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Key", "name": "fk_payment_rental", "columns": [ { "name": "rental_id" } ], "type": "KEY", "expr": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "references": null, "options": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "fk_payment_customer", "isConstraint": true, "type": null, "key": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Key", "name": null, "columns": [ { "name": "customer_id" } ], "type": "FOREIGN KEY", "expr": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "references": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Reference", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "customer", "column": null, "expr": "`customer`", "alias": null, "function": null, "subquery": null }, "columns": [ "customer_id" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": { "name": "ON UPDATE", "equals": false, "expr": "CASCADE", "value": "CASCADE" } } } }, "options": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "fk_payment_rental", "isConstraint": true, "type": null, "key": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Key", "name": null, "columns": [ { "name": "rental_id" } ], "type": "FOREIGN KEY", "expr": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "references": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Reference", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "rental", "column": null, "expr": "`rental`", "alias": null, "function": null, "subquery": null }, "columns": [ "rental_id" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "ON DELETE", "equals": false, "expr": "SET NULL", "value": "SET NULL" }, "3": { "name": "ON UPDATE", "equals": false, "expr": "CASCADE", "value": "CASCADE" } } } }, "options": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "fk_payment_staff", "isConstraint": true, "type": null, "key": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Key", "name": null, "columns": [ { "name": "staff_id" } ], "type": "FOREIGN KEY", "expr": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "references": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Reference", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "staff", "column": null, "expr": "`staff`", "alias": null, "function": null, "subquery": null }, "columns": [ "staff_id" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": { "name": "ON UPDATE", "equals": false, "expr": "CASCADE", "value": "CASCADE" } } } }, "options": null } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 211 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTable3.in000066400000000000000000000002131455302707200230070ustar00rootroot00000000000000CREATE TABLE table1 ( a INT NOT NULL, b VARCHAR(32), c INT AS (a mod 10) VIRTUAL, d VARCHAR(5) AS (left(b,5)) PERSISTENT );sql-parser-5.9.0/tests/data/parser/parseCreateTable3.out000066400000000000000000000653001455302707200232200ustar00rootroot00000000000000{ "query": "CREATE TABLE table1 (\n a INT NOT NULL,\n b VARCHAR(32),\n c INT AS (a mod 10) VIRTUAL,\n d VARCHAR(5) AS (left(b,5)) PERSISTENT\n);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE table1 (\n a INT NOT NULL,\n b VARCHAR(32),\n c INT AS (a mod 10) VIRTUAL,\n d VARCHAR(5) AS (left(b,5)) PERSISTENT\n);", "len": 139, "last": 139, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "32", "value": 32, "keyword": null, "type": 6, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mod", "value": "MOD", "keyword": "MOD", "type": 1, "flags": 35, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VIRTUAL", "value": "VIRTUAL", "keyword": "VIRTUAL", "type": 1, "flags": 3, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "d", "value": "d", "keyword": null, "type": 0, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "5", "value": 5, "keyword": null, "type": 6, "flags": 0, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "left", "value": "LEFT", "keyword": "LEFT", "type": 1, "flags": 35, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "5", "value": 5, "keyword": null, "type": 6, "flags": 0, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PERSISTENT", "value": "PERSISTENT", "keyword": "PERSISTENT", "type": 1, "flags": 1, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 137 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 63, "idx": 63 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "a", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL" } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "b", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "32" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "c", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "9": { "name": "AS", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(a mod 10)", "alias": null, "function": null, "subquery": null }, "value": "(a mod 10)" }, "10": "VIRTUAL" } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "d", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "5" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "9": { "name": "AS", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(left(b,5))", "alias": null, "function": "LEFT", "subquery": null }, "value": "(left(b,5))" }, "11": "PERSISTENT" } } } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 61 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTable4.in000066400000000000000000000006301455302707200230130ustar00rootroot00000000000000CREATE TABLE ts(id INT, purchased DATE) PARTITION BY /* comment */ RANGE(YEAR(purchased)) PARTITIONS 3 SUBPARTITION BY HASH(TO_DAYS(purchased)) SUBPARTITIONS 2( PARTITION p0 VALUES LESS THAN(1990)( SUBPARTITION s0, SUBPARTITION s1 ), PARTITION p1 VALUES LESS THAN(2000)( SUBPARTITION s2, SUBPARTITION s3 ), PARTITION p2 VALUES LESS THAN MAXVALUE( SUBPARTITION s4, SUBPARTITION s5 ) );sql-parser-5.9.0/tests/data/parser/parseCreateTable4.out000066400000000000000000001361621455302707200232260ustar00rootroot00000000000000{ "query": "CREATE TABLE ts(id INT, purchased DATE)\nPARTITION BY /* comment */ RANGE(YEAR(purchased))\nPARTITIONS 3\nSUBPARTITION BY HASH(TO_DAYS(purchased))\nSUBPARTITIONS 2(\nPARTITION p0\nVALUES LESS THAN(1990)(\n SUBPARTITION s0,\n SUBPARTITION s1\n),\nPARTITION p1\nVALUES LESS THAN(2000)(\n SUBPARTITION s2,\n SUBPARTITION s3\n),\nPARTITION p2\nVALUES LESS THAN MAXVALUE(\n SUBPARTITION s4,\n SUBPARTITION s5\n)\n);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE ts(id INT, purchased DATE)\nPARTITION BY /* comment */ RANGE(YEAR(purchased))\nPARTITIONS 3\nSUBPARTITION BY HASH(TO_DAYS(purchased))\nSUBPARTITIONS 2(\nPARTITION p0\nVALUES LESS THAN(1990)(\n SUBPARTITION s0,\n SUBPARTITION s1\n),\nPARTITION p1\nVALUES LESS THAN(2000)(\n SUBPARTITION s2,\n SUBPARTITION s3\n),\nPARTITION p2\nVALUES LESS THAN MAXVALUE(\n SUBPARTITION s4,\n SUBPARTITION s5\n)\n);", "len": 408, "last": 408, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ts", "value": "ts", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "purchased", "value": "purchased", "keyword": null, "type": 0, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DATE", "value": "DATE", "keyword": "DATE", "type": 1, "flags": 41, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION BY", "value": "PARTITION BY", "keyword": "PARTITION BY", "type": 1, "flags": 7, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* comment */", "value": "/* comment */", "keyword": null, "type": 4, "flags": 2, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RANGE", "value": "RANGE", "keyword": "RANGE", "type": 1, "flags": 3, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "YEAR", "value": "YEAR", "keyword": "YEAR", "type": 1, "flags": 41, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "purchased", "value": "purchased", "keyword": null, "type": 0, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITIONS", "value": "PARTITIONS", "keyword": "PARTITIONS", "type": 1, "flags": 1, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION BY", "value": "SUBPARTITION BY", "keyword": "SUBPARTITION BY", "type": 1, "flags": 7, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "HASH", "value": "HASH", "keyword": "HASH", "type": 1, "flags": 1, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO_DAYS", "value": "TO_DAYS", "keyword": "TO_DAYS", "type": 1, "flags": 33, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "purchased", "value": "purchased", "keyword": null, "type": 0, "flags": 0, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITIONS", "value": "SUBPARTITIONS", "keyword": "SUBPARTITIONS", "type": 1, "flags": 1, "position": 144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 159 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p0", "value": "p0", "keyword": null, "type": 0, "flags": 0, "position": 171 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 173 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 181 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 190 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1990", "value": 1990, "keyword": null, "type": 6, "flags": 0, "position": 191 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 195 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 196 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 197 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 202 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 214 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "s0", "value": "s0", "keyword": null, "type": 0, "flags": 0, "position": 215 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 217 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 218 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 223 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 235 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "s1", "value": "s1", "keyword": null, "type": 0, "flags": 0, "position": 236 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 238 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 239 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 240 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 241 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 242 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 251 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p1", "value": "p1", "keyword": null, "type": 0, "flags": 0, "position": 252 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 254 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 255 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 261 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 262 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 271 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2000", "value": 2000, "keyword": null, "type": 6, "flags": 0, "position": 272 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 276 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 277 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 278 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 283 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 295 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "s2", "value": "s2", "keyword": null, "type": 0, "flags": 0, "position": 296 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 298 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 299 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 304 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 316 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "s3", "value": "s3", "keyword": null, "type": 0, "flags": 0, "position": 317 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 319 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 320 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 321 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 322 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 323 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 332 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p2", "value": "p2", "keyword": null, "type": 0, "flags": 0, "position": 333 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 335 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 336 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 342 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 343 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 352 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MAXVALUE", "value": "MAXVALUE", "keyword": "MAXVALUE", "type": 1, "flags": 3, "position": 353 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 361 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 362 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 367 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 379 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "s4", "value": "s4", "keyword": null, "type": 0, "flags": 0, "position": 380 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 382 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 383 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 388 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 400 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "s5", "value": "s5", "keyword": null, "type": 0, "flags": 0, "position": 401 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 403 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 404 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 405 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 406 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 407 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 120, "idx": 120 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "ts", "column": null, "expr": "ts", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "purchased", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "DATE", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "with": null, "select": null, "like": null, "partitionBy": "RANGE(YEAR(purchased))", "partitionsNum": 3, "subpartitionBy": "HASH(TO_DAYS(purchased))", "subpartitionsNum": 2, "partitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p0", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(1990)", "alias": null, "function": null, "subquery": null }, "subpartitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "s0", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "s1", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p1", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(2000)", "alias": null, "function": null, "subquery": null }, "subpartitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "s2", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "s3", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p2", "type": "LESS THAN", "expr": "MAXVALUE", "subpartitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "s4", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "s5", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 117 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTable5.in000066400000000000000000000000701455302707200230120ustar00rootroot00000000000000CREATE TABLE new_table (`INT` VARCHAR(50) DEFAULT NULL);sql-parser-5.9.0/tests/data/parser/parseCreateTable5.out000066400000000000000000000237141455302707200232250ustar00rootroot00000000000000{ "query": "CREATE TABLE new_table (`INT` VARCHAR(50) DEFAULT NULL);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE new_table (`INT` VARCHAR(50) DEFAULT NULL);", "len": 56, "last": 56, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "new_table", "value": "new_table", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`INT`", "value": "INT", "keyword": null, "type": 8, "flags": 2, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "50", "value": 50, "keyword": null, "type": 6, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 20, "idx": 20 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "new_table", "column": null, "expr": "new_table", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "INT", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "50" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "NULL", "alias": null, "function": null, "subquery": null }, "value": "NULL" } } } } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 18 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTable6.in000066400000000000000000000000721455302707200230150ustar00rootroot00000000000000CREATE TABLE new_table (ACTION VARCHAR(50) DEFAULT NULL); sql-parser-5.9.0/tests/data/parser/parseCreateTable6.out000066400000000000000000000244131455302707200232230ustar00rootroot00000000000000{ "query": "CREATE TABLE new_table (ACTION VARCHAR(50) DEFAULT NULL);\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE new_table (ACTION VARCHAR(50) DEFAULT NULL);\n", "len": 58, "last": 58, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "new_table", "value": "new_table", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ACTION", "value": "ACTION", "keyword": "ACTION", "type": 1, "flags": 1, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "50", "value": 50, "keyword": null, "type": 6, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 21, "idx": 21 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "new_table", "column": null, "expr": "new_table", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "ACTION", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "50" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "NULL", "alias": null, "function": null, "subquery": null }, "value": "NULL" } } } } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 18 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTable7.in000066400000000000000000000010061455302707200230140ustar00rootroot00000000000000CREATE TABLE `ts` ( `id` int(11) DEFAULT NULL, `purchased` date DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 PARTITION BY RANGE (YEAR(purchased)) SUBPARTITION BY HASH (TO_DAYS(purchased)) ( PARTITION p0 VALUES LESS THAN (1990) ( SUBPARTITION s0 ENGINE=InnoDB, SUBPARTITION s1 ENGINE=InnoDB ), PARTITION p1 VALUES LESS THAN (2000) ( SUBPARTITION s2 ENGINE=InnoDB, SUBPARTITION s3 ENGINE=InnoDB ), PARTITION p2 VALUES LESS THAN MAXVALUE ( SUBPARTITION s4 ENGINE=InnoDB, SUBPARTITION s5 ENGINE=InnoDB ) ); sql-parser-5.9.0/tests/data/parser/parseCreateTable7.out000066400000000000000000002022501455302707200232210ustar00rootroot00000000000000{ "query": "CREATE TABLE `ts` (\n `id` int(11) DEFAULT NULL,\n `purchased` date DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4\nPARTITION BY RANGE (YEAR(purchased))\nSUBPARTITION BY HASH (TO_DAYS(purchased))\n(\nPARTITION p0 VALUES LESS THAN (1990) (\nSUBPARTITION s0 ENGINE=InnoDB,\nSUBPARTITION s1 ENGINE=InnoDB\n),\nPARTITION p1 VALUES LESS THAN (2000) (\nSUBPARTITION s2 ENGINE=InnoDB,\nSUBPARTITION s3 ENGINE=InnoDB\n),\nPARTITION p2 VALUES LESS THAN MAXVALUE (\nSUBPARTITION s4 ENGINE=InnoDB,\nSUBPARTITION s5 ENGINE=InnoDB\n)\n);\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE `ts` (\n `id` int(11) DEFAULT NULL,\n `purchased` date DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4\nPARTITION BY RANGE (YEAR(purchased))\nSUBPARTITION BY HASH (TO_DAYS(purchased))\n(\nPARTITION p0 VALUES LESS THAN (1990) (\nSUBPARTITION s0 ENGINE=InnoDB,\nSUBPARTITION s1 ENGINE=InnoDB\n),\nPARTITION p1 VALUES LESS THAN (2000) (\nSUBPARTITION s2 ENGINE=InnoDB,\nSUBPARTITION s3 ENGINE=InnoDB\n),\nPARTITION p2 VALUES LESS THAN MAXVALUE (\nSUBPARTITION s4 ENGINE=InnoDB,\nSUBPARTITION s5 ENGINE=InnoDB\n)\n);\n", "len": 518, "last": 518, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`ts`", "value": "ts", "keyword": null, "type": 8, "flags": 2, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`id`", "value": "id", "keyword": null, "type": 8, "flags": 2, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "int", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`purchased`", "value": "purchased", "keyword": null, "type": 8, "flags": 2, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "date", "value": "date", "keyword": "DATE", "type": 1, "flags": 41, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENGINE", "value": "ENGINE", "keyword": "ENGINE", "type": 1, "flags": 1, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "InnoDB", "value": "InnoDB", "keyword": null, "type": 0, "flags": 0, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT CHARSET", "value": "DEFAULT CHARSET", "keyword": "DEFAULT CHARSET", "type": 1, "flags": 7, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8mb4", "value": "utf8mb4", "keyword": null, "type": 0, "flags": 0, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION BY", "value": "PARTITION BY", "keyword": "PARTITION BY", "type": 1, "flags": 7, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RANGE", "value": "RANGE", "keyword": "RANGE", "type": 1, "flags": 3, "position": 134 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "YEAR", "value": "YEAR", "keyword": "YEAR", "type": 1, "flags": 41, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "purchased", "value": "purchased", "keyword": null, "type": 0, "flags": 0, "position": 146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION BY", "value": "SUBPARTITION BY", "keyword": "SUBPARTITION BY", "type": 1, "flags": 7, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 173 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "HASH", "value": "HASH", "keyword": "HASH", "type": 1, "flags": 1, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 179 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO_DAYS", "value": "TO_DAYS", "keyword": "TO_DAYS", "type": 1, "flags": 33, "position": 180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 187 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "purchased", "value": "purchased", "keyword": null, "type": 0, "flags": 0, "position": 188 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 197 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 198 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 199 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 200 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 201 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 202 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 211 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p0", "value": "p0", "keyword": null, "type": 0, "flags": 0, "position": 212 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 214 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 215 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 221 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 222 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 231 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 232 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1990", "value": 1990, "keyword": null, "type": 6, "flags": 0, "position": 233 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 237 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 238 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 240 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 241 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 242 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 254 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "s0", "value": "s0", "keyword": null, "type": 0, "flags": 0, "position": 255 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 257 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENGINE", "value": "ENGINE", "keyword": "ENGINE", "type": 1, "flags": 1, "position": 258 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 264 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "InnoDB", "value": "InnoDB", "keyword": null, "type": 0, "flags": 0, "position": 265 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 271 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 272 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 273 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 285 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "s1", "value": "s1", "keyword": null, "type": 0, "flags": 0, "position": 286 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 288 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENGINE", "value": "ENGINE", "keyword": "ENGINE", "type": 1, "flags": 1, "position": 289 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 295 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "InnoDB", "value": "InnoDB", "keyword": null, "type": 0, "flags": 0, "position": 296 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 302 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 303 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 304 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 305 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 306 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 315 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p1", "value": "p1", "keyword": null, "type": 0, "flags": 0, "position": 316 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 318 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 319 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 325 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 326 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 335 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 336 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2000", "value": 2000, "keyword": null, "type": 6, "flags": 0, "position": 337 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 341 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 342 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 344 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 345 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 346 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 358 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "s2", "value": "s2", "keyword": null, "type": 0, "flags": 0, "position": 359 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 361 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENGINE", "value": "ENGINE", "keyword": "ENGINE", "type": 1, "flags": 1, "position": 362 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 368 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "InnoDB", "value": "InnoDB", "keyword": null, "type": 0, "flags": 0, "position": 369 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 375 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 376 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 377 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 389 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "s3", "value": "s3", "keyword": null, "type": 0, "flags": 0, "position": 390 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 392 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENGINE", "value": "ENGINE", "keyword": "ENGINE", "type": 1, "flags": 1, "position": 393 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 399 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "InnoDB", "value": "InnoDB", "keyword": null, "type": 0, "flags": 0, "position": 400 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 406 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 407 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 408 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 409 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 410 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 419 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p2", "value": "p2", "keyword": null, "type": 0, "flags": 0, "position": 420 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 422 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 423 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 429 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LESS THAN", "value": "LESS THAN", "keyword": "LESS THAN", "type": 1, "flags": 7, "position": 430 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 439 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MAXVALUE", "value": "MAXVALUE", "keyword": "MAXVALUE", "type": 1, "flags": 3, "position": 440 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 448 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 450 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 451 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 452 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 464 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "s4", "value": "s4", "keyword": null, "type": 0, "flags": 0, "position": 465 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 467 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENGINE", "value": "ENGINE", "keyword": "ENGINE", "type": 1, "flags": 1, "position": 468 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 474 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "InnoDB", "value": "InnoDB", "keyword": null, "type": 0, "flags": 0, "position": 475 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 481 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 482 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION", "value": "SUBPARTITION", "keyword": "SUBPARTITION", "type": 1, "flags": 1, "position": 483 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 495 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "s5", "value": "s5", "keyword": null, "type": 0, "flags": 0, "position": 496 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 498 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENGINE", "value": "ENGINE", "keyword": "ENGINE", "type": 1, "flags": 1, "position": 499 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 505 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "InnoDB", "value": "InnoDB", "keyword": null, "type": 0, "flags": 0, "position": 506 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 512 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 513 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 514 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 515 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 516 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 517 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 165, "idx": 165 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "ts", "column": null, "expr": "`ts`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ENGINE", "equals": true, "expr": "InnoDB", "value": "InnoDB" }, "4": { "name": "DEFAULT CHARSET", "equals": true, "expr": "utf8mb4", "value": "utf8mb4" } } }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [ "11" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "NULL", "alias": null, "function": null, "subquery": null }, "value": "NULL" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "purchased", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "DATE", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "NULL", "alias": null, "function": null, "subquery": null }, "value": "NULL" } } } } ], "with": null, "select": null, "like": null, "partitionBy": "RANGE (YEAR(purchased))", "partitionsNum": null, "subpartitionBy": "HASH (TO_DAYS(purchased))", "subpartitionsNum": null, "partitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p0", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(1990)", "alias": null, "function": null, "subquery": null }, "subpartitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "s0", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ENGINE", "equals": true, "expr": "InnoDB", "value": "InnoDB" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "s1", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ENGINE", "equals": true, "expr": "InnoDB", "value": "InnoDB" } } } } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p1", "type": "LESS THAN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(2000)", "alias": null, "function": null, "subquery": null }, "subpartitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "s2", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ENGINE", "equals": true, "expr": "InnoDB", "value": "InnoDB" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "s3", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ENGINE", "equals": true, "expr": "InnoDB", "value": "InnoDB" } } } } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p2", "type": "LESS THAN", "expr": "MAXVALUE", "subpartitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "s4", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ENGINE", "equals": true, "expr": "InnoDB", "value": "InnoDB" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": true, "name": "s5", "type": null, "expr": null, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ENGINE", "equals": true, "expr": "InnoDB", "value": "InnoDB" } } } } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 161 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTable8.in000066400000000000000000000002211455302707200230130ustar00rootroot00000000000000CREATE TABLE `test1` ( `amultipoint` multipoint DEFAULT NULL, `amultipolygon` multipolygon DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4sql-parser-5.9.0/tests/data/parser/parseCreateTable8.out000066400000000000000000000416621455302707200232320ustar00rootroot00000000000000{ "query": "CREATE TABLE `test1` (\n `amultipoint` multipoint DEFAULT NULL,\n `amultipolygon` multipolygon DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE `test1` (\n `amultipoint` multipoint DEFAULT NULL,\n `amultipolygon` multipolygon DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", "len": 145, "last": 145, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`test1`", "value": "test1", "keyword": null, "type": 8, "flags": 2, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`amultipoint`", "value": "amultipoint", "keyword": null, "type": 8, "flags": 2, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "multipoint", "value": "multipoint", "keyword": "MULTIPOINT", "type": 1, "flags": 41, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`amultipolygon`", "value": "amultipolygon", "keyword": null, "type": 8, "flags": 2, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "multipolygon", "value": "multipolygon", "keyword": "MULTIPOLYGON", "type": 1, "flags": 41, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENGINE", "value": "ENGINE", "keyword": "ENGINE", "type": 1, "flags": 1, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "InnoDB", "value": "InnoDB", "keyword": null, "type": 0, "flags": 0, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT CHARSET", "value": "DEFAULT CHARSET", "keyword": "DEFAULT CHARSET", "type": 1, "flags": 7, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 137 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8mb4", "value": "utf8mb4", "keyword": null, "type": 0, "flags": 0, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 35, "idx": 35 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test1", "column": null, "expr": "`test1`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ENGINE", "equals": true, "expr": "InnoDB", "value": "InnoDB" }, "4": { "name": "DEFAULT CHARSET", "equals": true, "expr": "utf8mb4", "value": "utf8mb4" } } }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "amultipoint", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "MULTIPOINT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "NULL", "alias": null, "function": null, "subquery": null }, "value": "NULL" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "amultipolygon", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "MULTIPOLYGON", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "NULL", "alias": null, "function": null, "subquery": null }, "value": "NULL" } } } } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 34 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTable9.in000066400000000000000000000036451455302707200230310ustar00rootroot00000000000000CREATE TABLE `trips` ( `id` bigint(20) UNSIGNED NOT NULL COMMENT 'Unique trip Id', `trip_code` int(11) UNSIGNED NOT NULL COMMENT 'Trip code', `trip_category` int(11) UNSIGNED NOT NULL COMMENT 'Trip category', `trip_date` date NOT NULL COMMENT 'The trip date' ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'The trips' PARTITION BY LIST(trip_category) SUBPARTITION BY HASH(DAY(trip_date)) SUBPARTITIONS 31 ( PARTITION p1 VALUES IN(1), PARTITION p2 VALUES IN(2), PARTITION p3 VALUES IN(3), PARTITION p4 VALUES IN(4), PARTITION p5 VALUES IN(5), PARTITION p6 VALUES IN(6), PARTITION p7 VALUES IN(7), PARTITION p8 VALUES IN(8), PARTITION p9 VALUES IN(9), PARTITION p10 VALUES IN(10), PARTITION p11 VALUES IN(11), PARTITION p12 VALUES IN(12), PARTITION p13 VALUES IN(13), PARTITION p14 VALUES IN(14), PARTITION p15 VALUES IN(15), PARTITION p16 VALUES IN(16), PARTITION p17 VALUES IN(17), PARTITION p18 VALUES IN(18), PARTITION p19 VALUES IN(19), PARTITION p20 VALUES IN(20), PARTITION p21 VALUES IN(21), PARTITION p22 VALUES IN(22), PARTITION p23 VALUES IN(23), PARTITION p24 VALUES IN(24), PARTITION p25 VALUES IN(25), PARTITION p26 VALUES IN(26), PARTITION p27 VALUES IN(27), PARTITION p28 VALUES IN(28), PARTITION p29 VALUES IN(29), PARTITION p30 VALUES IN(30), PARTITION p31 VALUES IN(31) );sql-parser-5.9.0/tests/data/parser/parseCreateTable9.out000066400000000000000000005721651455302707200232420ustar00rootroot00000000000000{ "query": "CREATE TABLE `trips` (\n `id` bigint(20) UNSIGNED NOT NULL COMMENT 'Unique trip Id',\n `trip_code` int(11) UNSIGNED NOT NULL COMMENT 'Trip code',\n `trip_category` int(11) UNSIGNED NOT NULL COMMENT 'Trip category',\n `trip_date` date NOT NULL COMMENT 'The trip date'\n) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'The trips' PARTITION BY LIST(trip_category) SUBPARTITION BY HASH(DAY(trip_date)) SUBPARTITIONS 31 (\n PARTITION p1\n VALUES\n IN(1),\n PARTITION p2\n VALUES\n IN(2),\n PARTITION p3\n VALUES\n IN(3),\n PARTITION p4\n VALUES\n IN(4),\n PARTITION p5\n VALUES\n IN(5),\n PARTITION p6\n VALUES\n IN(6),\n PARTITION p7\n VALUES\n IN(7),\n PARTITION p8\n VALUES\n IN(8),\n PARTITION p9\n VALUES\n IN(9),\n PARTITION p10\n VALUES\n IN(10),\n PARTITION p11\n VALUES\n IN(11),\n PARTITION p12\n VALUES\n IN(12),\n PARTITION p13\n VALUES\n IN(13),\n PARTITION p14\n VALUES\n IN(14),\n PARTITION p15\n VALUES\n IN(15),\n PARTITION p16\n VALUES\n IN(16),\n PARTITION p17\n VALUES\n IN(17),\n PARTITION p18\n VALUES\n IN(18),\n PARTITION p19\n VALUES\n IN(19),\n PARTITION p20\n VALUES\n IN(20),\n PARTITION p21\n VALUES\n IN(21),\n PARTITION p22\n VALUES\n IN(22),\n PARTITION p23\n VALUES\n IN(23),\n PARTITION p24\n VALUES\n IN(24),\n PARTITION p25\n VALUES\n IN(25),\n PARTITION p26\n VALUES\n IN(26),\n PARTITION p27\n VALUES\n IN(27),\n PARTITION p28\n VALUES\n IN(28),\n PARTITION p29\n VALUES\n IN(29),\n PARTITION p30\n VALUES\n IN(30),\n PARTITION p31\n VALUES\n IN(31)\n);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE `trips` (\n `id` bigint(20) UNSIGNED NOT NULL COMMENT 'Unique trip Id',\n `trip_code` int(11) UNSIGNED NOT NULL COMMENT 'Trip code',\n `trip_category` int(11) UNSIGNED NOT NULL COMMENT 'Trip category',\n `trip_date` date NOT NULL COMMENT 'The trip date'\n) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'The trips' PARTITION BY LIST(trip_category) SUBPARTITION BY HASH(DAY(trip_date)) SUBPARTITIONS 31 (\n PARTITION p1\n VALUES\n IN(1),\n PARTITION p2\n VALUES\n IN(2),\n PARTITION p3\n VALUES\n IN(3),\n PARTITION p4\n VALUES\n IN(4),\n PARTITION p5\n VALUES\n IN(5),\n PARTITION p6\n VALUES\n IN(6),\n PARTITION p7\n VALUES\n IN(7),\n PARTITION p8\n VALUES\n IN(8),\n PARTITION p9\n VALUES\n IN(9),\n PARTITION p10\n VALUES\n IN(10),\n PARTITION p11\n VALUES\n IN(11),\n PARTITION p12\n VALUES\n IN(12),\n PARTITION p13\n VALUES\n IN(13),\n PARTITION p14\n VALUES\n IN(14),\n PARTITION p15\n VALUES\n IN(15),\n PARTITION p16\n VALUES\n IN(16),\n PARTITION p17\n VALUES\n IN(17),\n PARTITION p18\n VALUES\n IN(18),\n PARTITION p19\n VALUES\n IN(19),\n PARTITION p20\n VALUES\n IN(20),\n PARTITION p21\n VALUES\n IN(21),\n PARTITION p22\n VALUES\n IN(22),\n PARTITION p23\n VALUES\n IN(23),\n PARTITION p24\n VALUES\n IN(24),\n PARTITION p25\n VALUES\n IN(25),\n PARTITION p26\n VALUES\n IN(26),\n PARTITION p27\n VALUES\n IN(27),\n PARTITION p28\n VALUES\n IN(28),\n PARTITION p29\n VALUES\n IN(29),\n PARTITION p30\n VALUES\n IN(30),\n PARTITION p31\n VALUES\n IN(31)\n);", "len": 1957, "last": 1957, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`trips`", "value": "trips", "keyword": null, "type": 8, "flags": 2, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`id`", "value": "id", "keyword": null, "type": 8, "flags": 2, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bigint", "value": "BIGINT", "keyword": "BIGINT", "type": 1, "flags": 11, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "20", "value": 20, "keyword": null, "type": 6, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Unique trip Id'", "value": "Unique trip Id", "keyword": null, "type": 7, "flags": 1, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`trip_code`", "value": "trip_code", "keyword": null, "type": 8, "flags": 2, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "int", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Trip code'", "value": "Trip code", "keyword": null, "type": 7, "flags": 1, "position": 137 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`trip_category`", "value": "trip_category", "keyword": null, "type": 8, "flags": 2, "position": 154 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 169 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "int", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 173 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 186 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 187 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 195 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 196 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 203 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Trip category'", "value": "Trip category", "keyword": null, "type": 7, "flags": 1, "position": 204 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 219 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 220 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`trip_date`", "value": "trip_date", "keyword": null, "type": 8, "flags": 2, "position": 225 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 236 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "date", "value": "date", "keyword": "DATE", "type": 1, "flags": 41, "position": 237 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 241 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 242 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 250 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 251 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 258 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'The trip date'", "value": "The trip date", "keyword": null, "type": 7, "flags": 1, "position": 259 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 274 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 275 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 276 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENGINE", "value": "ENGINE", "keyword": "ENGINE", "type": 1, "flags": 1, "position": 277 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 283 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 284 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 285 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "InnoDB", "value": "InnoDB", "keyword": null, "type": 0, "flags": 0, "position": 286 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 292 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT CHARSET", "value": "DEFAULT CHARSET", "keyword": "DEFAULT CHARSET", "type": 1, "flags": 7, "position": 293 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 308 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 309 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 310 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8mb4", "value": "utf8mb4", "keyword": null, "type": 0, "flags": 0, "position": 311 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 318 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLLATE", "value": "COLLATE", "keyword": "COLLATE", "type": 1, "flags": 3, "position": 319 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 326 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 327 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 328 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8mb4_unicode_ci", "value": "utf8mb4_unicode_ci", "keyword": null, "type": 0, "flags": 0, "position": 329 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 347 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 348 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 355 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 356 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 357 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'The trips'", "value": "The trips", "keyword": null, "type": 7, "flags": 1, "position": 358 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 369 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION BY", "value": "PARTITION BY", "keyword": "PARTITION BY", "type": 1, "flags": 7, "position": 370 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 382 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIST", "value": "LIST", "keyword": "LIST", "type": 1, "flags": 1, "position": 383 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 387 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "trip_category", "value": "trip_category", "keyword": null, "type": 0, "flags": 0, "position": 388 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 401 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 402 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITION BY", "value": "SUBPARTITION BY", "keyword": "SUBPARTITION BY", "type": 1, "flags": 7, "position": 403 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 418 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "HASH", "value": "HASH", "keyword": "HASH", "type": 1, "flags": 1, "position": 419 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 423 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DAY", "value": "DAY", "keyword": "DAY", "type": 1, "flags": 33, "position": 424 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 427 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "trip_date", "value": "trip_date", "keyword": null, "type": 0, "flags": 0, "position": 428 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 437 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 438 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 439 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUBPARTITIONS", "value": "SUBPARTITIONS", "keyword": "SUBPARTITIONS", "type": 1, "flags": 1, "position": 440 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 453 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "31", "value": 31, "keyword": null, "type": 6, "flags": 0, "position": 454 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 456 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 457 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 458 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 463 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 472 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p1", "value": "p1", "keyword": null, "type": 0, "flags": 0, "position": 473 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 475 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 480 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 486 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 495 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 497 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 498 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 499 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 500 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 501 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 510 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 519 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p2", "value": "p2", "keyword": null, "type": 0, "flags": 0, "position": 520 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 522 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 527 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 533 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 542 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 544 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 545 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 546 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 547 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 548 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 557 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 566 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p3", "value": "p3", "keyword": null, "type": 0, "flags": 0, "position": 567 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 569 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 574 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 580 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 589 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 591 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 592 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 593 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 594 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 595 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 604 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 613 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p4", "value": "p4", "keyword": null, "type": 0, "flags": 0, "position": 614 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 616 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 621 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 627 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 636 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 638 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "4", "value": 4, "keyword": null, "type": 6, "flags": 0, "position": 639 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 640 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 641 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 642 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 651 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 660 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p5", "value": "p5", "keyword": null, "type": 0, "flags": 0, "position": 661 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 663 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 668 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 674 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 683 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 685 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "5", "value": 5, "keyword": null, "type": 6, "flags": 0, "position": 686 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 687 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 688 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 689 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 698 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 707 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p6", "value": "p6", "keyword": null, "type": 0, "flags": 0, "position": 708 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 710 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 715 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 721 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 730 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 732 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "6", "value": 6, "keyword": null, "type": 6, "flags": 0, "position": 733 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 734 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 735 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 736 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 745 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 754 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p7", "value": "p7", "keyword": null, "type": 0, "flags": 0, "position": 755 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 757 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 762 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 768 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 777 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 779 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "7", "value": 7, "keyword": null, "type": 6, "flags": 0, "position": 780 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 781 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 782 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 783 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 792 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 801 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p8", "value": "p8", "keyword": null, "type": 0, "flags": 0, "position": 802 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 804 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 809 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 815 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 824 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 826 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "8", "value": 8, "keyword": null, "type": 6, "flags": 0, "position": 827 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 828 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 829 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 830 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 839 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 848 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p9", "value": "p9", "keyword": null, "type": 0, "flags": 0, "position": 849 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 851 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 856 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 862 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 871 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 873 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "9", "value": 9, "keyword": null, "type": 6, "flags": 0, "position": 874 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 875 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 876 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 877 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 886 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 895 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p10", "value": "p10", "keyword": null, "type": 0, "flags": 0, "position": 896 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 899 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 904 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 910 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 919 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 921 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 922 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 924 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 925 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 926 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 935 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 944 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p11", "value": "p11", "keyword": null, "type": 0, "flags": 0, "position": 945 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 948 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 953 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 959 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 968 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 970 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 971 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 973 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 974 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 975 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 984 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 993 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p12", "value": "p12", "keyword": null, "type": 0, "flags": 0, "position": 994 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 997 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 1002 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1008 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 1017 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1019 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "12", "value": 12, "keyword": null, "type": 6, "flags": 0, "position": 1020 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1022 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1023 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1024 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 1033 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1042 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p13", "value": "p13", "keyword": null, "type": 0, "flags": 0, "position": 1043 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1046 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 1051 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1057 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 1066 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1068 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "13", "value": 13, "keyword": null, "type": 6, "flags": 0, "position": 1069 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1071 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1072 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1073 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 1082 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1091 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p14", "value": "p14", "keyword": null, "type": 0, "flags": 0, "position": 1092 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1095 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 1100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 1115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "14", "value": 14, "keyword": null, "type": 6, "flags": 0, "position": 1118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 1131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p15", "value": "p15", "keyword": null, "type": 0, "flags": 0, "position": 1141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 1149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 1164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1166 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "15", "value": 15, "keyword": null, "type": 6, "flags": 0, "position": 1167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1169 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1171 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 1180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1189 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p16", "value": "p16", "keyword": null, "type": 0, "flags": 0, "position": 1190 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1193 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 1198 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1204 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 1213 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1215 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "16", "value": 16, "keyword": null, "type": 6, "flags": 0, "position": 1216 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1218 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1219 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1220 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 1229 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1238 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p17", "value": "p17", "keyword": null, "type": 0, "flags": 0, "position": 1239 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1242 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 1247 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1253 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 1262 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1264 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "17", "value": 17, "keyword": null, "type": 6, "flags": 0, "position": 1265 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1267 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1268 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1269 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 1278 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1287 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p18", "value": "p18", "keyword": null, "type": 0, "flags": 0, "position": 1288 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1291 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 1296 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1302 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 1311 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1313 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "18", "value": 18, "keyword": null, "type": 6, "flags": 0, "position": 1314 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1316 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1317 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1318 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 1327 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1336 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p19", "value": "p19", "keyword": null, "type": 0, "flags": 0, "position": 1337 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1340 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 1345 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1351 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 1360 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1362 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "19", "value": 19, "keyword": null, "type": 6, "flags": 0, "position": 1363 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1365 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1366 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1367 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 1376 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1385 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p20", "value": "p20", "keyword": null, "type": 0, "flags": 0, "position": 1386 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1389 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 1394 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1400 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 1409 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1411 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "20", "value": 20, "keyword": null, "type": 6, "flags": 0, "position": 1412 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1414 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1415 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1416 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 1425 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1434 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p21", "value": "p21", "keyword": null, "type": 0, "flags": 0, "position": 1435 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1438 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 1443 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1449 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 1458 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1460 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "21", "value": 21, "keyword": null, "type": 6, "flags": 0, "position": 1461 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1463 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1464 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1465 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 1474 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1483 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p22", "value": "p22", "keyword": null, "type": 0, "flags": 0, "position": 1484 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1487 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 1492 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1498 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 1507 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1509 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "22", "value": 22, "keyword": null, "type": 6, "flags": 0, "position": 1510 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1512 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1513 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1514 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 1523 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1532 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p23", "value": "p23", "keyword": null, "type": 0, "flags": 0, "position": 1533 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1536 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 1541 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1547 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 1556 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1558 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "23", "value": 23, "keyword": null, "type": 6, "flags": 0, "position": 1559 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1561 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1562 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1563 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 1572 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1581 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p24", "value": "p24", "keyword": null, "type": 0, "flags": 0, "position": 1582 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1585 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 1590 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1596 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 1605 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1607 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "24", "value": 24, "keyword": null, "type": 6, "flags": 0, "position": 1608 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1610 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1611 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1612 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 1621 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1630 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p25", "value": "p25", "keyword": null, "type": 0, "flags": 0, "position": 1631 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1634 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 1639 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1645 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 1654 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1656 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "25", "value": 25, "keyword": null, "type": 6, "flags": 0, "position": 1657 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1659 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1660 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1661 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 1670 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1679 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p26", "value": "p26", "keyword": null, "type": 0, "flags": 0, "position": 1680 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1683 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 1688 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1694 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 1703 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1705 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "26", "value": 26, "keyword": null, "type": 6, "flags": 0, "position": 1706 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1708 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1709 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1710 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 1719 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1728 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p27", "value": "p27", "keyword": null, "type": 0, "flags": 0, "position": 1729 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1732 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 1737 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1743 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 1752 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1754 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "27", "value": 27, "keyword": null, "type": 6, "flags": 0, "position": 1755 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1757 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1758 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1759 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 1768 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1777 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p28", "value": "p28", "keyword": null, "type": 0, "flags": 0, "position": 1778 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1781 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 1786 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1792 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 1801 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1803 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "28", "value": 28, "keyword": null, "type": 6, "flags": 0, "position": 1804 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1806 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1807 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1808 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 1817 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1826 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p29", "value": "p29", "keyword": null, "type": 0, "flags": 0, "position": 1827 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1830 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 1835 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1841 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 1850 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1852 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "29", "value": 29, "keyword": null, "type": 6, "flags": 0, "position": 1853 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1855 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1856 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1857 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 1866 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1875 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p30", "value": "p30", "keyword": null, "type": 0, "flags": 0, "position": 1876 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1879 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 1884 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1890 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 1899 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1901 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "30", "value": 30, "keyword": null, "type": 6, "flags": 0, "position": 1902 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1904 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1905 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1906 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 1915 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1924 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p31", "value": "p31", "keyword": null, "type": 0, "flags": 0, "position": 1925 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1928 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 1933 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1939 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 1948 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1950 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "31", "value": 31, "keyword": null, "type": 6, "flags": 0, "position": 1951 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1953 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1954 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1955 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 1956 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 489, "idx": 489 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "trips", "column": null, "expr": "`trips`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ENGINE", "equals": true, "expr": "InnoDB", "value": "InnoDB" }, "4": { "name": "DEFAULT CHARSET", "equals": true, "expr": "utf8mb4", "value": "utf8mb4" }, "6": { "name": "COLLATE", "equals": true, "expr": "utf8mb4_unicode_ci", "value": "utf8mb4_unicode_ci" }, "7": { "name": "COMMENT", "equals": true, "expr": "'The trips'", "value": "The trips" } } }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "BIGINT", "parameters": [ "20" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "5": { "name": "COMMENT", "equals": false, "expr": "'Unique trip Id'", "value": "Unique trip Id" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "trip_code", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [ "11" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "5": { "name": "COMMENT", "equals": false, "expr": "'Trip code'", "value": "Trip code" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "trip_category", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [ "11" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "5": { "name": "COMMENT", "equals": false, "expr": "'Trip category'", "value": "Trip category" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "trip_date", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "DATE", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "5": { "name": "COMMENT", "equals": false, "expr": "'The trip date'", "value": "The trip date" } } } } ], "with": null, "select": null, "like": null, "partitionBy": "LIST(trip_category)", "partitionsNum": null, "subpartitionBy": "HASH(DAY(trip_date))", "subpartitionsNum": 31, "partitions": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p1", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(1)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p2", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(2)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p3", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(3)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p4", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(4)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p5", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(5)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p6", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(6)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p7", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(7)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p8", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(8)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p9", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(9)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p10", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(10)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p11", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(11)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p12", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(12)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p13", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(13)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p14", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(14)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p15", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(15)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p16", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(16)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p17", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(17)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p18", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(18)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p19", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(19)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p20", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(20)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p21", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(21)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p22", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(22)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p23", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(23)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p24", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(24)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p25", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(25)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p26", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(26)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p27", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(27)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p28", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(28)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p29", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(29)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p30", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(30)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\PartitionDefinition", "isSubpartition": false, "name": "p31", "type": "IN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(31)", "alias": null, "function": null, "subquery": null }, "subpartitions": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 486 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTableAsSelect.in000066400000000000000000000000571455302707200243560ustar00rootroot00000000000000CREATE TABLE new_tbl AS SELECT * FROM orig_tbl sql-parser-5.9.0/tests/data/parser/parseCreateTableAsSelect.out000066400000000000000000000216011455302707200245550ustar00rootroot00000000000000{ "query": "CREATE TABLE new_tbl AS SELECT * FROM orig_tbl\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE new_tbl AS SELECT * FROM orig_tbl\n", "len": 47, "last": 47, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "new_tbl", "value": "new_tbl", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "orig_tbl", "value": "orig_tbl", "keyword": null, "type": 0, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 17, "idx": 17 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "new_tbl", "column": null, "expr": "new_tbl", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": null, "select": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "orig_tbl", "column": null, "expr": "orig_tbl", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 8, "last": 15 }, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 15 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTableEnforcedCheck.in000066400000000000000000000002041455302707200253300ustar00rootroot00000000000000CREATE TABLE IF NOT EXISTS employees_check (FirstName varchar(30) CHECK (FirstName REGEXP '^T' AND FirstName REGEXP 'r$') ENFORCED);sql-parser-5.9.0/tests/data/parser/parseCreateTableEnforcedCheck.out000066400000000000000000000373471455302707200255530ustar00rootroot00000000000000{ "query": "CREATE TABLE IF NOT EXISTS employees_check (FirstName varchar(30) CHECK (FirstName REGEXP '^T' AND FirstName REGEXP 'r$') ENFORCED);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE IF NOT EXISTS employees_check (FirstName varchar(30) CHECK (FirstName REGEXP '^T' AND FirstName REGEXP 'r$') ENFORCED);", "len": 132, "last": 132, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF NOT EXISTS", "value": "IF NOT EXISTS", "keyword": "IF NOT EXISTS", "type": 1, "flags": 7, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "employees_check", "value": "employees_check", "keyword": null, "type": 0, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FirstName", "value": "FirstName", "keyword": null, "type": 0, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "varchar", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "30", "value": 30, "keyword": null, "type": 6, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHECK", "value": "CHECK", "keyword": "CHECK", "type": 1, "flags": 3, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FirstName", "value": "FirstName", "keyword": null, "type": 0, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REGEXP", "value": "REGEXP", "keyword": "REGEXP", "type": 1, "flags": 3, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'^T'", "value": "^T", "keyword": null, "type": 7, "flags": 1, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FirstName", "value": "FirstName", "keyword": null, "type": 0, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REGEXP", "value": "REGEXP", "keyword": "REGEXP", "type": 1, "flags": 3, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'r$'", "value": "r$", "keyword": null, "type": 7, "flags": 1, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENFORCED", "value": "ENFORCED", "keyword": null, "type": 0, "flags": 0, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 38, "idx": 38 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "employees_check", "column": null, "expr": "employees_check", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "FirstName", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "30" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "12": { "name": "CHECK", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(FirstName REGEXP '^T' AND FirstName REGEXP 'r$')", "alias": null, "function": null, "subquery": null }, "value": "(FirstName REGEXP '^T' AND FirstName REGEXP 'r$')" }, "14": "ENFORCED" } } } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE", "7": "IF NOT EXISTS" } }, "first": 0, "last": 36 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTableErr1.in000066400000000000000000000001041455302707200234550ustar00rootroot00000000000000CREATE TABLE IF NOT EXISTS users ( `id` UNKNOWN ) ENGINE=InnoDB;sql-parser-5.9.0/tests/data/parser/parseCreateTableErr1.out000066400000000000000000000235701455302707200236720ustar00rootroot00000000000000{ "query": "CREATE TABLE IF NOT EXISTS users (\n `id` UNKNOWN\n) ENGINE=InnoDB;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE IF NOT EXISTS users (\n `id` UNKNOWN\n) ENGINE=InnoDB;", "len": 68, "last": 68, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF NOT EXISTS", "value": "IF NOT EXISTS", "keyword": "IF NOT EXISTS", "type": 1, "flags": 7, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "users", "value": "users", "keyword": null, "type": 0, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`id`", "value": "id", "keyword": null, "type": 8, "flags": 2, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNKNOWN", "value": "UNKNOWN", "keyword": "UNKNOWN", "type": 1, "flags": 1, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENGINE", "value": "ENGINE", "keyword": "ENGINE", "type": 1, "flags": 1, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "InnoDB", "value": "InnoDB", "keyword": null, "type": 0, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 21, "idx": 21 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "users", "column": null, "expr": "users", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ENGINE", "equals": true, "expr": "InnoDB", "value": "InnoDB" } } }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "UNKNOWN", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE", "7": "IF NOT EXISTS" } }, "first": 0, "last": 19 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unrecognized data type.", { "@type": "@14" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseCreateTableErr2.in000066400000000000000000000000141455302707200234560ustar00rootroot00000000000000CREATE TABLEsql-parser-5.9.0/tests/data/parser/parseCreateTableErr2.out000066400000000000000000000064321455302707200236710ustar00rootroot00000000000000{ "query": "CREATE TABLE", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE", "len": 12, "last": 12, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 4, "idx": 4 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": null, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": [], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 3 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "The name of the entity was expected.", { "@type": "@5" }, 0 ], [ "At least one column definition was expected.", { "@type": "@4" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseCreateTableErr3.in000066400000000000000000000000401455302707200234560ustar00rootroot00000000000000CREATE TABLE `table_copy` LIKE ;sql-parser-5.9.0/tests/data/parser/parseCreateTableErr3.out000066400000000000000000000122341455302707200236670ustar00rootroot00000000000000{ "query": "CREATE TABLE `table_copy` LIKE ;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE `table_copy` LIKE ;", "len": 32, "last": 32, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`table_copy`", "value": "table_copy", "keyword": null, "type": 8, "flags": 2, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIKE", "value": "LIKE", "keyword": "LIKE", "type": 1, "flags": 3, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 10 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table_copy", "column": null, "expr": "`table_copy`", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 8 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "A table name was expected.", { "@type": "@10" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseCreateTableErr4.in000066400000000000000000000000661455302707200234670ustar00rootroot00000000000000CREATE TABLE new_table (INT VARCHAR(50) DEFAULT NULL);sql-parser-5.9.0/tests/data/parser/parseCreateTableErr4.out000066400000000000000000000216021455302707200236670ustar00rootroot00000000000000{ "query": "CREATE TABLE new_table (INT VARCHAR(50) DEFAULT NULL);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE new_table (INT VARCHAR(50) DEFAULT NULL);", "len": 54, "last": 54, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "new_table", "value": "new_table", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "50", "value": 50, "keyword": null, "type": 6, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 20, "idx": 20 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "new_table", "column": null, "expr": "new_table", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": [], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 10 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "A symbol name was expected! A reserved keyword can not be used as a column name without backquotes.", { "@type": "@9" }, 0 ], [ "At least one column definition was expected.", { "@type": "@9" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@13" }, 0 ], [ "Unrecognized statement type.", { "@type": "@16" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseCreateTableErr5.in000066400000000000000000000000671455302707200234710ustar00rootroot00000000000000CREATE TABLE new_table (666 VARCHAR(50) DEFAULT NULL); sql-parser-5.9.0/tests/data/parser/parseCreateTableErr5.out000066400000000000000000000221501455302707200236670ustar00rootroot00000000000000{ "query": "CREATE TABLE new_table (666 VARCHAR(50) DEFAULT NULL);\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE new_table (666 VARCHAR(50) DEFAULT NULL);\n", "len": 55, "last": 55, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "new_table", "value": "new_table", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "666", "value": 666, "keyword": null, "type": 6, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VARCHAR", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "50", "value": 50, "keyword": null, "type": 6, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 21, "idx": 21 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "new_table", "column": null, "expr": "new_table", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": [], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 10 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "A symbol name was expected!", { "@type": "@9" }, 0 ], [ "At least one column definition was expected.", { "@type": "@9" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@13" }, 0 ], [ "Unrecognized statement type.", { "@type": "@16" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseCreateTableLike.in000066400000000000000000000000531455302707200235330ustar00rootroot00000000000000CREATE TABLE `table_copy` LIKE `old_table`;sql-parser-5.9.0/tests/data/parser/parseCreateTableLike.out000066400000000000000000000132561455302707200237450ustar00rootroot00000000000000{ "query": "CREATE TABLE `table_copy` LIKE `old_table`;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE `table_copy` LIKE `old_table`;", "len": 43, "last": 43, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`table_copy`", "value": "table_copy", "keyword": null, "type": 8, "flags": 2, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIKE", "value": "LIKE", "keyword": "LIKE", "type": 1, "flags": 3, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`old_table`", "value": "old_table", "keyword": null, "type": 8, "flags": 2, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 11, "idx": 11 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table_copy", "column": null, "expr": "`table_copy`", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": null, "select": null, "like": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "old_table", "column": null, "expr": "`old_table`", "alias": null, "function": null, "subquery": null }, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 8 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTableNotEnforcedCheck.in000066400000000000000000000002101455302707200260060ustar00rootroot00000000000000CREATE TABLE IF NOT EXISTS employees_check (FirstName varchar(30) CHECK (FirstName REGEXP '^T' AND FirstName REGEXP 'r$') NOT ENFORCED);sql-parser-5.9.0/tests/data/parser/parseCreateTableNotEnforcedCheck.out000066400000000000000000000405751455302707200262310ustar00rootroot00000000000000{ "query": "CREATE TABLE IF NOT EXISTS employees_check (FirstName varchar(30) CHECK (FirstName REGEXP '^T' AND FirstName REGEXP 'r$') NOT ENFORCED);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE IF NOT EXISTS employees_check (FirstName varchar(30) CHECK (FirstName REGEXP '^T' AND FirstName REGEXP 'r$') NOT ENFORCED);", "len": 136, "last": 136, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF NOT EXISTS", "value": "IF NOT EXISTS", "keyword": "IF NOT EXISTS", "type": 1, "flags": 7, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "employees_check", "value": "employees_check", "keyword": null, "type": 0, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FirstName", "value": "FirstName", "keyword": null, "type": 0, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "varchar", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "30", "value": 30, "keyword": null, "type": 6, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHECK", "value": "CHECK", "keyword": "CHECK", "type": 1, "flags": 3, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FirstName", "value": "FirstName", "keyword": null, "type": 0, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REGEXP", "value": "REGEXP", "keyword": "REGEXP", "type": 1, "flags": 3, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'^T'", "value": "^T", "keyword": null, "type": 7, "flags": 1, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FirstName", "value": "FirstName", "keyword": null, "type": 0, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REGEXP", "value": "REGEXP", "keyword": "REGEXP", "type": 1, "flags": 3, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'r$'", "value": "r$", "keyword": null, "type": 7, "flags": 1, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT", "value": "NOT", "keyword": "NOT", "type": 1, "flags": 3, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENFORCED", "value": "ENFORCED", "keyword": null, "type": 0, "flags": 0, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 134 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 40, "idx": 40 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "employees_check", "column": null, "expr": "employees_check", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "FirstName", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "30" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "12": { "name": "CHECK", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(FirstName REGEXP '^T' AND FirstName REGEXP 'r$')", "alias": null, "function": null, "subquery": null }, "value": "(FirstName REGEXP '^T' AND FirstName REGEXP 'r$')" }, "15": "NOT", "14": "ENFORCED" } } } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE", "7": "IF NOT EXISTS" } }, "first": 0, "last": 38 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTableSelect.in000066400000000000000000000000541455302707200240670ustar00rootroot00000000000000CREATE TABLE new_tbl SELECT * FROM orig_tbl sql-parser-5.9.0/tests/data/parser/parseCreateTableSelect.out000066400000000000000000000204371455302707200242770ustar00rootroot00000000000000{ "query": "CREATE TABLE new_tbl SELECT * FROM orig_tbl\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE new_tbl SELECT * FROM orig_tbl\n", "len": 44, "last": 44, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "new_tbl", "value": "new_tbl", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "orig_tbl", "value": "orig_tbl", "keyword": null, "type": 0, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 15, "idx": 15 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "new_tbl", "column": null, "expr": "new_tbl", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": null, "select": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "orig_tbl", "column": null, "expr": "orig_tbl", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 6, "last": 13 }, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 13 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTableSpatial.in000066400000000000000000000001001455302707200242350ustar00rootroot00000000000000CREATE TABLE `xss`.`gis` ( `x` POINT NOT NULL ) ENGINE = InnoDB;sql-parser-5.9.0/tests/data/parser/parseCreateTableSpatial.out000066400000000000000000000256001455302707200244520ustar00rootroot00000000000000{ "query": "CREATE TABLE `xss`.`gis` ( `x` POINT NOT NULL ) ENGINE = InnoDB;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE `xss`.`gis` ( `x` POINT NOT NULL ) ENGINE = InnoDB;", "len": 64, "last": 64, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`xss`", "value": "xss", "keyword": null, "type": 8, "flags": 2, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`gis`", "value": "gis", "keyword": null, "type": 8, "flags": 2, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`x`", "value": "x", "keyword": null, "type": 8, "flags": 2, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "POINT", "value": "POINT", "keyword": "POINT", "type": 1, "flags": 41, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENGINE", "value": "ENGINE", "keyword": "ENGINE", "type": 1, "flags": 1, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "InnoDB", "value": "InnoDB", "keyword": null, "type": 0, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 25, "idx": 25 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "xss", "table": "gis", "column": null, "expr": "`xss`.`gis`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ENGINE", "equals": true, "expr": "InnoDB", "value": "InnoDB" } } }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "x", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "POINT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL" } } } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 23 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTableTimestampWithPrecision.in000066400000000000000000000003131455302707200273210ustar00rootroot00000000000000CREATE TABLE `aa` ( `id` int(11) NOT NULL, `rTime` timestamp(3) NOT NULL DEFAULT '0000-00-00 00:00:00.000' ON UPDATE CURRENT_TIMESTAMP(3), PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;sql-parser-5.9.0/tests/data/parser/parseCreateTableTimestampWithPrecision.out000066400000000000000000000611521455302707200275320ustar00rootroot00000000000000{ "query": "CREATE TABLE `aa` (\n `id` int(11) NOT NULL,\n `rTime` timestamp(3) NOT NULL DEFAULT '0000-00-00 00:00:00.000' ON UPDATE CURRENT_TIMESTAMP(3),\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=latin1;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE `aa` (\n `id` int(11) NOT NULL,\n `rTime` timestamp(3) NOT NULL DEFAULT '0000-00-00 00:00:00.000' ON UPDATE CURRENT_TIMESTAMP(3),\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=latin1;", "len": 203, "last": 203, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`aa`", "value": "aa", "keyword": null, "type": 8, "flags": 2, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`id`", "value": "id", "keyword": null, "type": 8, "flags": 2, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "int", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`rTime`", "value": "rTime", "keyword": null, "type": 8, "flags": 2, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "timestamp", "value": "timestamp", "keyword": "TIMESTAMP", "type": 1, "flags": 41, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'0000-00-00 00:00:00.000'", "value": "0000-00-00 00:00:00.000", "keyword": null, "type": 7, "flags": 1, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON UPDATE", "value": "ON UPDATE", "keyword": "ON UPDATE", "type": 1, "flags": 7, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CURRENT_TIMESTAMP", "value": "CURRENT_TIMESTAMP", "keyword": "CURRENT_TIMESTAMP", "type": 1, "flags": 35, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PRIMARY KEY", "value": "PRIMARY KEY", "keyword": "PRIMARY KEY", "type": 1, "flags": 23, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`id`", "value": "id", "keyword": null, "type": 8, "flags": 2, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 163 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 165 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENGINE", "value": "ENGINE", "keyword": "ENGINE", "type": 1, "flags": 1, "position": 166 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 172 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "InnoDB", "value": "InnoDB", "keyword": null, "type": 0, "flags": 0, "position": 173 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 179 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT CHARSET", "value": "DEFAULT CHARSET", "keyword": "DEFAULT CHARSET", "type": 1, "flags": 7, "position": 180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 195 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "latin1", "value": "latin1", "keyword": null, "type": 0, "flags": 0, "position": 196 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 202 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 56, "idx": 56 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "aa", "column": null, "expr": "`aa`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ENGINE", "equals": true, "expr": "InnoDB", "value": "InnoDB" }, "4": { "name": "DEFAULT CHARSET", "equals": true, "expr": "latin1", "value": "latin1" } } }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [ "11" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL" } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "rTime", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "TIMESTAMP", "parameters": [ "3" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "0000-00-00 00:00:00.000", "expr": "'0000-00-00 00:00:00.000'", "alias": null, "function": null, "subquery": null }, "value": "'0000-00-00 00:00:00.000'" }, "7": { "name": "ON UPDATE", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "CURRENT_TIMESTAMP(3)", "alias": null, "function": "CURRENT_TIMESTAMP", "subquery": null }, "value": "CURRENT_TIMESTAMP(3)" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": null, "isConstraint": null, "type": null, "key": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Key", "name": null, "columns": [ { "name": "id" } ], "type": "PRIMARY KEY", "expr": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "references": null, "options": null } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 54 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTableWithInvisibleKey.in000066400000000000000000000013321455302707200261010ustar00rootroot00000000000000CREATE TABLE `animes_comments` ( `anime_comment_id` bigint unsigned NOT NULL AUTO_INCREMENT, `anime_id` bigint unsigned NOT NULL, `user_id` bigint unsigned NOT NULL, `comment_text` varchar(500) COLLATE utf8mb4_general_ci DEFAULT NULL, `comment_at` datetime DEFAULT NULL, PRIMARY KEY (`anime_comment_id`), KEY `animes_comments_animes_fk` (`anime_id`) invisible, KEY `animes_comments_users_fk` (`user_id`), KEY `comment_at_idx` (`comment_at`) , CONSTRAINT `animes_comments_animes_fk` FOREIGN KEY (`anime_id`) REFERENCES `animes` (`anime_id`) ON DELETE CASCADE ON UPDATE RESTRICT, CONSTRAINT `animes_comments_users_fk` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE RESTRICT)sql-parser-5.9.0/tests/data/parser/parseCreateTableWithInvisibleKey.out000066400000000000000000002047001455302707200263060ustar00rootroot00000000000000{ "query": "CREATE TABLE `animes_comments` (\n `anime_comment_id` bigint unsigned NOT NULL AUTO_INCREMENT,\n `anime_id` bigint unsigned NOT NULL,\n `user_id` bigint unsigned NOT NULL,\n `comment_text` varchar(500) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `comment_at` datetime DEFAULT NULL,\n PRIMARY KEY (`anime_comment_id`),\n KEY `animes_comments_animes_fk` (`anime_id`) invisible,\n KEY `animes_comments_users_fk` (`user_id`),\n KEY `comment_at_idx` (`comment_at`) ,\n CONSTRAINT `animes_comments_animes_fk` FOREIGN KEY (`anime_id`) REFERENCES `animes` (`anime_id`) ON DELETE CASCADE ON UPDATE RESTRICT,\n CONSTRAINT `animes_comments_users_fk` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE RESTRICT)", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE `animes_comments` (\n `anime_comment_id` bigint unsigned NOT NULL AUTO_INCREMENT,\n `anime_id` bigint unsigned NOT NULL,\n `user_id` bigint unsigned NOT NULL,\n `comment_text` varchar(500) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `comment_at` datetime DEFAULT NULL,\n PRIMARY KEY (`anime_comment_id`),\n KEY `animes_comments_animes_fk` (`anime_id`) invisible,\n KEY `animes_comments_users_fk` (`user_id`),\n KEY `comment_at_idx` (`comment_at`) ,\n CONSTRAINT `animes_comments_animes_fk` FOREIGN KEY (`anime_id`) REFERENCES `animes` (`anime_id`) ON DELETE CASCADE ON UPDATE RESTRICT,\n CONSTRAINT `animes_comments_users_fk` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE RESTRICT)", "len": 730, "last": 730, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`animes_comments`", "value": "animes_comments", "keyword": null, "type": 8, "flags": 2, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`anime_comment_id`", "value": "anime_comment_id", "keyword": null, "type": 8, "flags": 2, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bigint", "value": "BIGINT", "keyword": "BIGINT", "type": 1, "flags": 11, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "unsigned", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AUTO_INCREMENT", "value": "AUTO_INCREMENT", "keyword": "AUTO_INCREMENT", "type": 1, "flags": 1, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`anime_id`", "value": "anime_id", "keyword": null, "type": 8, "flags": 2, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bigint", "value": "BIGINT", "keyword": "BIGINT", "type": 1, "flags": 11, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "unsigned", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`user_id`", "value": "user_id", "keyword": null, "type": 8, "flags": 2, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bigint", "value": "BIGINT", "keyword": "BIGINT", "type": 1, "flags": 11, "position": 146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "unsigned", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 153 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 171 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`comment_text`", "value": "comment_text", "keyword": null, "type": 8, "flags": 2, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 188 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "varchar", "value": "VARCHAR", "keyword": "VARCHAR", "type": 1, "flags": 11, "position": 189 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 196 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "500", "value": 500, "keyword": null, "type": 6, "flags": 0, "position": 197 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 200 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 201 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLLATE", "value": "COLLATE", "keyword": "COLLATE", "type": 1, "flags": 3, "position": 202 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 209 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8mb4_general_ci", "value": "utf8mb4_general_ci", "keyword": null, "type": 0, "flags": 0, "position": 210 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 228 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 229 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 236 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 237 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 241 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 242 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`comment_at`", "value": "comment_at", "keyword": null, "type": 8, "flags": 2, "position": 245 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 257 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "datetime", "value": "datetime", "keyword": "DATETIME", "type": 1, "flags": 9, "position": 258 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 266 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 267 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 274 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 275 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 279 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 280 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PRIMARY KEY", "value": "PRIMARY KEY", "keyword": "PRIMARY KEY", "type": 1, "flags": 23, "position": 283 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 294 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 295 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`anime_comment_id`", "value": "anime_comment_id", "keyword": null, "type": 8, "flags": 2, "position": 296 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 314 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 315 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 316 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "KEY", "value": "KEY", "keyword": "KEY", "type": 1, "flags": 19, "position": 319 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 322 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`animes_comments_animes_fk`", "value": "animes_comments_animes_fk", "keyword": null, "type": 8, "flags": 2, "position": 323 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 350 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 351 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`anime_id`", "value": "anime_id", "keyword": null, "type": 8, "flags": 2, "position": 352 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 362 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 363 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "invisible", "value": "invisible", "keyword": null, "type": 0, "flags": 0, "position": 364 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 373 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 374 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "KEY", "value": "KEY", "keyword": "KEY", "type": 1, "flags": 19, "position": 377 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 380 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`animes_comments_users_fk`", "value": "animes_comments_users_fk", "keyword": null, "type": 8, "flags": 2, "position": 381 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 407 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 408 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`user_id`", "value": "user_id", "keyword": null, "type": 8, "flags": 2, "position": 409 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 418 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 419 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 420 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "KEY", "value": "KEY", "keyword": "KEY", "type": 1, "flags": 19, "position": 423 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 426 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`comment_at_idx`", "value": "comment_at_idx", "keyword": null, "type": 8, "flags": 2, "position": 427 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 443 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 444 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`comment_at`", "value": "comment_at", "keyword": null, "type": 8, "flags": 2, "position": 445 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 457 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 458 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 459 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 460 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CONSTRAINT", "value": "CONSTRAINT", "keyword": "CONSTRAINT", "type": 1, "flags": 3, "position": 463 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 473 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`animes_comments_animes_fk`", "value": "animes_comments_animes_fk", "keyword": null, "type": 8, "flags": 2, "position": 474 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 501 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FOREIGN KEY", "value": "FOREIGN KEY", "keyword": "FOREIGN KEY", "type": 1, "flags": 23, "position": 502 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 513 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 514 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`anime_id`", "value": "anime_id", "keyword": null, "type": 8, "flags": 2, "position": 515 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 525 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 526 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REFERENCES", "value": "REFERENCES", "keyword": "REFERENCES", "type": 1, "flags": 3, "position": 527 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 537 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`animes`", "value": "animes", "keyword": null, "type": 8, "flags": 2, "position": 538 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 546 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 547 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`anime_id`", "value": "anime_id", "keyword": null, "type": 8, "flags": 2, "position": 548 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 558 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 559 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON DELETE", "value": "ON DELETE", "keyword": "ON DELETE", "type": 1, "flags": 7, "position": 560 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 569 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CASCADE", "value": "CASCADE", "keyword": "CASCADE", "type": 1, "flags": 3, "position": 570 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 577 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON UPDATE", "value": "ON UPDATE", "keyword": "ON UPDATE", "type": 1, "flags": 7, "position": 578 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 587 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RESTRICT", "value": "RESTRICT", "keyword": "RESTRICT", "type": 1, "flags": 3, "position": 588 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 596 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 597 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CONSTRAINT", "value": "CONSTRAINT", "keyword": "CONSTRAINT", "type": 1, "flags": 3, "position": 600 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 610 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`animes_comments_users_fk`", "value": "animes_comments_users_fk", "keyword": null, "type": 8, "flags": 2, "position": 611 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 637 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FOREIGN KEY", "value": "FOREIGN KEY", "keyword": "FOREIGN KEY", "type": 1, "flags": 23, "position": 638 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 649 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 650 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`user_id`", "value": "user_id", "keyword": null, "type": 8, "flags": 2, "position": 651 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 660 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 661 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REFERENCES", "value": "REFERENCES", "keyword": "REFERENCES", "type": 1, "flags": 3, "position": 662 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 672 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`users`", "value": "users", "keyword": null, "type": 8, "flags": 2, "position": 673 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 680 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 681 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`user_id`", "value": "user_id", "keyword": null, "type": 8, "flags": 2, "position": 682 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 691 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 692 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON DELETE", "value": "ON DELETE", "keyword": "ON DELETE", "type": 1, "flags": 7, "position": 693 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 702 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CASCADE", "value": "CASCADE", "keyword": "CASCADE", "type": 1, "flags": 3, "position": 703 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 710 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON UPDATE", "value": "ON UPDATE", "keyword": "ON UPDATE", "type": 1, "flags": 7, "position": 711 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 720 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RESTRICT", "value": "RESTRICT", "keyword": "RESTRICT", "type": 1, "flags": 3, "position": 721 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 729 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 153, "idx": 153 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "animes_comments", "column": null, "expr": "`animes_comments`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "anime_comment_id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "BIGINT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "3": "AUTO_INCREMENT" } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "anime_id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "BIGINT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL" } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "user_id", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "BIGINT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL" } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "comment_text", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "VARCHAR", "parameters": [ "500" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": { "name": "COLLATE", "equals": false, "expr": "utf8mb4_general_ci", "value": "utf8mb4_general_ci" } } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "NULL", "alias": null, "function": null, "subquery": null }, "value": "NULL" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "comment_at", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "DATETIME", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "NULL", "alias": null, "function": null, "subquery": null }, "value": "NULL" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": null, "isConstraint": null, "type": null, "key": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Key", "name": null, "columns": [ { "name": "anime_comment_id" } ], "type": "PRIMARY KEY", "expr": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "references": null, "options": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": null, "isConstraint": null, "type": null, "key": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Key", "name": "animes_comments_animes_fk", "columns": [ { "name": "anime_id" } ], "type": "KEY", "expr": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "invisible" } } }, "references": null, "options": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": null, "isConstraint": null, "type": null, "key": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Key", "name": "animes_comments_users_fk", "columns": [ { "name": "user_id" } ], "type": "KEY", "expr": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "references": null, "options": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": null, "isConstraint": null, "type": null, "key": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Key", "name": "comment_at_idx", "columns": [ { "name": "comment_at" } ], "type": "KEY", "expr": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "references": null, "options": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "animes_comments_animes_fk", "isConstraint": true, "type": null, "key": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Key", "name": null, "columns": [ { "name": "anime_id" } ], "type": "FOREIGN KEY", "expr": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "references": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Reference", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "animes", "column": null, "expr": "`animes`", "alias": null, "function": null, "subquery": null }, "columns": [ "anime_id" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "ON DELETE", "equals": false, "expr": "CASCADE", "value": "CASCADE" }, "3": { "name": "ON UPDATE", "equals": false, "expr": "RESTRICT", "value": "RESTRICT" } } } }, "options": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "animes_comments_users_fk", "isConstraint": true, "type": null, "key": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Key", "name": null, "columns": [ { "name": "user_id" } ], "type": "FOREIGN KEY", "expr": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "references": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Reference", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "users", "column": null, "expr": "`users`", "alias": null, "function": null, "subquery": null }, "columns": [ "user_id" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "ON DELETE", "equals": false, "expr": "CASCADE", "value": "CASCADE" }, "3": { "name": "ON UPDATE", "equals": false, "expr": "RESTRICT", "value": "RESTRICT" } } } }, "options": null } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 152 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateTrigger.in000066400000000000000000000001431455302707200233020ustar00rootroot00000000000000CREATE TRIGGER ins_sum BEFORE INSERT ON account FOR EACH ROW BEGIN SET @sum = @sum + NEW.amount ENDsql-parser-5.9.0/tests/data/parser/parseCreateTrigger.out000066400000000000000000000344141455302707200235130ustar00rootroot00000000000000{ "query": "CREATE TRIGGER ins_sum BEFORE INSERT ON account\nFOR EACH ROW BEGIN SET @sum = @sum + NEW.amount END", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TRIGGER ins_sum BEFORE INSERT ON account\nFOR EACH ROW BEGIN SET @sum = @sum + NEW.amount END", "len": 99, "last": 99, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TRIGGER", "value": "TRIGGER", "keyword": "TRIGGER", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ins_sum", "value": "ins_sum", "keyword": null, "type": 0, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BEFORE", "value": "BEFORE", "keyword": "BEFORE", "type": 1, "flags": 3, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "account", "value": "account", "keyword": "ACCOUNT", "type": 1, "flags": 1, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FOR EACH ROW", "value": "FOR EACH ROW", "keyword": "FOR EACH ROW", "type": 1, "flags": 7, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BEGIN", "value": "BEGIN", "keyword": "BEGIN", "type": 1, "flags": 1, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@sum", "value": "sum", "keyword": null, "type": 8, "flags": 1, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@sum", "value": "sum", "keyword": null, "type": 8, "flags": 1, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NEW", "value": "NEW", "keyword": "NEW", "type": 1, "flags": 1, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "amount", "value": "amount", "keyword": null, "type": 0, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": "END", "type": 1, "flags": 1, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 34, "idx": 34 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "ins_sum", "column": null, "expr": "ins_sum", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "BEFORE", "2": "INSERT" } }, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "account", "column": null, "expr": "account", "alias": null, "function": null, "subquery": null }, "return": null, "parameters": null, "body": [ { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" }, { "@type": "@29" }, { "@type": "@30" }, { "@type": "@31" }, { "@type": "@32" }, { "@type": "@33" }, { "@type": "@34" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TRIGGER" } }, "first": 0, "last": 33 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateUser1.in000066400000000000000000000000201455302707200226700ustar00rootroot00000000000000CREATE USER testsql-parser-5.9.0/tests/data/parser/parseCreateUser1.out000066400000000000000000000073621455302707200231110ustar00rootroot00000000000000{ "query": "CREATE USER test", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE USER test", "len": 16, "last": 16, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USER", "value": "USER", "keyword": "USER", "type": 1, "flags": 33, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 6, "idx": 6 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test", "column": null, "expr": "test", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "USER" } }, "first": 0, "last": 5 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateUser2.in000066400000000000000000000002151455302707200226770ustar00rootroot00000000000000CREATE USER 'bob'@'localhost' IDENTIFIED VIA mysql_native_password USING PASSWORD('vp8LAf4#wu2V&Wi*iJWC#3KPotsHzx3u') OR unix_socket; sql-parser-5.9.0/tests/data/parser/parseCreateUser2.out000066400000000000000000000262321455302707200231070ustar00rootroot00000000000000{ "query": "CREATE USER 'bob'@'localhost' \n IDENTIFIED VIA mysql_native_password USING PASSWORD('vp8LAf4#wu2V&Wi*iJWC#3KPotsHzx3u') \n OR unix_socket;\n\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE USER 'bob'@'localhost' \n IDENTIFIED VIA mysql_native_password USING PASSWORD('vp8LAf4#wu2V&Wi*iJWC#3KPotsHzx3u') \n OR unix_socket;\n\n", "len": 141, "last": 141, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USER", "value": "USER", "keyword": "USER", "type": 1, "flags": 33, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'bob'@'localhost'", "value": "bob@localhost", "keyword": null, "type": 8, "flags": 4, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " \n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IDENTIFIED", "value": "IDENTIFIED", "keyword": "IDENTIFIED", "type": 1, "flags": 1, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VIA", "value": "VIA", "keyword": null, "type": 0, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql_native_password", "value": "mysql_native_password", "keyword": null, "type": 0, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PASSWORD", "value": "PASSWORD", "keyword": "PASSWORD", "type": 1, "flags": 33, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'vp8LAf4#wu2V&Wi*iJWC#3KPotsHzx3u'", "value": "vp8LAf4#wu2V&Wi*iJWC#3KPotsHzx3u", "keyword": null, "type": 7, "flags": 1, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " \n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OR", "value": "OR", "keyword": "OR", "type": 1, "flags": 3, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "unix_socket", "value": "unix_socket", "keyword": null, "type": 0, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 25, "idx": 25 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "bob@localhost", "column": null, "expr": "'bob'@'localhost'", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [ { "@type": "@8" }, { "@type": "@9" }, { "@type": "@10" }, { "@type": "@11" }, { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "USER" } }, "first": 0, "last": 22 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateView.in000066400000000000000000000017001455302707200226110ustar00rootroot00000000000000CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY INVOKER VIEW `sakila`.`actor_info` AS select `a`.`actor_id` AS `actor_id`,`a`.`first_name` AS `first_name`,`a`.`last_name` AS `last_name`,group_concat(distinct concat(`c`.`name`,': ',(select group_concat(`f`.`title` order by `f`.`title` ASC separator ', ') from ((`sakila`.`film` `f` join `sakila`.`film_category` `fc` on((`f`.`film_id` = `fc`.`film_id`))) join `sakila`.`film_actor` `fa` on((`f`.`film_id` = `fa`.`film_id`))) where ((`fc`.`category_id` = `c`.`category_id`) and (`fa`.`actor_id` = `a`.`actor_id`)))) order by `c`.`name` ASC separator '; ') AS `film_info` from (((`sakila`.`actor` `a` left join `sakila`.`film_actor` `fa` on((`a`.`actor_id` = `fa`.`actor_id`))) left join `sakila`.`film_category` `fc` on((`fa`.`film_id` = `fc`.`film_id`))) left join `sakila`.`category` `c` on((`fc`.`category_id` = `c`.`category_id`))) group by `a`.`actor_id`,`a`.`first_name`,`a`.`last_name`sql-parser-5.9.0/tests/data/parser/parseCreateView.out000066400000000000000000003012221455302707200230140ustar00rootroot00000000000000{ "query": "CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY INVOKER VIEW `sakila`.`actor_info` AS select `a`.`actor_id` AS `actor_id`,`a`.`first_name` AS `first_name`,`a`.`last_name` AS `last_name`,group_concat(distinct concat(`c`.`name`,': ',(select group_concat(`f`.`title` order by `f`.`title` ASC separator ', ') from ((`sakila`.`film` `f` join `sakila`.`film_category` `fc` on((`f`.`film_id` = `fc`.`film_id`))) join `sakila`.`film_actor` `fa` on((`f`.`film_id` = `fa`.`film_id`))) where ((`fc`.`category_id` = `c`.`category_id`) and (`fa`.`actor_id` = `a`.`actor_id`)))) order by `c`.`name` ASC separator '; ') AS `film_info` from (((`sakila`.`actor` `a` left join `sakila`.`film_actor` `fa` on((`a`.`actor_id` = `fa`.`actor_id`))) left join `sakila`.`film_category` `fc` on((`fa`.`film_id` = `fc`.`film_id`))) left join `sakila`.`category` `c` on((`fc`.`category_id` = `c`.`category_id`))) group by `a`.`actor_id`,`a`.`first_name`,`a`.`last_name`", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY INVOKER VIEW `sakila`.`actor_info` AS select `a`.`actor_id` AS `actor_id`,`a`.`first_name` AS `first_name`,`a`.`last_name` AS `last_name`,group_concat(distinct concat(`c`.`name`,': ',(select group_concat(`f`.`title` order by `f`.`title` ASC separator ', ') from ((`sakila`.`film` `f` join `sakila`.`film_category` `fc` on((`f`.`film_id` = `fc`.`film_id`))) join `sakila`.`film_actor` `fa` on((`f`.`film_id` = `fa`.`film_id`))) where ((`fc`.`category_id` = `c`.`category_id`) and (`fa`.`actor_id` = `a`.`actor_id`)))) order by `c`.`name` ASC separator '; ') AS `film_info` from (((`sakila`.`actor` `a` left join `sakila`.`film_actor` `fa` on((`a`.`actor_id` = `fa`.`actor_id`))) left join `sakila`.`film_category` `fc` on((`fa`.`film_id` = `fc`.`film_id`))) left join `sakila`.`category` `c` on((`fc`.`category_id` = `c`.`category_id`))) group by `a`.`actor_id`,`a`.`first_name`,`a`.`last_name`", "len": 960, "last": 960, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALGORITHM", "value": "ALGORITHM", "keyword": "ALGORITHM", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNDEFINED", "value": "UNDEFINED", "keyword": "UNDEFINED", "type": 1, "flags": 1, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFINER", "value": "DEFINER", "keyword": "DEFINER", "type": 1, "flags": 1, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`root`@`localhost`", "value": "root@localhost", "keyword": null, "type": 8, "flags": 4, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SQL SECURITY", "value": "SQL SECURITY", "keyword": "SQL SECURITY", "type": 1, "flags": 7, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INVOKER", "value": "INVOKER", "keyword": "INVOKER", "type": 1, "flags": 1, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VIEW", "value": "VIEW", "keyword": "VIEW", "type": 1, "flags": 1, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`sakila`", "value": "sakila", "keyword": null, "type": 8, "flags": 2, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`actor_info`", "value": "actor_info", "keyword": null, "type": 8, "flags": 2, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`a`", "value": "a", "keyword": null, "type": 8, "flags": 2, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`actor_id`", "value": "actor_id", "keyword": null, "type": 8, "flags": 2, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`actor_id`", "value": "actor_id", "keyword": null, "type": 8, "flags": 2, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`a`", "value": "a", "keyword": null, "type": 8, "flags": 2, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`first_name`", "value": "first_name", "keyword": null, "type": 8, "flags": 2, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`first_name`", "value": "first_name", "keyword": null, "type": 8, "flags": 2, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 173 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`a`", "value": "a", "keyword": null, "type": 8, "flags": 2, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`last_name`", "value": "last_name", "keyword": null, "type": 8, "flags": 2, "position": 178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 189 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 190 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 192 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`last_name`", "value": "last_name", "keyword": null, "type": 8, "flags": 2, "position": 193 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 204 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "group_concat", "value": "group_concat", "keyword": "GROUP_CONCAT", "type": 1, "flags": 33, "position": 205 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 217 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "distinct", "value": "DISTINCT", "keyword": "DISTINCT", "type": 1, "flags": 3, "position": 218 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 226 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "concat", "value": "concat", "keyword": "CONCAT", "type": 1, "flags": 33, "position": 227 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 233 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`c`", "value": "c", "keyword": null, "type": 8, "flags": 2, "position": 234 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 237 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`name`", "value": "name", "keyword": null, "type": 8, "flags": 2, "position": 238 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 244 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "': '", "value": ": ", "keyword": null, "type": 7, "flags": 1, "position": 245 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 249 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 250 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 251 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 257 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "group_concat", "value": "group_concat", "keyword": "GROUP_CONCAT", "type": 1, "flags": 33, "position": 258 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 270 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`f`", "value": "f", "keyword": null, "type": 8, "flags": 2, "position": 271 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 274 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`title`", "value": "title", "keyword": null, "type": 8, "flags": 2, "position": 275 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 282 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "order by", "value": "ORDER BY", "keyword": "ORDER BY", "type": 1, "flags": 7, "position": 283 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 291 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`f`", "value": "f", "keyword": null, "type": 8, "flags": 2, "position": 292 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 295 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`title`", "value": "title", "keyword": null, "type": 8, "flags": 2, "position": 296 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 303 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ASC", "value": "ASC", "keyword": "ASC", "type": 1, "flags": 3, "position": 304 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 307 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "separator", "value": "SEPARATOR", "keyword": "SEPARATOR", "type": 1, "flags": 3, "position": 308 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 317 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "', '", "value": ", ", "keyword": null, "type": 7, "flags": 1, "position": 318 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 322 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 323 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "from", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 324 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 328 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 329 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 330 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`sakila`", "value": "sakila", "keyword": null, "type": 8, "flags": 2, "position": 331 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 339 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`film`", "value": "film", "keyword": null, "type": 8, "flags": 2, "position": 340 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 346 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`f`", "value": "f", "keyword": null, "type": 8, "flags": 2, "position": 347 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 350 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "join", "value": "JOIN", "keyword": "JOIN", "type": 1, "flags": 3, "position": 351 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 355 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`sakila`", "value": "sakila", "keyword": null, "type": 8, "flags": 2, "position": 356 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 364 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`film_category`", "value": "film_category", "keyword": null, "type": 8, "flags": 2, "position": 365 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 380 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`fc`", "value": "fc", "keyword": null, "type": 8, "flags": 2, "position": 381 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 385 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "on", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 386 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 388 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 389 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`f`", "value": "f", "keyword": null, "type": 8, "flags": 2, "position": 390 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 393 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`film_id`", "value": "film_id", "keyword": null, "type": 8, "flags": 2, "position": 394 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 403 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 404 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 405 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`fc`", "value": "fc", "keyword": null, "type": 8, "flags": 2, "position": 406 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 410 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`film_id`", "value": "film_id", "keyword": null, "type": 8, "flags": 2, "position": 411 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 420 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 421 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 422 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 423 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "join", "value": "JOIN", "keyword": "JOIN", "type": 1, "flags": 3, "position": 424 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 428 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`sakila`", "value": "sakila", "keyword": null, "type": 8, "flags": 2, "position": 429 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 437 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`film_actor`", "value": "film_actor", "keyword": null, "type": 8, "flags": 2, "position": 438 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 450 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`fa`", "value": "fa", "keyword": null, "type": 8, "flags": 2, "position": 451 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 455 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "on", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 456 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 458 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 459 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`f`", "value": "f", "keyword": null, "type": 8, "flags": 2, "position": 460 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 463 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`film_id`", "value": "film_id", "keyword": null, "type": 8, "flags": 2, "position": 464 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 473 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 474 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 475 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`fa`", "value": "fa", "keyword": null, "type": 8, "flags": 2, "position": 476 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 480 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`film_id`", "value": "film_id", "keyword": null, "type": 8, "flags": 2, "position": 481 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 490 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 491 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 492 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 493 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "where", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 494 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 499 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 500 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 501 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`fc`", "value": "fc", "keyword": null, "type": 8, "flags": 2, "position": 502 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 506 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`category_id`", "value": "category_id", "keyword": null, "type": 8, "flags": 2, "position": 507 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 520 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 521 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 522 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`c`", "value": "c", "keyword": null, "type": 8, "flags": 2, "position": 523 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 526 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`category_id`", "value": "category_id", "keyword": null, "type": 8, "flags": 2, "position": 527 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 540 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 541 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "and", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 542 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 545 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 546 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`fa`", "value": "fa", "keyword": null, "type": 8, "flags": 2, "position": 547 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 551 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`actor_id`", "value": "actor_id", "keyword": null, "type": 8, "flags": 2, "position": 552 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 562 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 563 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 564 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`a`", "value": "a", "keyword": null, "type": 8, "flags": 2, "position": 565 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 568 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`actor_id`", "value": "actor_id", "keyword": null, "type": 8, "flags": 2, "position": 569 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 579 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 580 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 581 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 582 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 583 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "order by", "value": "ORDER BY", "keyword": "ORDER BY", "type": 1, "flags": 7, "position": 584 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 592 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`c`", "value": "c", "keyword": null, "type": 8, "flags": 2, "position": 593 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 596 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`name`", "value": "name", "keyword": null, "type": 8, "flags": 2, "position": 597 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 603 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ASC", "value": "ASC", "keyword": "ASC", "type": 1, "flags": 3, "position": 604 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 607 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "separator", "value": "SEPARATOR", "keyword": "SEPARATOR", "type": 1, "flags": 3, "position": 608 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 617 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'; '", "value": "; ", "keyword": null, "type": 7, "flags": 1, "position": 618 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 622 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 623 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 624 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 626 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`film_info`", "value": "film_info", "keyword": null, "type": 8, "flags": 2, "position": 627 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 638 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "from", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 639 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 643 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 644 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 645 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 646 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`sakila`", "value": "sakila", "keyword": null, "type": 8, "flags": 2, "position": 647 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 655 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`actor`", "value": "actor", "keyword": null, "type": 8, "flags": 2, "position": 656 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 663 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`a`", "value": "a", "keyword": null, "type": 8, "flags": 2, "position": 664 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 667 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "left join", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 668 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 677 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`sakila`", "value": "sakila", "keyword": null, "type": 8, "flags": 2, "position": 678 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 686 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`film_actor`", "value": "film_actor", "keyword": null, "type": 8, "flags": 2, "position": 687 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 699 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`fa`", "value": "fa", "keyword": null, "type": 8, "flags": 2, "position": 700 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 704 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "on", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 705 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 707 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 708 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`a`", "value": "a", "keyword": null, "type": 8, "flags": 2, "position": 709 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 712 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`actor_id`", "value": "actor_id", "keyword": null, "type": 8, "flags": 2, "position": 713 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 723 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 724 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 725 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`fa`", "value": "fa", "keyword": null, "type": 8, "flags": 2, "position": 726 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 730 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`actor_id`", "value": "actor_id", "keyword": null, "type": 8, "flags": 2, "position": 731 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 741 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 742 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 743 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 744 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "left join", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 745 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 754 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`sakila`", "value": "sakila", "keyword": null, "type": 8, "flags": 2, "position": 755 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 763 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`film_category`", "value": "film_category", "keyword": null, "type": 8, "flags": 2, "position": 764 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 779 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`fc`", "value": "fc", "keyword": null, "type": 8, "flags": 2, "position": 780 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 784 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "on", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 785 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 787 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 788 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`fa`", "value": "fa", "keyword": null, "type": 8, "flags": 2, "position": 789 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 793 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`film_id`", "value": "film_id", "keyword": null, "type": 8, "flags": 2, "position": 794 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 803 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 804 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 805 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`fc`", "value": "fc", "keyword": null, "type": 8, "flags": 2, "position": 806 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 810 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`film_id`", "value": "film_id", "keyword": null, "type": 8, "flags": 2, "position": 811 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 820 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 821 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 822 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 823 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "left join", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 824 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 833 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`sakila`", "value": "sakila", "keyword": null, "type": 8, "flags": 2, "position": 834 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 842 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`category`", "value": "category", "keyword": null, "type": 8, "flags": 2, "position": 843 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 853 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`c`", "value": "c", "keyword": null, "type": 8, "flags": 2, "position": 854 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 857 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "on", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 858 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 860 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 861 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`fc`", "value": "fc", "keyword": null, "type": 8, "flags": 2, "position": 862 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 866 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`category_id`", "value": "category_id", "keyword": null, "type": 8, "flags": 2, "position": 867 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 880 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 881 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 882 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`c`", "value": "c", "keyword": null, "type": 8, "flags": 2, "position": 883 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 886 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`category_id`", "value": "category_id", "keyword": null, "type": 8, "flags": 2, "position": 887 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 900 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 901 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 902 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 903 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "group by", "value": "GROUP BY", "keyword": "GROUP BY", "type": 1, "flags": 7, "position": 904 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 912 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`a`", "value": "a", "keyword": null, "type": 8, "flags": 2, "position": 913 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 916 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`actor_id`", "value": "actor_id", "keyword": null, "type": 8, "flags": 2, "position": 917 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 927 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`a`", "value": "a", "keyword": null, "type": 8, "flags": 2, "position": 928 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 931 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`first_name`", "value": "first_name", "keyword": null, "type": 8, "flags": 2, "position": 932 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 944 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`a`", "value": "a", "keyword": null, "type": 8, "flags": 2, "position": 945 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 948 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`last_name`", "value": "last_name", "keyword": null, "type": 8, "flags": 2, "position": 949 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 286, "idx": 286 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "sakila", "table": "actor_info", "column": null, "expr": "`sakila`.`actor_info`", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": null, "select": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": "actor_id", "expr": "`a`.`actor_id`", "alias": "actor_id", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": "first_name", "expr": "`a`.`first_name`", "alias": "first_name", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": "last_name", "expr": "`a`.`last_name`", "alias": "last_name", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "group_concat(distinct concat(`c`.`name`,': ',(select group_concat(`f`.`title` order by `f`.`title` ASC separator ', ') from ((`sakila`.`film` `f` join `sakila`.`film_category` `fc` on((`f`.`film_id` = `fc`.`film_id`))) join `sakila`.`film_actor` `fa` on((`f`.`film_id` = `fa`.`film_id`))) where ((`fc`.`category_id` = `c`.`category_id`) and (`fa`.`actor_id` = `a`.`actor_id`)))) order by `c`.`name` ASC separator '; ')", "alias": "film_info", "function": "group_concat", "subquery": "SELECT" } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(((`sakila`.`actor` `a` left join `sakila`.`film_actor` `fa` on((`a`.`actor_id` = `fa`.`actor_id`))) left join `sakila`.`film_category` `fc` on((`fa`.`film_id` = `fc`.`film_id`))) left join `sakila`.`category` `c` on((`fc`.`category_id` = `c`.`category_id`)))", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\GroupKeyword", "type": null, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": "actor_id", "expr": "`a`.`actor_id`", "alias": null, "function": null, "subquery": null } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\GroupKeyword", "type": null, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": "first_name", "expr": "`a`.`first_name`", "alias": null, "function": null, "subquery": null } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\GroupKeyword", "type": null, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": "last_name", "expr": "`a`.`last_name`", "alias": null, "function": null, "subquery": null } } ], "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 22, "last": 284 }, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": { "name": "ALGORITHM", "equals": true, "expr": "UNDEFINED", "value": "UNDEFINED" }, "4": { "name": "DEFINER", "equals": true, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "root@localhost", "expr": "`root`@`localhost`", "alias": null, "function": null, "subquery": null }, "value": "`root`@`localhost`" }, "5": { "name": "SQL SECURITY", "equals": false, "expr": "INVOKER", "value": "INVOKER" }, "6": "VIEW" } }, "first": 0, "last": 285 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateView2.in000066400000000000000000000001311455302707200226700ustar00rootroot00000000000000CREATE VIEW myView (vid, vfirstname) AS SELECT id, first_name FROM employee WHERE id = 1;sql-parser-5.9.0/tests/data/parser/parseCreateView2.out000066400000000000000000000346421455302707200231070ustar00rootroot00000000000000{ "query": "CREATE VIEW myView (vid, vfirstname) AS\nSELECT id, first_name FROM employee WHERE id = 1;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE VIEW myView (vid, vfirstname) AS\nSELECT id, first_name FROM employee WHERE id = 1;", "len": 89, "last": 89, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VIEW", "value": "VIEW", "keyword": "VIEW", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "myView", "value": "myView", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "vid", "value": "vid", "keyword": null, "type": 0, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "vfirstname", "value": "vfirstname", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "first_name", "value": "first_name", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "employee", "value": "employee", "keyword": null, "type": 0, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 35, "idx": 35 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "myView", "column": null, "expr": "myView", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "vid", "vfirstname" ], "values": [ "vid", "vfirstname" ] }, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [ { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" }, { "@type": "@29" }, { "@type": "@30" }, { "@type": "@31" }, { "@type": "@32" }, { "@type": "@33" }, { "@type": "@34" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "VIEW" } }, "first": 0, "last": 33 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateView3.in000066400000000000000000000002241455302707200226740ustar00rootroot00000000000000CREATE VIEW GoodStudent AS SELECT `one space`, `two spaces` FROM `Une table espace` WHERE `one space` > 3.0 WITH CHECK OPTION sql-parser-5.9.0/tests/data/parser/parseCreateView3.out000066400000000000000000000375271455302707200231150ustar00rootroot00000000000000{ "query": "CREATE VIEW GoodStudent AS\n SELECT `one space`, `two spaces`\n FROM `Une table espace`\n WHERE `one space` > 3.0\n WITH CHECK OPTION\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE VIEW GoodStudent AS\n SELECT `one space`, `two spaces`\n FROM `Une table espace`\n WHERE `one space` > 3.0\n WITH CHECK OPTION\n", "len": 148, "last": 148, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VIEW", "value": "VIEW", "keyword": "VIEW", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "GoodStudent", "value": "GoodStudent", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`one space`", "value": "one space", "keyword": null, "type": 8, "flags": 2, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`two spaces`", "value": "two spaces", "keyword": null, "type": 8, "flags": 2, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`Une table espace`", "value": "Une table espace", "keyword": null, "type": 8, "flags": 2, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`one space`", "value": "one space", "keyword": null, "type": 8, "flags": 2, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ">", "value": ">", "keyword": null, "type": 2, "flags": 2, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3.0", "value": 3.0, "keyword": null, "type": 6, "flags": 2, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 134 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHECK", "value": "CHECK", "keyword": "CHECK", "type": 1, "flags": 3, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OPTION", "value": "OPTION", "keyword": "OPTION", "type": 1, "flags": 3, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 34, "idx": 34 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "GoodStudent", "column": null, "expr": "GoodStudent", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": null, "select": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "one space", "expr": "`one space`", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "two spaces", "expr": "`two spaces`", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "Une table espace", "column": null, "expr": "`Une table espace`", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "one space" ], "isOperator": false, "expr": "`one space` > 3.0" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 8, "last": 26 }, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [ { "@type": "@29" }, { "@type": "@30" }, { "@type": "@31" }, { "@type": "@32" }, { "@type": "@33" }, { "@type": "@34" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "VIEW" } }, "first": 0, "last": 33 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "A new statement was found, but no delimiter between it and the previous one.", { "@type": "@29" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseCreateView4.in000066400000000000000000000000471455302707200227000ustar00rootroot00000000000000CREATE VIEW v (mycol) AS SELECT 'abc'; sql-parser-5.9.0/tests/data/parser/parseCreateView4.out000066400000000000000000000176721455302707200231150ustar00rootroot00000000000000{ "query": "CREATE VIEW v (mycol) AS SELECT 'abc';\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE VIEW v (mycol) AS SELECT 'abc';\n", "len": 39, "last": 39, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VIEW", "value": "VIEW", "keyword": "VIEW", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "v", "value": "v", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mycol", "value": "mycol", "keyword": null, "type": 0, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'abc'", "value": "abc", "keyword": null, "type": 7, "flags": 1, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 18, "idx": 18 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "v", "column": null, "expr": "v", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "mycol" ], "values": [ "mycol" ] }, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [ { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "VIEW" } }, "first": 0, "last": 15 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateView5.in000066400000000000000000000001131455302707200226730ustar00rootroot00000000000000CREATE VIEW `t3` as SELECT `t1` IS NOT NULL AS `is_not_null` FROM `test3`; sql-parser-5.9.0/tests/data/parser/parseCreateView5.out000066400000000000000000000271731455302707200231130ustar00rootroot00000000000000{ "query": "CREATE VIEW `t3` as SELECT `t1` IS NOT NULL AS `is_not_null` FROM `test3`;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE VIEW `t3` as SELECT `t1` IS NOT NULL AS `is_not_null` FROM `test3`;\n", "len": 75, "last": 75, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VIEW", "value": "VIEW", "keyword": "VIEW", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`t3`", "value": "t3", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`t1`", "value": "t1", "keyword": null, "type": 8, "flags": 2, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IS", "value": "IS", "keyword": "IS", "type": 1, "flags": 3, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`is_not_null`", "value": "is_not_null", "keyword": null, "type": 8, "flags": 2, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`test3`", "value": "test3", "keyword": null, "type": 8, "flags": 2, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 26, "idx": 26 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t3", "column": null, "expr": "`t3`", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": null, "select": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "t1", "expr": "`t1` IS NOT NULL", "alias": "is_not_null", "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test3", "column": null, "expr": "`test3`", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 8, "last": 22 }, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "VIEW" } }, "first": 0, "last": 23 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateViewAsWithAs.in000066400000000000000000000006041455302707200242170ustar00rootroot00000000000000-- create first view CREATE VIEW withclause AS WITH cte AS ( SELECT p.name, p.shape FROM gis_all as p ) SELECT cte.* FROM cte CROSS JOIN gis_all; -- create second view CREATE VIEW withclause2 AS WITH cte AS ( SELECT p.name, p.shape FROM gis_all as p ), cte2 AS ( SELECT p.name as n2, p.shape as sh2 FROM gis_all as p ) SELECT cte.*,cte2.* FROM cte,cte2 CROSS JOIN gis_all;sql-parser-5.9.0/tests/data/parser/parseCreateViewAsWithAs.out000066400000000000000000003203511455302707200244240ustar00rootroot00000000000000{ "query": "-- create first view\nCREATE VIEW withclause AS\n\nWITH cte AS (\n SELECT p.name, p.shape\n FROM gis_all as p\n)\n\nSELECT cte.*\nFROM cte\nCROSS JOIN gis_all;\n-- create second view\nCREATE VIEW withclause2 AS\n\nWITH cte AS (\n SELECT p.name, p.shape\n FROM gis_all as p\n), cte2 AS (\n SELECT p.name as n2, p.shape as sh2\n FROM gis_all as p\n)\n\nSELECT cte.*,cte2.*\nFROM cte,cte2\nCROSS JOIN gis_all;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "-- create first view\nCREATE VIEW withclause AS\n\nWITH cte AS (\n SELECT p.name, p.shape\n FROM gis_all as p\n)\n\nSELECT cte.*\nFROM cte\nCROSS JOIN gis_all;\n-- create second view\nCREATE VIEW withclause2 AS\n\nWITH cte AS (\n SELECT p.name, p.shape\n FROM gis_all as p\n), cte2 AS (\n SELECT p.name as n2, p.shape as sh2\n FROM gis_all as p\n)\n\nSELECT cte.*,cte2.*\nFROM cte,cte2\nCROSS JOIN gis_all;", "len": 388, "last": 388, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- create first view", "value": "-- create first view", "keyword": null, "type": 4, "flags": 4, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VIEW", "value": "VIEW", "keyword": "VIEW", "type": 1, "flags": 1, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "withclause", "value": "withclause", "keyword": null, "type": 0, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 0, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "shape", "value": "shape", "keyword": null, "type": 0, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "gis_all", "value": "gis_all", "keyword": null, "type": 0, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CROSS JOIN", "value": "CROSS JOIN", "keyword": "CROSS JOIN", "type": 1, "flags": 7, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "gis_all", "value": "gis_all", "keyword": null, "type": 0, "flags": 0, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 150 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- create second view", "value": "-- create second view", "keyword": null, "type": 4, "flags": 4, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 173 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VIEW", "value": "VIEW", "keyword": "VIEW", "type": 1, "flags": 1, "position": 181 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 185 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "withclause2", "value": "withclause2", "keyword": null, "type": 0, "flags": 0, "position": 186 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 197 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 198 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 200 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 202 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 206 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 207 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 210 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 211 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 213 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 214 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 215 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 218 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 224 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 225 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 226 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 0, "flags": 0, "position": 227 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 231 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 232 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 233 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 234 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "shape", "value": "shape", "keyword": null, "type": 0, "flags": 0, "position": 235 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 240 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 243 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 247 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "gis_all", "value": "gis_all", "keyword": null, "type": 0, "flags": 0, "position": 248 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 255 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 256 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 258 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 259 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 260 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 261 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 262 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 263 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte2", "value": "cte2", "keyword": null, "type": 0, "flags": 0, "position": 264 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 268 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 269 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 271 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 272 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 273 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 276 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 282 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 283 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 284 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 0, "flags": 0, "position": 285 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 289 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 290 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 292 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "n2", "value": "n2", "keyword": null, "type": 0, "flags": 0, "position": 293 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 295 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 296 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 297 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 298 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "shape", "value": "shape", "keyword": null, "type": 0, "flags": 0, "position": 299 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 304 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 305 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 307 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "sh2", "value": "sh2", "keyword": null, "type": 0, "flags": 0, "position": 308 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 311 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 314 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 318 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "gis_all", "value": "gis_all", "keyword": null, "type": 0, "flags": 0, "position": 319 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 326 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 327 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 329 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 330 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 331 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 332 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 333 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 335 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 341 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 342 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 345 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 346 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 347 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte2", "value": "cte2", "keyword": null, "type": 0, "flags": 0, "position": 348 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 352 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 353 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 354 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 355 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 359 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 360 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 363 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte2", "value": "cte2", "keyword": null, "type": 0, "flags": 0, "position": 364 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 368 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CROSS JOIN", "value": "CROSS JOIN", "keyword": "CROSS JOIN", "type": 1, "flags": 7, "position": 369 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 379 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "gis_all", "value": "gis_all", "keyword": null, "type": 0, "flags": 0, "position": 380 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 387 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 150, "idx": 150 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "withclause", "column": null, "expr": "withclause", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\WithStatement", "withers": { "cte": { "@type": "PhpMyAdmin\\SqlParser\\Components\\WithKeyword", "name": "cte", "columns": [], "statement": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" }, { "@type": "@29" }, { "@type": "@30" }, { "@type": "@31" }, { "@type": "@32" }, { "@type": "@33" }, { "@type": "@34" }, { "@type": "@35" }, { "@type": "@36" }, { "@type": "@37" }, { "@type": "@38" } ], "count": 20, "idx": 20 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "p", "column": "name", "expr": "p.name", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "p", "column": "shape", "expr": "p.shape", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "gis_all", "column": null, "expr": "gis_all", "alias": "p", "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 19 } ], "brackets": 0, "strict": false, "errors": [] } } }, "cteStatementParser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@41" }, { "@type": "@42" }, { "@type": "@43" }, { "@type": "@44" }, { "@type": "@45" }, { "@type": "@46" }, { "@type": "@47" }, { "@type": "@48" }, { "@type": "@49" }, { "@type": "@50" }, { "@type": "@51" }, { "@type": "@52" }, { "@type": "@53" }, { "@type": "@54" }, { "@type": "@55" }, { "@type": "@56" }, { "@type": "@57" }, { "@type": "@58" }, { "@type": "@59" }, { "@type": "@60" }, { "@type": "@61" }, { "@type": "@62" }, { "@type": "@63" }, { "@type": "@64" }, { "@type": "@65" }, { "@type": "@66" }, { "@type": "@67" }, { "@type": "@68" }, { "@type": "@69" }, { "@type": "@70" }, { "@type": "@71" }, { "@type": "@72" }, { "@type": "@73" }, { "@type": "@74" }, { "@type": "@75" }, { "@type": "@76" }, { "@type": "@77" }, { "@type": "@78" }, { "@type": "@79" }, { "@type": "@80" }, { "@type": "@81" }, { "@type": "@82" }, { "@type": "@83" }, { "@type": "@84" }, { "@type": "@85" }, { "@type": "@86" }, { "@type": "@87" }, { "@type": "@88" }, { "@type": "@89" }, { "@type": "@90" }, { "@type": "@91" }, { "@type": "@92" }, { "@type": "@93" }, { "@type": "@94" }, { "@type": "@95" }, { "@type": "@96" }, { "@type": "@97" }, { "@type": "@98" }, { "@type": "@99" }, { "@type": "@100" }, { "@type": "@101" }, { "@type": "@102" }, { "@type": "@103" }, { "@type": "@104" }, { "@type": "@105" }, { "@type": "@106" }, { "@type": "@107" }, { "@type": "@108" }, { "@type": "@109" }, { "@type": "@110" }, { "@type": "@111" }, { "@type": "@112" }, { "@type": "@113" }, { "@type": "@114" }, { "@type": "@115" }, { "@type": "@116" }, { "@type": "@117" }, { "@type": "@118" }, { "@type": "@119" }, { "@type": "@120" }, { "@type": "@121" }, { "@type": "@122" }, { "@type": "@123" }, { "@type": "@124" }, { "@type": "@125" }, { "@type": "@126" }, { "@type": "@127" }, { "@type": "@128" }, { "@type": "@129" }, { "@type": "@130" }, { "@type": "@131" }, { "@type": "@132" }, { "@type": "@133" }, { "@type": "@134" }, { "@type": "@135" }, { "@type": "@136" }, { "@type": "@137" }, { "@type": "@138" }, { "@type": "@139" }, { "@type": "@140" }, { "@type": "@141" }, { "@type": "@142" }, { "@type": "@143" }, { "@type": "@144" }, { "@type": "@145" }, { "@type": "@146" }, { "@type": "@147" }, { "@type": "@148" }, { "@type": "@149" }, { "@type": "@150" }, { "@type": "@151" } ], "count": 111, "idx": 111 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "cte", "column": null, "expr": "cte.*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "cte", "column": null, "expr": "cte", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "CROSS", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "gis_all", "column": null, "expr": "gis_all", "alias": null, "function": null, "subquery": null }, "on": null, "using": null } ], "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "withclause2", "column": null, "expr": "withclause2", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\WithStatement", "withers": { "cte": { "@type": "PhpMyAdmin\\SqlParser\\Components\\WithKeyword", "name": "cte", "columns": [], "statement": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@73" }, { "@type": "@74" }, { "@type": "@75" }, { "@type": "@76" }, { "@type": "@77" }, { "@type": "@78" }, { "@type": "@79" }, { "@type": "@80" }, { "@type": "@81" }, { "@type": "@82" }, { "@type": "@83" }, { "@type": "@84" }, { "@type": "@85" }, { "@type": "@86" }, { "@type": "@87" }, { "@type": "@88" }, { "@type": "@89" }, { "@type": "@90" }, { "@type": "@91" }, { "@type": "@92" } ], "count": 20, "idx": 20 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "p", "column": "name", "expr": "p.name", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "p", "column": "shape", "expr": "p.shape", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "gis_all", "column": null, "expr": "gis_all", "alias": "p", "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 19 } ], "brackets": 0, "strict": false, "errors": [] } }, "cte2": { "@type": "PhpMyAdmin\\SqlParser\\Components\\WithKeyword", "name": "cte2", "columns": [], "statement": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@101" }, { "@type": "@102" }, { "@type": "@103" }, { "@type": "@104" }, { "@type": "@105" }, { "@type": "@106" }, { "@type": "@107" }, { "@type": "@108" }, { "@type": "@109" }, { "@type": "@110" }, { "@type": "@111" }, { "@type": "@112" }, { "@type": "@113" }, { "@type": "@114" }, { "@type": "@115" }, { "@type": "@116" }, { "@type": "@117" }, { "@type": "@118" }, { "@type": "@119" }, { "@type": "@120" }, { "@type": "@121" }, { "@type": "@122" }, { "@type": "@123" }, { "@type": "@124" }, { "@type": "@125" }, { "@type": "@126" }, { "@type": "@127" }, { "@type": "@128" } ], "count": 28, "idx": 28 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "p", "column": "name", "expr": "p.name", "alias": "n2", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "p", "column": "shape", "expr": "p.shape", "alias": "sh2", "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "gis_all", "column": null, "expr": "gis_all", "alias": "p", "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 27 } ], "brackets": 0, "strict": false, "errors": [] } } }, "cteStatementParser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@131" }, { "@type": "@132" }, { "@type": "@133" }, { "@type": "@134" }, { "@type": "@135" }, { "@type": "@136" }, { "@type": "@137" }, { "@type": "@138" }, { "@type": "@139" }, { "@type": "@140" }, { "@type": "@141" }, { "@type": "@142" }, { "@type": "@143" }, { "@type": "@144" }, { "@type": "@145" }, { "@type": "@146" }, { "@type": "@147" }, { "@type": "@148" }, { "@type": "@149" }, { "@type": "@150" }, { "@type": "@151" } ], "count": 21, "idx": 21 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "cte", "column": null, "expr": "cte.*", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "cte2", "column": null, "expr": "cte2.*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "cte", "column": null, "expr": "cte", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "cte2", "column": null, "expr": "cte2", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "CROSS", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "gis_all", "column": null, "expr": "gis_all", "alias": null, "function": null, "subquery": null }, "on": null, "using": null } ], "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 18 } ], "brackets": 0, "strict": false, "errors": [] }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": null, "last": null }, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "VIEW" } }, "first": 13, "last": 109 } ], "brackets": 0, "strict": false, "errors": [] }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": null, "last": null }, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "VIEW" } }, "first": 0, "last": 148 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateViewMultiple.in000066400000000000000000000007201455302707200243260ustar00rootroot00000000000000CREATE TABLE T1 (COL1 CHAR(10)) CREATE VIEW V1 AS SELECT COL1 FROM T1 WHERE COL1 LIKE 'A%' CREATE VIEW V2 AS SELECT COL1 FROM V1 WHERE COL1 LIKE '%Z' WITH LOCAL CHECK OPTION CREATE VIEW V3 AS SELECT COL1 FROM V2 WHERE COL1 LIKE 'AB%' CREATE VIEW V4 AS SELECT COL1 FROM V3 WHERE COL1 LIKE '%YZ' WITH CASCADED CHECK OPTION CREATE VIEW V5 AS SELECT COL1 FROM V4 WHERE COL1 LIKE 'ABC%' sql-parser-5.9.0/tests/data/parser/parseCreateViewMultiple.out000066400000000000000000001426651455302707200245460ustar00rootroot00000000000000{ "query": "CREATE TABLE T1 (COL1 CHAR(10))\n\nCREATE VIEW V1 AS SELECT COL1\n FROM T1 WHERE COL1 LIKE 'A%'\n\nCREATE VIEW V2 AS SELECT COL1\n FROM V1 WHERE COL1 LIKE '%Z'\n WITH LOCAL CHECK OPTION\n\nCREATE VIEW V3 AS SELECT COL1\n FROM V2 WHERE COL1 LIKE 'AB%'\n\nCREATE VIEW V4 AS SELECT COL1\n FROM V3 WHERE COL1 LIKE '%YZ'\n WITH CASCADED CHECK OPTION\n\nCREATE VIEW V5 AS SELECT COL1\n FROM V4 WHERE COL1 LIKE 'ABC%'\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE TABLE T1 (COL1 CHAR(10))\n\nCREATE VIEW V1 AS SELECT COL1\n FROM T1 WHERE COL1 LIKE 'A%'\n\nCREATE VIEW V2 AS SELECT COL1\n FROM V1 WHERE COL1 LIKE '%Z'\n WITH LOCAL CHECK OPTION\n\nCREATE VIEW V3 AS SELECT COL1\n FROM V2 WHERE COL1 LIKE 'AB%'\n\nCREATE VIEW V4 AS SELECT COL1\n FROM V3 WHERE COL1 LIKE '%YZ'\n WITH CASCADED CHECK OPTION\n\nCREATE VIEW V5 AS SELECT COL1\n FROM V4 WHERE COL1 LIKE 'ABC%'\n", "len": 464, "last": 464, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "T1", "value": "T1", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COL1", "value": "COL1", "keyword": null, "type": 0, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHAR", "value": "CHAR", "keyword": "CHAR", "type": 1, "flags": 43, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VIEW", "value": "VIEW", "keyword": "VIEW", "type": 1, "flags": 1, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "V1", "value": "V1", "keyword": null, "type": 0, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COL1", "value": "COL1", "keyword": null, "type": 0, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "T1", "value": "T1", "keyword": null, "type": 0, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COL1", "value": "COL1", "keyword": null, "type": 0, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIKE", "value": "LIKE", "keyword": "LIKE", "type": 1, "flags": 3, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'A%'", "value": "A%", "keyword": null, "type": 7, "flags": 1, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VIEW", "value": "VIEW", "keyword": "VIEW", "type": 1, "flags": 1, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "V2", "value": "V2", "keyword": null, "type": 0, "flags": 0, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COL1", "value": "COL1", "keyword": null, "type": 0, "flags": 0, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "V1", "value": "V1", "keyword": null, "type": 0, "flags": 0, "position": 137 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COL1", "value": "COL1", "keyword": null, "type": 0, "flags": 0, "position": 146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 150 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIKE", "value": "LIKE", "keyword": "LIKE", "type": 1, "flags": 3, "position": 151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'%Z'", "value": "%Z", "keyword": null, "type": 7, "flags": 1, "position": 156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 189 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 193 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCAL", "value": "LOCAL", "keyword": "LOCAL", "type": 1, "flags": 1, "position": 194 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 199 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHECK", "value": "CHECK", "keyword": "CHECK", "type": 1, "flags": 3, "position": 200 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 205 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OPTION", "value": "OPTION", "keyword": "OPTION", "type": 1, "flags": 3, "position": 206 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 212 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 214 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 220 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VIEW", "value": "VIEW", "keyword": "VIEW", "type": 1, "flags": 1, "position": 221 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 225 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "V3", "value": "V3", "keyword": null, "type": 0, "flags": 0, "position": 226 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 228 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 229 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 231 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 232 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 238 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COL1", "value": "COL1", "keyword": null, "type": 0, "flags": 0, "position": 239 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 243 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 248 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 252 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "V2", "value": "V2", "keyword": null, "type": 0, "flags": 0, "position": 253 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 255 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 256 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 261 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COL1", "value": "COL1", "keyword": null, "type": 0, "flags": 0, "position": 262 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 266 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIKE", "value": "LIKE", "keyword": "LIKE", "type": 1, "flags": 3, "position": 267 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 271 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'AB%'", "value": "AB%", "keyword": null, "type": 7, "flags": 1, "position": 272 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 277 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 279 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 285 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VIEW", "value": "VIEW", "keyword": "VIEW", "type": 1, "flags": 1, "position": 286 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 290 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "V4", "value": "V4", "keyword": null, "type": 0, "flags": 0, "position": 291 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 293 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 294 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 296 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 297 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 303 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COL1", "value": "COL1", "keyword": null, "type": 0, "flags": 0, "position": 304 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 308 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 313 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 317 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "V3", "value": "V3", "keyword": null, "type": 0, "flags": 0, "position": 318 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 320 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 321 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 326 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COL1", "value": "COL1", "keyword": null, "type": 0, "flags": 0, "position": 327 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 331 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIKE", "value": "LIKE", "keyword": "LIKE", "type": 1, "flags": 3, "position": 332 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 336 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'%YZ'", "value": "%YZ", "keyword": null, "type": 7, "flags": 1, "position": 337 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 342 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 371 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 375 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CASCADED", "value": "CASCADED", "keyword": "CASCADED", "type": 1, "flags": 1, "position": 376 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 384 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHECK", "value": "CHECK", "keyword": "CHECK", "type": 1, "flags": 3, "position": 385 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 390 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OPTION", "value": "OPTION", "keyword": "OPTION", "type": 1, "flags": 3, "position": 391 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 397 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 399 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 405 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VIEW", "value": "VIEW", "keyword": "VIEW", "type": 1, "flags": 1, "position": 406 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 410 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "V5", "value": "V5", "keyword": null, "type": 0, "flags": 0, "position": 411 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 413 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 414 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 416 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 417 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 423 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COL1", "value": "COL1", "keyword": null, "type": 0, "flags": 0, "position": 424 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 428 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 433 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 437 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "V4", "value": "V4", "keyword": null, "type": 0, "flags": 0, "position": 438 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 440 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 441 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 446 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COL1", "value": "COL1", "keyword": null, "type": 0, "flags": 0, "position": 447 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 451 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIKE", "value": "LIKE", "keyword": "LIKE", "type": 1, "flags": 3, "position": 452 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 456 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'ABC%'", "value": "ABC%", "keyword": null, "type": 7, "flags": 1, "position": 457 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 463 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 152, "idx": 152 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "T1", "column": null, "expr": "T1", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "COL1", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "CHAR", "parameters": [ "10" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 151 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateViewWithQuotes.in000066400000000000000000000003231455302707200246460ustar00rootroot00000000000000CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `test_view` AS select `email_content`.`content_id` AS `content_id`, `email_content`.`brand_id` AS `brand_id` from `email_content`;sql-parser-5.9.0/tests/data/parser/parseCreateViewWithQuotes.out000066400000000000000000000463121455302707200250570ustar00rootroot00000000000000{ "query": "CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost`\nSQL SECURITY DEFINER VIEW `test_view` AS\nselect `email_content`.`content_id` AS `content_id`,\n`email_content`.`brand_id` AS `brand_id` from `email_content`;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost`\nSQL SECURITY DEFINER VIEW `test_view` AS\nselect `email_content`.`content_id` AS `content_id`,\n`email_content`.`brand_id` AS `brand_id` from `email_content`;", "len": 211, "last": 211, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALGORITHM", "value": "ALGORITHM", "keyword": "ALGORITHM", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNDEFINED", "value": "UNDEFINED", "keyword": "UNDEFINED", "type": 1, "flags": 1, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFINER", "value": "DEFINER", "keyword": "DEFINER", "type": 1, "flags": 1, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`root`@`localhost`", "value": "root@localhost", "keyword": null, "type": 8, "flags": 4, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SQL SECURITY", "value": "SQL SECURITY", "keyword": "SQL SECURITY", "type": 1, "flags": 7, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFINER", "value": "DEFINER", "keyword": "DEFINER", "type": 1, "flags": 1, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VIEW", "value": "VIEW", "keyword": "VIEW", "type": 1, "flags": 1, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`test_view`", "value": "test_view", "keyword": null, "type": 8, "flags": 2, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`email_content`", "value": "email_content", "keyword": null, "type": 8, "flags": 2, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`content_id`", "value": "content_id", "keyword": null, "type": 8, "flags": 2, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 134 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`content_id`", "value": "content_id", "keyword": null, "type": 8, "flags": 2, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`email_content`", "value": "email_content", "keyword": null, "type": 8, "flags": 2, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`brand_id`", "value": "brand_id", "keyword": null, "type": 8, "flags": 2, "position": 165 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 175 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`brand_id`", "value": "brand_id", "keyword": null, "type": 8, "flags": 2, "position": 179 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 189 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "from", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 190 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 194 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`email_content`", "value": "email_content", "keyword": null, "type": 8, "flags": 2, "position": 195 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 210 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 44, "idx": 44 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test_view", "column": null, "expr": "`test_view`", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": null, "select": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "email_content", "column": "content_id", "expr": "`email_content`.`content_id`", "alias": "content_id", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "email_content", "column": "brand_id", "expr": "`email_content`.`brand_id`", "alias": "brand_id", "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "email_content", "column": null, "expr": "`email_content`", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 20, "last": 41 }, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": { "name": "ALGORITHM", "equals": true, "expr": "UNDEFINED", "value": "UNDEFINED" }, "4": { "name": "DEFINER", "equals": true, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "root@localhost", "expr": "`root`@`localhost`", "alias": null, "function": null, "subquery": null }, "value": "`root`@`localhost`" }, "5": { "name": "SQL SECURITY", "equals": false, "expr": "DEFINER", "value": "DEFINER" }, "6": "VIEW" } }, "first": 0, "last": 42 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateViewWithUnion.in000066400000000000000000000002551455302707200244620ustar00rootroot00000000000000CREATE VIEW `employees_view` AS SELECT * FROM `employees` WHERE `employees`.`gender` = 'M' UNION SELECT * FROM `employees` WHERE `employees`.`gender` = 'F';sql-parser-5.9.0/tests/data/parser/parseCreateViewWithUnion.out000066400000000000000000000503311455302707200246630ustar00rootroot00000000000000{ "query": "CREATE VIEW `employees_view` AS\nSELECT *\nFROM\n `employees`\nWHERE\n `employees`.`gender` = 'M'\nUNION\nSELECT *\nFROM\n `employees`\nWHERE\n `employees`.`gender` = 'F';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE VIEW `employees_view` AS\nSELECT *\nFROM\n `employees`\nWHERE\n `employees`.`gender` = 'M'\nUNION\nSELECT *\nFROM\n `employees`\nWHERE\n `employees`.`gender` = 'F';", "len": 173, "last": 173, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VIEW", "value": "VIEW", "keyword": "VIEW", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`employees_view`", "value": "employees_view", "keyword": null, "type": 8, "flags": 2, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`employees`", "value": "employees", "keyword": null, "type": 8, "flags": 2, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`employees`", "value": "employees", "keyword": null, "type": 8, "flags": 2, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`gender`", "value": "gender", "keyword": null, "type": 8, "flags": 2, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'M'", "value": "M", "keyword": null, "type": 7, "flags": 1, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNION", "value": "UNION", "keyword": "UNION", "type": 1, "flags": 3, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`employees`", "value": "employees", "keyword": null, "type": 8, "flags": 2, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`employees`", "value": "employees", "keyword": null, "type": 8, "flags": 2, "position": 146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`gender`", "value": "gender", "keyword": null, "type": 8, "flags": 2, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 166 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 168 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'F'", "value": "F", "keyword": null, "type": 7, "flags": 1, "position": 169 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 172 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 47, "idx": 47 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "employees_view", "column": null, "expr": "`employees_view`", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": null, "select": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "employees", "column": null, "expr": "`employees`", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "employees", "gender", "M" ], "isOperator": false, "expr": "`employees`.`gender` = 'M'" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 8, "last": 25 }, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [ { "@type": "@28" }, { "@type": "@29" }, { "@type": "@30" }, { "@type": "@31" }, { "@type": "@32" }, { "@type": "@33" }, { "@type": "@34" }, { "@type": "@35" }, { "@type": "@36" }, { "@type": "@37" }, { "@type": "@38" }, { "@type": "@39" }, { "@type": "@40" }, { "@type": "@41" }, { "@type": "@42" }, { "@type": "@43" }, { "@type": "@44" }, { "@type": "@45" }, { "@type": "@46" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "VIEW" } }, "first": 0, "last": 45 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseCreateViewWithWrongSyntax.in000066400000000000000000000000461455302707200256730ustar00rootroot00000000000000CREATE VIEW abc AS SELECT a, b, FROM asql-parser-5.9.0/tests/data/parser/parseCreateViewWithWrongSyntax.out000066400000000000000000000244571455302707200261100ustar00rootroot00000000000000{ "query": "CREATE VIEW abc AS SELECT a, b, FROM a", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE VIEW abc AS SELECT a, b, FROM a", "len": 38, "last": 38, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VIEW", "value": "VIEW", "keyword": "VIEW", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "abc", "value": "abc", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 20, "idx": 20 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "abc", "column": null, "expr": "abc", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": null, "select": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "a", "expr": "a", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "b", "expr": "b", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "a", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 8, "last": 18 }, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "VIEW" } }, "first": 0, "last": 19 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "An expression was expected.", { "@type": "@18" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseCreateViewWithoutQuotes.in000066400000000000000000000003171455302707200254010ustar00rootroot00000000000000CREATE ALGORITHM=UNDEFINED DEFINER=root@localhost SQL SECURITY DEFINER VIEW `test_view` AS select `email_content`.`content_id` AS `content_id`, `email_content`.`brand_id` AS `brand_id` from `email_content`;sql-parser-5.9.0/tests/data/parser/parseCreateViewWithoutQuotes.out000066400000000000000000000467241455302707200256160ustar00rootroot00000000000000{ "query": "CREATE ALGORITHM=UNDEFINED DEFINER=root@localhost\nSQL SECURITY DEFINER VIEW `test_view` AS\nselect `email_content`.`content_id` AS `content_id`,\n`email_content`.`brand_id` AS `brand_id` from `email_content`;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE ALGORITHM=UNDEFINED DEFINER=root@localhost\nSQL SECURITY DEFINER VIEW `test_view` AS\nselect `email_content`.`content_id` AS `content_id`,\n`email_content`.`brand_id` AS `brand_id` from `email_content`;", "len": 207, "last": 207, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALGORITHM", "value": "ALGORITHM", "keyword": "ALGORITHM", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNDEFINED", "value": "UNDEFINED", "keyword": "UNDEFINED", "type": 1, "flags": 1, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFINER", "value": "DEFINER", "keyword": "DEFINER", "type": 1, "flags": 1, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "root", "value": "root", "keyword": null, "type": 0, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@localhost", "value": "localhost", "keyword": null, "type": 8, "flags": 1, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SQL SECURITY", "value": "SQL SECURITY", "keyword": "SQL SECURITY", "type": 1, "flags": 7, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFINER", "value": "DEFINER", "keyword": "DEFINER", "type": 1, "flags": 1, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VIEW", "value": "VIEW", "keyword": "VIEW", "type": 1, "flags": 1, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`test_view`", "value": "test_view", "keyword": null, "type": 8, "flags": 2, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`email_content`", "value": "email_content", "keyword": null, "type": 8, "flags": 2, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`content_id`", "value": "content_id", "keyword": null, "type": 8, "flags": 2, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`content_id`", "value": "content_id", "keyword": null, "type": 8, "flags": 2, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`email_content`", "value": "email_content", "keyword": null, "type": 8, "flags": 2, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`brand_id`", "value": "brand_id", "keyword": null, "type": 8, "flags": 2, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 171 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 172 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`brand_id`", "value": "brand_id", "keyword": null, "type": 8, "flags": 2, "position": 175 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 185 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "from", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 186 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 190 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`email_content`", "value": "email_content", "keyword": null, "type": 8, "flags": 2, "position": 191 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 206 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 45, "idx": 45 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test_view", "column": null, "expr": "`test_view`", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": null, "select": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "email_content", "column": "content_id", "expr": "`email_content`.`content_id`", "alias": "content_id", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "email_content", "column": "brand_id", "expr": "`email_content`.`brand_id`", "alias": "brand_id", "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "email_content", "column": null, "expr": "`email_content`", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 21, "last": 42 }, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": { "name": "ALGORITHM", "equals": true, "expr": "UNDEFINED", "value": "UNDEFINED" }, "4": { "name": "DEFINER", "equals": true, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "root", "expr": "root@localhost", "alias": null, "function": null, "subquery": null }, "value": "root@localhost" }, "5": { "name": "SQL SECURITY", "equals": false, "expr": "DEFINER", "value": "DEFINER" }, "6": "VIEW" } }, "first": 0, "last": 43 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseDelete.in000066400000000000000000000001721455302707200217570ustar00rootroot00000000000000DELETE LOW_PRIORITY /* */ FROM `test`.users WHERE `id`<3 AND (username="Dan" or username="Paul") ORDER BY id ;sql-parser-5.9.0/tests/data/parser/parseDelete.out000066400000000000000000000370301455302707200221630ustar00rootroot00000000000000{ "query": "DELETE LOW_PRIORITY\n/* */\nFROM\n `test`.users\nWHERE\n `id`<3 AND (username=\"Dan\" or username=\"Paul\")\nORDER BY\n id\n;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE LOW_PRIORITY\n/* */\nFROM\n `test`.users\nWHERE\n `id`<3 AND (username=\"Dan\" or username=\"Paul\")\nORDER BY\n id\n;", "len": 122, "last": 122, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOW_PRIORITY", "value": "LOW_PRIORITY", "keyword": "LOW_PRIORITY", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* */", "value": "/* */", "keyword": null, "type": 4, "flags": 2, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`test`", "value": "test", "keyword": null, "type": 8, "flags": 2, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "users", "value": "users", "keyword": null, "type": 0, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`id`", "value": "id", "keyword": null, "type": 8, "flags": 2, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "<", "value": "<", "keyword": null, "type": 2, "flags": 2, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Dan\"", "value": "Dan", "keyword": null, "type": 7, "flags": 2, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "or", "value": "OR", "keyword": "OR", "type": 1, "flags": 3, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Paul\"", "value": "Paul", "keyword": null, "type": 7, "flags": 2, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ORDER BY", "value": "ORDER BY", "keyword": "ORDER BY", "type": 1, "flags": 7, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 38, "idx": 38 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "test", "table": "users", "column": null, "expr": "`test`.users", "alias": null, "function": null, "subquery": null } ], "join": null, "using": null, "columns": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "id" ], "isOperator": false, "expr": "`id`<3" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "username", "Dan" ], "isOperator": false, "expr": "(username=\"Dan\"" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "OR" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "username", "Paul" ], "isOperator": false, "expr": "username=\"Paul\")" } ], "order": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\OrderKeyword", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "id", "expr": "id", "alias": null, "function": null, "subquery": null }, "type": "ASC" } ], "limit": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "LOW_PRIORITY" } }, "first": 0, "last": 35 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseDelete10.in000066400000000000000000000001071455302707200221160ustar00rootroot00000000000000DELETE QUICK table1, table2.* FROM table1 as t1, table2 as t2 WHERE 1=1sql-parser-5.9.0/tests/data/parser/parseDelete10.out000066400000000000000000000315711455302707200223300ustar00rootroot00000000000000{ "query": "DELETE QUICK table1, table2.* FROM table1 as t1, table2 as t2 WHERE 1=1", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE QUICK table1, table2.* FROM table1 as t1, table2 as t2 WHERE 1=1", "len": 71, "last": 71, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "QUICK", "value": "QUICK", "keyword": "QUICK", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t2", "value": "t2", "keyword": null, "type": 0, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 32, "idx": 32 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": "t1", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table2", "column": null, "expr": "table2", "alias": "t2", "function": null, "subquery": null } ], "join": null, "using": null, "columns": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "table1", "expr": "table1", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table2", "column": null, "expr": "table2.*", "alias": null, "function": null, "subquery": null } ], "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": false, "expr": "1=1" } ], "order": null, "limit": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "QUICK" } }, "first": 0, "last": 30 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseDelete11.in000066400000000000000000000001211455302707200221130ustar00rootroot00000000000000DELETE QUICK FROM table1, table2.* USING table1 AS `t1`, table2 AS `t2` WHERE 1=1sql-parser-5.9.0/tests/data/parser/parseDelete11.out000066400000000000000000000327661455302707200223400ustar00rootroot00000000000000{ "query": "DELETE QUICK FROM table1, table2.* USING table1 AS `t1`, table2 AS `t2` WHERE 1=1", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE QUICK FROM table1, table2.* USING table1 AS `t1`, table2 AS `t2` WHERE 1=1", "len": 81, "last": 81, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "QUICK", "value": "QUICK", "keyword": "QUICK", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`t1`", "value": "t1", "keyword": null, "type": 8, "flags": 2, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`t2`", "value": "t2", "keyword": null, "type": 8, "flags": 2, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 34, "idx": 34 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "table2", "table": null, "column": null, "expr": "table2.*", "alias": null, "function": null, "subquery": null } ], "join": null, "using": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "table1", "expr": "table1", "alias": "t1", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "table2", "expr": "table2", "alias": "t2", "function": null, "subquery": null } ], "columns": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": false, "expr": "1=1" } ], "order": null, "limit": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "QUICK" } }, "first": 0, "last": 32 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseDelete12.in000066400000000000000000000000561455302707200221230ustar00rootroot00000000000000DELETE QUICK FROM table1 WHERE 1=1 LIMIT 0, 25sql-parser-5.9.0/tests/data/parser/parseDelete12.out000066400000000000000000000207441455302707200223320ustar00rootroot00000000000000{ "query": "DELETE QUICK FROM table1 WHERE 1=1 LIMIT 0, 25", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE QUICK FROM table1 WHERE 1=1 LIMIT 0, 25", "len": 46, "last": 46, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "QUICK", "value": "QUICK", "keyword": "QUICK", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIMIT", "value": "LIMIT", "keyword": "LIMIT", "type": 1, "flags": 3, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "25", "value": 25, "keyword": null, "type": 6, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 21, "idx": 21 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": null, "function": null, "subquery": null } ], "join": null, "using": null, "columns": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": false, "expr": "1=1" } ], "order": null, "limit": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Limit", "offset": 0, "rowCount": 25 }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "QUICK" } }, "first": 0, "last": 19 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseDelete13.in000066400000000000000000000000451455302707200221220ustar00rootroot00000000000000DELETE FROM emp x WHERE x.salary = 20sql-parser-5.9.0/tests/data/parser/parseDelete13.out000066400000000000000000000167111455302707200223320ustar00rootroot00000000000000{ "query": "DELETE FROM emp x WHERE x.salary = 20", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE FROM emp x WHERE x.salary = 20", "len": 37, "last": 37, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "emp", "value": "emp", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "x", "value": "x", "keyword": "x", "type": 0, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "x", "value": "x", "keyword": "x", "type": 0, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "salary", "value": "salary", "keyword": null, "type": 0, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "20", "value": 20, "keyword": null, "type": 6, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 18, "idx": 18 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "emp", "column": null, "expr": "emp", "alias": "x", "function": null, "subquery": null } ], "join": null, "using": null, "columns": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "x", "salary" ], "isOperator": false, "expr": "x.salary = 20" } ], "order": null, "limit": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 16 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseDelete2.in000066400000000000000000000000251455302707200220360ustar00rootroot00000000000000DELETE IGNORE FROM t1sql-parser-5.9.0/tests/data/parser/parseDelete2.out000066400000000000000000000102431455302707200222420ustar00rootroot00000000000000{ "query": "DELETE IGNORE FROM t1", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE IGNORE FROM t1", "len": 21, "last": 21, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IGNORE", "value": "IGNORE", "keyword": "IGNORE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 8, "idx": 8 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t1", "column": null, "expr": "t1", "alias": null, "function": null, "subquery": null } ], "join": null, "using": null, "columns": null, "partition": null, "where": null, "order": null, "limit": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "IGNORE" } }, "first": 0, "last": 6 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseDelete3.in000066400000000000000000000000371455302707200220420ustar00rootroot00000000000000DELETE IGNORE FROM t1 WHERE 1=1sql-parser-5.9.0/tests/data/parser/parseDelete3.out000066400000000000000000000143311455302707200222450ustar00rootroot00000000000000{ "query": "DELETE IGNORE FROM t1 WHERE 1=1", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE IGNORE FROM t1 WHERE 1=1", "len": 31, "last": 31, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IGNORE", "value": "IGNORE", "keyword": "IGNORE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 14, "idx": 14 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t1", "column": null, "expr": "t1", "alias": null, "function": null, "subquery": null } ], "join": null, "using": null, "columns": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": false, "expr": "1=1" } ], "order": null, "limit": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "IGNORE" } }, "first": 0, "last": 12 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseDelete4.in000066400000000000000000000000531455302707200220410ustar00rootroot00000000000000DELETE IGNORE FROM t1 WHERE 1=1 ORDER BY idsql-parser-5.9.0/tests/data/parser/parseDelete4.out000066400000000000000000000200701455302707200222430ustar00rootroot00000000000000{ "query": "DELETE IGNORE FROM t1 WHERE 1=1 ORDER BY id", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE IGNORE FROM t1 WHERE 1=1 ORDER BY id", "len": 43, "last": 43, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IGNORE", "value": "IGNORE", "keyword": "IGNORE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ORDER BY", "value": "ORDER BY", "keyword": "ORDER BY", "type": 1, "flags": 7, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 18, "idx": 18 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t1", "column": null, "expr": "t1", "alias": null, "function": null, "subquery": null } ], "join": null, "using": null, "columns": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": false, "expr": "1=1" } ], "order": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\OrderKeyword", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "id", "expr": "id", "alias": null, "function": null, "subquery": null }, "type": "ASC" } ], "limit": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "IGNORE" } }, "first": 0, "last": 16 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseDelete5.in000066400000000000000000000000661455302707200220460ustar00rootroot00000000000000DELETE IGNORE FROM t1 WHERE 1=1 ORDER BY id LIMIT 0,25sql-parser-5.9.0/tests/data/parser/parseDelete5.out000066400000000000000000000240021455302707200222430ustar00rootroot00000000000000{ "query": "DELETE IGNORE FROM t1 WHERE 1=1 ORDER BY id LIMIT 0,25", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE IGNORE FROM t1 WHERE 1=1 ORDER BY id LIMIT 0,25", "len": 54, "last": 54, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IGNORE", "value": "IGNORE", "keyword": "IGNORE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ORDER BY", "value": "ORDER BY", "keyword": "ORDER BY", "type": 1, "flags": 7, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIMIT", "value": "LIMIT", "keyword": "LIMIT", "type": 1, "flags": 3, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "25", "value": 25, "keyword": null, "type": 6, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 24, "idx": 24 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t1", "column": null, "expr": "t1", "alias": null, "function": null, "subquery": null } ], "join": null, "using": null, "columns": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": false, "expr": "1=1" } ], "order": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\OrderKeyword", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "id", "expr": "id", "alias": null, "function": null, "subquery": null }, "type": "ASC" } ], "limit": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Limit", "offset": 0, "rowCount": 25 }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "IGNORE" } }, "first": 0, "last": 22 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseDelete6.in000066400000000000000000000000411455302707200220400ustar00rootroot00000000000000DELETE IGNORE FROM t1 ORDER BY idsql-parser-5.9.0/tests/data/parser/parseDelete6.out000066400000000000000000000140051455302707200222460ustar00rootroot00000000000000{ "query": "DELETE IGNORE FROM t1 ORDER BY id", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE IGNORE FROM t1 ORDER BY id", "len": 33, "last": 33, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IGNORE", "value": "IGNORE", "keyword": "IGNORE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ORDER BY", "value": "ORDER BY", "keyword": "ORDER BY", "type": 1, "flags": 7, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 12, "idx": 12 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t1", "column": null, "expr": "t1", "alias": null, "function": null, "subquery": null } ], "join": null, "using": null, "columns": null, "partition": null, "where": null, "order": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\OrderKeyword", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "id", "expr": "id", "alias": null, "function": null, "subquery": null }, "type": "ASC" } ], "limit": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "IGNORE" } }, "first": 0, "last": 10 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseDelete7.in000066400000000000000000000000541455302707200220450ustar00rootroot00000000000000DELETE IGNORE FROM t1 ORDER BY id LIMIT 0,25sql-parser-5.9.0/tests/data/parser/parseDelete7.out000066400000000000000000000177171455302707200222640ustar00rootroot00000000000000{ "query": "DELETE IGNORE FROM t1 ORDER BY id LIMIT 0,25", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE IGNORE FROM t1 ORDER BY id LIMIT 0,25", "len": 44, "last": 44, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IGNORE", "value": "IGNORE", "keyword": "IGNORE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ORDER BY", "value": "ORDER BY", "keyword": "ORDER BY", "type": 1, "flags": 7, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIMIT", "value": "LIMIT", "keyword": "LIMIT", "type": 1, "flags": 3, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "25", "value": 25, "keyword": null, "type": 6, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 18, "idx": 18 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t1", "column": null, "expr": "t1", "alias": null, "function": null, "subquery": null } ], "join": null, "using": null, "columns": null, "partition": null, "where": null, "order": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\OrderKeyword", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "id", "expr": "id", "alias": null, "function": null, "subquery": null }, "type": "ASC" } ], "limit": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Limit", "offset": 0, "rowCount": 25 }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "IGNORE" } }, "first": 0, "last": 16 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseDelete8.in000066400000000000000000000000411455302707200220420ustar00rootroot00000000000000DELETE IGNORE FROM t1 LIMIT 0, 25sql-parser-5.9.0/tests/data/parser/parseDelete8.out000066400000000000000000000146371455302707200222630ustar00rootroot00000000000000{ "query": "DELETE IGNORE FROM t1 LIMIT 0, 25", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE IGNORE FROM t1 LIMIT 0, 25", "len": 33, "last": 33, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IGNORE", "value": "IGNORE", "keyword": "IGNORE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIMIT", "value": "LIMIT", "keyword": "LIMIT", "type": 1, "flags": 3, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "25", "value": 25, "keyword": null, "type": 6, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 15, "idx": 15 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t1", "column": null, "expr": "t1", "alias": null, "function": null, "subquery": null } ], "join": null, "using": null, "columns": null, "partition": null, "where": null, "order": null, "limit": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Limit", "offset": 0, "rowCount": 25 }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "IGNORE" } }, "first": 0, "last": 13 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseDelete9.in000066400000000000000000000000751455302707200220520ustar00rootroot00000000000000DELETE QUICK table1, table2.* FROM table1 as t1, table2 as t2sql-parser-5.9.0/tests/data/parser/parseDelete9.out000066400000000000000000000255061455302707200222610ustar00rootroot00000000000000{ "query": "DELETE QUICK table1, table2.* FROM table1 as t1, table2 as t2", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE QUICK table1, table2.* FROM table1 as t1, table2 as t2", "len": 61, "last": 61, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "QUICK", "value": "QUICK", "keyword": "QUICK", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t2", "value": "t2", "keyword": null, "type": 0, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 26, "idx": 26 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": "t1", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table2", "column": null, "expr": "table2", "alias": "t2", "function": null, "subquery": null } ], "join": null, "using": null, "columns": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "table1", "expr": "table1", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table2", "column": null, "expr": "table2.*", "alias": null, "function": null, "subquery": null } ], "partition": null, "where": null, "order": null, "limit": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "QUICK" } }, "first": 0, "last": 24 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseDeleteErr1.in000066400000000000000000000000431455302707200225060ustar00rootroot00000000000000DELETE QUICK USING table1, table2.*sql-parser-5.9.0/tests/data/parser/parseDeleteErr1.out000066400000000000000000000131321455302707200227120ustar00rootroot00000000000000{ "query": "DELETE QUICK USING table1, table2.*", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE QUICK USING table1, table2.*", "len": 35, "last": 35, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "QUICK", "value": "QUICK", "keyword": "QUICK", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 13, "idx": 14 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": null, "join": null, "using": null, "columns": null, "partition": null, "where": null, "order": null, "limit": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "QUICK" } }, "first": 0, "last": 3 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword.", { "@type": "@6" }, 0 ], [ "Unrecognized statement type.", { "@type": "@6" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseDeleteErr10.in000066400000000000000000000001011455302707200225610ustar00rootroot00000000000000DELETE QUICK FROM table1, table2 USING t1 as t,t2 as tt ASC a =1;sql-parser-5.9.0/tests/data/parser/parseDeleteErr10.out000066400000000000000000000322751455302707200230030ustar00rootroot00000000000000{ "query": "DELETE QUICK FROM table1, table2 USING t1 as t,t2 as tt ASC a =1;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE QUICK FROM table1, table2 USING t1 as t,t2 as tt ASC a =1;", "len": 65, "last": 65, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "QUICK", "value": "QUICK", "keyword": "QUICK", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t", "value": "t", "keyword": null, "type": 0, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t2", "value": "t2", "keyword": null, "type": 0, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tt", "value": "tt", "keyword": null, "type": 0, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ASC", "value": "ASC", "keyword": "ASC", "type": 1, "flags": 3, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 33, "idx": 33 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table2", "column": null, "expr": "table2", "alias": null, "function": null, "subquery": null } ], "join": null, "using": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "t1", "expr": "t1", "alias": "t", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "t2", "expr": "t2", "alias": "tt", "function": null, "subquery": null } ], "columns": null, "partition": null, "where": null, "order": null, "limit": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "QUICK" } }, "first": 0, "last": 24 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword.", { "@type": "@27" }, 0 ], [ "Unrecognized statement type.", { "@type": "@27" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseDeleteErr11.in000066400000000000000000000000501455302707200225650ustar00rootroot00000000000000DELETE QUICK FROM table1 WHERE a = 1 ASCsql-parser-5.9.0/tests/data/parser/parseDeleteErr11.out000066400000000000000000000174721455302707200230060ustar00rootroot00000000000000{ "query": "DELETE QUICK FROM table1 WHERE a = 1 ASC", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE QUICK FROM table1 WHERE a = 1 ASC", "len": 40, "last": 40, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "QUICK", "value": "QUICK", "keyword": "QUICK", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ASC", "value": "ASC", "keyword": "ASC", "type": 1, "flags": 3, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 18, "idx": 19 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": null, "function": null, "subquery": null } ], "join": null, "using": null, "columns": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "a" ], "isOperator": false, "expr": "a = 1" } ], "order": null, "limit": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "QUICK" } }, "first": 0, "last": 15 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword.", { "@type": "@18" }, 0 ], [ "Unrecognized statement type.", { "@type": "@18" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseDeleteErr12.in000066400000000000000000000001121455302707200225650ustar00rootroot00000000000000DELETE QUICK FROM table1, table2 USING t1 as t,t2 as tt as ttt WHEE a =1; sql-parser-5.9.0/tests/data/parser/parseDeleteErr12.out000066400000000000000000000370171455302707200230040ustar00rootroot00000000000000{ "query": "DELETE QUICK FROM table1, table2 USING t1 as t,t2 as tt as ttt WHEE a =1;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE QUICK FROM table1, table2 USING t1 as t,t2 as tt as ttt WHEE a =1;\n", "len": 74, "last": 74, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "QUICK", "value": "QUICK", "keyword": "QUICK", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t", "value": "t", "keyword": null, "type": 0, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t2", "value": "t2", "keyword": null, "type": 0, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tt", "value": "tt", "keyword": null, "type": 0, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ttt", "value": "ttt", "keyword": null, "type": 0, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHEE", "value": "WHEE", "keyword": null, "type": 0, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 38, "idx": 38 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table2", "column": null, "expr": "table2", "alias": null, "function": null, "subquery": null } ], "join": null, "using": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "t1", "expr": "t1", "alias": "t", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "t2", "expr": "t2", "alias": "tt", "function": null, "subquery": null } ], "columns": null, "partition": null, "where": null, "order": null, "limit": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "QUICK" } }, "first": 0, "last": 26 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "An alias was previously found.", { "@type": "@29" }, 0 ], [ "An alias was expected.", { "@type": "@28" }, 0 ], [ "Unexpected token.", { "@type": "@29" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@29" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@31" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@33" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@36" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseDeleteErr2.in000066400000000000000000000001141455302707200225060ustar00rootroot00000000000000DELETE QUICK table1, table2.* USING table1 AS `t1`, table2 AS `t2` WHERE 1=1sql-parser-5.9.0/tests/data/parser/parseDeleteErr2.out000066400000000000000000000301771455302707200227230ustar00rootroot00000000000000{ "query": "DELETE QUICK table1, table2.* USING table1 AS `t1`, table2 AS `t2` WHERE 1=1", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE QUICK table1, table2.* USING table1 AS `t1`, table2 AS `t2` WHERE 1=1", "len": 76, "last": 76, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "QUICK", "value": "QUICK", "keyword": "QUICK", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`t1`", "value": "t1", "keyword": null, "type": 8, "flags": 2, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`t2`", "value": "t2", "keyword": null, "type": 8, "flags": 2, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 32, "idx": 33 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": null, "join": null, "using": null, "columns": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "table1", "expr": "table1", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table2", "column": null, "expr": "table2.*", "alias": null, "function": null, "subquery": null } ], "partition": null, "where": null, "order": null, "limit": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "QUICK" } }, "first": 0, "last": 10 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword.", { "@type": "@13" }, 0 ], [ "Unrecognized statement type.", { "@type": "@13" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseDeleteErr3.in000066400000000000000000000001051455302707200225070ustar00rootroot00000000000000DELETE QUICK table1, table2.* table1 AS `t1` table2 AS `t2` WHERE 1=1sql-parser-5.9.0/tests/data/parser/parseDeleteErr3.out000066400000000000000000000270701455302707200227220ustar00rootroot00000000000000{ "query": "DELETE QUICK table1, table2.* table1 AS `t1` table2 AS `t2` WHERE 1=1", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE QUICK table1, table2.* table1 AS `t1` table2 AS `t2` WHERE 1=1", "len": 69, "last": 69, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "QUICK", "value": "QUICK", "keyword": "QUICK", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`t1`", "value": "t1", "keyword": null, "type": 8, "flags": 2, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`t2`", "value": "t2", "keyword": null, "type": 8, "flags": 2, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 29, "idx": 30 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": null, "join": null, "using": null, "columns": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "table1", "expr": "table1", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table2", "column": null, "expr": "table2.* table1", "alias": "t1", "function": null, "subquery": null } ], "partition": null, "where": null, "order": null, "limit": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "QUICK" } }, "first": 0, "last": 16 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "An alias was previously found.", { "@type": "@19" }, 0 ], [ "Unexpected token.", { "@type": "@19" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@19" }, 0 ], [ "Unrecognized statement type.", { "@type": "@21" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseDeleteErr4.in000066400000000000000000000001401455302707200225070ustar00rootroot00000000000000DELETE QUICK FROM table1, table2.* table1 AS `t1` USING table2 AS `t2` WHERE 1=1 ORDER BY id ASCsql-parser-5.9.0/tests/data/parser/parseDeleteErr4.out000066400000000000000000000357471455302707200227350ustar00rootroot00000000000000{ "query": "DELETE QUICK FROM table1, table2.* table1 AS `t1` USING table2 AS `t2` WHERE 1=1 ORDER BY id ASC", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE QUICK FROM table1, table2.* table1 AS `t1` USING table2 AS `t2` WHERE 1=1 ORDER BY id ASC", "len": 96, "last": 96, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "QUICK", "value": "QUICK", "keyword": "QUICK", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`t1`", "value": "t1", "keyword": null, "type": 8, "flags": 2, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`t2`", "value": "t2", "keyword": null, "type": 8, "flags": 2, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ORDER BY", "value": "ORDER BY", "keyword": "ORDER BY", "type": 1, "flags": 7, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ASC", "value": "ASC", "keyword": "ASC", "type": 1, "flags": 3, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 39, "idx": 40 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "table2", "table": null, "column": null, "expr": "table2.* table1", "alias": "t1", "function": null, "subquery": null } ], "join": null, "using": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "table2", "expr": "table2", "alias": "t2", "function": null, "subquery": null } ], "columns": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": false, "expr": "1=1" } ], "order": null, "limit": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "QUICK" } }, "first": 0, "last": 32 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "This type of clause is not valid in Multi-table queries.", { "@type": "@35" }, 0 ], [ "Unrecognized statement type.", { "@type": "@35" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseDeleteErr5.in000066400000000000000000000000741455302707200225160ustar00rootroot00000000000000DELETE QUICK FROM table1 WHERE 1=1 ORDER BY id ASC WHERE 1=1sql-parser-5.9.0/tests/data/parser/parseDeleteErr5.out000066400000000000000000000254471455302707200227320ustar00rootroot00000000000000{ "query": "DELETE QUICK FROM table1 WHERE 1=1 ORDER BY id ASC WHERE 1=1", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE QUICK FROM table1 WHERE 1=1 ORDER BY id ASC WHERE 1=1", "len": 60, "last": 60, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "QUICK", "value": "QUICK", "keyword": "QUICK", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ORDER BY", "value": "ORDER BY", "keyword": "ORDER BY", "type": 1, "flags": 7, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ASC", "value": "ASC", "keyword": "ASC", "type": 1, "flags": 3, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 26, "idx": 27 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": null, "function": null, "subquery": null } ], "join": null, "using": null, "columns": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": false, "expr": "1=1" } ], "order": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\OrderKeyword", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "id", "expr": "id", "alias": null, "function": null, "subquery": null }, "type": "ASC" } ], "limit": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "QUICK" } }, "first": 0, "last": 19 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword.", { "@type": "@22" }, 0 ], [ "Unrecognized statement type.", { "@type": "@22" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseDeleteErr6.in000066400000000000000000000001341455302707200225140ustar00rootroot00000000000000DELETE QUICK FROM table1, table2.* table1 AS `t1` USING table2 AS `t2` WHERE 1=1 LIMIT 0, 25sql-parser-5.9.0/tests/data/parser/parseDeleteErr6.out000066400000000000000000000363731455302707200227330ustar00rootroot00000000000000{ "query": "DELETE QUICK FROM table1, table2.* table1 AS `t1` USING table2 AS `t2` WHERE 1=1 LIMIT 0, 25", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE QUICK FROM table1, table2.* table1 AS `t1` USING table2 AS `t2` WHERE 1=1 LIMIT 0, 25", "len": 92, "last": 92, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "QUICK", "value": "QUICK", "keyword": "QUICK", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`t1`", "value": "t1", "keyword": null, "type": 8, "flags": 2, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`t2`", "value": "t2", "keyword": null, "type": 8, "flags": 2, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIMIT", "value": "LIMIT", "keyword": "LIMIT", "type": 1, "flags": 3, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "25", "value": 25, "keyword": null, "type": 6, "flags": 0, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 40, "idx": 41 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "table2", "table": null, "column": null, "expr": "table2.* table1", "alias": "t1", "function": null, "subquery": null } ], "join": null, "using": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "table2", "expr": "table2", "alias": "t2", "function": null, "subquery": null } ], "columns": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": false, "expr": "1=1" } ], "order": null, "limit": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "QUICK" } }, "first": 0, "last": 32 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "This type of clause is not valid in Multi-table queries.", { "@type": "@35" }, 0 ], [ "Unrecognized statement type.", { "@type": "@35" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseDeleteErr7.in000066400000000000000000000000721455302707200225160ustar00rootroot00000000000000DELETE QUICK FROM table1 WHERE a = 1 ORDER BY id ASC WHEREsql-parser-5.9.0/tests/data/parser/parseDeleteErr7.out000066400000000000000000000244121455302707200227230ustar00rootroot00000000000000{ "query": "DELETE QUICK FROM table1 WHERE a = 1 ORDER BY id ASC WHERE", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE QUICK FROM table1 WHERE a = 1 ORDER BY id ASC WHERE", "len": 58, "last": 58, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "QUICK", "value": "QUICK", "keyword": "QUICK", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ORDER BY", "value": "ORDER BY", "keyword": "ORDER BY", "type": 1, "flags": 7, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ASC", "value": "ASC", "keyword": "ASC", "type": 1, "flags": 3, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 24, "idx": 25 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": null, "function": null, "subquery": null } ], "join": null, "using": null, "columns": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "a" ], "isOperator": false, "expr": "a = 1" } ], "order": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\OrderKeyword", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "id", "expr": "id", "alias": null, "function": null, "subquery": null }, "type": "ASC" } ], "limit": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "QUICK" } }, "first": 0, "last": 21 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword.", { "@type": "@24" }, 0 ], [ "Unrecognized statement type.", { "@type": "@24" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseDeleteErr8.in000066400000000000000000000000341455302707200225150ustar00rootroot00000000000000DELETE QUICK FROM table1 ASCsql-parser-5.9.0/tests/data/parser/parseDeleteErr8.out000066400000000000000000000121531455302707200227230ustar00rootroot00000000000000{ "query": "DELETE QUICK FROM table1 ASC", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE QUICK FROM table1 ASC", "len": 28, "last": 28, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "QUICK", "value": "QUICK", "keyword": "QUICK", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ASC", "value": "ASC", "keyword": "ASC", "type": 1, "flags": 3, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 11 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": null, "function": null, "subquery": null } ], "join": null, "using": null, "columns": null, "partition": null, "where": null, "order": null, "limit": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "QUICK" } }, "first": 0, "last": 7 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword.", { "@type": "@10" }, 0 ], [ "Unrecognized statement type.", { "@type": "@10" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseDeleteErr9.in000066400000000000000000000001021455302707200225120ustar00rootroot00000000000000DELETE QUICK FROM table1, table2 USING t1 as t,t2 as tt WHEE a =1;sql-parser-5.9.0/tests/data/parser/parseDeleteErr9.out000066400000000000000000000333071455302707200227300ustar00rootroot00000000000000{ "query": "DELETE QUICK FROM table1, table2 USING t1 as t,t2 as tt WHEE a =1;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE QUICK FROM table1, table2 USING t1 as t,t2 as tt WHEE a =1;", "len": 66, "last": 66, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "QUICK", "value": "QUICK", "keyword": "QUICK", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t", "value": "t", "keyword": null, "type": 0, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t2", "value": "t2", "keyword": null, "type": 0, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tt", "value": "tt", "keyword": null, "type": 0, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHEE", "value": "WHEE", "keyword": null, "type": 0, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 33, "idx": 33 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table2", "column": null, "expr": "table2", "alias": null, "function": null, "subquery": null } ], "join": null, "using": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "t1", "expr": "t1", "alias": "t", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "t2", "expr": "t2", "alias": "tt", "function": null, "subquery": null } ], "columns": null, "partition": null, "where": null, "order": null, "limit": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": "QUICK" } }, "first": 0, "last": 24 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "An alias was previously found.", { "@type": "@27" }, 0 ], [ "Unexpected token.", { "@type": "@27" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@27" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@29" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@32" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseDeleteJoin.in000066400000000000000000000001231455302707200225730ustar00rootroot00000000000000DELETE t1, t2 FROM t1 INNER JOIN t2 INNER JOIN t3 WHERE t1.id=t2.id AND t2.id=t3.idsql-parser-5.9.0/tests/data/parser/parseDeleteJoin.out000066400000000000000000000411731455302707200230060ustar00rootroot00000000000000{ "query": "DELETE t1, t2 FROM t1 INNER JOIN t2 INNER JOIN t3 WHERE t1.id=t2.id AND t2.id=t3.id", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DELETE t1, t2 FROM t1 INNER JOIN t2 INNER JOIN t3 WHERE t1.id=t2.id AND t2.id=t3.id", "len": 83, "last": 83, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t2", "value": "t2", "keyword": null, "type": 0, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INNER JOIN", "value": "INNER JOIN", "keyword": "INNER JOIN", "type": 1, "flags": 7, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t2", "value": "t2", "keyword": null, "type": 0, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INNER JOIN", "value": "INNER JOIN", "keyword": "INNER JOIN", "type": 1, "flags": 7, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t3", "value": "t3", "keyword": null, "type": 0, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t2", "value": "t2", "keyword": null, "type": 0, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t2", "value": "t2", "keyword": null, "type": 0, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t3", "value": "t3", "keyword": null, "type": 0, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 39, "idx": 39 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DeleteStatement", "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t1", "column": null, "expr": "t1", "alias": null, "function": null, "subquery": null } ], "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "INNER", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t2", "column": null, "expr": "t2", "alias": null, "function": null, "subquery": null }, "on": null, "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "INNER", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t3", "column": null, "expr": "t3", "alias": null, "function": null, "subquery": null }, "on": null, "using": null } ], "using": null, "columns": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "t1", "expr": "t1", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "t2", "expr": "t2", "alias": null, "function": null, "subquery": null } ], "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "t1", "id", "t2" ], "isOperator": false, "expr": "t1.id=t2.id" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "t2", "id", "t3" ], "isOperator": false, "expr": "t2.id=t3.id" } ], "order": null, "limit": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 37 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseDelimiter.in000066400000000000000000000001221455302707200224660ustar00rootroot00000000000000SELECT * FROM foo; DELIMITER $$ SELECT * FROM bar$$ DELIMITER ; SELECT * FROM baz;sql-parser-5.9.0/tests/data/parser/parseDelimiter.out000066400000000000000000000402051455302707200226750ustar00rootroot00000000000000{ "query": "SELECT * FROM foo;\nDELIMITER $$\nSELECT * FROM bar$$\nDELIMITER ;\nSELECT * FROM baz;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM foo;\nDELIMITER $$\nSELECT * FROM bar$$\nDELIMITER ;\nSELECT * FROM baz;", "len": 82, "last": 82, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bar", "value": "bar", "keyword": null, "type": 0, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "baz", "value": "baz", "keyword": null, "type": 0, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 35, "idx": 35 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "foo", "column": null, "expr": "foo", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "bar", "column": null, "expr": "bar", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 13, "last": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "baz", "column": null, "expr": "baz", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 26, "last": 32 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseDrop.in000066400000000000000000000000431455302707200214560ustar00rootroot00000000000000DROP USER IF EXISTS 'testtest'@'%';sql-parser-5.9.0/tests/data/parser/parseDrop.out000066400000000000000000000106001455302707200216570ustar00rootroot00000000000000{ "query": "DROP USER IF EXISTS 'testtest'@'%';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DROP USER IF EXISTS 'testtest'@'%';", "len": 35, "last": 35, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DROP", "value": "DROP", "keyword": "DROP", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USER", "value": "USER", "keyword": "USER", "type": 1, "flags": 33, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF EXISTS", "value": "IF EXISTS", "keyword": "IF EXISTS", "type": 1, "flags": 7, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'testtest'@'%'", "value": "testtest@%", "keyword": null, "type": 8, "flags": 4, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 9, "idx": 9 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DropStatement", "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "testtest@%", "column": null, "expr": "'testtest'@'%'", "alias": null, "function": null, "subquery": null } ], "table": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "USER", "3": "IF EXISTS" } }, "first": 0, "last": 6 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseDrop2.in000066400000000000000000000000311455302707200215350ustar00rootroot00000000000000DROP USER 'testtest'@'%';sql-parser-5.9.0/tests/data/parser/parseDrop2.out000066400000000000000000000073211455302707200217470ustar00rootroot00000000000000{ "query": "DROP USER 'testtest'@'%';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DROP USER 'testtest'@'%';", "len": 25, "last": 25, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DROP", "value": "DROP", "keyword": "DROP", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USER", "value": "USER", "keyword": "USER", "type": 1, "flags": 33, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'testtest'@'%'", "value": "testtest@%", "keyword": null, "type": 8, "flags": 4, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 7, "idx": 7 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\DropStatement", "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "testtest@%", "column": null, "expr": "'testtest'@'%'", "alias": null, "function": null, "subquery": null } ], "table": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "USER" } }, "first": 0, "last": 4 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseExplain.in000066400000000000000000000000331455302707200221510ustar00rootroot00000000000000EXPLAIN SELECT * FROM test;sql-parser-5.9.0/tests/data/parser/parseExplain.out000066400000000000000000000202571455302707200223640ustar00rootroot00000000000000{ "query": "EXPLAIN SELECT * FROM test;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "EXPLAIN SELECT * FROM test;", "len": 27, "last": 27, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EXPLAIN", "value": "EXPLAIN", "keyword": "EXPLAIN", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 11, "idx": 11 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement", "bodyParser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@4" }, { "@type": "@5" }, { "@type": "@6" }, { "@type": "@7" }, { "@type": "@8" }, { "@type": "@9" }, { "@type": "@10" }, { "@type": "@11" }, { "@type": "@12" } ], "count": 9, "idx": 9 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test", "column": null, "expr": "test", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 6 } ], "brackets": 0, "strict": false, "errors": [] }, "statementAlias": "EXPLAIN", "connectionId": null, "explainedDatabase": null, "explainedTable": null, "explainedColumn": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 10 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseExplain1.in000066400000000000000000000000341455302707200222330ustar00rootroot00000000000000ANALYZE SELECT * FROM orderssql-parser-5.9.0/tests/data/parser/parseExplain1.out000066400000000000000000000174371455302707200224530ustar00rootroot00000000000000{ "query": "ANALYZE SELECT * FROM orders", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ANALYZE SELECT * FROM orders", "len": 28, "last": 28, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ANALYZE", "value": "ANALYZE", "keyword": "ANALYZE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "orders", "value": "orders", "keyword": null, "type": 0, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 10 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement", "bodyParser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@4" }, { "@type": "@5" }, { "@type": "@6" }, { "@type": "@7" }, { "@type": "@8" }, { "@type": "@9" }, { "@type": "@10" }, { "@type": "@11" } ], "count": 8, "idx": 8 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "orders", "column": null, "expr": "orders", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 6 } ], "brackets": 0, "strict": false, "errors": [] }, "statementAlias": "ANALYZE", "connectionId": null, "explainedDatabase": null, "explainedTable": null, "explainedColumn": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 9 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseExplain10.in000066400000000000000000000001001455302707200223050ustar00rootroot00000000000000DESC REPLACE INTO test VALUES (1, 'Old', '2014-08-20 18:47:00');sql-parser-5.9.0/tests/data/parser/parseExplain10.out000066400000000000000000000305071455302707200225240ustar00rootroot00000000000000{ "query": "DESC REPLACE INTO test VALUES (1, 'Old', '2014-08-20 18:47:00');", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DESC REPLACE INTO test VALUES (1, 'Old', '2014-08-20 18:47:00');", "len": 64, "last": 64, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DESC", "value": "DESC", "keyword": "DESC", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REPLACE", "value": "REPLACE", "keyword": "REPLACE", "type": 1, "flags": 35, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Old'", "value": "Old", "keyword": null, "type": 7, "flags": 1, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'2014-08-20 18:47:00'", "value": "2014-08-20 18:47:00", "keyword": null, "type": 7, "flags": 1, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 21, "idx": 21 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement", "bodyParser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@4" }, { "@type": "@5" }, { "@type": "@6" }, { "@type": "@7" }, { "@type": "@8" }, { "@type": "@9" }, { "@type": "@10" }, { "@type": "@11" }, { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" } ], "count": 19, "idx": 19 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ReplaceStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test", "column": null, "expr": "test", "alias": null, "function": null, "subquery": null }, "columns": null, "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "1", "'Old'", "'2014-08-20 18:47:00'" ], "values": [ "1", "Old", "2014-08-20 18:47:00" ] } ], "set": null, "select": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 16 } ], "brackets": 0, "strict": false, "errors": [] }, "statementAlias": "DESC", "connectionId": null, "explainedDatabase": null, "explainedTable": null, "explainedColumn": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 20 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseExplain11.in000066400000000000000000000001041455302707200223120ustar00rootroot00000000000000ANALYSE REPLACE INTO test VALUES (1, 'Old', '2014-08-20 18:47:00'); sql-parser-5.9.0/tests/data/parser/parseExplain11.out000066400000000000000000000171111455302707200225210ustar00rootroot00000000000000{ "query": "ANALYSE REPLACE INTO test VALUES (1, 'Old', '2014-08-20 18:47:00');\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ANALYSE REPLACE INTO test VALUES (1, 'Old', '2014-08-20 18:47:00');\n", "len": 68, "last": 68, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ANALYSE", "value": "ANALYSE", "keyword": "ANALYSE", "type": 1, "flags": 1, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REPLACE", "value": "REPLACE", "keyword": "REPLACE", "type": 1, "flags": 35, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Old'", "value": "Old", "keyword": null, "type": 7, "flags": 1, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'2014-08-20 18:47:00'", "value": "2014-08-20 18:47:00", "keyword": null, "type": 7, "flags": 1, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 22, "idx": 22 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unrecognized statement type.", { "@type": "@2" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseExplain12.in000066400000000000000000000001171455302707200223170ustar00rootroot00000000000000EXPLAIN FORMAT=json REPLACE INTO test VALUES (1, 'Old', '2014-08-20 18:47:00');sql-parser-5.9.0/tests/data/parser/parseExplain12.out000066400000000000000000000335001455302707200225220ustar00rootroot00000000000000{ "query": "EXPLAIN FORMAT=json REPLACE INTO test VALUES (1, 'Old', '2014-08-20 18:47:00');", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "EXPLAIN FORMAT=json REPLACE INTO test VALUES (1, 'Old', '2014-08-20 18:47:00');", "len": 79, "last": 79, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EXPLAIN", "value": "EXPLAIN", "keyword": "EXPLAIN", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FORMAT", "value": "FORMAT", "keyword": "FORMAT", "type": 1, "flags": 33, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "json", "value": "json", "keyword": "JSON", "type": 1, "flags": 9, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REPLACE", "value": "REPLACE", "keyword": "REPLACE", "type": 1, "flags": 35, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Old'", "value": "Old", "keyword": null, "type": 7, "flags": 1, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'2014-08-20 18:47:00'", "value": "2014-08-20 18:47:00", "keyword": null, "type": 7, "flags": 1, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 25, "idx": 25 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement", "bodyParser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@8" }, { "@type": "@9" }, { "@type": "@10" }, { "@type": "@11" }, { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" } ], "count": 19, "idx": 19 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ReplaceStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test", "column": null, "expr": "test", "alias": null, "function": null, "subquery": null }, "columns": null, "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "1", "'Old'", "'2014-08-20 18:47:00'" ], "values": [ "1", "Old", "2014-08-20 18:47:00" ] } ], "set": null, "select": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 16 } ], "brackets": 0, "strict": false, "errors": [] }, "statementAlias": "EXPLAIN", "connectionId": null, "explainedDatabase": null, "explainedTable": null, "explainedColumn": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "FORMAT", "equals": true, "expr": "json", "value": "json" } } }, "first": 0, "last": 24 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseExplain13.in000066400000000000000000000001201455302707200223120ustar00rootroot00000000000000DESCRIBE FORMAT=json REPLACE INTO test VALUES (1, 'Old', '2014-08-20 18:47:00');sql-parser-5.9.0/tests/data/parser/parseExplain13.out000066400000000000000000000335061455302707200225310ustar00rootroot00000000000000{ "query": "DESCRIBE FORMAT=json REPLACE INTO test VALUES (1, 'Old', '2014-08-20 18:47:00');", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DESCRIBE FORMAT=json REPLACE INTO test VALUES (1, 'Old', '2014-08-20 18:47:00');", "len": 80, "last": 80, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DESCRIBE", "value": "DESCRIBE", "keyword": "DESCRIBE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FORMAT", "value": "FORMAT", "keyword": "FORMAT", "type": 1, "flags": 33, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "json", "value": "json", "keyword": "JSON", "type": 1, "flags": 9, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REPLACE", "value": "REPLACE", "keyword": "REPLACE", "type": 1, "flags": 35, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Old'", "value": "Old", "keyword": null, "type": 7, "flags": 1, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'2014-08-20 18:47:00'", "value": "2014-08-20 18:47:00", "keyword": null, "type": 7, "flags": 1, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 25, "idx": 25 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement", "bodyParser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@8" }, { "@type": "@9" }, { "@type": "@10" }, { "@type": "@11" }, { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" } ], "count": 19, "idx": 19 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ReplaceStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test", "column": null, "expr": "test", "alias": null, "function": null, "subquery": null }, "columns": null, "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "1", "'Old'", "'2014-08-20 18:47:00'" ], "values": [ "1", "Old", "2014-08-20 18:47:00" ] } ], "set": null, "select": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 16 } ], "brackets": 0, "strict": false, "errors": [] }, "statementAlias": "DESCRIBE", "connectionId": null, "explainedDatabase": null, "explainedTable": null, "explainedColumn": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "FORMAT", "equals": true, "expr": "json", "value": "json" } } }, "first": 0, "last": 24 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseExplain14.in000066400000000000000000000000511455302707200223160ustar00rootroot00000000000000DESC TABLE `fo` ORDER BY `fo`.`uuid` ASC;sql-parser-5.9.0/tests/data/parser/parseExplain14.out000066400000000000000000000211701455302707200225240ustar00rootroot00000000000000{ "query": "DESC TABLE `fo` ORDER BY `fo`.`uuid` ASC;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DESC TABLE `fo` ORDER BY `fo`.`uuid` ASC;", "len": 41, "last": 41, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DESC", "value": "DESC", "keyword": "DESC", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`fo`", "value": "fo", "keyword": null, "type": 8, "flags": 2, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ORDER BY", "value": "ORDER BY", "keyword": "ORDER BY", "type": 1, "flags": 7, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`fo`", "value": "fo", "keyword": null, "type": 8, "flags": 2, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`uuid`", "value": "uuid", "keyword": null, "type": 8, "flags": 2, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ASC", "value": "ASC", "keyword": "ASC", "type": 1, "flags": 3, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 15, "idx": 15 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement", "bodyParser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@4" }, { "@type": "@5" }, { "@type": "@6" }, { "@type": "@7" }, { "@type": "@8" }, { "@type": "@9" }, { "@type": "@10" }, { "@type": "@11" }, { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" } ], "count": 13, "idx": 13 }, "statements": [], "brackets": 0, "strict": false, "errors": [ { "@type": "PhpMyAdmin\\SqlParser\\Exceptions\\ParserException", "token": { "@type": "@4" }, "message": "Unrecognized statement type.", "code": 0, "file": "/src/Parser.php", "line": 627 } ] }, "statementAlias": "DESC", "connectionId": null, "explainedDatabase": null, "explainedTable": null, "explainedColumn": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 2 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unrecognized statement type.", { "@type": "@4" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@6" }, 0 ], [ "Unrecognized statement type.", { "@type": "@8" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseExplain2.in000066400000000000000000000000161455302707200222340ustar00rootroot00000000000000DESC tablenamesql-parser-5.9.0/tests/data/parser/parseExplain2.out000066400000000000000000000045551455302707200224510ustar00rootroot00000000000000{ "query": "DESC tablename", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DESC tablename", "len": 14, "last": 14, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DESC", "value": "DESC", "keyword": "DESC", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tablename", "value": "tablename", "keyword": null, "type": 0, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 4, "idx": 4 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement", "bodyParser": null, "statementAlias": "DESC", "connectionId": null, "explainedDatabase": null, "explainedTable": "tablename", "explainedColumn": null, "options": null, "first": 0, "last": 2 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseExplain3.in000066400000000000000000000003061455302707200222370ustar00rootroot00000000000000EXPLAIN ANALYZE SELECT first_name, last_name, SUM(amount) AS total FROM staff INNER JOIN payment ON staff.staff_id = payment.staff_id AND payment_date LIKE '2005-08%' GROUP BY first_name, last_name;sql-parser-5.9.0/tests/data/parser/parseExplain3.out000066400000000000000000001001621455302707200224410ustar00rootroot00000000000000{ "query": "EXPLAIN ANALYZE SELECT first_name, last_name, SUM(amount) AS total FROM staff INNER JOIN payment ON staff.staff_id = payment.staff_id AND payment_date LIKE '2005-08%' GROUP BY first_name, last_name;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "EXPLAIN ANALYZE SELECT first_name, last_name, SUM(amount) AS total FROM staff INNER JOIN payment ON staff.staff_id = payment.staff_id AND payment_date LIKE '2005-08%' GROUP BY first_name, last_name;", "len": 198, "last": 198, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EXPLAIN", "value": "EXPLAIN", "keyword": "EXPLAIN", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ANALYZE", "value": "ANALYZE", "keyword": "ANALYZE", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "first_name", "value": "first_name", "keyword": null, "type": 0, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "last_name", "value": "last_name", "keyword": null, "type": 0, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUM", "value": "SUM", "keyword": "SUM", "type": 1, "flags": 33, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "amount", "value": "amount", "keyword": null, "type": 0, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "total", "value": "total", "keyword": null, "type": 0, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "staff", "value": "staff", "keyword": null, "type": 0, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INNER JOIN", "value": "INNER JOIN", "keyword": "INNER JOIN", "type": 1, "flags": 7, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "payment", "value": "payment", "keyword": null, "type": 0, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "staff", "value": "staff", "keyword": null, "type": 0, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "staff_id", "value": "staff_id", "keyword": null, "type": 0, "flags": 0, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "payment", "value": "payment", "keyword": null, "type": 0, "flags": 0, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "staff_id", "value": "staff_id", "keyword": null, "type": 0, "flags": 0, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 134 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 137 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "payment_date", "value": "payment_date", "keyword": null, "type": 0, "flags": 0, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 150 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIKE", "value": "LIKE", "keyword": "LIKE", "type": 1, "flags": 3, "position": 151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'2005-08%'", "value": "2005-08%", "keyword": null, "type": 7, "flags": 1, "position": 156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 166 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "GROUP BY", "value": "GROUP BY", "keyword": "GROUP BY", "type": 1, "flags": 7, "position": 167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 175 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "first_name", "value": "first_name", "keyword": null, "type": 0, "flags": 0, "position": 176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 186 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 187 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "last_name", "value": "last_name", "keyword": null, "type": 0, "flags": 0, "position": 188 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 197 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 57, "idx": 57 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement", "bodyParser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@6" }, { "@type": "@7" }, { "@type": "@8" }, { "@type": "@9" }, { "@type": "@10" }, { "@type": "@11" }, { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" }, { "@type": "@29" }, { "@type": "@30" }, { "@type": "@31" }, { "@type": "@32" }, { "@type": "@33" }, { "@type": "@34" }, { "@type": "@35" }, { "@type": "@36" }, { "@type": "@37" }, { "@type": "@38" }, { "@type": "@39" }, { "@type": "@40" }, { "@type": "@41" }, { "@type": "@42" }, { "@type": "@43" }, { "@type": "@44" }, { "@type": "@45" }, { "@type": "@46" }, { "@type": "@47" }, { "@type": "@48" }, { "@type": "@49" }, { "@type": "@50" }, { "@type": "@51" }, { "@type": "@52" }, { "@type": "@53" }, { "@type": "@54" }, { "@type": "@55" }, { "@type": "@56" }, { "@type": "@57" }, { "@type": "@58" } ], "count": 53, "idx": 53 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "first_name", "expr": "first_name", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "last_name", "expr": "last_name", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "SUM(amount)", "alias": "total", "function": "SUM", "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "staff", "column": null, "expr": "staff", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\GroupKeyword", "type": null, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "first_name", "expr": "first_name", "alias": null, "function": null, "subquery": null } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\GroupKeyword", "type": null, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "last_name", "expr": "last_name", "alias": null, "function": null, "subquery": null } } ], "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "INNER", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "payment", "column": null, "expr": "payment", "alias": null, "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "staff", "staff_id", "payment" ], "isOperator": false, "expr": "staff.staff_id = payment.staff_id" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "payment_date", "2005-08%" ], "isOperator": false, "expr": "payment_date LIKE '2005-08%'" } ], "using": null } ], "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 50 } ], "brackets": 0, "strict": false, "errors": [] }, "statementAlias": "EXPLAIN ANALYZE", "connectionId": null, "explainedDatabase": null, "explainedTable": null, "explainedColumn": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 56 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseExplain4.in000066400000000000000000000000441455302707200222370ustar00rootroot00000000000000EXPLAIN FORMAT=TREE SELECT * FROM dbsql-parser-5.9.0/tests/data/parser/parseExplain4.out000066400000000000000000000223551455302707200224510ustar00rootroot00000000000000{ "query": "EXPLAIN FORMAT=TREE SELECT * FROM db", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "EXPLAIN FORMAT=TREE SELECT * FROM db", "len": 36, "last": 36, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EXPLAIN", "value": "EXPLAIN", "keyword": "EXPLAIN", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FORMAT", "value": "FORMAT", "keyword": "FORMAT", "type": 1, "flags": 33, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TREE", "value": "TREE", "keyword": null, "type": 0, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "db", "value": "db", "keyword": null, "type": 0, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 14, "idx": 14 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement", "bodyParser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@8" }, { "@type": "@9" }, { "@type": "@10" }, { "@type": "@11" }, { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" } ], "count": 8, "idx": 8 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "db", "column": null, "expr": "db", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 6 } ], "brackets": 0, "strict": false, "errors": [] }, "statementAlias": "EXPLAIN", "connectionId": null, "explainedDatabase": null, "explainedTable": null, "explainedColumn": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "FORMAT", "equals": true, "expr": "TREE", "value": "TREE" } } }, "first": 0, "last": 13 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseExplain5.in000066400000000000000000000000331455302707200222360ustar00rootroot00000000000000DESC phpmyadmin.pma__users;sql-parser-5.9.0/tests/data/parser/parseExplain5.out000066400000000000000000000064541455302707200224540ustar00rootroot00000000000000{ "query": "DESC phpmyadmin.pma__users;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DESC phpmyadmin.pma__users;", "len": 27, "last": 27, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DESC", "value": "DESC", "keyword": "DESC", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "phpmyadmin", "value": "phpmyadmin", "keyword": null, "type": 0, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pma__users", "value": "pma__users", "keyword": null, "type": 0, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 7, "idx": 7 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement", "bodyParser": null, "statementAlias": "DESC", "connectionId": null, "explainedDatabase": "phpmyadmin", "explainedTable": "pma__users", "explainedColumn": null, "options": null, "first": 0, "last": 4 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseExplain6.in000066400000000000000000000000241455302707200222370ustar00rootroot00000000000000DESCRIBE Shop 'N%'; sql-parser-5.9.0/tests/data/parser/parseExplain6.out000066400000000000000000000070651455302707200224540ustar00rootroot00000000000000{ "query": "DESCRIBE Shop 'N%';\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DESCRIBE Shop 'N%';\n", "len": 20, "last": 20, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DESCRIBE", "value": "DESCRIBE", "keyword": "DESCRIBE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "Shop", "value": "Shop", "keyword": null, "type": 0, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'N%'", "value": "N%", "keyword": null, "type": 7, "flags": 1, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 8, "idx": 8 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement", "bodyParser": null, "statementAlias": "DESCRIBE", "connectionId": null, "explainedDatabase": null, "explainedTable": "Shop", "explainedColumn": "N%", "options": null, "first": 0, "last": 4 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseExplain7.in000066400000000000000000000000251455302707200222410ustar00rootroot00000000000000DESCRIBE Shop 'Name';sql-parser-5.9.0/tests/data/parser/parseExplain7.out000066400000000000000000000064151455302707200224530ustar00rootroot00000000000000{ "query": "DESCRIBE Shop 'Name';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DESCRIBE Shop 'Name';", "len": 21, "last": 21, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DESCRIBE", "value": "DESCRIBE", "keyword": "DESCRIBE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "Shop", "value": "Shop", "keyword": null, "type": 0, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Name'", "value": "Name", "keyword": null, "type": 7, "flags": 1, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 7, "idx": 7 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement", "bodyParser": null, "statementAlias": "DESCRIBE", "connectionId": null, "explainedDatabase": null, "explainedTable": "Shop", "explainedColumn": "Name", "options": null, "first": 0, "last": 4 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseExplain8.in000066400000000000000000000000231455302707200222400ustar00rootroot00000000000000DESCRIBE Shop N__e;sql-parser-5.9.0/tests/data/parser/parseExplain8.out000066400000000000000000000064071455302707200224550ustar00rootroot00000000000000{ "query": "DESCRIBE Shop N__e;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DESCRIBE Shop N__e;", "len": 19, "last": 19, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DESCRIBE", "value": "DESCRIBE", "keyword": "DESCRIBE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "Shop", "value": "Shop", "keyword": null, "type": 0, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "N__e", "value": "N__e", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 7, "idx": 7 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement", "bodyParser": null, "statementAlias": "DESCRIBE", "connectionId": null, "explainedDatabase": null, "explainedTable": "Shop", "explainedColumn": "N__e", "options": null, "first": 0, "last": 4 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseExplain9.in000066400000000000000000000000261455302707200222440ustar00rootroot00000000000000DESCRIBE tablename 581sql-parser-5.9.0/tests/data/parser/parseExplain9.out000066400000000000000000000057501455302707200224560ustar00rootroot00000000000000{ "query": "DESCRIBE tablename 581", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "DESCRIBE tablename 581", "len": 22, "last": 22, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DESCRIBE", "value": "DESCRIBE", "keyword": "DESCRIBE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tablename", "value": "tablename", "keyword": null, "type": 0, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "581", "value": 581, "keyword": null, "type": 6, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 6, "idx": 6 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement", "bodyParser": null, "statementAlias": "DESCRIBE", "connectionId": null, "explainedDatabase": null, "explainedTable": "tablename", "explainedColumn": 581, "options": null, "first": 0, "last": 4 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseExplainErr.in000066400000000000000000000000241455302707200226220ustar00rootroot00000000000000EXPLAIN FOR SELECT *sql-parser-5.9.0/tests/data/parser/parseExplainErr.out000066400000000000000000000120501455302707200230250ustar00rootroot00000000000000{ "query": "EXPLAIN FOR SELECT *", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "EXPLAIN FOR SELECT *", "len": 20, "last": 20, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EXPLAIN", "value": "EXPLAIN", "keyword": "EXPLAIN", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FOR", "value": "FOR", "keyword": "FOR", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 1, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 8, "idx": 8 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement", "bodyParser": null, "statementAlias": "EXPLAIN", "connectionId": null, "explainedDatabase": null, "explainedTable": null, "explainedColumn": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 2 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 3, "last": 6 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected token.", { "@type": "@4" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseExplainErr1.in000066400000000000000000000000231455302707200227020ustar00rootroot00000000000000ANALYZE SELECT FROMsql-parser-5.9.0/tests/data/parser/parseExplainErr1.out000066400000000000000000000150071455302707200231130ustar00rootroot00000000000000{ "query": "ANALYZE SELECT FROM", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "ANALYZE SELECT FROM", "len": 19, "last": 19, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ANALYZE", "value": "ANALYZE", "keyword": "ANALYZE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 6, "idx": 7 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement", "bodyParser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@4" }, { "@type": "@5" }, { "@type": "@6" }, { "@type": "@7" } ], "count": 4, "idx": 4 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 2 } ], "brackets": 0, "strict": false, "errors": [ { "@type": "PhpMyAdmin\\SqlParser\\Exceptions\\ParserException", "token": { "@type": "@6" }, "message": "An expression was expected.", "code": 0, "file": "/src/Parser.php", "line": 627 }, { "@type": "PhpMyAdmin\\SqlParser\\Exceptions\\ParserException", "token": { "@type": "@7" }, "message": "An expression was expected.", "code": 0, "file": "/src/Parser.php", "line": 627 } ] }, "statementAlias": "ANALYZE", "connectionId": null, "explainedDatabase": null, "explainedTable": null, "explainedColumn": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 2 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "An expression was expected.", { "@type": "@6" }, 0 ], [ "An expression was expected.", { "@type": "@7" }, 0 ], [ "Unrecognized statement type.", { "@type": "@6" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseExplainErr2.in000066400000000000000000000000321455302707200227030ustar00rootroot00000000000000EXPLAIN ANALYZE FROM TABLEsql-parser-5.9.0/tests/data/parser/parseExplainErr2.out000066400000000000000000000100441455302707200231100ustar00rootroot00000000000000{ "query": "EXPLAIN ANALYZE FROM TABLE", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "EXPLAIN ANALYZE FROM TABLE", "len": 26, "last": 26, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EXPLAIN", "value": "EXPLAIN", "keyword": "EXPLAIN", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ANALYZE", "value": "ANALYZE", "keyword": "ANALYZE", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 8, "idx": 9 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement", "bodyParser": null, "statementAlias": "EXPLAIN ANALYZE", "connectionId": null, "explainedDatabase": null, "explainedTable": null, "explainedColumn": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 4 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected token.", { "@type": "@6" }, 0 ], [ "Unrecognized statement type.", { "@type": "@8" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseExplainErr3.in000066400000000000000000000000101455302707200227000ustar00rootroot00000000000000EXPLAIN sql-parser-5.9.0/tests/data/parser/parseExplainErr3.out000066400000000000000000000043201455302707200231110ustar00rootroot00000000000000{ "query": "EXPLAIN ", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "EXPLAIN ", "len": 8, "last": 8, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EXPLAIN", "value": "EXPLAIN", "keyword": "EXPLAIN", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 3, "idx": 3 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement", "bodyParser": null, "statementAlias": "EXPLAIN", "connectionId": null, "explainedDatabase": null, "explainedTable": null, "explainedColumn": null, "options": null, "first": 0, "last": 1 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Expected a table name.", { "@type": "@3" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseInsert.in000066400000000000000000000002601455302707200220170ustar00rootroot00000000000000INSERT LOW_PRIORITY INTO users(`id`, `username`, `password`) VALUES (1, "Dan", "5d41402abc4b2a76b9719d911017c592"), (2, "Paul", "7d793037a0760186574b0282f2f435e7");sql-parser-5.9.0/tests/data/parser/parseInsert.out000066400000000000000000000375661455302707200222430ustar00rootroot00000000000000{ "query": "INSERT LOW_PRIORITY\nINTO\n users(`id`, `username`, `password`)\nVALUES\n (1, \"Dan\", \"5d41402abc4b2a76b9719d911017c592\"),\n (2, \"Paul\", \"7d793037a0760186574b0282f2f435e7\");", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "INSERT LOW_PRIORITY\nINTO\n users(`id`, `username`, `password`)\nVALUES\n (1, \"Dan\", \"5d41402abc4b2a76b9719d911017c592\"),\n (2, \"Paul\", \"7d793037a0760186574b0282f2f435e7\");", "len": 176, "last": 176, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOW_PRIORITY", "value": "LOW_PRIORITY", "keyword": "LOW_PRIORITY", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "users", "value": "users", "keyword": null, "type": 0, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`id`", "value": "id", "keyword": null, "type": 8, "flags": 2, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`username`", "value": "username", "keyword": null, "type": 8, "flags": 2, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`password`", "value": "password", "keyword": null, "type": 8, "flags": 2, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Dan\"", "value": "Dan", "keyword": null, "type": 7, "flags": 2, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"5d41402abc4b2a76b9719d911017c592\"", "value": "5d41402abc4b2a76b9719d911017c592", "keyword": null, "type": 7, "flags": 2, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Paul\"", "value": "Paul", "keyword": null, "type": 7, "flags": 2, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"7d793037a0760186574b0282f2f435e7\"", "value": "7d793037a0760186574b0282f2f435e7", "keyword": null, "type": 7, "flags": 2, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 175 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 41, "idx": 41 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "users", "column": null, "expr": "users", "alias": null, "function": null, "subquery": null }, "columns": [ "id", "username", "password" ], "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "1", "\"Dan\"", "\"5d41402abc4b2a76b9719d911017c592\"" ], "values": [ "1", "Dan", "5d41402abc4b2a76b9719d911017c592" ] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "2", "\"Paul\"", "\"7d793037a0760186574b0282f2f435e7\"" ], "values": [ "2", "Paul", "7d793037a0760186574b0282f2f435e7" ] } ], "set": null, "select": null, "with": null, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "LOW_PRIORITY" } }, "first": 0, "last": 38 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseInsertErr.in000066400000000000000000000000161455302707200224670ustar00rootroot00000000000000INSERT SELECT sql-parser-5.9.0/tests/data/parser/parseInsertErr.out000066400000000000000000000075361455302707200227060ustar00rootroot00000000000000{ "query": "INSERT SELECT\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "INSERT SELECT\n", "len": 14, "last": 14, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 5, "idx": 5 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": null, "values": null, "set": null, "select": null, "with": null, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 1 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 2, "last": 3 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword.", { "@type": "@4" }, 0 ], [ "An expression was expected.", { "@type": "@6" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseInsertErr2.in000066400000000000000000000000301455302707200225450ustar00rootroot00000000000000INSERT INTO x "string" sql-parser-5.9.0/tests/data/parser/parseInsertErr2.out000066400000000000000000000117741455302707200227670ustar00rootroot00000000000000{ "query": "INSERT INTO x \"string\"\n\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "INSERT INTO x \"string\"\n\n", "len": 24, "last": 24, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "x", "value": "x", "keyword": "X", "type": 1, "flags": 33, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"string\"", "value": "string", "keyword": null, "type": 7, "flags": 2, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 9, "idx": 9 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "x", "column": null, "expr": "x", "alias": null, "function": null, "subquery": null }, "columns": null, "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": null, "set": null, "select": null, "with": null, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 5 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected token.", { "@type": "@8" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@8" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseInsertFunction.in000066400000000000000000000000771455302707200235330ustar00rootroot00000000000000INSERT INTO labels(`label`) VALUES (concat('A', ' ', 'label'));sql-parser-5.9.0/tests/data/parser/parseInsertFunction.out000066400000000000000000000236541455302707200237420ustar00rootroot00000000000000{ "query": "INSERT INTO labels(`label`)\nVALUES (concat('A', ' ', 'label'));", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "INSERT INTO labels(`label`)\nVALUES (concat('A', ' ', 'label'));", "len": 63, "last": 63, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "labels", "value": "labels", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`label`", "value": "label", "keyword": null, "type": 8, "flags": 2, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "concat", "value": "concat", "keyword": "CONCAT", "type": 1, "flags": 33, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'A'", "value": "A", "keyword": null, "type": 7, "flags": 1, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "' '", "value": " ", "keyword": null, "type": 7, "flags": 1, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'label'", "value": "label", "keyword": null, "type": 7, "flags": 1, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 25, "idx": 25 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "labels", "column": null, "expr": "labels", "alias": null, "function": null, "subquery": null }, "columns": [ "label" ], "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "concat('A', ' ', 'label')" ], "values": [ "concat(A, , label)" ] } ], "set": null, "select": null, "with": null, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 22 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseInsertIntoErr.in000066400000000000000000000000261455302707200233220ustar00rootroot00000000000000INSERT INTO x INSERT sql-parser-5.9.0/tests/data/parser/parseInsertIntoErr.out000066400000000000000000000125201455302707200235250ustar00rootroot00000000000000{ "query": "INSERT INTO x INSERT\n\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "INSERT INTO x INSERT\n\n", "len": 22, "last": 22, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "x", "value": "x", "keyword": "X", "type": 1, "flags": 33, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 9, "idx": 9 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "x", "column": null, "expr": "x", "alias": null, "function": null, "subquery": null }, "columns": null, "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": null, "set": null, "select": null, "with": null, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": null, "values": null, "set": null, "select": null, "with": null, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 6, "last": 7 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword.", { "@type": "@8" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseInsertIntoSet.in000066400000000000000000000000621455302707200233250ustar00rootroot00000000000000INSERT INTO aa SET = INET6_ATON('::ffff:8.8.8.8')sql-parser-5.9.0/tests/data/parser/parseInsertIntoSet.out000066400000000000000000000154221455302707200235340ustar00rootroot00000000000000{ "query": "INSERT INTO aa SET = INET6_ATON('::ffff:8.8.8.8')", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "INSERT INTO aa SET = INET6_ATON('::ffff:8.8.8.8')", "len": 50, "last": 50, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "aa", "value": "aa", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INET6_ATON", "value": "INET6_ATON", "keyword": "INET6_ATON", "type": 1, "flags": 33, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'::ffff:8.8.8.8'", "value": "::ffff:8.8.8.8", "keyword": null, "type": 7, "flags": 1, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 15, "idx": 15 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "aa", "column": null, "expr": "aa", "alias": null, "function": null, "subquery": null }, "columns": null, "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": null, "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "", "value": "INET6_ATON('::ffff:8.8.8.8')" } ], "select": null, "with": null, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 13 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseInsertOnDuplicateKey.in000066400000000000000000000001471455302707200246240ustar00rootroot00000000000000INSERT INTO `champs` (`id`,`val`) VALUES (412,'Thresh') ON DUPLICATE KEY UPDATE `id`=412,`val`='Thresh'sql-parser-5.9.0/tests/data/parser/parseInsertOnDuplicateKey.out000066400000000000000000000334421455302707200250310ustar00rootroot00000000000000{ "query": "INSERT INTO `champs` (`id`,`val`) VALUES (412,'Thresh')\nON DUPLICATE KEY UPDATE `id`=412,`val`='Thresh'", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "INSERT INTO `champs` (`id`,`val`) VALUES (412,'Thresh')\nON DUPLICATE KEY UPDATE `id`=412,`val`='Thresh'", "len": 103, "last": 103, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`champs`", "value": "champs", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`id`", "value": "id", "keyword": null, "type": 8, "flags": 2, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`val`", "value": "val", "keyword": null, "type": 8, "flags": 2, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "412", "value": 412, "keyword": null, "type": 6, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Thresh'", "value": "Thresh", "keyword": null, "type": 7, "flags": 1, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DUPLICATE", "value": "DUPLICATE", "keyword": "DUPLICATE", "type": 1, "flags": 1, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "KEY", "value": "KEY", "keyword": "KEY", "type": 1, "flags": 19, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UPDATE", "value": "UPDATE", "keyword": "UPDATE", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`id`", "value": "id", "keyword": null, "type": 8, "flags": 2, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "412", "value": 412, "keyword": null, "type": 6, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`val`", "value": "val", "keyword": null, "type": 8, "flags": 2, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Thresh'", "value": "Thresh", "keyword": null, "type": 7, "flags": 1, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 36, "idx": 36 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "champs", "column": null, "expr": "`champs`", "alias": null, "function": null, "subquery": null }, "columns": [ "id", "val" ], "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "412", "'Thresh'" ], "values": [ "412", "Thresh" ] } ], "set": null, "select": null, "with": null, "onDuplicateSet": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "`id`", "value": "412" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "`val`", "value": "'Thresh'" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 34 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseInsertOnDuplicateKeyErr.in000066400000000000000000000001401455302707200252660ustar00rootroot00000000000000INSERT INTO `champs` (`id`,`val`) VALUES (412,'Thresh') ON DUPLICATE KEY `id`=412,`val`='Thresh'sql-parser-5.9.0/tests/data/parser/parseInsertOnDuplicateKeyErr.out000066400000000000000000000331121455302707200254740ustar00rootroot00000000000000{ "query": "INSERT INTO `champs` (`id`,`val`) VALUES (412,'Thresh')\nON DUPLICATE KEY `id`=412,`val`='Thresh'", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "INSERT INTO `champs` (`id`,`val`) VALUES (412,'Thresh')\nON DUPLICATE KEY `id`=412,`val`='Thresh'", "len": 96, "last": 96, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`champs`", "value": "champs", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`id`", "value": "id", "keyword": null, "type": 8, "flags": 2, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`val`", "value": "val", "keyword": null, "type": 8, "flags": 2, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "412", "value": 412, "keyword": null, "type": 6, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Thresh'", "value": "Thresh", "keyword": null, "type": 7, "flags": 1, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DUPLICATE", "value": "DUPLICATE", "keyword": "DUPLICATE", "type": 1, "flags": 1, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "KEY", "value": "KEY", "keyword": "KEY", "type": 1, "flags": 19, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`id`", "value": "id", "keyword": null, "type": 8, "flags": 2, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "412", "value": 412, "keyword": null, "type": 6, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`val`", "value": "val", "keyword": null, "type": 8, "flags": 2, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Thresh'", "value": "Thresh", "keyword": null, "type": 7, "flags": 1, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 34, "idx": 34 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "champs", "column": null, "expr": "`champs`", "alias": null, "function": null, "subquery": null }, "columns": [ "id", "val" ], "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "412", "'Thresh'" ], "values": [ "412", "Thresh" ] } ], "set": null, "select": null, "with": null, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 25 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected token.", { "@type": "@28" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@28" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@30" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@32" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@34" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseInsertSelect.in000066400000000000000000000000651455302707200231620ustar00rootroot00000000000000INSERT INTO `a` (`value`) SELECT `b`.`value` FROM `b`sql-parser-5.9.0/tests/data/parser/parseInsertSelect.out000066400000000000000000000235171455302707200233720ustar00rootroot00000000000000{ "query": "INSERT INTO `a` (`value`) SELECT `b`.`value` FROM `b`", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "INSERT INTO `a` (`value`) SELECT `b`.`value` FROM `b`", "len": 53, "last": 53, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`a`", "value": "a", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`value`", "value": "value", "keyword": null, "type": 8, "flags": 2, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`b`", "value": "b", "keyword": null, "type": 8, "flags": 2, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`value`", "value": "value", "keyword": null, "type": 8, "flags": 2, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`b`", "value": "b", "keyword": null, "type": 8, "flags": 2, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 20, "idx": 20 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "`a`", "alias": null, "function": null, "subquery": null }, "columns": [ "value" ], "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": null, "set": null, "select": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "b", "column": "value", "expr": "`b`.`value`", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "b", "column": null, "expr": "`b`", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 10, "last": 18 }, "with": null, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 18 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseInsertSelectOnDuplicateKey.in000066400000000000000000000001011455302707200257520ustar00rootroot00000000000000INSERT INTO tbl SELECT * FROM bar ON DUPLICATE KEY UPDATE baz = 1sql-parser-5.9.0/tests/data/parser/parseInsertSelectOnDuplicateKey.out000066400000000000000000000306131455302707200261660ustar00rootroot00000000000000{ "query": "INSERT INTO tbl SELECT * FROM bar ON DUPLICATE KEY UPDATE baz = 1", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "INSERT INTO tbl SELECT * FROM bar ON DUPLICATE KEY UPDATE baz = 1", "len": 65, "last": 65, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tbl", "value": "tbl", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bar", "value": "bar", "keyword": null, "type": 0, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DUPLICATE", "value": "DUPLICATE", "keyword": "DUPLICATE", "type": 1, "flags": 1, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "KEY", "value": "KEY", "keyword": "KEY", "type": 1, "flags": 19, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UPDATE", "value": "UPDATE", "keyword": "UPDATE", "type": 1, "flags": 3, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "baz", "value": "baz", "keyword": null, "type": 0, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 28, "idx": 28 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "tbl", "column": null, "expr": "tbl", "alias": null, "function": null, "subquery": null }, "columns": null, "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": null, "set": null, "select": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "bar", "column": null, "expr": "bar", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 6, "last": 13 }, "with": null, "onDuplicateSet": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "baz", "value": "1" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 26 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseInsertSet.in000066400000000000000000000000551455302707200224750ustar00rootroot00000000000000INSERT INTO `a` (`value`) SET `value` = '123'sql-parser-5.9.0/tests/data/parser/parseInsertSet.out000066400000000000000000000172241455302707200227040ustar00rootroot00000000000000{ "query": "INSERT INTO `a` (`value`) SET `value` = '123'", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "INSERT INTO `a` (`value`) SET `value` = '123'", "len": 45, "last": 45, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`a`", "value": "a", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`value`", "value": "value", "keyword": null, "type": 8, "flags": 2, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`value`", "value": "value", "keyword": null, "type": 8, "flags": 2, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'123'", "value": "123", "keyword": null, "type": 7, "flags": 1, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 18, "idx": 18 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "`a`", "alias": null, "function": null, "subquery": null }, "columns": [ "value" ], "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": null, "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "`value`", "value": "'123'" } ], "select": null, "with": null, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 16 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseInsertSetOnDuplicateKey.in000066400000000000000000000001261455302707200252750ustar00rootroot00000000000000INSERT INTO `a` (`value`) SET `value` = '123' ON DUPLICATE KEY UPDATE `value` = '1234'sql-parser-5.9.0/tests/data/parser/parseInsertSetOnDuplicateKey.out000066400000000000000000000302011455302707200254730ustar00rootroot00000000000000{ "query": "INSERT INTO `a` (`value`) SET `value` = '123' ON DUPLICATE KEY UPDATE `value` = '1234'", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "INSERT INTO `a` (`value`) SET `value` = '123' ON DUPLICATE KEY UPDATE `value` = '1234'", "len": 86, "last": 86, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`a`", "value": "a", "keyword": null, "type": 8, "flags": 2, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`value`", "value": "value", "keyword": null, "type": 8, "flags": 2, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`value`", "value": "value", "keyword": null, "type": 8, "flags": 2, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'123'", "value": "123", "keyword": null, "type": 7, "flags": 1, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DUPLICATE", "value": "DUPLICATE", "keyword": "DUPLICATE", "type": 1, "flags": 1, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "KEY", "value": "KEY", "keyword": "KEY", "type": 1, "flags": 19, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UPDATE", "value": "UPDATE", "keyword": "UPDATE", "type": 1, "flags": 3, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`value`", "value": "value", "keyword": null, "type": 8, "flags": 2, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'1234'", "value": "1234", "keyword": null, "type": 7, "flags": 1, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 32, "idx": 32 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "`a`", "alias": null, "function": null, "subquery": null }, "columns": [ "value" ], "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": null, "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "`value`", "value": "'123'" } ], "select": null, "with": null, "onDuplicateSet": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "`value`", "value": "'1234'" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 30 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseLimitErr1.in000066400000000000000000000000531455302707200223630ustar00rootroot00000000000000SELECT * FROM test LIMIT 1 OFFSET OFFSET 2;sql-parser-5.9.0/tests/data/parser/parseLimitErr1.out000066400000000000000000000205701455302707200225720ustar00rootroot00000000000000{ "query": "SELECT * FROM test LIMIT 1 OFFSET OFFSET 2;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM test LIMIT 1 OFFSET OFFSET 2;", "len": 43, "last": 43, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIMIT", "value": "LIMIT", "keyword": "LIMIT", "type": 1, "flags": 3, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OFFSET", "value": "OFFSET", "keyword": "OFFSET", "type": 1, "flags": 1, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OFFSET", "value": "OFFSET", "keyword": "OFFSET", "type": 1, "flags": 1, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 19, "idx": 19 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test", "column": null, "expr": "test", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Limit", "offset": 2, "rowCount": 1 }, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 16 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "An offset was expected.", { "@type": "@16" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseLimitErr2.in000066400000000000000000000000411455302707200223610ustar00rootroot00000000000000SELECT * FROM test LIMIT 1 OFFSETsql-parser-5.9.0/tests/data/parser/parseLimitErr2.out000066400000000000000000000155671455302707200226050ustar00rootroot00000000000000{ "query": "SELECT * FROM test LIMIT 1 OFFSET", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM test LIMIT 1 OFFSET", "len": 33, "last": 33, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIMIT", "value": "LIMIT", "keyword": "LIMIT", "type": 1, "flags": 3, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OFFSET", "value": "OFFSET", "keyword": "OFFSET", "type": 1, "flags": 1, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 14, "idx": 14 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test", "column": null, "expr": "test", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Limit", "offset": 0, "rowCount": 1 }, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 12 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "An offset was expected.", { "@type": "@14" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseLoad1.in000066400000000000000000000001001455302707200215040ustar00rootroot00000000000000LOAD DATA CONCURRENT INFILE 'employee1.txt' INTO TABLE employee;sql-parser-5.9.0/tests/data/parser/parseLoad1.out000066400000000000000000000156461455302707200217320ustar00rootroot00000000000000{ "query": "LOAD DATA CONCURRENT INFILE 'employee1.txt' INTO TABLE employee;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOAD DATA CONCURRENT INFILE 'employee1.txt' INTO TABLE employee;", "len": 64, "last": 64, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOAD DATA", "value": "LOAD DATA", "keyword": "LOAD DATA", "type": 1, "flags": 7, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CONCURRENT", "value": "CONCURRENT", "keyword": "CONCURRENT", "type": 1, "flags": 1, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INFILE", "value": "INFILE", "keyword": "INFILE", "type": 1, "flags": 3, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'employee1.txt'", "value": "employee1.txt", "keyword": null, "type": 7, "flags": 1, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "employee", "value": "employee", "keyword": null, "type": 0, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 15, "idx": 15 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LoadStatement", "file_name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "'employee1.txt'", "alias": null, "function": null, "subquery": null, "file": "employee1.txt" }, "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "employee", "column": null, "expr": "employee", "alias": null, "function": null, "subquery": null }, "partition": null, "charset_name": null, "fields_options": null, "fields_keyword": null, "lines_options": null, "col_name_or_user_var": null, "set": null, "ignore_number": null, "replace_ignore": null, "lines_rows": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "CONCURRENT" } }, "first": 0, "last": 12 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseLoad2.in000066400000000000000000000001311455302707200215110ustar00rootroot00000000000000LOAD DATA INFILE '/tmp/test.txt' INTO TABLE test FIELDS TERMINATED BY ',' IGNORE 1 LINES;sql-parser-5.9.0/tests/data/parser/parseLoad2.out000066400000000000000000000260471455302707200217300ustar00rootroot00000000000000{ "query": "LOAD DATA INFILE '/tmp/test.txt' INTO TABLE test FIELDS TERMINATED BY ',' IGNORE 1 LINES;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOAD DATA INFILE '/tmp/test.txt' INTO TABLE test FIELDS TERMINATED BY ',' IGNORE 1 LINES;", "len": 89, "last": 89, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOAD DATA", "value": "LOAD DATA", "keyword": "LOAD DATA", "type": 1, "flags": 7, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INFILE", "value": "INFILE", "keyword": "INFILE", "type": 1, "flags": 3, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'/tmp/test.txt'", "value": "/tmp/test.txt", "keyword": null, "type": 7, "flags": 1, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FIELDS", "value": "FIELDS", "keyword": "FIELDS", "type": 1, "flags": 1, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TERMINATED BY", "value": "TERMINATED BY", "keyword": "TERMINATED BY", "type": 1, "flags": 7, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "','", "value": ",", "keyword": null, "type": 7, "flags": 1, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IGNORE", "value": "IGNORE", "keyword": "IGNORE", "type": 1, "flags": 3, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LINES", "value": "LINES", "keyword": "LINES", "type": 1, "flags": 3, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 25, "idx": 25 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LoadStatement", "file_name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "'/tmp/test.txt'", "alias": null, "function": null, "subquery": null, "file": "/tmp/test.txt" }, "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test", "column": null, "expr": "test", "alias": null, "function": null, "subquery": null }, "partition": null, "charset_name": null, "fields_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "TERMINATED BY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": ",", "expr": "','", "alias": null, "function": null, "subquery": null }, "value": "','" } } }, "fields_keyword": "FIELDS", "lines_options": null, "col_name_or_user_var": null, "set": null, "ignore_number": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null }, "replace_ignore": null, "lines_rows": "LINES", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 23 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseLoad3.in000066400000000000000000000001361455302707200215170ustar00rootroot00000000000000LOAD DATA INFILE 'employee3.txt' INTO TABLE employee FIELDS TERMINATED BY ',' ENCLOSED BY '"';sql-parser-5.9.0/tests/data/parser/parseLoad3.out000066400000000000000000000255171455302707200217320ustar00rootroot00000000000000{ "query": "LOAD DATA INFILE 'employee3.txt' INTO TABLE employee FIELDS TERMINATED BY ',' ENCLOSED BY '\"';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOAD DATA INFILE 'employee3.txt' INTO TABLE employee FIELDS TERMINATED BY ',' ENCLOSED BY '\"';", "len": 94, "last": 94, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOAD DATA", "value": "LOAD DATA", "keyword": "LOAD DATA", "type": 1, "flags": 7, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INFILE", "value": "INFILE", "keyword": "INFILE", "type": 1, "flags": 3, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'employee3.txt'", "value": "employee3.txt", "keyword": null, "type": 7, "flags": 1, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "employee", "value": "employee", "keyword": null, "type": 0, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FIELDS", "value": "FIELDS", "keyword": "FIELDS", "type": 1, "flags": 1, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TERMINATED BY", "value": "TERMINATED BY", "keyword": "TERMINATED BY", "type": 1, "flags": 7, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "','", "value": ",", "keyword": null, "type": 7, "flags": 1, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENCLOSED BY", "value": "ENCLOSED BY", "keyword": "ENCLOSED BY", "type": 1, "flags": 7, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'\"'", "value": "\"", "keyword": null, "type": 7, "flags": 1, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 23, "idx": 23 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LoadStatement", "file_name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "'employee3.txt'", "alias": null, "function": null, "subquery": null, "file": "employee3.txt" }, "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "employee", "column": null, "expr": "employee", "alias": null, "function": null, "subquery": null }, "partition": null, "charset_name": null, "fields_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "TERMINATED BY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": ",", "expr": "','", "alias": null, "function": null, "subquery": null }, "value": "','" }, "3": { "name": "ENCLOSED BY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "\"", "expr": "'\"'", "alias": null, "function": null, "subquery": null }, "value": "'\"'" } } }, "fields_keyword": "FIELDS", "lines_options": null, "col_name_or_user_var": null, "set": null, "ignore_number": null, "replace_ignore": null, "lines_rows": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 20 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseLoad4.in000066400000000000000000000002461455302707200215220ustar00rootroot00000000000000LOAD DATA INFILE '/tmp/test.txt' IGNORE INTO TABLE test CHARACTER SET 'utf8' COLUMNS TERMINATED BY ',' LINES TERMINATED BY ';' IGNORE 1 LINES (col1, col2) SET @a = 1;sql-parser-5.9.0/tests/data/parser/parseLoad4.out000066400000000000000000000521601455302707200217250ustar00rootroot00000000000000{ "query": "LOAD DATA INFILE '/tmp/test.txt' IGNORE\nINTO TABLE test\nCHARACTER SET 'utf8'\nCOLUMNS TERMINATED BY ','\nLINES TERMINATED BY ';'\nIGNORE 1 LINES\n(col1, col2)\nSET @a = 1;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOAD DATA INFILE '/tmp/test.txt' IGNORE\nINTO TABLE test\nCHARACTER SET 'utf8'\nCOLUMNS TERMINATED BY ','\nLINES TERMINATED BY ';'\nIGNORE 1 LINES\n(col1, col2)\nSET @a = 1;", "len": 166, "last": 166, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOAD DATA", "value": "LOAD DATA", "keyword": "LOAD DATA", "type": 1, "flags": 7, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INFILE", "value": "INFILE", "keyword": "INFILE", "type": 1, "flags": 3, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'/tmp/test.txt'", "value": "/tmp/test.txt", "keyword": null, "type": 7, "flags": 1, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IGNORE", "value": "IGNORE", "keyword": "IGNORE", "type": 1, "flags": 3, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHARACTER SET", "value": "CHARACTER SET", "keyword": "CHARACTER SET", "type": 1, "flags": 7, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'utf8'", "value": "utf8", "keyword": null, "type": 7, "flags": 1, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLUMNS", "value": "COLUMNS", "keyword": "COLUMNS", "type": 1, "flags": 1, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TERMINATED BY", "value": "TERMINATED BY", "keyword": "TERMINATED BY", "type": 1, "flags": 7, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "','", "value": ",", "keyword": null, "type": 7, "flags": 1, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LINES", "value": "LINES", "keyword": "LINES", "type": 1, "flags": 3, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TERMINATED BY", "value": "TERMINATED BY", "keyword": "TERMINATED BY", "type": 1, "flags": 7, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "';'", "value": ";", "keyword": null, "type": 7, "flags": 1, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IGNORE", "value": "IGNORE", "keyword": "IGNORE", "type": 1, "flags": 3, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 134 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LINES", "value": "LINES", "keyword": "LINES", "type": 1, "flags": 3, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col2", "value": "col2", "keyword": null, "type": 0, "flags": 0, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 153 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 154 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@a", "value": "a", "keyword": null, "type": 8, "flags": 1, "position": 159 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 163 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 165 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 52, "idx": 52 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LoadStatement", "file_name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "'/tmp/test.txt'", "alias": null, "function": null, "subquery": null, "file": "/tmp/test.txt" }, "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test", "column": null, "expr": "test", "alias": null, "function": null, "subquery": null }, "partition": null, "charset_name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "utf8", "expr": "'utf8'", "alias": null, "function": null, "subquery": null }, "fields_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "TERMINATED BY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": ",", "expr": "','", "alias": null, "function": null, "subquery": null }, "value": "','" } } }, "fields_keyword": "COLUMNS", "lines_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "TERMINATED BY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": ";", "expr": "';'", "alias": null, "function": null, "subquery": null }, "value": "';'" } } }, "col_name_or_user_var": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(col1, col2)", "alias": null, "function": null, "subquery": null } ], "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "@a", "value": "1" } ], "ignore_number": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null }, "replace_ignore": "IGNORE", "lines_rows": "LINES", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 49 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseLoad5.in000066400000000000000000000001421455302707200215160ustar00rootroot00000000000000LOAD DATA INFILE '/tmp/test.txt' REPLACE INTO TABLE test COLUMNS TERMINATED BY ',' IGNORE 1 ROWS;sql-parser-5.9.0/tests/data/parser/parseLoad5.out000066400000000000000000000272531455302707200217330ustar00rootroot00000000000000{ "query": "LOAD DATA INFILE '/tmp/test.txt' REPLACE INTO TABLE test COLUMNS TERMINATED BY ',' IGNORE 1 ROWS;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOAD DATA INFILE '/tmp/test.txt' REPLACE INTO TABLE test COLUMNS TERMINATED BY ',' IGNORE 1 ROWS;", "len": 98, "last": 98, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOAD DATA", "value": "LOAD DATA", "keyword": "LOAD DATA", "type": 1, "flags": 7, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INFILE", "value": "INFILE", "keyword": "INFILE", "type": 1, "flags": 3, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'/tmp/test.txt'", "value": "/tmp/test.txt", "keyword": null, "type": 7, "flags": 1, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REPLACE", "value": "REPLACE", "keyword": "REPLACE", "type": 1, "flags": 35, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLUMNS", "value": "COLUMNS", "keyword": "COLUMNS", "type": 1, "flags": 1, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TERMINATED BY", "value": "TERMINATED BY", "keyword": "TERMINATED BY", "type": 1, "flags": 7, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "','", "value": ",", "keyword": null, "type": 7, "flags": 1, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IGNORE", "value": "IGNORE", "keyword": "IGNORE", "type": 1, "flags": 3, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ROWS", "value": "ROWS", "keyword": "ROWS", "type": 1, "flags": 1, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 27, "idx": 27 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LoadStatement", "file_name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "'/tmp/test.txt'", "alias": null, "function": null, "subquery": null, "file": "/tmp/test.txt" }, "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test", "column": null, "expr": "test", "alias": null, "function": null, "subquery": null }, "partition": null, "charset_name": null, "fields_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "TERMINATED BY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": ",", "expr": "','", "alias": null, "function": null, "subquery": null }, "value": "','" } } }, "fields_keyword": "COLUMNS", "lines_options": null, "col_name_or_user_var": null, "set": null, "ignore_number": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null }, "replace_ignore": "REPLACE", "lines_rows": "ROWS", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 25 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseLoad6.in000066400000000000000000000002751455302707200215260ustar00rootroot00000000000000LOAD DATA INFILE '/tmp/test.txt' IGNORE INTO TABLE test PARTITION (p0, p1, p2) CHARACTER SET 'utf8' COLUMNS TERMINATED BY ',' LINES TERMINATED BY ';' IGNORE 1 LINES (col1, col2) SET @a = 1;sql-parser-5.9.0/tests/data/parser/parseLoad6.out000066400000000000000000000621321455302707200217270ustar00rootroot00000000000000{ "query": "LOAD DATA INFILE '/tmp/test.txt' IGNORE\nINTO TABLE test\nPARTITION (p0, p1, p2)\nCHARACTER SET 'utf8'\nCOLUMNS TERMINATED BY ','\nLINES TERMINATED BY ';'\nIGNORE 1 LINES\n(col1, col2)\nSET @a = 1;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOAD DATA INFILE '/tmp/test.txt' IGNORE\nINTO TABLE test\nPARTITION (p0, p1, p2)\nCHARACTER SET 'utf8'\nCOLUMNS TERMINATED BY ','\nLINES TERMINATED BY ';'\nIGNORE 1 LINES\n(col1, col2)\nSET @a = 1;", "len": 189, "last": 189, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOAD DATA", "value": "LOAD DATA", "keyword": "LOAD DATA", "type": 1, "flags": 7, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INFILE", "value": "INFILE", "keyword": "INFILE", "type": 1, "flags": 3, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'/tmp/test.txt'", "value": "/tmp/test.txt", "keyword": null, "type": 7, "flags": 1, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IGNORE", "value": "IGNORE", "keyword": "IGNORE", "type": 1, "flags": 3, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p0", "value": "p0", "keyword": null, "type": 0, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p1", "value": "p1", "keyword": null, "type": 0, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p2", "value": "p2", "keyword": null, "type": 0, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHARACTER SET", "value": "CHARACTER SET", "keyword": "CHARACTER SET", "type": 1, "flags": 7, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'utf8'", "value": "utf8", "keyword": null, "type": 7, "flags": 1, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLUMNS", "value": "COLUMNS", "keyword": "COLUMNS", "type": 1, "flags": 1, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TERMINATED BY", "value": "TERMINATED BY", "keyword": "TERMINATED BY", "type": 1, "flags": 7, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "','", "value": ",", "keyword": null, "type": 7, "flags": 1, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LINES", "value": "LINES", "keyword": "LINES", "type": 1, "flags": 3, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TERMINATED BY", "value": "TERMINATED BY", "keyword": "TERMINATED BY", "type": 1, "flags": 7, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "';'", "value": ";", "keyword": null, "type": 7, "flags": 1, "position": 146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IGNORE", "value": "IGNORE", "keyword": "IGNORE", "type": 1, "flags": 3, "position": 150 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LINES", "value": "LINES", "keyword": "LINES", "type": 1, "flags": 3, "position": 159 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 165 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 166 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 171 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col2", "value": "col2", "keyword": null, "type": 0, "flags": 0, "position": 172 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 181 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@a", "value": "a", "keyword": null, "type": 8, "flags": 1, "position": 182 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 184 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 185 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 186 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 187 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 188 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 64, "idx": 64 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LoadStatement", "file_name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "'/tmp/test.txt'", "alias": null, "function": null, "subquery": null, "file": "/tmp/test.txt" }, "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test", "column": null, "expr": "test", "alias": null, "function": null, "subquery": null }, "partition": { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "p0", "p1", "p2" ], "values": [ "p0", "p1", "p2" ] }, "charset_name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "utf8", "expr": "'utf8'", "alias": null, "function": null, "subquery": null }, "fields_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "TERMINATED BY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": ",", "expr": "','", "alias": null, "function": null, "subquery": null }, "value": "','" } } }, "fields_keyword": "COLUMNS", "lines_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "TERMINATED BY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": ";", "expr": "';'", "alias": null, "function": null, "subquery": null }, "value": "';'" } } }, "col_name_or_user_var": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(col1, col2)", "alias": null, "function": null, "subquery": null } ], "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "@a", "value": "1" } ], "ignore_number": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null }, "replace_ignore": "IGNORE", "lines_rows": "LINES", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 61 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseLoad7.in000066400000000000000000000001551455302707200215240ustar00rootroot00000000000000SELECT a into outfile '/tmp/temp.data' fields terminated by ',' enclosed by '"' ESCAPED BY '$' FROM sometablesql-parser-5.9.0/tests/data/parser/parseLoad7.out000066400000000000000000000333501455302707200217300ustar00rootroot00000000000000{ "query": "SELECT a\ninto outfile '/tmp/temp.data'\nfields terminated by ',' enclosed by '\"' ESCAPED BY '$'\nFROM sometable", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT a\ninto outfile '/tmp/temp.data'\nfields terminated by ',' enclosed by '\"' ESCAPED BY '$'\nFROM sometable", "len": 109, "last": 109, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "into", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "outfile", "value": "OUTFILE", "keyword": "OUTFILE", "type": 1, "flags": 3, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'/tmp/temp.data'", "value": "/tmp/temp.data", "keyword": null, "type": 7, "flags": 1, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "fields", "value": "fields", "keyword": "FIELDS", "type": 1, "flags": 1, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "terminated by", "value": "TERMINATED BY", "keyword": "TERMINATED BY", "type": 1, "flags": 7, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "','", "value": ",", "keyword": null, "type": 7, "flags": 1, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "enclosed by", "value": "ENCLOSED BY", "keyword": "ENCLOSED BY", "type": 1, "flags": 7, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'\"'", "value": "\"", "keyword": null, "type": 7, "flags": 1, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ESCAPED BY", "value": "ESCAPED BY", "keyword": "ESCAPED BY", "type": 1, "flags": 7, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'$'", "value": "$", "keyword": null, "type": 7, "flags": 1, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "sometable", "value": "sometable", "keyword": null, "type": 0, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 28, "idx": 28 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "a", "expr": "a", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "sometable", "column": null, "expr": "sometable", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": "OUTFILE", "dest": "/tmp/temp.data", "columns": null, "values": null, "fields_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "TERMINATED BY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": ",", "expr": "','", "alias": null, "function": null, "subquery": null }, "value": "','" }, "3": { "name": "ENCLOSED BY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "\"", "expr": "'\"'", "alias": null, "function": null, "subquery": null }, "value": "'\"'" }, "4": { "name": "ESCAPED BY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "$", "expr": "'$'", "alias": null, "function": null, "subquery": null }, "value": "'$'" } } }, "fields_keyword": true, "lines_options": null }, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 26 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseLoadErr1.in000066400000000000000000000000761455302707200221710ustar00rootroot00000000000000LOAD DATA CONCURRENT FROM 'employee1.txt' INTO TABLE employee;sql-parser-5.9.0/tests/data/parser/parseLoadErr1.out000066400000000000000000000147541455302707200224020ustar00rootroot00000000000000{ "query": "LOAD DATA CONCURRENT FROM 'employee1.txt' INTO TABLE employee;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOAD DATA CONCURRENT FROM 'employee1.txt' INTO TABLE employee;", "len": 62, "last": 62, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOAD DATA", "value": "LOAD DATA", "keyword": "LOAD DATA", "type": 1, "flags": 7, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CONCURRENT", "value": "CONCURRENT", "keyword": "CONCURRENT", "type": 1, "flags": 1, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'employee1.txt'", "value": "employee1.txt", "keyword": null, "type": 7, "flags": 1, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "employee", "value": "employee", "keyword": null, "type": 0, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 15, "idx": 15 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LoadStatement", "file_name": null, "table": null, "partition": null, "charset_name": null, "fields_options": null, "fields_keyword": null, "lines_options": null, "col_name_or_user_var": null, "set": null, "ignore_number": null, "replace_ignore": null, "lines_rows": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "CONCURRENT" } }, "first": 0, "last": 3 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword.", { "@type": "@6" }, 0 ], [ "Unrecognized statement type.", { "@type": "@6" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseLoadErr2.in000066400000000000000000000000751455302707200221710ustar00rootroot00000000000000LOAD DATA CONCURRENT ABC 'employee1.txt' INTO TABLE employee;sql-parser-5.9.0/tests/data/parser/parseLoadErr2.out000066400000000000000000000154751455302707200224040ustar00rootroot00000000000000{ "query": "LOAD DATA CONCURRENT ABC 'employee1.txt' INTO TABLE employee;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOAD DATA CONCURRENT ABC 'employee1.txt' INTO TABLE employee;", "len": 61, "last": 61, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOAD DATA", "value": "LOAD DATA", "keyword": "LOAD DATA", "type": 1, "flags": 7, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CONCURRENT", "value": "CONCURRENT", "keyword": "CONCURRENT", "type": 1, "flags": 1, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ABC", "value": "ABC", "keyword": null, "type": 0, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'employee1.txt'", "value": "employee1.txt", "keyword": null, "type": 7, "flags": 1, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "employee", "value": "employee", "keyword": null, "type": 0, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 15, "idx": 15 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LoadStatement", "file_name": null, "table": null, "partition": null, "charset_name": null, "fields_options": null, "fields_keyword": null, "lines_options": null, "col_name_or_user_var": null, "set": null, "ignore_number": null, "replace_ignore": null, "lines_rows": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "CONCURRENT" } }, "first": 0, "last": 3 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected token.", { "@type": "@6" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@6" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@8" }, 0 ], [ "Unrecognized statement type.", { "@type": "@10" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseLoadErr3.in000066400000000000000000000001041455302707200221630ustar00rootroot00000000000000LOAD DATA INFILE '/tmp/test.txt' IGNORE INTO TABLE test DATA @a = 1;sql-parser-5.9.0/tests/data/parser/parseLoadErr3.out000066400000000000000000000225731455302707200224020ustar00rootroot00000000000000{ "query": "LOAD DATA INFILE '/tmp/test.txt' IGNORE\nINTO TABLE test\nDATA @a = 1;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOAD DATA INFILE '/tmp/test.txt' IGNORE\nINTO TABLE test\nDATA @a = 1;", "len": 68, "last": 68, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOAD DATA", "value": "LOAD DATA", "keyword": "LOAD DATA", "type": 1, "flags": 7, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INFILE", "value": "INFILE", "keyword": "INFILE", "type": 1, "flags": 3, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'/tmp/test.txt'", "value": "/tmp/test.txt", "keyword": null, "type": 7, "flags": 1, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IGNORE", "value": "IGNORE", "keyword": "IGNORE", "type": 1, "flags": 3, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DATA", "value": "DATA", "keyword": "DATA", "type": 1, "flags": 1, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@a", "value": "a", "keyword": null, "type": 8, "flags": 1, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 23, "idx": 23 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LoadStatement", "file_name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "'/tmp/test.txt'", "alias": null, "function": null, "subquery": null, "file": "/tmp/test.txt" }, "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test", "column": null, "expr": "test", "alias": null, "function": null, "subquery": null }, "partition": null, "charset_name": null, "fields_options": null, "fields_keyword": null, "lines_options": null, "col_name_or_user_var": null, "set": null, "ignore_number": null, "replace_ignore": "IGNORE", "lines_rows": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 13 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unrecognized statement type.", { "@type": "@16" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseLoadErr4.in000066400000000000000000000000761455302707200221740ustar00rootroot00000000000000LOAD DATA INFILE '/tmp/test.txt' IGNORE INTO test DATA @a = 1;sql-parser-5.9.0/tests/data/parser/parseLoadErr4.out000066400000000000000000000213641455302707200224000ustar00rootroot00000000000000{ "query": "LOAD DATA INFILE '/tmp/test.txt' IGNORE\nINTO test\nDATA @a = 1;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOAD DATA INFILE '/tmp/test.txt' IGNORE\nINTO test\nDATA @a = 1;", "len": 62, "last": 62, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOAD DATA", "value": "LOAD DATA", "keyword": "LOAD DATA", "type": 1, "flags": 7, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INFILE", "value": "INFILE", "keyword": "INFILE", "type": 1, "flags": 3, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'/tmp/test.txt'", "value": "/tmp/test.txt", "keyword": null, "type": 7, "flags": 1, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IGNORE", "value": "IGNORE", "keyword": "IGNORE", "type": 1, "flags": 3, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DATA", "value": "DATA", "keyword": "DATA", "type": 1, "flags": 1, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@a", "value": "a", "keyword": null, "type": 8, "flags": 1, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 21, "idx": 21 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LoadStatement", "file_name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "'/tmp/test.txt'", "alias": null, "function": null, "subquery": null, "file": "/tmp/test.txt" }, "table": null, "partition": null, "charset_name": null, "fields_options": null, "fields_keyword": null, "lines_options": null, "col_name_or_user_var": null, "set": null, "ignore_number": null, "replace_ignore": "IGNORE", "lines_rows": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 9 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected token.", { "@type": "@12" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@12" }, 0 ], [ "Unrecognized statement type.", { "@type": "@14" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseLoadErr5.in000066400000000000000000000000771455302707200221760ustar00rootroot00000000000000LOAD DATA INFILE '/tmp/test.txt' IGNORE INTO TABLE test @a = 1;sql-parser-5.9.0/tests/data/parser/parseLoadErr5.out000066400000000000000000000221361455302707200223770ustar00rootroot00000000000000{ "query": "LOAD DATA INFILE '/tmp/test.txt' IGNORE\nINTO TABLE test\n@a = 1;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOAD DATA INFILE '/tmp/test.txt' IGNORE\nINTO TABLE test\n@a = 1;", "len": 63, "last": 63, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOAD DATA", "value": "LOAD DATA", "keyword": "LOAD DATA", "type": 1, "flags": 7, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INFILE", "value": "INFILE", "keyword": "INFILE", "type": 1, "flags": 3, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'/tmp/test.txt'", "value": "/tmp/test.txt", "keyword": null, "type": 7, "flags": 1, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IGNORE", "value": "IGNORE", "keyword": "IGNORE", "type": 1, "flags": 3, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@a", "value": "a", "keyword": null, "type": 8, "flags": 1, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 21, "idx": 21 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LoadStatement", "file_name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "'/tmp/test.txt'", "alias": null, "function": null, "subquery": null, "file": "/tmp/test.txt" }, "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test", "column": null, "expr": "test", "alias": null, "function": null, "subquery": null }, "partition": null, "charset_name": null, "fields_options": null, "fields_keyword": null, "lines_options": null, "col_name_or_user_var": null, "set": null, "ignore_number": null, "replace_ignore": "IGNORE", "lines_rows": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 13 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected token.", { "@type": "@16" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@16" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@20" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseLoadErr6.in000066400000000000000000000001041455302707200221660ustar00rootroot00000000000000LOAD DATA INFILE '/tmp/test.txt' IGNORE INTO TABLE test DATA @a = 1;sql-parser-5.9.0/tests/data/parser/parseLoadErr6.out000066400000000000000000000225731455302707200224050ustar00rootroot00000000000000{ "query": "LOAD DATA INFILE '/tmp/test.txt' IGNORE\nINTO TABLE test\nDATA @a = 1;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOAD DATA INFILE '/tmp/test.txt' IGNORE\nINTO TABLE test\nDATA @a = 1;", "len": 68, "last": 68, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOAD DATA", "value": "LOAD DATA", "keyword": "LOAD DATA", "type": 1, "flags": 7, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INFILE", "value": "INFILE", "keyword": "INFILE", "type": 1, "flags": 3, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'/tmp/test.txt'", "value": "/tmp/test.txt", "keyword": null, "type": 7, "flags": 1, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IGNORE", "value": "IGNORE", "keyword": "IGNORE", "type": 1, "flags": 3, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DATA", "value": "DATA", "keyword": "DATA", "type": 1, "flags": 1, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@a", "value": "a", "keyword": null, "type": 8, "flags": 1, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 23, "idx": 23 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LoadStatement", "file_name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "'/tmp/test.txt'", "alias": null, "function": null, "subquery": null, "file": "/tmp/test.txt" }, "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test", "column": null, "expr": "test", "alias": null, "function": null, "subquery": null }, "partition": null, "charset_name": null, "fields_options": null, "fields_keyword": null, "lines_options": null, "col_name_or_user_var": null, "set": null, "ignore_number": null, "replace_ignore": "IGNORE", "lines_rows": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 13 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unrecognized statement type.", { "@type": "@16" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseLock1.in000066400000000000000000000000531455302707200215240ustar00rootroot00000000000000LOCK TABLES table1 AS `t1` READ LOCAL;sql-parser-5.9.0/tests/data/parser/parseLock1.out000066400000000000000000000142241455302707200217320ustar00rootroot00000000000000{ "query": "LOCK TABLES table1 AS `t1` READ LOCAL;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOCK TABLES table1 AS `t1` READ LOCAL;", "len": 43, "last": 43, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK", "value": "LOCK", "keyword": "LOCK", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLES", "value": "TABLES", "keyword": "TABLES", "type": 1, "flags": 1, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`t1`", "value": "t1", "keyword": null, "type": 8, "flags": 2, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "READ", "value": "READ", "keyword": "READ", "type": 1, "flags": 3, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCAL", "value": "LOCAL", "keyword": "LOCAL", "type": 1, "flags": 1, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 15, "idx": 15 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LockStatement", "locked": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\LockExpression", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": "t1", "function": null, "subquery": null }, "type": "READ LOCAL" } ], "isLock": true, "options": null, "first": 0, "last": 13 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseLock2.in000066400000000000000000000000401455302707200215210ustar00rootroot00000000000000LOCK TABLES table1 AS `t1` READ;sql-parser-5.9.0/tests/data/parser/parseLock2.out000066400000000000000000000130161455302707200217310ustar00rootroot00000000000000{ "query": "LOCK TABLES table1 AS `t1` READ;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOCK TABLES table1 AS `t1` READ;", "len": 32, "last": 32, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK", "value": "LOCK", "keyword": "LOCK", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLES", "value": "TABLES", "keyword": "TABLES", "type": 1, "flags": 1, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`t1`", "value": "t1", "keyword": null, "type": 8, "flags": 2, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "READ", "value": "READ", "keyword": "READ", "type": 1, "flags": 3, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 13, "idx": 13 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LockStatement", "locked": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\LockExpression", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": "t1", "function": null, "subquery": null }, "type": "READ" } ], "isLock": true, "options": null, "first": 0, "last": 11 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseLock3.in000066400000000000000000000000561455302707200215310ustar00rootroot00000000000000LOCK TABLES table1 AS `t1` LOW_PRIORITY WRITE;sql-parser-5.9.0/tests/data/parser/parseLock3.out000066400000000000000000000142651455302707200217410ustar00rootroot00000000000000{ "query": "LOCK TABLES table1 AS `t1` LOW_PRIORITY WRITE;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOCK TABLES table1 AS `t1` LOW_PRIORITY WRITE;", "len": 46, "last": 46, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK", "value": "LOCK", "keyword": "LOCK", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLES", "value": "TABLES", "keyword": "TABLES", "type": 1, "flags": 1, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`t1`", "value": "t1", "keyword": null, "type": 8, "flags": 2, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOW_PRIORITY", "value": "LOW_PRIORITY", "keyword": "LOW_PRIORITY", "type": 1, "flags": 3, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WRITE", "value": "WRITE", "keyword": "WRITE", "type": 1, "flags": 3, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 15, "idx": 15 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LockStatement", "locked": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\LockExpression", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": "t1", "function": null, "subquery": null }, "type": "LOW_PRIORITY WRITE" } ], "isLock": true, "options": null, "first": 0, "last": 13 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseLock4.in000066400000000000000000000000411455302707200215240ustar00rootroot00000000000000LOCK TABLES table1 AS `t1` WRITE;sql-parser-5.9.0/tests/data/parser/parseLock4.out000066400000000000000000000130241455302707200217320ustar00rootroot00000000000000{ "query": "LOCK TABLES table1 AS `t1` WRITE;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOCK TABLES table1 AS `t1` WRITE;", "len": 33, "last": 33, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK", "value": "LOCK", "keyword": "LOCK", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLES", "value": "TABLES", "keyword": "TABLES", "type": 1, "flags": 1, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`t1`", "value": "t1", "keyword": null, "type": 8, "flags": 2, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WRITE", "value": "WRITE", "keyword": "WRITE", "type": 1, "flags": 3, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 13, "idx": 13 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LockStatement", "locked": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\LockExpression", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": "t1", "function": null, "subquery": null }, "type": "WRITE" } ], "isLock": true, "options": null, "first": 0, "last": 11 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseLock5.in000066400000000000000000000000741455302707200215330ustar00rootroot00000000000000LOCK TABLES table1 AS `t1` READ LOCAL, table2 AS `t2` WRITE;sql-parser-5.9.0/tests/data/parser/parseLock5.out000066400000000000000000000227361455302707200217450ustar00rootroot00000000000000{ "query": "LOCK TABLES table1 AS `t1` READ LOCAL, table2 AS `t2` WRITE;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOCK TABLES table1 AS `t1` READ LOCAL, table2 AS `t2` WRITE;", "len": 60, "last": 60, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK", "value": "LOCK", "keyword": "LOCK", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLES", "value": "TABLES", "keyword": "TABLES", "type": 1, "flags": 1, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`t1`", "value": "t1", "keyword": null, "type": 8, "flags": 2, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "READ", "value": "READ", "keyword": "READ", "type": 1, "flags": 3, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCAL", "value": "LOCAL", "keyword": "LOCAL", "type": 1, "flags": 1, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`t2`", "value": "t2", "keyword": null, "type": 8, "flags": 2, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WRITE", "value": "WRITE", "keyword": "WRITE", "type": 1, "flags": 3, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 24, "idx": 24 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LockStatement", "locked": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\LockExpression", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": "t1", "function": null, "subquery": null }, "type": "READ LOCAL" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\LockExpression", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table2", "column": null, "expr": "table2", "alias": "t2", "function": null, "subquery": null }, "type": "WRITE" } ], "isLock": true, "options": null, "first": 0, "last": 22 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseLock6.in000066400000000000000000000000641455302707200215330ustar00rootroot00000000000000LOCK TABLES table1 READ LOCAL, table2 AS `t2` WRITE;sql-parser-5.9.0/tests/data/parser/parseLock6.out000066400000000000000000000204241455302707200217360ustar00rootroot00000000000000{ "query": "LOCK TABLES table1 READ LOCAL, table2 AS `t2` WRITE;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOCK TABLES table1 READ LOCAL, table2 AS `t2` WRITE;", "len": 52, "last": 52, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK", "value": "LOCK", "keyword": "LOCK", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLES", "value": "TABLES", "keyword": "TABLES", "type": 1, "flags": 1, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "READ", "value": "READ", "keyword": "READ", "type": 1, "flags": 3, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCAL", "value": "LOCAL", "keyword": "LOCAL", "type": 1, "flags": 1, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`t2`", "value": "t2", "keyword": null, "type": 8, "flags": 2, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WRITE", "value": "WRITE", "keyword": "WRITE", "type": 1, "flags": 3, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 20, "idx": 20 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LockStatement", "locked": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\LockExpression", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": null, "function": null, "subquery": null }, "type": "READ LOCAL" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\LockExpression", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table2", "column": null, "expr": "table2", "alias": "t2", "function": null, "subquery": null }, "type": "WRITE" } ], "isLock": true, "options": null, "first": 0, "last": 18 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseLockErr1.in000066400000000000000000000000221455302707200221710ustar00rootroot00000000000000LOCK TABLES table1sql-parser-5.9.0/tests/data/parser/parseLockErr1.out000066400000000000000000000071301455302707200224010ustar00rootroot00000000000000{ "query": "LOCK TABLES table1", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOCK TABLES table1", "len": 18, "last": 18, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK", "value": "LOCK", "keyword": "LOCK", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLES", "value": "TABLES", "keyword": "TABLES", "type": 1, "flags": 1, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 6, "idx": 6 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LockStatement", "locked": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\LockExpression", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": null, "function": null, "subquery": null }, "type": null } ], "isLock": true, "options": null, "first": 0, "last": 5 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected end of LOCK expression.", { "@type": "@6" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseLockErr10.in000066400000000000000000000000631455302707200222560ustar00rootroot00000000000000LOCK TABLES table1 AS table1 LOW_PRIORITY WRITE abcsql-parser-5.9.0/tests/data/parser/parseLockErr10.out000066400000000000000000000152361455302707200224670ustar00rootroot00000000000000{ "query": "LOCK TABLES table1 AS table1 LOW_PRIORITY WRITE abc", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOCK TABLES table1 AS table1 LOW_PRIORITY WRITE abc", "len": 51, "last": 51, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK", "value": "LOCK", "keyword": "LOCK", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLES", "value": "TABLES", "keyword": "TABLES", "type": 1, "flags": 1, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOW_PRIORITY", "value": "LOW_PRIORITY", "keyword": "LOW_PRIORITY", "type": 1, "flags": 3, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WRITE", "value": "WRITE", "keyword": "WRITE", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "abc", "value": "abc", "keyword": null, "type": 0, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 16, "idx": 16 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LockStatement", "locked": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\LockExpression", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": "table1", "function": null, "subquery": null }, "type": "LOW_PRIORITY WRITE" } ], "isLock": true, "options": null, "first": 0, "last": 15 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected token.", { "@type": "@16" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseLockErr2.in000066400000000000000000000000401455302707200221720ustar00rootroot00000000000000LOCK TABLES table1 AS `t1` LOCALsql-parser-5.9.0/tests/data/parser/parseLockErr2.out000066400000000000000000000132521455302707200224040ustar00rootroot00000000000000{ "query": "LOCK TABLES table1 AS `t1` LOCAL", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOCK TABLES table1 AS `t1` LOCAL", "len": 32, "last": 32, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK", "value": "LOCK", "keyword": "LOCK", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLES", "value": "TABLES", "keyword": "TABLES", "type": 1, "flags": 1, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`t1`", "value": "t1", "keyword": null, "type": 8, "flags": 2, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCAL", "value": "LOCAL", "keyword": "LOCAL", "type": 1, "flags": 1, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 12, "idx": 12 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LockStatement", "locked": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\LockExpression", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": "t1", "function": null, "subquery": null }, "type": "" } ], "isLock": true, "options": null, "first": 0, "last": 11 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "An alias was previously found.", { "@type": "@12" }, 0 ], [ "Unexpected keyword.", { "@type": "@12" }, 0 ], [ "Unexpected end of LOCK expression.", null, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseLockErr3.in000066400000000000000000000000611455302707200221760ustar00rootroot00000000000000-- TABLES misspelled LOCK TABLE table1 AS t1 READsql-parser-5.9.0/tests/data/parser/parseLockErr3.out000066400000000000000000000133571455302707200224130ustar00rootroot00000000000000{ "query": "-- TABLES misspelled\nLOCK TABLE table1 AS t1 READ", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "-- TABLES misspelled\nLOCK TABLE table1 AS t1 READ", "len": 49, "last": 49, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- TABLES misspelled", "value": "-- TABLES misspelled", "keyword": null, "type": 4, "flags": 4, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK", "value": "LOCK", "keyword": "LOCK", "type": 1, "flags": 3, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "READ", "value": "READ", "keyword": "READ", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 14, "idx": 15 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LockStatement", "locked": [], "isLock": true, "options": null, "first": 0, "last": 4 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword.", { "@type": "@6" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@8" }, 0 ], [ "Unrecognized statement type.", { "@type": "@10" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseLockErr4.in000066400000000000000000000000601455302707200221760ustar00rootroot00000000000000-- missing TABLES keyword LOCK table1 READ LOCALsql-parser-5.9.0/tests/data/parser/parseLockErr4.out000066400000000000000000000106201455302707200224020ustar00rootroot00000000000000{ "query": "-- missing TABLES keyword\nLOCK table1 READ LOCAL", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "-- missing TABLES keyword\nLOCK table1 READ LOCAL", "len": 48, "last": 48, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- missing TABLES keyword", "value": "-- missing TABLES keyword", "keyword": null, "type": 4, "flags": 4, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK", "value": "LOCK", "keyword": "LOCK", "type": 1, "flags": 3, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "READ", "value": "READ", "keyword": "READ", "type": 1, "flags": 3, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCAL", "value": "LOCAL", "keyword": "LOCAL", "type": 1, "flags": 1, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 11 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LockStatement", "locked": [], "isLock": true, "options": null, "first": 0, "last": 4 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected token.", { "@type": "@6" }, 0 ], [ "Unrecognized statement type.", { "@type": "@8" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseLockErr5.in000066400000000000000000000000621455302707200222010ustar00rootroot00000000000000-- extraneous comma LOCK TABLES table1 READ LOCAL,sql-parser-5.9.0/tests/data/parser/parseLockErr5.out000066400000000000000000000134331455302707200224100ustar00rootroot00000000000000{ "query": "-- extraneous comma\nLOCK TABLES table1 READ LOCAL,", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "-- extraneous comma\nLOCK TABLES table1 READ LOCAL,", "len": 50, "last": 50, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- extraneous comma", "value": "-- extraneous comma", "keyword": null, "type": 4, "flags": 4, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK", "value": "LOCK", "keyword": "LOCK", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLES", "value": "TABLES", "keyword": "TABLES", "type": 1, "flags": 1, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "READ", "value": "READ", "keyword": "READ", "type": 1, "flags": 3, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCAL", "value": "LOCAL", "keyword": "LOCAL", "type": 1, "flags": 1, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 13, "idx": 13 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LockStatement", "locked": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\LockExpression", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": null, "function": null, "subquery": null }, "type": "READ LOCAL" } ], "isLock": true, "options": null, "first": 0, "last": 12 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected end of LOCK statement.", { "@type": "@13" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseLockErr6.in000066400000000000000000000000471455302707200222050ustar00rootroot00000000000000-- missing lock type LOCK TABLES table1sql-parser-5.9.0/tests/data/parser/parseLockErr6.out000066400000000000000000000104071455302707200224070ustar00rootroot00000000000000{ "query": "-- missing lock type\nLOCK TABLES table1", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "-- missing lock type\nLOCK TABLES table1", "len": 39, "last": 39, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- missing lock type", "value": "-- missing lock type", "keyword": null, "type": 4, "flags": 4, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK", "value": "LOCK", "keyword": "LOCK", "type": 1, "flags": 3, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLES", "value": "TABLES", "keyword": "TABLES", "type": 1, "flags": 1, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 8, "idx": 8 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LockStatement", "locked": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\LockExpression", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": null, "function": null, "subquery": null }, "type": null } ], "isLock": true, "options": null, "first": 0, "last": 7 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected end of LOCK expression.", { "@type": "@8" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseLockErr7.in000066400000000000000000000000501455302707200222000ustar00rootroot00000000000000LOCK TABLES table1 AS table1 non_keywordsql-parser-5.9.0/tests/data/parser/parseLockErr7.out000066400000000000000000000133131455302707200224070ustar00rootroot00000000000000{ "query": "LOCK TABLES table1 AS table1 non_keyword", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOCK TABLES table1 AS table1 non_keyword", "len": 40, "last": 40, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK", "value": "LOCK", "keyword": "LOCK", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLES", "value": "TABLES", "keyword": "TABLES", "type": 1, "flags": 1, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "non_keyword", "value": "non_keyword", "keyword": null, "type": 0, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 12, "idx": 12 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LockStatement", "locked": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\LockExpression", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": "table1", "function": null, "subquery": null }, "type": "" } ], "isLock": true, "options": null, "first": 0, "last": 11 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "An alias was previously found.", { "@type": "@12" }, 0 ], [ "Unexpected token.", { "@type": "@12" }, 0 ], [ "Unexpected end of LOCK expression.", null, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseLockErr8.in000066400000000000000000000000601455302707200222020ustar00rootroot00000000000000LOCK TABLES table1 AS table1 READ AUTO_INCREMENTsql-parser-5.9.0/tests/data/parser/parseLockErr8.out000066400000000000000000000140611455302707200224110ustar00rootroot00000000000000{ "query": "LOCK TABLES table1 AS table1 READ AUTO_INCREMENT", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOCK TABLES table1 AS table1 READ AUTO_INCREMENT", "len": 48, "last": 48, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK", "value": "LOCK", "keyword": "LOCK", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLES", "value": "TABLES", "keyword": "TABLES", "type": 1, "flags": 1, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "READ", "value": "READ", "keyword": "READ", "type": 1, "flags": 3, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AUTO_INCREMENT", "value": "AUTO_INCREMENT", "keyword": "AUTO_INCREMENT", "type": 1, "flags": 1, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 14, "idx": 14 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LockStatement", "locked": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\LockExpression", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": "table1", "function": null, "subquery": null }, "type": "READ" } ], "isLock": true, "options": null, "first": 0, "last": 13 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword.", { "@type": "@14" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseLockErr9.in000066400000000000000000000000561455302707200222100ustar00rootroot00000000000000LOCK TABLES table1 AS table1 LOW_PRIORITY READsql-parser-5.9.0/tests/data/parser/parseLockErr9.out000066400000000000000000000143341455302707200224150ustar00rootroot00000000000000{ "query": "LOCK TABLES table1 AS table1 LOW_PRIORITY READ", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "LOCK TABLES table1 AS table1 LOW_PRIORITY READ", "len": 46, "last": 46, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK", "value": "LOCK", "keyword": "LOCK", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLES", "value": "TABLES", "keyword": "TABLES", "type": 1, "flags": 1, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOW_PRIORITY", "value": "LOW_PRIORITY", "keyword": "LOW_PRIORITY", "type": 1, "flags": 3, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "READ", "value": "READ", "keyword": "READ", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 14, "idx": 14 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LockStatement", "locked": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\LockExpression", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": "table1", "function": null, "subquery": null }, "type": "LOW_PRIORITY" } ], "isLock": true, "options": null, "first": 0, "last": 13 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword.", { "@type": "@14" }, 0 ], [ "Unexpected end of LOCK expression.", { "@type": "@12" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parsePurge.in000066400000000000000000000000451455302707200216360ustar00rootroot00000000000000PURGE BINARY LOGS TO 'mysql-bin.010';sql-parser-5.9.0/tests/data/parser/parsePurge.out000066400000000000000000000113431455302707200220420ustar00rootroot00000000000000{ "query": "PURGE BINARY LOGS TO 'mysql-bin.010';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "PURGE BINARY LOGS TO 'mysql-bin.010';", "len": 37, "last": 37, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PURGE", "value": "PURGE", "keyword": "PURGE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BINARY", "value": "BINARY", "keyword": "BINARY", "type": 1, "flags": 43, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOGS", "value": "LOGS", "keyword": "LOGS", "type": 1, "flags": 1, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'mysql-bin.010'", "value": "mysql-bin.010", "keyword": null, "type": 7, "flags": 1, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 11, "idx": 11 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\PurgeStatement", "log_type": "BINARY", "end_option": "TO", "end_expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "mysql-bin.010", "expr": "'mysql-bin.010'", "alias": null, "function": null, "subquery": null }, "options": null, "first": 0, "last": 9 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parsePurge2.in000066400000000000000000000000571455302707200217230ustar00rootroot00000000000000PURGE BINARY LOGS BEFORE '2008-04-02 22:46:26';sql-parser-5.9.0/tests/data/parser/parsePurge2.out000066400000000000000000000114371455302707200221300ustar00rootroot00000000000000{ "query": "PURGE BINARY LOGS BEFORE '2008-04-02 22:46:26';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "PURGE BINARY LOGS BEFORE '2008-04-02 22:46:26';", "len": 47, "last": 47, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PURGE", "value": "PURGE", "keyword": "PURGE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BINARY", "value": "BINARY", "keyword": "BINARY", "type": 1, "flags": 43, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOGS", "value": "LOGS", "keyword": "LOGS", "type": 1, "flags": 1, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BEFORE", "value": "BEFORE", "keyword": "BEFORE", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'2008-04-02 22:46:26'", "value": "2008-04-02 22:46:26", "keyword": null, "type": 7, "flags": 1, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 11, "idx": 11 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\PurgeStatement", "log_type": "BINARY", "end_option": "BEFORE", "end_expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "2008-04-02 22:46:26", "expr": "'2008-04-02 22:46:26'", "alias": null, "function": null, "subquery": null }, "options": null, "first": 0, "last": 9 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parsePurge3.in000066400000000000000000000000571455302707200217240ustar00rootroot00000000000000PURGE MASTER LOGS BEFORE '2008-04-02 22:46:26';sql-parser-5.9.0/tests/data/parser/parsePurge3.out000066400000000000000000000114361455302707200221300ustar00rootroot00000000000000{ "query": "PURGE MASTER LOGS BEFORE '2008-04-02 22:46:26';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "PURGE MASTER LOGS BEFORE '2008-04-02 22:46:26';", "len": 47, "last": 47, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PURGE", "value": "PURGE", "keyword": "PURGE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MASTER", "value": "MASTER", "keyword": "MASTER", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOGS", "value": "LOGS", "keyword": "LOGS", "type": 1, "flags": 1, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BEFORE", "value": "BEFORE", "keyword": "BEFORE", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'2008-04-02 22:46:26'", "value": "2008-04-02 22:46:26", "keyword": null, "type": 7, "flags": 1, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 11, "idx": 11 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\PurgeStatement", "log_type": "MASTER", "end_option": "BEFORE", "end_expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "2008-04-02 22:46:26", "expr": "'2008-04-02 22:46:26'", "alias": null, "function": null, "subquery": null }, "options": null, "first": 0, "last": 9 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parsePurge4.in000066400000000000000000000000451455302707200217220ustar00rootroot00000000000000PURGE MASTER LOGS TO 'mysql-bin.010';sql-parser-5.9.0/tests/data/parser/parsePurge4.out000066400000000000000000000113421455302707200221250ustar00rootroot00000000000000{ "query": "PURGE MASTER LOGS TO 'mysql-bin.010';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "PURGE MASTER LOGS TO 'mysql-bin.010';", "len": 37, "last": 37, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PURGE", "value": "PURGE", "keyword": "PURGE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MASTER", "value": "MASTER", "keyword": "MASTER", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOGS", "value": "LOGS", "keyword": "LOGS", "type": 1, "flags": 1, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'mysql-bin.010'", "value": "mysql-bin.010", "keyword": null, "type": 7, "flags": 1, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 11, "idx": 11 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\PurgeStatement", "log_type": "MASTER", "end_option": "TO", "end_expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "mysql-bin.010", "expr": "'mysql-bin.010'", "alias": null, "function": null, "subquery": null }, "options": null, "first": 0, "last": 9 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parsePurgeErr.in000066400000000000000000000000361455302707200223070ustar00rootroot00000000000000PURGE LOGS TO 'mysql-bin.010';sql-parser-5.9.0/tests/data/parser/parsePurgeErr.out000066400000000000000000000105521455302707200225140ustar00rootroot00000000000000{ "query": "PURGE LOGS TO 'mysql-bin.010';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "PURGE LOGS TO 'mysql-bin.010';", "len": 30, "last": 30, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PURGE", "value": "PURGE", "keyword": "PURGE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOGS", "value": "LOGS", "keyword": "LOGS", "type": 1, "flags": 1, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'mysql-bin.010'", "value": "mysql-bin.010", "keyword": null, "type": 7, "flags": 1, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 9, "idx": 9 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\PurgeStatement", "log_type": null, "end_option": null, "end_expr": null, "options": null, "first": 0, "last": 7 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword", { "@type": "@4" }, 0 ], [ "Unexpected keyword", { "@type": "@6" }, 0 ], [ "Unexpected token.", { "@type": "@8" }, 0 ], [ "Unexpected token.", { "@type": "@8" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parsePurgeErr2.in000066400000000000000000000000271455302707200223710ustar00rootroot00000000000000PURGE BINARY LOGS INTO;sql-parser-5.9.0/tests/data/parser/parsePurgeErr2.out000066400000000000000000000100441455302707200225720ustar00rootroot00000000000000{ "query": "PURGE BINARY LOGS INTO;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "PURGE BINARY LOGS INTO;", "len": 23, "last": 23, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PURGE", "value": "PURGE", "keyword": "PURGE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BINARY", "value": "BINARY", "keyword": "BINARY", "type": 1, "flags": 43, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOGS", "value": "LOGS", "keyword": "LOGS", "type": 1, "flags": 1, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 9, "idx": 9 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\PurgeStatement", "log_type": "BINARY", "end_option": null, "end_expr": null, "options": null, "first": 0, "last": 7 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword", { "@type": "@8" }, 0 ], [ "Unexpected token.", { "@type": "@8" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parsePurgeErr3.in000066400000000000000000000000461455302707200223730ustar00rootroot00000000000000PURGE BINARY LOGS TO 'mysql.bin' INTO;sql-parser-5.9.0/tests/data/parser/parsePurgeErr3.out000066400000000000000000000131701455302707200225760ustar00rootroot00000000000000{ "query": "PURGE BINARY LOGS TO 'mysql.bin' INTO;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "PURGE BINARY LOGS TO 'mysql.bin' INTO;", "len": 38, "last": 38, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PURGE", "value": "PURGE", "keyword": "PURGE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BINARY", "value": "BINARY", "keyword": "BINARY", "type": 1, "flags": 43, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOGS", "value": "LOGS", "keyword": "LOGS", "type": 1, "flags": 1, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'mysql.bin'", "value": "mysql.bin", "keyword": null, "type": 7, "flags": 1, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 13, "idx": 13 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\PurgeStatement", "log_type": "BINARY", "end_option": "TO", "end_expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "mysql.bin", "expr": "'mysql.bin'", "alias": null, "function": null, "subquery": null }, "options": null, "first": 0, "last": 11 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected token.", { "@type": "@12" }, 0 ], [ "Unexpected token.", { "@type": "@12" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseRename.in000066400000000000000000000000271455302707200217630ustar00rootroot00000000000000RENAME TABLE foo TO barsql-parser-5.9.0/tests/data/parser/parseRename.out000066400000000000000000000117461455302707200221760ustar00rootroot00000000000000{ "query": "RENAME TABLE foo TO bar", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "RENAME TABLE foo TO bar", "len": 23, "last": 23, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RENAME", "value": "RENAME", "keyword": "RENAME", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bar", "value": "bar", "keyword": null, "type": 0, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 10 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\RenameStatement", "renames": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\RenameOperation", "old": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "foo", "column": null, "expr": "foo", "alias": null, "function": null, "subquery": null }, "new": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "bar", "column": null, "expr": "bar", "alias": null, "function": null, "subquery": null } } ], "options": null, "first": 0, "last": 8 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseRename2.in000066400000000000000000000000441455302707200220440ustar00rootroot00000000000000RENAME TABLE foo TO bar, baz TO qux;sql-parser-5.9.0/tests/data/parser/parseRename2.out000066400000000000000000000206111455302707200222470ustar00rootroot00000000000000{ "query": "RENAME TABLE foo TO bar, baz TO qux;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "RENAME TABLE foo TO bar, baz TO qux;", "len": 36, "last": 36, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RENAME", "value": "RENAME", "keyword": "RENAME", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bar", "value": "bar", "keyword": null, "type": 0, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "baz", "value": "baz", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "qux", "value": "qux", "keyword": null, "type": 0, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 18, "idx": 18 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\RenameStatement", "renames": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\RenameOperation", "old": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "foo", "column": null, "expr": "foo", "alias": null, "function": null, "subquery": null }, "new": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "bar", "column": null, "expr": "bar", "alias": null, "function": null, "subquery": null } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\RenameOperation", "old": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "baz", "column": null, "expr": "baz", "alias": null, "function": null, "subquery": null }, "new": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "qux", "column": null, "expr": "qux", "alias": null, "function": null, "subquery": null } } ], "options": null, "first": 0, "last": 15 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseRenameErr1.in000066400000000000000000000000241455302707200225120ustar00rootroot00000000000000RENAME TABLE a TO TOsql-parser-5.9.0/tests/data/parser/parseRenameErr1.out000066400000000000000000000113541455302707200227230ustar00rootroot00000000000000{ "query": "RENAME TABLE a TO TO", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "RENAME TABLE a TO TO", "len": 20, "last": 20, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RENAME", "value": "RENAME", "keyword": "RENAME", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 10 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\RenameStatement", "renames": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\RenameOperation", "old": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "a", "alias": null, "function": null, "subquery": null }, "new": null } ], "options": null, "first": 0, "last": 8 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "The new name of the table was expected.", { "@type": "@10" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseRenameErr2.in000066400000000000000000000000221455302707200225110ustar00rootroot00000000000000RENAME TABLE TABLEsql-parser-5.9.0/tests/data/parser/parseRenameErr2.out000066400000000000000000000061451455302707200227260ustar00rootroot00000000000000{ "query": "RENAME TABLE TABLE", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "RENAME TABLE TABLE", "len": 18, "last": 18, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RENAME", "value": "RENAME", "keyword": "RENAME", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 6, "idx": 6 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\RenameStatement", "renames": [], "options": null, "first": 0, "last": 4 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "The old name of the table was expected.", { "@type": "@6" }, 0 ], [ "A rename operation was expected.", { "@type": "@6" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseRenameErr3.in000066400000000000000000000000231455302707200225130ustar00rootroot00000000000000RENAME TABLE a FROMsql-parser-5.9.0/tests/data/parser/parseRenameErr3.out000066400000000000000000000107611455302707200227260ustar00rootroot00000000000000{ "query": "RENAME TABLE a FROM", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "RENAME TABLE a FROM", "len": 19, "last": 19, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RENAME", "value": "RENAME", "keyword": "RENAME", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 8, "idx": 8 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\RenameStatement", "renames": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\RenameOperation", "old": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "a", "alias": null, "function": null, "subquery": null }, "new": null } ], "options": null, "first": 0, "last": 6, "from": [] } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Keyword \"TO\" was expected.", { "@type": "@8" }, 0 ], [ "A rename operation was expected.", { "@type": "@7" }, 0 ], [ "An expression was expected.", { "@type": "@9" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseRenameErr4.in000066400000000000000000000000321455302707200225140ustar00rootroot00000000000000RENAME TABLE foo TO bar TOsql-parser-5.9.0/tests/data/parser/parseRenameErr4.out000066400000000000000000000133611455302707200227260ustar00rootroot00000000000000{ "query": "RENAME TABLE foo TO bar TO", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "RENAME TABLE foo TO bar TO", "len": 26, "last": 26, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RENAME", "value": "RENAME", "keyword": "RENAME", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bar", "value": "bar", "keyword": null, "type": 0, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 12, "idx": 12 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\RenameStatement", "renames": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\RenameOperation", "old": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "foo", "column": null, "expr": "foo", "alias": null, "function": null, "subquery": null }, "new": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "bar", "column": null, "expr": "bar", "alias": null, "function": null, "subquery": null } } ], "options": null, "first": 0, "last": 10 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unrecognized keyword.", { "@type": "@12" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseRenameErr5.in000066400000000000000000000000071455302707200225170ustar00rootroot00000000000000RENAME sql-parser-5.9.0/tests/data/parser/parseRenameErr5.out000066400000000000000000000040011455302707200227160ustar00rootroot00000000000000{ "query": "RENAME\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "RENAME\n", "len": 7, "last": 7, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RENAME", "value": "RENAME", "keyword": "RENAME", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 3, "idx": 4 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\RenameStatement", "renames": null, "options": null, "first": 0, "last": 3 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Keyword at end of statement.", { "@type": "@2" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseReplace.in000066400000000000000000000001131455302707200221230ustar00rootroot00000000000000REPLACE LOW_PRIORITY INTO users(id, username) VALUES (1, 'Foo'), (2, 'Bar')sql-parser-5.9.0/tests/data/parser/parseReplace.out000066400000000000000000000302411455302707200223310ustar00rootroot00000000000000{ "query": "REPLACE LOW_PRIORITY\nINTO users(id, username)\nVALUES (1, 'Foo'), (2, 'Bar')", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "REPLACE LOW_PRIORITY\nINTO users(id, username)\nVALUES (1, 'Foo'), (2, 'Bar')", "len": 75, "last": 75, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REPLACE", "value": "REPLACE", "keyword": "REPLACE", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOW_PRIORITY", "value": "LOW_PRIORITY", "keyword": "LOW_PRIORITY", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "users", "value": "users", "keyword": null, "type": 0, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Foo'", "value": "Foo", "keyword": null, "type": 7, "flags": 1, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Bar'", "value": "Bar", "keyword": null, "type": 7, "flags": 1, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 31, "idx": 31 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ReplaceStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "users", "column": null, "expr": "users", "alias": null, "function": null, "subquery": null }, "columns": [ "id", "username" ], "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "1", "'Foo'" ], "values": [ "1", "Foo" ] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "2", "'Bar'" ], "values": [ "2", "Bar" ] } ], "set": null, "select": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "LOW_PRIORITY" } }, "first": 0, "last": 29 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseReplace2.in000066400000000000000000000001011455302707200222020ustar00rootroot00000000000000REPLACE LOW_PRIORITY INTO users SET id = 1, username = 'Bar';sql-parser-5.9.0/tests/data/parser/parseReplace2.out000066400000000000000000000232271455302707200224210ustar00rootroot00000000000000{ "query": "REPLACE LOW_PRIORITY\nINTO users\nSET id = 1,\n username = 'Bar';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "REPLACE LOW_PRIORITY\nINTO users\nSET id = 1,\n username = 'Bar';", "len": 65, "last": 65, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REPLACE", "value": "REPLACE", "keyword": "REPLACE", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOW_PRIORITY", "value": "LOW_PRIORITY", "keyword": "LOW_PRIORITY", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "users", "value": "users", "keyword": null, "type": 0, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Bar'", "value": "Bar", "keyword": null, "type": 7, "flags": 1, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 24, "idx": 24 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ReplaceStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "users", "column": null, "expr": "users", "alias": null, "function": null, "subquery": null }, "columns": null, "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": null, "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "id", "value": "1" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "username", "value": "'Bar'" } ], "select": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "LOW_PRIORITY" } }, "first": 0, "last": 21 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseReplaceErr.in000066400000000000000000000001041455302707200225740ustar00rootroot00000000000000REPLACE LOW_PRIORITY INTO users(id, username) (1, 'Foo'), (2, 'Bar')sql-parser-5.9.0/tests/data/parser/parseReplaceErr.out000066400000000000000000000271661455302707200230160ustar00rootroot00000000000000{ "query": "REPLACE LOW_PRIORITY\nINTO users(id, username)\n(1, 'Foo'), (2, 'Bar')", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "REPLACE LOW_PRIORITY\nINTO users(id, username)\n(1, 'Foo'), (2, 'Bar')", "len": 68, "last": 68, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REPLACE", "value": "REPLACE", "keyword": "REPLACE", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOW_PRIORITY", "value": "LOW_PRIORITY", "keyword": "LOW_PRIORITY", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "users", "value": "users", "keyword": null, "type": 0, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Foo'", "value": "Foo", "keyword": null, "type": 7, "flags": 1, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Bar'", "value": "Bar", "keyword": null, "type": 7, "flags": 1, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 29, "idx": 29 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ReplaceStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "users", "column": null, "expr": "users", "alias": null, "function": null, "subquery": null }, "columns": [ "id", "username" ], "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": null, "set": null, "select": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "LOW_PRIORITY" } }, "first": 0, "last": 13 } ], "brackets": 2, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected token.", { "@type": "@16" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@17" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@20" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@25" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@28" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseReplaceErr2.in000066400000000000000000000000171455302707200226610ustar00rootroot00000000000000REPLACE SELECT sql-parser-5.9.0/tests/data/parser/parseReplaceErr2.out000066400000000000000000000074361455302707200230760ustar00rootroot00000000000000{ "query": "REPLACE SELECT\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "REPLACE SELECT\n", "len": 15, "last": 15, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REPLACE", "value": "REPLACE", "keyword": "REPLACE", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 5, "idx": 5 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ReplaceStatement", "into": null, "values": null, "set": null, "select": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 1 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 2, "last": 3 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword.", { "@type": "@4" }, 0 ], [ "An expression was expected.", { "@type": "@6" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseReplaceErr3.in000066400000000000000000000000311455302707200226560ustar00rootroot00000000000000REPLACE INTO x "string" sql-parser-5.9.0/tests/data/parser/parseReplaceErr3.out000066400000000000000000000116741455302707200230760ustar00rootroot00000000000000{ "query": "REPLACE INTO x \"string\"\n\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "REPLACE INTO x \"string\"\n\n", "len": 25, "last": 25, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REPLACE", "value": "REPLACE", "keyword": "REPLACE", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "x", "value": "x", "keyword": "X", "type": 1, "flags": 33, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"string\"", "value": "string", "keyword": null, "type": 7, "flags": 2, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 9, "idx": 9 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ReplaceStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "x", "column": null, "expr": "x", "alias": null, "function": null, "subquery": null }, "columns": null, "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": null, "set": null, "select": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 5 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected token.", { "@type": "@8" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@8" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseReplaceIntoErr.in000066400000000000000000000000271455302707200234320ustar00rootroot00000000000000REPLACE INTO x INSERT sql-parser-5.9.0/tests/data/parser/parseReplaceIntoErr.out000066400000000000000000000124201455302707200236330ustar00rootroot00000000000000{ "query": "REPLACE INTO x INSERT\n\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "REPLACE INTO x INSERT\n\n", "len": 23, "last": 23, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REPLACE", "value": "REPLACE", "keyword": "REPLACE", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "x", "value": "x", "keyword": "X", "type": 1, "flags": 33, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 9, "idx": 9 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ReplaceStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "x", "column": null, "expr": "x", "alias": null, "function": null, "subquery": null }, "columns": null, "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": null, "set": null, "select": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": null, "values": null, "set": null, "select": null, "with": null, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 6, "last": 7 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword.", { "@type": "@8" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseReplaceSelect.in000066400000000000000000000000611455302707200232650ustar00rootroot00000000000000REPLACE INTO `a` (`value`) SELECT value from `b`sql-parser-5.9.0/tests/data/parser/parseReplaceSelect.out000066400000000000000000000222451455302707200234760ustar00rootroot00000000000000{ "query": "REPLACE INTO `a` (`value`) SELECT value from `b`", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "REPLACE INTO `a` (`value`) SELECT value from `b`", "len": 49, "last": 49, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REPLACE", "value": "REPLACE", "keyword": "REPLACE", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`a`", "value": "a", "keyword": null, "type": 8, "flags": 2, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`value`", "value": "value", "keyword": null, "type": 8, "flags": 2, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "value", "value": "value", "keyword": "VALUE", "type": 1, "flags": 1, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "from", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`b`", "value": "b", "keyword": null, "type": 8, "flags": 2, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 18, "idx": 18 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ReplaceStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "`a`", "alias": null, "function": null, "subquery": null }, "columns": [ "value" ], "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": null, "set": null, "select": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "value", "expr": "value", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "b", "column": null, "expr": "`b`", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 10, "last": 16 }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 16 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseReplaceSet.in000066400000000000000000000000541455302707200226030ustar00rootroot00000000000000REPLACE INTO `a` (`value`) SET value = '123'sql-parser-5.9.0/tests/data/parser/parseReplaceSet.out000066400000000000000000000171171455302707200230140ustar00rootroot00000000000000{ "query": "REPLACE INTO `a` (`value`) SET value = '123'", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "REPLACE INTO `a` (`value`) SET value = '123'", "len": 44, "last": 44, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REPLACE", "value": "REPLACE", "keyword": "REPLACE", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`a`", "value": "a", "keyword": null, "type": 8, "flags": 2, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`value`", "value": "value", "keyword": null, "type": 8, "flags": 2, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "value", "value": "value", "keyword": "VALUE", "type": 1, "flags": 1, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'123'", "value": "123", "keyword": null, "type": 7, "flags": 1, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 18, "idx": 18 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ReplaceStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "`a`", "alias": null, "function": null, "subquery": null }, "columns": [ "value" ], "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": null, "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "value", "value": "'123'" } ], "select": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 16 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseReplaceValues.in000066400000000000000000000000621455302707200233060ustar00rootroot00000000000000REPLACE INTO `a` (`value`) VALUES ('123'), ('123')sql-parser-5.9.0/tests/data/parser/parseReplaceValues.out000066400000000000000000000216201455302707200235120ustar00rootroot00000000000000{ "query": "REPLACE INTO `a` (`value`) VALUES ('123'), ('123')", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "REPLACE INTO `a` (`value`) VALUES ('123'), ('123')", "len": 50, "last": 50, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REPLACE", "value": "REPLACE", "keyword": "REPLACE", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`a`", "value": "a", "keyword": null, "type": 8, "flags": 2, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`value`", "value": "value", "keyword": null, "type": 8, "flags": 2, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'123'", "value": "123", "keyword": null, "type": 7, "flags": 1, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'123'", "value": "123", "keyword": null, "type": 7, "flags": 1, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 21, "idx": 21 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\ReplaceStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "`a`", "alias": null, "function": null, "subquery": null }, "columns": [ "value" ], "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "'123'" ], "values": [ "123" ] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "'123'" ], "values": [ "123" ] } ], "set": null, "select": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 19 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseRestore.in000066400000000000000000000000671455302707200222030ustar00rootroot00000000000000RESTORE TABLE my_table FROM "/path/to/backup/directory"sql-parser-5.9.0/tests/data/parser/parseRestore.out000066400000000000000000000117061455302707200224060ustar00rootroot00000000000000{ "query": "RESTORE TABLE my_table FROM \"/path/to/backup/directory\"", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "RESTORE TABLE my_table FROM \"/path/to/backup/directory\"", "len": 55, "last": 55, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RESTORE", "value": "RESTORE", "keyword": "RESTORE", "type": 1, "flags": 1, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_table", "value": "my_table", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"/path/to/backup/directory\"", "value": "/path/to/backup/directory", "keyword": null, "type": 7, "flags": 2, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 10 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\RestoreStatement", "tables": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_table", "column": null, "expr": "my_table", "alias": null, "function": null, "subquery": null } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [ "TABLE", { "name": "FROM", "equals": false, "expr": "\"/path/to/backup/directory\"", "value": "/path/to/backup/directory" } ] }, "first": 0, "last": 8 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelect.in000066400000000000000000000003471455302707200220000ustar00rootroot00000000000000SELECT ALL MAX_STATEMENT_TIME = 10 1 + 2 AS result, @idx, id, test.`users`.username AS `name` FROM `test`.users, posts PARTITION (p1, p2) WHERE id > 0 ORDER BY username DESC, id LIMIT 3 OFFSET 2;sql-parser-5.9.0/tests/data/parser/parseSelect.out000066400000000000000000000756721455302707200222160ustar00rootroot00000000000000{ "query": "SELECT ALL MAX_STATEMENT_TIME = 10\n 1 + 2 AS result,\n @idx,\n id,\n test.`users`.username AS `name`\nFROM\n `test`.users, posts\n PARTITION (p1, p2)\nWHERE\n id > 0\nORDER BY\n username DESC,\n id\nLIMIT 3 OFFSET 2;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT ALL MAX_STATEMENT_TIME = 10\n 1 + 2 AS result,\n @idx,\n id,\n test.`users`.username AS `name`\nFROM\n `test`.users, posts\n PARTITION (p1, p2)\nWHERE\n id > 0\nORDER BY\n username DESC,\n id\nLIMIT 3 OFFSET 2;", "len": 231, "last": 231, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALL", "value": "ALL", "keyword": "ALL", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MAX_STATEMENT_TIME", "value": "MAX_STATEMENT_TIME", "keyword": "MAX_STATEMENT_TIME", "type": 1, "flags": 1, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "result", "value": "result", "keyword": null, "type": 0, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@idx", "value": "idx", "keyword": null, "type": 8, "flags": 1, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`users`", "value": "users", "keyword": null, "type": 8, "flags": 2, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`name`", "value": "name", "keyword": null, "type": 8, "flags": 2, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`test`", "value": "test", "keyword": null, "type": 8, "flags": 2, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "users", "value": "users", "keyword": null, "type": 0, "flags": 0, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "posts", "value": "posts", "keyword": null, "type": 0, "flags": 0, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 153 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p1", "value": "p1", "keyword": null, "type": 0, "flags": 0, "position": 154 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p2", "value": "p2", "keyword": null, "type": 0, "flags": 0, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 172 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ">", "value": ">", "keyword": null, "type": 2, "flags": 2, "position": 175 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ORDER BY", "value": "ORDER BY", "keyword": "ORDER BY", "type": 1, "flags": 7, "position": 179 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 187 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 192 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 200 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DESC", "value": "DESC", "keyword": "DESC", "type": 1, "flags": 3, "position": 201 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 205 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 206 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 211 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 213 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIMIT", "value": "LIMIT", "keyword": "LIMIT", "type": 1, "flags": 3, "position": 214 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 219 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 220 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 221 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OFFSET", "value": "OFFSET", "keyword": "OFFSET", "type": 1, "flags": 1, "position": 222 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 228 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 229 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 230 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 81, "idx": 81 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1 + 2", "alias": "result", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "@idx", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "id", "expr": "id", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "test", "table": "users", "column": "username", "expr": "test.`users`.username", "alias": "name", "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "test", "table": "users", "column": null, "expr": "`test`.users", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "posts", "column": null, "expr": "posts", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "p1", "p2" ], "values": [ "p1", "p2" ] }, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "id" ], "isOperator": false, "expr": "id > 0" } ], "group": null, "group_options": null, "having": null, "order": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\OrderKeyword", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "username", "expr": "username", "alias": null, "function": null, "subquery": null }, "type": "DESC" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\OrderKeyword", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "id", "expr": "id", "alias": null, "function": null, "subquery": null }, "type": "ASC" } ], "limit": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Limit", "offset": 2, "rowCount": 3 }, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ALL", "3": { "name": "MAX_STATEMENT_TIME", "equals": true, "expr": "10", "value": "10" } } }, "first": 0, "last": 78 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelect10.in000066400000000000000000000001231455302707200221310ustar00rootroot00000000000000SELECT my_column FROM my_table WHERE BINARY(my_column) != BINARY(UPPER(my_column)) sql-parser-5.9.0/tests/data/parser/parseSelect10.out000066400000000000000000000253051455302707200223430ustar00rootroot00000000000000{ "query": "SELECT my_column FROM my_table WHERE BINARY(my_column) != BINARY(UPPER(my_column))\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT my_column FROM my_table WHERE BINARY(my_column) != BINARY(UPPER(my_column))\n", "len": 83, "last": 83, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_column", "value": "my_column", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_table", "value": "my_table", "keyword": null, "type": 0, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BINARY", "value": "BINARY", "keyword": "BINARY", "type": 1, "flags": 43, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_column", "value": "my_column", "keyword": null, "type": 0, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "!=", "value": "!=", "keyword": null, "type": 2, "flags": 2, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BINARY", "value": "BINARY", "keyword": "BINARY", "type": 1, "flags": 43, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UPPER", "value": "UPPER", "keyword": "UPPER", "type": 1, "flags": 33, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_column", "value": "my_column", "keyword": null, "type": 0, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 26, "idx": 26 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "my_column", "expr": "my_column", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_table", "column": null, "expr": "my_table", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "my_column", "UPPER" ], "isOperator": false, "expr": "BINARY(my_column) != BINARY(UPPER(my_column))" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 24 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelect11.in000066400000000000000000000000231455302707200221310ustar00rootroot00000000000000SELECT 1 AND NOT 1 sql-parser-5.9.0/tests/data/parser/parseSelect11.out000066400000000000000000000123171455302707200223430ustar00rootroot00000000000000{ "query": "SELECT 1 AND NOT 1\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT 1 AND NOT 1\n", "len": 19, "last": 19, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT", "value": "NOT", "keyword": "NOT", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 11, "idx": 11 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1 AND NOT 1", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 9 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelect12.in000066400000000000000000000000241455302707200221330ustar00rootroot00000000000000SELECT NOT 1 AS testsql-parser-5.9.0/tests/data/parser/parseSelect12.out000066400000000000000000000116441455302707200223460ustar00rootroot00000000000000{ "query": "SELECT NOT 1 AS test", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT NOT 1 AS test", "len": 20, "last": 20, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT", "value": "NOT", "keyword": "NOT", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 10 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "NOT 1", "alias": "test", "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 8 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelect13.in000066400000000000000000000073721455302707200221510ustar00rootroot00000000000000SELECT post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS isdeleted, user.*, userfield.*, usertextfield.*, icon.title as icontitle, icon.iconpath, avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight, spamlog.postid AS spamlog_postid, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason, editlog.userid AS edit_userid, editlog.username AS edit_username, editlog.dateline AS edit_dateline, editlog.reason AS edit_reason, editlog.hashistory, postparsed.pagetext_html, postparsed.hasimages, sigparsed.signatureparsed, sigparsed.hasimages AS sighasimages, sigpic.userid AS sigpic, sigpic.dateline AS sigpicdateline, sigpic.width AS sigpicwidth, sigpic.height AS sigpicheight, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid , post_icon_list.icon_id_list, post_icon_list.is_auto AS icon_is_auto, approvedlog.modid AS approvedmodid, approvedlog.dateline AS approveddateline, approvedlog.status AS approvedstatus, approvedlog.info AS approvedinfo, movedlog.modid AS movedmodid, movedlog.dateline AS moveddateline, movedlog.status AS movedstatus, movedlog.info AS movedinfo, ( SELECT useragent FROM session WHERE userid=post.userid AND lastactivity > 1644859580 ORDER BY lastactivity DESC LIMIT 1 ) AS useragent, IF ( user.userid IS NOT NULL, (SELECT COUNT(usernoteid) FROM usernote AS usernote WHERE usernote.userid=user.userid AND usernote.priority>=0), 0 ) AS usernotecount , deletionlog.dateline AS del_dateline, scheduled_approval.defer_time AS vbpmal_approval_defer_time, additional_user_data.last_year_message_count, additional_user_data.last_year_reputation, additional_user_data.last_year_groan_count, paid_post_activation.activation_id AS paid_post_activation_id, alm_Model_UserData.credits FROM post AS post LEFT JOIN user AS user ON(user.userid = post.userid) LEFT JOIN userfield AS userfield ON(userfield.userid = user.userid) LEFT JOIN usertextfield AS usertextfield ON(usertextfield.userid = user.userid) LEFT JOIN icon AS icon ON(icon.iconid = post.iconid) LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid) LEFT JOIN spamlog AS spamlog ON(spamlog.postid = post.postid) LEFT JOIN deletionlog AS deletionlog ON(post.postid = deletionlog.primaryid AND deletionlog.type = 'post') LEFT JOIN editlog AS editlog ON(editlog.postid = post.postid) LEFT JOIN postparsed AS postparsed ON(postparsed.postid = post.postid AND postparsed.styleid = 23 AND postparsed.languageid = 5) LEFT JOIN sigparsed AS sigparsed ON(sigparsed.userid = user.userid AND sigparsed.styleid = 23 AND sigparsed.languageid = 5) LEFT JOIN sigpic AS sigpic ON(sigpic.userid = post.userid) LEFT JOIN vbppim_post_icon_list AS post_icon_list ON post_icon_list.post_id=post.postid LEFT JOIN vbpmal_log AS approvedlog ON (approvedlog.itemid=post.postid AND approvedlog.action='postapprove') LEFT JOIN vbpmal_log AS movedlog ON (movedlog.itemid=post.postid AND movedlog.action='postmove') LEFT JOIN vbpmal_scheduled_post_approval AS scheduled_approval ON scheduled_approval.post_id = post.postid LEFT JOIN vbpsmt_additional_user_data AS additional_user_data ON additional_user_data.userid=post.userid LEFT JOIN market_pp_post_activation_mapping AS paid_post_activation ON paid_post_activation.post_id = post.postid LEFT JOIN alm_Model_UserData AS alm_Model_UserData ON alm_Model_UserData.user_id=user.userid WHERE post.postid IN (0,3254399,3254508,3254743,3254817,3254969,3255328,3255582,3257603,3257873,3258126,3258150,3258254,3258272,3258311,3260767,3260770,3260776,3261180,3261263,3261317,3261318) ORDER BY post.datelinesql-parser-5.9.0/tests/data/parser/parseSelect13.out000066400000000000000000013542021455302707200223500ustar00rootroot00000000000000{ "query": "SELECT post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS isdeleted, user.*, userfield.*, usertextfield.*, icon.title as icontitle, icon.iconpath, avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight, spamlog.postid AS spamlog_postid, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason, editlog.userid AS edit_userid, editlog.username AS edit_username, editlog.dateline AS edit_dateline, editlog.reason AS edit_reason, editlog.hashistory, postparsed.pagetext_html, postparsed.hasimages, sigparsed.signatureparsed, sigparsed.hasimages AS sighasimages, sigpic.userid AS sigpic, sigpic.dateline AS sigpicdateline, sigpic.width AS sigpicwidth, sigpic.height AS sigpicheight, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid , post_icon_list.icon_id_list, post_icon_list.is_auto AS icon_is_auto, approvedlog.modid AS approvedmodid, approvedlog.dateline AS approveddateline, approvedlog.status AS approvedstatus, approvedlog.info AS approvedinfo, movedlog.modid AS movedmodid, movedlog.dateline AS moveddateline, movedlog.status AS movedstatus, movedlog.info AS movedinfo, ( SELECT useragent FROM session WHERE userid=post.userid AND lastactivity > 1644859580 ORDER BY lastactivity DESC LIMIT 1 ) AS useragent, IF ( user.userid IS NOT NULL, (SELECT COUNT(usernoteid) FROM usernote AS usernote WHERE usernote.userid=user.userid AND usernote.priority>=0), 0 ) AS usernotecount , deletionlog.dateline AS del_dateline, scheduled_approval.defer_time AS vbpmal_approval_defer_time, additional_user_data.last_year_message_count, additional_user_data.last_year_reputation, additional_user_data.last_year_groan_count, paid_post_activation.activation_id AS paid_post_activation_id, alm_Model_UserData.credits FROM post AS post LEFT JOIN user AS user ON(user.userid = post.userid) LEFT JOIN userfield AS userfield ON(userfield.userid = user.userid) LEFT JOIN usertextfield AS usertextfield ON(usertextfield.userid = user.userid) LEFT JOIN icon AS icon ON(icon.iconid = post.iconid) LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid) LEFT JOIN spamlog AS spamlog ON(spamlog.postid = post.postid) LEFT JOIN deletionlog AS deletionlog ON(post.postid = deletionlog.primaryid AND deletionlog.type = 'post') LEFT JOIN editlog AS editlog ON(editlog.postid = post.postid) LEFT JOIN postparsed AS postparsed ON(postparsed.postid = post.postid AND postparsed.styleid = 23 AND postparsed.languageid = 5) LEFT JOIN sigparsed AS sigparsed ON(sigparsed.userid = user.userid AND sigparsed.styleid = 23 AND sigparsed.languageid = 5) LEFT JOIN sigpic AS sigpic ON(sigpic.userid = post.userid) LEFT JOIN vbppim_post_icon_list AS post_icon_list ON post_icon_list.post_id=post.postid LEFT JOIN vbpmal_log AS approvedlog ON (approvedlog.itemid=post.postid AND approvedlog.action='postapprove') LEFT JOIN vbpmal_log AS movedlog ON (movedlog.itemid=post.postid AND movedlog.action='postmove') LEFT JOIN vbpmal_scheduled_post_approval AS scheduled_approval ON scheduled_approval.post_id = post.postid LEFT JOIN vbpsmt_additional_user_data AS additional_user_data ON additional_user_data.userid=post.userid LEFT JOIN market_pp_post_activation_mapping AS paid_post_activation ON paid_post_activation.post_id = post.postid LEFT JOIN alm_Model_UserData AS alm_Model_UserData ON alm_Model_UserData.user_id=user.userid WHERE post.postid IN (0,3254399,3254508,3254743,3254817,3254969,3255328,3255582,3257603,3257873,3258126,3258150,3258254,3258272,3258311,3260767,3260770,3260776,3261180,3261263,3261317,3261318) ORDER BY post.dateline", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS isdeleted, user.*, userfield.*, usertextfield.*, icon.title as icontitle, icon.iconpath, avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight, spamlog.postid AS spamlog_postid, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason, editlog.userid AS edit_userid, editlog.username AS edit_username, editlog.dateline AS edit_dateline, editlog.reason AS edit_reason, editlog.hashistory, postparsed.pagetext_html, postparsed.hasimages, sigparsed.signatureparsed, sigparsed.hasimages AS sighasimages, sigpic.userid AS sigpic, sigpic.dateline AS sigpicdateline, sigpic.width AS sigpicwidth, sigpic.height AS sigpicheight, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid , post_icon_list.icon_id_list, post_icon_list.is_auto AS icon_is_auto, approvedlog.modid AS approvedmodid, approvedlog.dateline AS approveddateline, approvedlog.status AS approvedstatus, approvedlog.info AS approvedinfo, movedlog.modid AS movedmodid, movedlog.dateline AS moveddateline, movedlog.status AS movedstatus, movedlog.info AS movedinfo, ( SELECT useragent FROM session WHERE userid=post.userid AND lastactivity > 1644859580 ORDER BY lastactivity DESC LIMIT 1 ) AS useragent, IF ( user.userid IS NOT NULL, (SELECT COUNT(usernoteid) FROM usernote AS usernote WHERE usernote.userid=user.userid AND usernote.priority>=0), 0 ) AS usernotecount , deletionlog.dateline AS del_dateline, scheduled_approval.defer_time AS vbpmal_approval_defer_time, additional_user_data.last_year_message_count, additional_user_data.last_year_reputation, additional_user_data.last_year_groan_count, paid_post_activation.activation_id AS paid_post_activation_id, alm_Model_UserData.credits FROM post AS post LEFT JOIN user AS user ON(user.userid = post.userid) LEFT JOIN userfield AS userfield ON(userfield.userid = user.userid) LEFT JOIN usertextfield AS usertextfield ON(usertextfield.userid = user.userid) LEFT JOIN icon AS icon ON(icon.iconid = post.iconid) LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid) LEFT JOIN spamlog AS spamlog ON(spamlog.postid = post.postid) LEFT JOIN deletionlog AS deletionlog ON(post.postid = deletionlog.primaryid AND deletionlog.type = 'post') LEFT JOIN editlog AS editlog ON(editlog.postid = post.postid) LEFT JOIN postparsed AS postparsed ON(postparsed.postid = post.postid AND postparsed.styleid = 23 AND postparsed.languageid = 5) LEFT JOIN sigparsed AS sigparsed ON(sigparsed.userid = user.userid AND sigparsed.styleid = 23 AND sigparsed.languageid = 5) LEFT JOIN sigpic AS sigpic ON(sigpic.userid = post.userid) LEFT JOIN vbppim_post_icon_list AS post_icon_list ON post_icon_list.post_id=post.postid LEFT JOIN vbpmal_log AS approvedlog ON (approvedlog.itemid=post.postid AND approvedlog.action='postapprove') LEFT JOIN vbpmal_log AS movedlog ON (movedlog.itemid=post.postid AND movedlog.action='postmove') LEFT JOIN vbpmal_scheduled_post_approval AS scheduled_approval ON scheduled_approval.post_id = post.postid LEFT JOIN vbpsmt_additional_user_data AS additional_user_data ON additional_user_data.userid=post.userid LEFT JOIN market_pp_post_activation_mapping AS paid_post_activation ON paid_post_activation.post_id = post.postid LEFT JOIN alm_Model_UserData AS alm_Model_UserData ON alm_Model_UserData.user_id=user.userid WHERE post.postid IN (0,3254399,3254508,3254743,3254817,3254969,3255328,3255582,3257603,3257873,3258126,3258150,3258254,3258272,3258311,3260767,3260770,3260776,3261180,3261263,3261317,3261318) ORDER BY post.dateline", "len": 3834, "last": 3834, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post", "value": "post", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post", "value": "post", "keyword": null, "type": 0, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "postusername", "value": "postusername", "keyword": null, "type": 0, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post", "value": "post", "keyword": null, "type": 0, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ipaddress", "value": "ipaddress", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ip", "value": "ip", "keyword": null, "type": 0, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF", "value": "IF", "keyword": "IF", "type": 1, "flags": 35, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post", "value": "post", "keyword": null, "type": 0, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "visible", "value": "visible", "keyword": null, "type": 0, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "isdeleted", "value": "isdeleted", "keyword": null, "type": 0, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "user", "value": "user", "keyword": "user", "type": 0, "flags": 0, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userfield", "value": "userfield", "keyword": null, "type": 0, "flags": 0, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "usertextfield", "value": "usertextfield", "keyword": null, "type": 0, "flags": 0, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "icon", "value": "icon", "keyword": null, "type": 0, "flags": 0, "position": 147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "title", "value": "title", "keyword": null, "type": 0, "flags": 0, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "icontitle", "value": "icontitle", "keyword": null, "type": 0, "flags": 0, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 171 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "icon", "value": "icon", "keyword": null, "type": 0, "flags": 0, "position": 172 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "iconpath", "value": "iconpath", "keyword": null, "type": 0, "flags": 0, "position": 177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 185 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 186 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "avatar", "value": "avatar", "keyword": null, "type": 0, "flags": 0, "position": 187 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 193 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "avatarpath", "value": "avatarpath", "keyword": null, "type": 0, "flags": 0, "position": 194 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 204 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 205 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT", "value": "NOT", "keyword": "NOT", "type": 1, "flags": 3, "position": 206 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 209 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ISNULL", "value": "ISNULL", "keyword": "ISNULL", "type": 1, "flags": 33, "position": 210 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 216 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "customavatar", "value": "customavatar", "keyword": null, "type": 0, "flags": 0, "position": 217 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 229 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 230 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 236 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 237 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 238 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 240 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "hascustomavatar", "value": "hascustomavatar", "keyword": null, "type": 0, "flags": 0, "position": 241 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 256 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 257 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "customavatar", "value": "customavatar", "keyword": null, "type": 0, "flags": 0, "position": 258 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 270 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "dateline", "value": "dateline", "keyword": null, "type": 0, "flags": 0, "position": 271 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 279 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 280 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 282 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "avatardateline", "value": "avatardateline", "keyword": null, "type": 0, "flags": 0, "position": 283 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 297 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "customavatar", "value": "customavatar", "keyword": null, "type": 0, "flags": 0, "position": 298 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 310 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "width", "value": "width", "keyword": null, "type": 0, "flags": 0, "position": 311 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 316 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 317 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 319 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "avwidth", "value": "avwidth", "keyword": null, "type": 0, "flags": 0, "position": 320 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 327 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "customavatar", "value": "customavatar", "keyword": null, "type": 0, "flags": 0, "position": 328 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 340 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "height", "value": "height", "keyword": null, "type": 0, "flags": 0, "position": 341 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 347 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 348 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 350 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "avheight", "value": "avheight", "keyword": null, "type": 0, "flags": 0, "position": 351 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 359 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 360 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "spamlog", "value": "spamlog", "keyword": null, "type": 0, "flags": 0, "position": 361 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 368 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "postid", "value": "postid", "keyword": null, "type": 0, "flags": 0, "position": 369 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 375 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 376 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 378 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "spamlog_postid", "value": "spamlog_postid", "keyword": null, "type": 0, "flags": 0, "position": 379 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 393 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 394 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "deletionlog", "value": "deletionlog", "keyword": null, "type": 0, "flags": 0, "position": 395 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 406 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 407 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 413 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 414 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 416 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "del_userid", "value": "del_userid", "keyword": null, "type": 0, "flags": 0, "position": 417 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 427 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 428 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "deletionlog", "value": "deletionlog", "keyword": null, "type": 0, "flags": 0, "position": 429 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 440 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 441 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 449 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 450 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 452 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "del_username", "value": "del_username", "keyword": null, "type": 0, "flags": 0, "position": 453 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 465 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 466 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "deletionlog", "value": "deletionlog", "keyword": null, "type": 0, "flags": 0, "position": 467 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 478 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "reason", "value": "reason", "keyword": null, "type": 0, "flags": 0, "position": 479 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 485 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 486 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 488 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "del_reason", "value": "del_reason", "keyword": null, "type": 0, "flags": 0, "position": 489 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 499 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 500 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "editlog", "value": "editlog", "keyword": null, "type": 0, "flags": 0, "position": 501 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 508 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 509 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 515 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 516 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 518 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "edit_userid", "value": "edit_userid", "keyword": null, "type": 0, "flags": 0, "position": 519 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 530 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 531 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "editlog", "value": "editlog", "keyword": null, "type": 0, "flags": 0, "position": 532 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 539 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 540 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 548 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 549 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 551 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "edit_username", "value": "edit_username", "keyword": null, "type": 0, "flags": 0, "position": 552 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 565 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 566 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "editlog", "value": "editlog", "keyword": null, "type": 0, "flags": 0, "position": 567 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 574 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "dateline", "value": "dateline", "keyword": null, "type": 0, "flags": 0, "position": 575 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 583 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 584 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 586 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "edit_dateline", "value": "edit_dateline", "keyword": null, "type": 0, "flags": 0, "position": 587 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 600 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 601 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "editlog", "value": "editlog", "keyword": null, "type": 0, "flags": 0, "position": 602 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 609 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "reason", "value": "reason", "keyword": null, "type": 0, "flags": 0, "position": 610 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 616 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 617 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 619 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "edit_reason", "value": "edit_reason", "keyword": null, "type": 0, "flags": 0, "position": 620 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 631 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 632 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "editlog", "value": "editlog", "keyword": null, "type": 0, "flags": 0, "position": 633 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 640 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "hashistory", "value": "hashistory", "keyword": null, "type": 0, "flags": 0, "position": 641 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 651 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 652 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "postparsed", "value": "postparsed", "keyword": null, "type": 0, "flags": 0, "position": 653 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 663 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pagetext_html", "value": "pagetext_html", "keyword": null, "type": 0, "flags": 0, "position": 664 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 677 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 678 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "postparsed", "value": "postparsed", "keyword": null, "type": 0, "flags": 0, "position": 679 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 689 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "hasimages", "value": "hasimages", "keyword": null, "type": 0, "flags": 0, "position": 690 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 699 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 700 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "sigparsed", "value": "sigparsed", "keyword": null, "type": 0, "flags": 0, "position": 701 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 710 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "signatureparsed", "value": "signatureparsed", "keyword": null, "type": 0, "flags": 0, "position": 711 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 726 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 727 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "sigparsed", "value": "sigparsed", "keyword": null, "type": 0, "flags": 0, "position": 728 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 737 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "hasimages", "value": "hasimages", "keyword": null, "type": 0, "flags": 0, "position": 738 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 747 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 748 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 750 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "sighasimages", "value": "sighasimages", "keyword": null, "type": 0, "flags": 0, "position": 751 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 763 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 764 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "sigpic", "value": "sigpic", "keyword": null, "type": 0, "flags": 0, "position": 765 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 771 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 772 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 778 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 779 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 781 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "sigpic", "value": "sigpic", "keyword": null, "type": 0, "flags": 0, "position": 782 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 788 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 789 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "sigpic", "value": "sigpic", "keyword": null, "type": 0, "flags": 0, "position": 790 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 796 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "dateline", "value": "dateline", "keyword": null, "type": 0, "flags": 0, "position": 797 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 805 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 806 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 808 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "sigpicdateline", "value": "sigpicdateline", "keyword": null, "type": 0, "flags": 0, "position": 809 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 823 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 824 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "sigpic", "value": "sigpic", "keyword": null, "type": 0, "flags": 0, "position": 825 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 831 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "width", "value": "width", "keyword": null, "type": 0, "flags": 0, "position": 832 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 837 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 838 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 840 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "sigpicwidth", "value": "sigpicwidth", "keyword": null, "type": 0, "flags": 0, "position": 841 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 852 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 853 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "sigpic", "value": "sigpic", "keyword": null, "type": 0, "flags": 0, "position": 854 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 860 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "height", "value": "height", "keyword": null, "type": 0, "flags": 0, "position": 861 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 867 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 868 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 870 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "sigpicheight", "value": "sigpicheight", "keyword": null, "type": 0, "flags": 0, "position": 871 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 883 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 884 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF", "value": "IF", "keyword": "IF", "type": 1, "flags": 35, "position": 885 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 887 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "displaygroupid", "value": "displaygroupid", "keyword": null, "type": 0, "flags": 0, "position": 888 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 902 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 903 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 904 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 905 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "user", "value": "user", "keyword": "user", "type": 0, "flags": 0, "position": 906 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 910 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "usergroupid", "value": "usergroupid", "keyword": null, "type": 0, "flags": 0, "position": 911 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 922 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 923 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "displaygroupid", "value": "displaygroupid", "keyword": null, "type": 0, "flags": 0, "position": 924 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 938 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 939 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 940 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 942 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "displaygroupid", "value": "displaygroupid", "keyword": null, "type": 0, "flags": 0, "position": 943 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 957 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 958 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "infractiongroupid", "value": "infractiongroupid", "keyword": null, "type": 0, "flags": 0, "position": 959 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 976 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 977 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 978 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post_icon_list", "value": "post_icon_list", "keyword": null, "type": 0, "flags": 0, "position": 979 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 993 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "icon_id_list", "value": "icon_id_list", "keyword": null, "type": 0, "flags": 0, "position": 994 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1006 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1007 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post_icon_list", "value": "post_icon_list", "keyword": null, "type": 0, "flags": 0, "position": 1008 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1022 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "is_auto", "value": "is_auto", "keyword": null, "type": 0, "flags": 0, "position": 1023 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1030 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 1031 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1033 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "icon_is_auto", "value": "icon_is_auto", "keyword": null, "type": 0, "flags": 0, "position": 1034 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1046 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1047 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "approvedlog", "value": "approvedlog", "keyword": null, "type": 0, "flags": 0, "position": 1048 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1059 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "modid", "value": "modid", "keyword": null, "type": 0, "flags": 0, "position": 1060 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1065 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 1066 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1068 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "approvedmodid", "value": "approvedmodid", "keyword": null, "type": 0, "flags": 0, "position": 1069 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1082 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1083 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "approvedlog", "value": "approvedlog", "keyword": null, "type": 0, "flags": 0, "position": 1084 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1095 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "dateline", "value": "dateline", "keyword": null, "type": 0, "flags": 0, "position": 1096 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 1105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "approveddateline", "value": "approveddateline", "keyword": null, "type": 0, "flags": 0, "position": 1108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "approvedlog", "value": "approvedlog", "keyword": null, "type": 0, "flags": 0, "position": 1126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1137 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "status", "value": "status", "keyword": "STATUS", "type": 0, "flags": 0, "position": 1138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 1145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "approvedstatus", "value": "approvedstatus", "keyword": null, "type": 0, "flags": 0, "position": 1148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1163 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "approvedlog", "value": "approvedlog", "keyword": null, "type": 0, "flags": 0, "position": 1164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1175 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "info", "value": "info", "keyword": null, "type": 0, "flags": 0, "position": 1176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 1181 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1183 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "approvedinfo", "value": "approvedinfo", "keyword": null, "type": 0, "flags": 0, "position": 1184 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1196 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1197 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "movedlog", "value": "movedlog", "keyword": null, "type": 0, "flags": 0, "position": 1198 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1206 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "modid", "value": "modid", "keyword": null, "type": 0, "flags": 0, "position": 1207 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1212 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 1213 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1215 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "movedmodid", "value": "movedmodid", "keyword": null, "type": 0, "flags": 0, "position": 1216 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1226 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1227 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "movedlog", "value": "movedlog", "keyword": null, "type": 0, "flags": 0, "position": 1228 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1236 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "dateline", "value": "dateline", "keyword": null, "type": 0, "flags": 0, "position": 1237 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1245 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 1246 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1248 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "moveddateline", "value": "moveddateline", "keyword": null, "type": 0, "flags": 0, "position": 1249 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1262 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1263 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "movedlog", "value": "movedlog", "keyword": null, "type": 0, "flags": 0, "position": 1264 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1272 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "status", "value": "status", "keyword": "STATUS", "type": 0, "flags": 0, "position": 1273 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1279 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 1280 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1282 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "movedstatus", "value": "movedstatus", "keyword": null, "type": 0, "flags": 0, "position": 1283 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1294 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1295 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "movedlog", "value": "movedlog", "keyword": null, "type": 0, "flags": 0, "position": 1296 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1304 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "info", "value": "info", "keyword": null, "type": 0, "flags": 0, "position": 1305 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1309 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 1310 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1312 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "movedinfo", "value": "movedinfo", "keyword": null, "type": 0, "flags": 0, "position": 1313 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1322 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1323 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1324 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1325 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1326 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1332 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "useragent", "value": "useragent", "keyword": null, "type": 0, "flags": 0, "position": 1333 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1342 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 1343 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1347 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "session", "value": "session", "keyword": "SESSION", "type": 1, "flags": 1, "position": 1348 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1355 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 1356 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1361 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 1362 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 1368 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post", "value": "post", "keyword": null, "type": 0, "flags": 0, "position": 1369 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1373 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 1374 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1380 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 1381 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1384 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "lastactivity", "value": "lastactivity", "keyword": null, "type": 0, "flags": 0, "position": 1385 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1397 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ">", "value": ">", "keyword": null, "type": 2, "flags": 2, "position": 1398 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1399 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1644859580", "value": 1644859580, "keyword": null, "type": 6, "flags": 0, "position": 1400 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1410 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ORDER BY", "value": "ORDER BY", "keyword": "ORDER BY", "type": 1, "flags": 7, "position": 1411 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1419 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "lastactivity", "value": "lastactivity", "keyword": null, "type": 0, "flags": 0, "position": 1420 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1432 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DESC", "value": "DESC", "keyword": "DESC", "type": 1, "flags": 3, "position": 1433 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1437 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIMIT", "value": "LIMIT", "keyword": "LIMIT", "type": 1, "flags": 3, "position": 1438 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1443 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 1444 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1445 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1446 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1447 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 1448 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1450 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "useragent", "value": "useragent", "keyword": null, "type": 0, "flags": 0, "position": 1451 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1460 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1461 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IF", "value": "IF", "keyword": "IF", "type": 1, "flags": 35, "position": 1462 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1464 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1465 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1466 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "user", "value": "user", "keyword": "user", "type": 0, "flags": 0, "position": 1467 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1471 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 1472 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1478 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IS", "value": "IS", "keyword": "IS", "type": 1, "flags": 3, "position": 1479 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1481 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 1482 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1490 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1491 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1492 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1493 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1499 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COUNT", "value": "COUNT", "keyword": "COUNT", "type": 1, "flags": 33, "position": 1500 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1505 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "usernoteid", "value": "usernoteid", "keyword": null, "type": 0, "flags": 0, "position": 1506 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1516 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1517 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 1518 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1522 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "usernote", "value": "usernote", "keyword": null, "type": 0, "flags": 0, "position": 1523 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1531 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 1532 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1534 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "usernote", "value": "usernote", "keyword": null, "type": 0, "flags": 0, "position": 1535 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1543 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 1544 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1549 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "usernote", "value": "usernote", "keyword": null, "type": 0, "flags": 0, "position": 1550 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1558 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 1559 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 1565 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "user", "value": "user", "keyword": "user", "type": 0, "flags": 0, "position": 1566 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1570 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 1571 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1577 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 1578 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1581 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "usernote", "value": "usernote", "keyword": null, "type": 0, "flags": 0, "position": 1582 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1590 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "priority", "value": "priority", "keyword": null, "type": 0, "flags": 0, "position": 1591 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ">=", "value": ">=", "keyword": null, "type": 2, "flags": 2, "position": 1599 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 1601 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1602 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1603 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1604 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 1605 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1606 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1607 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1608 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 1609 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1611 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "usernotecount", "value": "usernotecount", "keyword": null, "type": 0, "flags": 0, "position": 1612 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1625 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1626 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1627 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "deletionlog", "value": "deletionlog", "keyword": null, "type": 0, "flags": 0, "position": 1628 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1639 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "dateline", "value": "dateline", "keyword": null, "type": 0, "flags": 0, "position": 1640 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1648 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 1649 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1651 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "del_dateline", "value": "del_dateline", "keyword": null, "type": 0, "flags": 0, "position": 1652 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1664 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1665 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "scheduled_approval", "value": "scheduled_approval", "keyword": null, "type": 0, "flags": 0, "position": 1666 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1684 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "defer_time", "value": "defer_time", "keyword": null, "type": 0, "flags": 0, "position": 1685 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1695 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 1696 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1698 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "vbpmal_approval_defer_time", "value": "vbpmal_approval_defer_time", "keyword": null, "type": 0, "flags": 0, "position": 1699 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1725 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1726 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "additional_user_data", "value": "additional_user_data", "keyword": null, "type": 0, "flags": 0, "position": 1727 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1747 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "last_year_message_count", "value": "last_year_message_count", "keyword": null, "type": 0, "flags": 0, "position": 1748 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1771 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1772 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "additional_user_data", "value": "additional_user_data", "keyword": null, "type": 0, "flags": 0, "position": 1773 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1793 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "last_year_reputation", "value": "last_year_reputation", "keyword": null, "type": 0, "flags": 0, "position": 1794 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1814 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1815 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "additional_user_data", "value": "additional_user_data", "keyword": null, "type": 0, "flags": 0, "position": 1816 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1836 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "last_year_groan_count", "value": "last_year_groan_count", "keyword": null, "type": 0, "flags": 0, "position": 1837 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1858 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1859 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "paid_post_activation", "value": "paid_post_activation", "keyword": null, "type": 0, "flags": 0, "position": 1860 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1880 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "activation_id", "value": "activation_id", "keyword": null, "type": 0, "flags": 0, "position": 1881 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1894 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 1895 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1897 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "paid_post_activation_id", "value": "paid_post_activation_id", "keyword": null, "type": 0, "flags": 0, "position": 1898 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1921 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1922 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "alm_Model_UserData", "value": "alm_Model_UserData", "keyword": null, "type": 0, "flags": 0, "position": 1923 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1941 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "credits", "value": "credits", "keyword": null, "type": 0, "flags": 0, "position": 1942 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1949 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 1950 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1954 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post", "value": "post", "keyword": null, "type": 0, "flags": 0, "position": 1955 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1959 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 1960 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1962 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post", "value": "post", "keyword": null, "type": 0, "flags": 0, "position": 1963 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1967 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 1968 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1977 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "user", "value": "user", "keyword": "USER", "type": 1, "flags": 33, "position": 1978 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1982 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 1983 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1985 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "user", "value": "user", "keyword": "USER", "type": 1, "flags": 33, "position": 1986 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1990 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 1991 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1993 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "user", "value": "user", "keyword": "user", "type": 0, "flags": 0, "position": 1994 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1998 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 1999 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2005 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2006 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2007 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post", "value": "post", "keyword": null, "type": 0, "flags": 0, "position": 2008 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2012 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 2013 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2019 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2020 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 2021 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2030 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userfield", "value": "userfield", "keyword": null, "type": 0, "flags": 0, "position": 2031 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2040 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 2041 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2043 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userfield", "value": "userfield", "keyword": null, "type": 0, "flags": 0, "position": 2044 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2053 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 2054 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2056 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userfield", "value": "userfield", "keyword": null, "type": 0, "flags": 0, "position": 2057 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2066 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 2067 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2073 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2074 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2075 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "user", "value": "user", "keyword": "user", "type": 0, "flags": 0, "position": 2076 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2080 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 2081 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2087 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2088 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 2089 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2098 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "usertextfield", "value": "usertextfield", "keyword": null, "type": 0, "flags": 0, "position": 2099 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 2113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "usertextfield", "value": "usertextfield", "keyword": null, "type": 0, "flags": 0, "position": 2116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 2130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "usertextfield", "value": "usertextfield", "keyword": null, "type": 0, "flags": 0, "position": 2133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 2147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2153 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2154 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "user", "value": "user", "keyword": "user", "type": 0, "flags": 0, "position": 2156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 2161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2168 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 2169 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "icon", "value": "icon", "keyword": null, "type": 0, "flags": 0, "position": 2179 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2183 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 2184 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2186 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "icon", "value": "icon", "keyword": null, "type": 0, "flags": 0, "position": 2187 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2191 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 2192 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2194 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "icon", "value": "icon", "keyword": null, "type": 0, "flags": 0, "position": 2195 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2199 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "iconid", "value": "iconid", "keyword": null, "type": 0, "flags": 0, "position": 2200 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2206 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2207 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2208 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post", "value": "post", "keyword": null, "type": 0, "flags": 0, "position": 2209 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2213 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "iconid", "value": "iconid", "keyword": null, "type": 0, "flags": 0, "position": 2214 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2220 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2221 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 2222 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2231 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "avatar", "value": "avatar", "keyword": null, "type": 0, "flags": 0, "position": 2232 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2238 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 2239 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2241 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "avatar", "value": "avatar", "keyword": null, "type": 0, "flags": 0, "position": 2242 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2248 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 2250 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2252 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "avatar", "value": "avatar", "keyword": null, "type": 0, "flags": 0, "position": 2253 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2259 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "avatarid", "value": "avatarid", "keyword": null, "type": 0, "flags": 0, "position": 2260 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2268 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2269 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2270 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "user", "value": "user", "keyword": "user", "type": 0, "flags": 0, "position": 2271 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2275 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "avatarid", "value": "avatarid", "keyword": null, "type": 0, "flags": 0, "position": 2276 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2284 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2285 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 2286 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2295 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "customavatar", "value": "customavatar", "keyword": null, "type": 0, "flags": 0, "position": 2296 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2308 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 2309 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2311 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "customavatar", "value": "customavatar", "keyword": null, "type": 0, "flags": 0, "position": 2312 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2324 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 2325 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2327 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "customavatar", "value": "customavatar", "keyword": null, "type": 0, "flags": 0, "position": 2328 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2340 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 2341 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2347 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2348 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2349 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "user", "value": "user", "keyword": "user", "type": 0, "flags": 0, "position": 2350 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2354 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 2355 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2361 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2362 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 2363 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2372 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "spamlog", "value": "spamlog", "keyword": null, "type": 0, "flags": 0, "position": 2373 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2380 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 2381 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2383 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "spamlog", "value": "spamlog", "keyword": null, "type": 0, "flags": 0, "position": 2384 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2391 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 2392 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2394 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "spamlog", "value": "spamlog", "keyword": null, "type": 0, "flags": 0, "position": 2395 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2402 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "postid", "value": "postid", "keyword": null, "type": 0, "flags": 0, "position": 2403 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2409 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2410 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2411 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post", "value": "post", "keyword": null, "type": 0, "flags": 0, "position": 2412 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2416 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "postid", "value": "postid", "keyword": null, "type": 0, "flags": 0, "position": 2417 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2423 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2424 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 2425 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2434 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "deletionlog", "value": "deletionlog", "keyword": null, "type": 0, "flags": 0, "position": 2435 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2446 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 2447 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2449 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "deletionlog", "value": "deletionlog", "keyword": null, "type": 0, "flags": 0, "position": 2450 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2461 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 2462 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2464 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post", "value": "post", "keyword": null, "type": 0, "flags": 0, "position": 2465 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2469 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "postid", "value": "postid", "keyword": null, "type": 0, "flags": 0, "position": 2470 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2476 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2477 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2478 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "deletionlog", "value": "deletionlog", "keyword": null, "type": 0, "flags": 0, "position": 2479 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2490 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "primaryid", "value": "primaryid", "keyword": null, "type": 0, "flags": 0, "position": 2491 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2500 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 2501 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2504 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "deletionlog", "value": "deletionlog", "keyword": null, "type": 0, "flags": 0, "position": 2505 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2516 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "type", "value": "type", "keyword": "TYPE", "type": 0, "flags": 0, "position": 2517 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2521 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2522 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2523 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'post'", "value": "post", "keyword": null, "type": 7, "flags": 1, "position": 2524 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2530 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2531 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 2532 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2541 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "editlog", "value": "editlog", "keyword": null, "type": 0, "flags": 0, "position": 2542 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2549 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 2550 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2552 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "editlog", "value": "editlog", "keyword": null, "type": 0, "flags": 0, "position": 2553 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2560 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 2561 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2563 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "editlog", "value": "editlog", "keyword": null, "type": 0, "flags": 0, "position": 2564 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2571 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "postid", "value": "postid", "keyword": null, "type": 0, "flags": 0, "position": 2572 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2578 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2579 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2580 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post", "value": "post", "keyword": null, "type": 0, "flags": 0, "position": 2581 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2585 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "postid", "value": "postid", "keyword": null, "type": 0, "flags": 0, "position": 2586 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2592 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2593 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 2594 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2603 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "postparsed", "value": "postparsed", "keyword": null, "type": 0, "flags": 0, "position": 2604 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2614 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 2615 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2617 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "postparsed", "value": "postparsed", "keyword": null, "type": 0, "flags": 0, "position": 2618 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2628 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 2629 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2631 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "postparsed", "value": "postparsed", "keyword": null, "type": 0, "flags": 0, "position": 2632 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2642 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "postid", "value": "postid", "keyword": null, "type": 0, "flags": 0, "position": 2643 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2649 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2650 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2651 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post", "value": "post", "keyword": null, "type": 0, "flags": 0, "position": 2652 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2656 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "postid", "value": "postid", "keyword": null, "type": 0, "flags": 0, "position": 2657 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2663 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 2664 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2667 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "postparsed", "value": "postparsed", "keyword": null, "type": 0, "flags": 0, "position": 2668 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2678 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "styleid", "value": "styleid", "keyword": null, "type": 0, "flags": 0, "position": 2679 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2686 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2687 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2688 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "23", "value": 23, "keyword": null, "type": 6, "flags": 0, "position": 2689 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2691 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 2692 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2695 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "postparsed", "value": "postparsed", "keyword": null, "type": 0, "flags": 0, "position": 2696 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2706 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "languageid", "value": "languageid", "keyword": null, "type": 0, "flags": 0, "position": 2707 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2717 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2718 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2719 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "5", "value": 5, "keyword": null, "type": 6, "flags": 0, "position": 2720 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2721 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2722 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 2723 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2732 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "sigparsed", "value": "sigparsed", "keyword": null, "type": 0, "flags": 0, "position": 2733 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2742 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 2743 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2745 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "sigparsed", "value": "sigparsed", "keyword": null, "type": 0, "flags": 0, "position": 2746 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2755 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 2756 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2758 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "sigparsed", "value": "sigparsed", "keyword": null, "type": 0, "flags": 0, "position": 2759 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2768 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 2769 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2775 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2776 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2777 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "user", "value": "user", "keyword": "user", "type": 0, "flags": 0, "position": 2778 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2782 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 2783 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2789 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 2790 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2793 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "sigparsed", "value": "sigparsed", "keyword": null, "type": 0, "flags": 0, "position": 2794 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2803 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "styleid", "value": "styleid", "keyword": null, "type": 0, "flags": 0, "position": 2804 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2811 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2812 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2813 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "23", "value": 23, "keyword": null, "type": 6, "flags": 0, "position": 2814 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2816 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 2817 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2820 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "sigparsed", "value": "sigparsed", "keyword": null, "type": 0, "flags": 0, "position": 2821 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2830 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "languageid", "value": "languageid", "keyword": null, "type": 0, "flags": 0, "position": 2831 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2841 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2842 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2843 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "5", "value": 5, "keyword": null, "type": 6, "flags": 0, "position": 2844 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2845 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2846 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 2847 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2856 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "sigpic", "value": "sigpic", "keyword": null, "type": 0, "flags": 0, "position": 2857 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2863 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 2864 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2866 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "sigpic", "value": "sigpic", "keyword": null, "type": 0, "flags": 0, "position": 2867 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2873 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 2874 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2876 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "sigpic", "value": "sigpic", "keyword": null, "type": 0, "flags": 0, "position": 2877 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2883 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 2884 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2890 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2891 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2892 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post", "value": "post", "keyword": null, "type": 0, "flags": 0, "position": 2893 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2897 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 2898 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2904 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2905 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 2906 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2915 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "vbppim_post_icon_list", "value": "vbppim_post_icon_list", "keyword": null, "type": 0, "flags": 0, "position": 2916 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2937 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 2938 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2940 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post_icon_list", "value": "post_icon_list", "keyword": null, "type": 0, "flags": 0, "position": 2941 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2955 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 2956 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2958 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post_icon_list", "value": "post_icon_list", "keyword": null, "type": 0, "flags": 0, "position": 2959 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2973 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post_id", "value": "post_id", "keyword": null, "type": 0, "flags": 0, "position": 2974 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2981 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post", "value": "post", "keyword": null, "type": 0, "flags": 0, "position": 2982 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 2986 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "postid", "value": "postid", "keyword": null, "type": 0, "flags": 0, "position": 2987 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2993 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 2994 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3003 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "vbpmal_log", "value": "vbpmal_log", "keyword": null, "type": 0, "flags": 0, "position": 3004 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3014 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 3015 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3017 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "approvedlog", "value": "approvedlog", "keyword": null, "type": 0, "flags": 0, "position": 3018 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3029 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 3030 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3032 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 3033 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "approvedlog", "value": "approvedlog", "keyword": null, "type": 0, "flags": 0, "position": 3034 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 3045 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "itemid", "value": "itemid", "keyword": null, "type": 0, "flags": 0, "position": 3046 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 3052 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post", "value": "post", "keyword": null, "type": 0, "flags": 0, "position": 3053 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 3057 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "postid", "value": "postid", "keyword": null, "type": 0, "flags": 0, "position": 3058 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3064 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 3065 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3068 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "approvedlog", "value": "approvedlog", "keyword": null, "type": 0, "flags": 0, "position": 3069 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 3080 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "action", "value": "action", "keyword": "ACTION", "type": 0, "flags": 0, "position": 3081 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 3087 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'postapprove'", "value": "postapprove", "keyword": null, "type": 7, "flags": 1, "position": 3088 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 3101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 3103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "vbpmal_log", "value": "vbpmal_log", "keyword": null, "type": 0, "flags": 0, "position": 3113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 3124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "movedlog", "value": "movedlog", "keyword": null, "type": 0, "flags": 0, "position": 3127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 3136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 3139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "movedlog", "value": "movedlog", "keyword": null, "type": 0, "flags": 0, "position": 3140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 3148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "itemid", "value": "itemid", "keyword": null, "type": 0, "flags": 0, "position": 3149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 3155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post", "value": "post", "keyword": null, "type": 0, "flags": 0, "position": 3156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 3160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "postid", "value": "postid", "keyword": null, "type": 0, "flags": 0, "position": 3161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 3168 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3171 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "movedlog", "value": "movedlog", "keyword": null, "type": 0, "flags": 0, "position": 3172 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 3180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "action", "value": "action", "keyword": "ACTION", "type": 0, "flags": 0, "position": 3181 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 3187 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'postmove'", "value": "postmove", "keyword": null, "type": 7, "flags": 1, "position": 3188 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 3198 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3199 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 3200 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3209 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "vbpmal_scheduled_post_approval", "value": "vbpmal_scheduled_post_approval", "keyword": null, "type": 0, "flags": 0, "position": 3210 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3240 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 3241 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3243 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "scheduled_approval", "value": "scheduled_approval", "keyword": null, "type": 0, "flags": 0, "position": 3244 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3262 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 3263 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3265 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "scheduled_approval", "value": "scheduled_approval", "keyword": null, "type": 0, "flags": 0, "position": 3266 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 3284 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post_id", "value": "post_id", "keyword": null, "type": 0, "flags": 0, "position": 3285 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3292 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 3293 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3294 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post", "value": "post", "keyword": null, "type": 0, "flags": 0, "position": 3295 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 3299 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "postid", "value": "postid", "keyword": null, "type": 0, "flags": 0, "position": 3300 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3306 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 3307 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3316 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "vbpsmt_additional_user_data", "value": "vbpsmt_additional_user_data", "keyword": null, "type": 0, "flags": 0, "position": 3317 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3344 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 3345 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3347 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "additional_user_data", "value": "additional_user_data", "keyword": null, "type": 0, "flags": 0, "position": 3348 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3368 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 3369 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3371 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "additional_user_data", "value": "additional_user_data", "keyword": null, "type": 0, "flags": 0, "position": 3372 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 3392 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 3393 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 3399 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post", "value": "post", "keyword": null, "type": 0, "flags": 0, "position": 3400 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 3404 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 3405 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3411 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 3412 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3421 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "market_pp_post_activation_mapping", "value": "market_pp_post_activation_mapping", "keyword": null, "type": 0, "flags": 0, "position": 3422 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3455 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 3456 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3458 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "paid_post_activation", "value": "paid_post_activation", "keyword": null, "type": 0, "flags": 0, "position": 3459 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3479 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 3480 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3482 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "paid_post_activation", "value": "paid_post_activation", "keyword": null, "type": 0, "flags": 0, "position": 3483 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 3503 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post_id", "value": "post_id", "keyword": null, "type": 0, "flags": 0, "position": 3504 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3511 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 3512 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3513 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post", "value": "post", "keyword": null, "type": 0, "flags": 0, "position": 3514 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 3518 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "postid", "value": "postid", "keyword": null, "type": 0, "flags": 0, "position": 3519 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3525 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 3526 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3535 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "alm_Model_UserData", "value": "alm_Model_UserData", "keyword": null, "type": 0, "flags": 0, "position": 3536 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3554 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 3555 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3557 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "alm_Model_UserData", "value": "alm_Model_UserData", "keyword": null, "type": 0, "flags": 0, "position": 3558 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3576 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 3577 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3579 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "alm_Model_UserData", "value": "alm_Model_UserData", "keyword": null, "type": 0, "flags": 0, "position": 3580 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 3598 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "user_id", "value": "user_id", "keyword": null, "type": 0, "flags": 0, "position": 3599 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 3606 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "user", "value": "user", "keyword": "user", "type": 0, "flags": 0, "position": 3607 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 3611 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "userid", "value": "userid", "keyword": null, "type": 0, "flags": 0, "position": 3612 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3618 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 3619 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3624 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post", "value": "post", "keyword": null, "type": 0, "flags": 0, "position": 3625 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 3629 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "postid", "value": "postid", "keyword": null, "type": 0, "flags": 0, "position": 3630 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3636 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 3637 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3639 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 3640 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 3641 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3642 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3254399", "value": 3254399, "keyword": null, "type": 6, "flags": 0, "position": 3643 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3650 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3254508", "value": 3254508, "keyword": null, "type": 6, "flags": 0, "position": 3651 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3658 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3254743", "value": 3254743, "keyword": null, "type": 6, "flags": 0, "position": 3659 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3666 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3254817", "value": 3254817, "keyword": null, "type": 6, "flags": 0, "position": 3667 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3674 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3254969", "value": 3254969, "keyword": null, "type": 6, "flags": 0, "position": 3675 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3682 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3255328", "value": 3255328, "keyword": null, "type": 6, "flags": 0, "position": 3683 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3690 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3255582", "value": 3255582, "keyword": null, "type": 6, "flags": 0, "position": 3691 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3698 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3257603", "value": 3257603, "keyword": null, "type": 6, "flags": 0, "position": 3699 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3706 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3257873", "value": 3257873, "keyword": null, "type": 6, "flags": 0, "position": 3707 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3714 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3258126", "value": 3258126, "keyword": null, "type": 6, "flags": 0, "position": 3715 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3722 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3258150", "value": 3258150, "keyword": null, "type": 6, "flags": 0, "position": 3723 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3730 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3258254", "value": 3258254, "keyword": null, "type": 6, "flags": 0, "position": 3731 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3738 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3258272", "value": 3258272, "keyword": null, "type": 6, "flags": 0, "position": 3739 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3746 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3258311", "value": 3258311, "keyword": null, "type": 6, "flags": 0, "position": 3747 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3754 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3260767", "value": 3260767, "keyword": null, "type": 6, "flags": 0, "position": 3755 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3762 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3260770", "value": 3260770, "keyword": null, "type": 6, "flags": 0, "position": 3763 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3770 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3260776", "value": 3260776, "keyword": null, "type": 6, "flags": 0, "position": 3771 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3778 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3261180", "value": 3261180, "keyword": null, "type": 6, "flags": 0, "position": 3779 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3786 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3261263", "value": 3261263, "keyword": null, "type": 6, "flags": 0, "position": 3787 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3794 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3261317", "value": 3261317, "keyword": null, "type": 6, "flags": 0, "position": 3795 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 3802 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3261318", "value": 3261318, "keyword": null, "type": 6, "flags": 0, "position": 3803 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 3810 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3811 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ORDER BY", "value": "ORDER BY", "keyword": "ORDER BY", "type": 1, "flags": 7, "position": 3812 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3820 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "post", "value": "post", "keyword": null, "type": 0, "flags": 0, "position": 3821 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 3825 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "dateline", "value": "dateline", "keyword": null, "type": 0, "flags": 0, "position": 3826 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 1035, "idx": 1035 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "post", "column": null, "expr": "post.*", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "post", "column": "username", "expr": "post.username", "alias": "postusername", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "post", "column": "ipaddress", "expr": "post.ipaddress", "alias": "ip", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "IF(post.visible = 2, 1, 0)", "alias": "isdeleted", "function": "IF", "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "user", "column": null, "expr": "user.*", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "userfield", "column": null, "expr": "userfield.*", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "usertextfield", "column": null, "expr": "usertextfield.*", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "icon", "column": "title", "expr": "icon.title", "alias": "icontitle", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "icon", "column": "iconpath", "expr": "icon.iconpath", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "avatar", "column": "avatarpath", "expr": "avatar.avatarpath", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "NOT ISNULL(customavatar.userid)", "alias": "hascustomavatar", "function": "ISNULL", "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "customavatar", "column": "dateline", "expr": "customavatar.dateline", "alias": "avatardateline", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "customavatar", "column": "width", "expr": "customavatar.width", "alias": "avwidth", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "customavatar", "column": "height", "expr": "customavatar.height", "alias": "avheight", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "spamlog", "column": "postid", "expr": "spamlog.postid", "alias": "spamlog_postid", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "deletionlog", "column": "userid", "expr": "deletionlog.userid", "alias": "del_userid", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "deletionlog", "column": "username", "expr": "deletionlog.username", "alias": "del_username", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "deletionlog", "column": "reason", "expr": "deletionlog.reason", "alias": "del_reason", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "editlog", "column": "userid", "expr": "editlog.userid", "alias": "edit_userid", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "editlog", "column": "username", "expr": "editlog.username", "alias": "edit_username", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "editlog", "column": "dateline", "expr": "editlog.dateline", "alias": "edit_dateline", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "editlog", "column": "reason", "expr": "editlog.reason", "alias": "edit_reason", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "editlog", "column": "hashistory", "expr": "editlog.hashistory", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "postparsed", "column": "pagetext_html", "expr": "postparsed.pagetext_html", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "postparsed", "column": "hasimages", "expr": "postparsed.hasimages", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "sigparsed", "column": "signatureparsed", "expr": "sigparsed.signatureparsed", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "sigparsed", "column": "hasimages", "expr": "sigparsed.hasimages", "alias": "sighasimages", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "sigpic", "column": "userid", "expr": "sigpic.userid", "alias": "sigpic", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "sigpic", "column": "dateline", "expr": "sigpic.dateline", "alias": "sigpicdateline", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "sigpic", "column": "width", "expr": "sigpic.width", "alias": "sigpicwidth", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "sigpic", "column": "height", "expr": "sigpic.height", "alias": "sigpicheight", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "IF(displaygroupid=0, user.usergroupid, displaygroupid)", "alias": "displaygroupid", "function": "IF", "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "infractiongroupid", "expr": "infractiongroupid", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "post_icon_list", "column": "icon_id_list", "expr": "post_icon_list.icon_id_list", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "post_icon_list", "column": "is_auto", "expr": "post_icon_list.is_auto", "alias": "icon_is_auto", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "approvedlog", "column": "modid", "expr": "approvedlog.modid", "alias": "approvedmodid", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "approvedlog", "column": "dateline", "expr": "approvedlog.dateline", "alias": "approveddateline", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "approvedlog", "column": "status", "expr": "approvedlog.status", "alias": "approvedstatus", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "approvedlog", "column": "info", "expr": "approvedlog.info", "alias": "approvedinfo", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "movedlog", "column": "modid", "expr": "movedlog.modid", "alias": "movedmodid", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "movedlog", "column": "dateline", "expr": "movedlog.dateline", "alias": "moveddateline", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "movedlog", "column": "status", "expr": "movedlog.status", "alias": "movedstatus", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "movedlog", "column": "info", "expr": "movedlog.info", "alias": "movedinfo", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "( SELECT useragent FROM session WHERE userid=post.userid AND lastactivity > 1644859580 ORDER BY lastactivity DESC LIMIT 1 )", "alias": "useragent", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "IF ( user.userid IS NOT NULL, (SELECT COUNT(usernoteid) FROM usernote AS usernote WHERE usernote.userid=user.userid AND usernote.priority>=0), 0 )", "alias": "usernotecount", "function": "IF", "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "deletionlog", "column": "dateline", "expr": "deletionlog.dateline", "alias": "del_dateline", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "scheduled_approval", "column": "defer_time", "expr": "scheduled_approval.defer_time", "alias": "vbpmal_approval_defer_time", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "additional_user_data", "column": "last_year_message_count", "expr": "additional_user_data.last_year_message_count", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "additional_user_data", "column": "last_year_reputation", "expr": "additional_user_data.last_year_reputation", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "additional_user_data", "column": "last_year_groan_count", "expr": "additional_user_data.last_year_groan_count", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "paid_post_activation", "column": "activation_id", "expr": "paid_post_activation.activation_id", "alias": "paid_post_activation_id", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "alm_Model_UserData", "column": "credits", "expr": "alm_Model_UserData.credits", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "post", "column": null, "expr": "post", "alias": "post", "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "post", "postid" ], "isOperator": false, "expr": "post.postid IN (0,3254399,3254508,3254743,3254817,3254969,3255328,3255582,3257603,3257873,3258126,3258150,3258254,3258272,3258311,3260767,3260770,3260776,3261180,3261263,3261317,3261318)" } ], "group": null, "group_options": null, "having": null, "order": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\OrderKeyword", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "post", "column": "dateline", "expr": "post.dateline", "alias": null, "function": null, "subquery": null }, "type": "ASC" } ], "limit": null, "procedure": null, "into": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "user", "alias": "user", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "user", "userid", "post" ], "isOperator": false, "expr": "(user.userid = post.userid)" } ], "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "userfield", "column": null, "expr": "userfield", "alias": "userfield", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "userfield", "userid", "user" ], "isOperator": false, "expr": "(userfield.userid = user.userid)" } ], "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "usertextfield", "column": null, "expr": "usertextfield", "alias": "usertextfield", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "usertextfield", "userid", "user" ], "isOperator": false, "expr": "(usertextfield.userid = user.userid)" } ], "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "icon", "column": null, "expr": "icon", "alias": "icon", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "icon", "iconid", "post" ], "isOperator": false, "expr": "(icon.iconid = post.iconid)" } ], "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "avatar", "column": null, "expr": "avatar", "alias": "avatar", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "avatar", "avatarid", "user" ], "isOperator": false, "expr": "(avatar.avatarid = user.avatarid)" } ], "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "customavatar", "column": null, "expr": "customavatar", "alias": "customavatar", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "customavatar", "userid", "user" ], "isOperator": false, "expr": "(customavatar.userid = user.userid)" } ], "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "spamlog", "column": null, "expr": "spamlog", "alias": "spamlog", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "spamlog", "postid", "post" ], "isOperator": false, "expr": "(spamlog.postid = post.postid)" } ], "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "deletionlog", "column": null, "expr": "deletionlog", "alias": "deletionlog", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "post", "postid", "deletionlog", "primaryid" ], "isOperator": false, "expr": "(post.postid = deletionlog.primaryid" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "deletionlog", "type", "post" ], "isOperator": false, "expr": "deletionlog.type = 'post')" } ], "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "editlog", "column": null, "expr": "editlog", "alias": "editlog", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "editlog", "postid", "post" ], "isOperator": false, "expr": "(editlog.postid = post.postid)" } ], "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "postparsed", "column": null, "expr": "postparsed", "alias": "postparsed", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "postparsed", "postid", "post" ], "isOperator": false, "expr": "(postparsed.postid = post.postid" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "postparsed", "styleid" ], "isOperator": false, "expr": "postparsed.styleid = 23" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "postparsed", "languageid" ], "isOperator": false, "expr": "postparsed.languageid = 5)" } ], "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "sigparsed", "column": null, "expr": "sigparsed", "alias": "sigparsed", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "sigparsed", "userid", "user" ], "isOperator": false, "expr": "(sigparsed.userid = user.userid" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "sigparsed", "styleid" ], "isOperator": false, "expr": "sigparsed.styleid = 23" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "sigparsed", "languageid" ], "isOperator": false, "expr": "sigparsed.languageid = 5)" } ], "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "sigpic", "column": null, "expr": "sigpic", "alias": "sigpic", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "sigpic", "userid", "post" ], "isOperator": false, "expr": "(sigpic.userid = post.userid)" } ], "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "vbppim_post_icon_list", "column": null, "expr": "vbppim_post_icon_list", "alias": "post_icon_list", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "post_icon_list", "post_id", "post", "postid" ], "isOperator": false, "expr": "post_icon_list.post_id=post.postid" } ], "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "vbpmal_log", "column": null, "expr": "vbpmal_log", "alias": "approvedlog", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "approvedlog", "itemid", "post", "postid" ], "isOperator": false, "expr": "(approvedlog.itemid=post.postid" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "approvedlog", "action", "postapprove" ], "isOperator": false, "expr": "approvedlog.action='postapprove')" } ], "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "vbpmal_log", "column": null, "expr": "vbpmal_log", "alias": "movedlog", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "movedlog", "itemid", "post", "postid" ], "isOperator": false, "expr": "(movedlog.itemid=post.postid" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "movedlog", "action", "postmove" ], "isOperator": false, "expr": "movedlog.action='postmove')" } ], "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "vbpmal_scheduled_post_approval", "column": null, "expr": "vbpmal_scheduled_post_approval", "alias": "scheduled_approval", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "scheduled_approval", "post_id", "post", "postid" ], "isOperator": false, "expr": "scheduled_approval.post_id = post.postid" } ], "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "vbpsmt_additional_user_data", "column": null, "expr": "vbpsmt_additional_user_data", "alias": "additional_user_data", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "additional_user_data", "userid", "post" ], "isOperator": false, "expr": "additional_user_data.userid=post.userid" } ], "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "market_pp_post_activation_mapping", "column": null, "expr": "market_pp_post_activation_mapping", "alias": "paid_post_activation", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "paid_post_activation", "post_id", "post", "postid" ], "isOperator": false, "expr": "paid_post_activation.post_id = post.postid" } ], "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "alm_Model_UserData", "column": null, "expr": "alm_Model_UserData", "alias": "alm_Model_UserData", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "alm_Model_UserData", "user_id", "user", "userid" ], "isOperator": false, "expr": "alm_Model_UserData.user_id=user.userid" } ], "using": null } ], "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 1033 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelect14.in000066400000000000000000000000421455302707200221350ustar00rootroot00000000000000SELECT tbl.id, NOT tbl.id FROM tblsql-parser-5.9.0/tests/data/parser/parseSelect14.out000066400000000000000000000175331455302707200223530ustar00rootroot00000000000000{ "query": "SELECT tbl.id, NOT tbl.id FROM tbl", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT tbl.id, NOT tbl.id FROM tbl", "len": 34, "last": 34, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tbl", "value": "tbl", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT", "value": "NOT", "keyword": "NOT", "type": 1, "flags": 3, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tbl", "value": "tbl", "keyword": null, "type": 0, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tbl", "value": "tbl", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 17, "idx": 17 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "tbl", "column": "id", "expr": "tbl.id", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "NOT tbl.id", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "tbl", "column": null, "expr": "tbl", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 15 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelect15.in000066400000000000000000000000321455302707200221350ustar00rootroot00000000000000SELECT `````` FROM ``````;sql-parser-5.9.0/tests/data/parser/parseSelect15.out000066400000000000000000000120651455302707200223470ustar00rootroot00000000000000{ "query": "SELECT `````` FROM ``````;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT `````` FROM ``````;", "len": 26, "last": 26, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "``````", "value": "``", "keyword": null, "type": 8, "flags": 2, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "``````", "value": "``", "keyword": null, "type": 8, "flags": 2, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 9, "idx": 9 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "``", "expr": "``````", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "``", "column": null, "expr": "``````", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 6 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelect16.in000066400000000000000000000011031455302707200221360ustar00rootroot00000000000000SELECT p.aa, p.bb, CASE WHEN p.cc = 'Y' and dd = 'Found' then '99.99999' WHEN p.cc = '' and dd = 'Found' then '00.00000' ELSE '99.99999' END as RR, CASE WHEN dd = 'Found' then 'Y' ELSE 'N' END as RRI, CASE WHEN (SELECT MAX(cd) from LSA act group by act.an having p.acn = act.an) > '2021-01-28' THEN '06/30/2020' WHEN p.co < '2021-01-28' THEN '12/31/2019' ELSE '06/30/2020' END as DAOD FROM `LTKP` p left join `LQA` qa on qa.pi = p.ID left join LSA act on p.acn = act.an where p.a =1 and p.mr = 1 and p.sc<> '23' and qa.qt = 'TEXT' and p.tl = "TEXT" and qa.a = 1sql-parser-5.9.0/tests/data/parser/parseSelect16.out000066400000000000000000003036411455302707200223530ustar00rootroot00000000000000{ "query": "SELECT\np.aa,\np.bb,\nCASE\nWHEN p.cc = 'Y' and dd = 'Found' then '99.99999'\nWHEN p.cc = '' and dd = 'Found' then '00.00000'\n ELSE '99.99999' END as RR,\nCASE\nWHEN dd = 'Found' then 'Y'\n ELSE 'N' END as RRI,\nCASE\n\tWHEN (SELECT MAX(cd) from LSA act group by act.an having p.acn = act.an) > '2021-01-28' THEN '06/30/2020'\n WHEN p.co < '2021-01-28' THEN '12/31/2019'\n ELSE '06/30/2020' END as DAOD\nFROM `LTKP` p\nleft join `LQA` qa\non qa.pi = p.ID\nleft join LSA act\non p.acn = act.an\nwhere p.a =1 and p.mr = 1 and p.sc<> '23' and qa.qt = 'TEXT' and p.tl = \"TEXT\" and qa.a = 1", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT\np.aa,\np.bb,\nCASE\nWHEN p.cc = 'Y' and dd = 'Found' then '99.99999'\nWHEN p.cc = '' and dd = 'Found' then '00.00000'\n ELSE '99.99999' END as RR,\nCASE\nWHEN dd = 'Found' then 'Y'\n ELSE 'N' END as RRI,\nCASE\n\tWHEN (SELECT MAX(cd) from LSA act group by act.an having p.acn = act.an) > '2021-01-28' THEN '06/30/2020'\n WHEN p.co < '2021-01-28' THEN '12/31/2019'\n ELSE '06/30/2020' END as DAOD\nFROM `LTKP` p\nleft join `LQA` qa\non qa.pi = p.ID\nleft join LSA act\non p.acn = act.an\nwhere p.a =1 and p.mr = 1 and p.sc<> '23' and qa.qt = 'TEXT' and p.tl = \"TEXT\" and qa.a = 1", "len": 579, "last": 579, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "aa", "value": "aa", "keyword": null, "type": 0, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bb", "value": "bb", "keyword": null, "type": 0, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CASE", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHEN", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cc", "value": "cc", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Y'", "value": "Y", "keyword": null, "type": 7, "flags": 1, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "and", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "dd", "value": "dd", "keyword": null, "type": 0, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Found'", "value": "Found", "keyword": null, "type": 7, "flags": 1, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'99.99999'", "value": "99.99999", "keyword": null, "type": 7, "flags": 1, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHEN", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cc", "value": "cc", "keyword": null, "type": 0, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "''", "value": "", "keyword": null, "type": 7, "flags": 1, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "and", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "dd", "value": "dd", "keyword": null, "type": 0, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Found'", "value": "Found", "keyword": null, "type": 7, "flags": 1, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'00.00000'", "value": "00.00000", "keyword": null, "type": 7, "flags": 1, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ELSE", "value": "ELSE", "keyword": "ELSE", "type": 1, "flags": 3, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'99.99999'", "value": "99.99999", "keyword": null, "type": 7, "flags": 1, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": "END", "type": 1, "flags": 1, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RR", "value": "RR", "keyword": null, "type": 0, "flags": 0, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 150 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CASE", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHEN", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "dd", "value": "dd", "keyword": null, "type": 0, "flags": 0, "position": 162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 165 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 166 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Found'", "value": "Found", "keyword": null, "type": 7, "flags": 1, "position": 167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 175 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 179 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Y'", "value": "Y", "keyword": null, "type": 7, "flags": 1, "position": 180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 183 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ELSE", "value": "ELSE", "keyword": "ELSE", "type": 1, "flags": 3, "position": 188 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 192 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'N'", "value": "N", "keyword": null, "type": 7, "flags": 1, "position": 193 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 196 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": "END", "type": 1, "flags": 1, "position": 197 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 200 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 201 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 203 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RRI", "value": "RRI", "keyword": null, "type": 0, "flags": 0, "position": 204 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 207 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 208 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CASE", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 209 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\t", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 213 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHEN", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 215 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 219 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 220 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 221 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 227 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MAX", "value": "MAX", "keyword": "MAX", "type": 1, "flags": 33, "position": 228 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 231 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cd", "value": "cd", "keyword": null, "type": 0, "flags": 0, "position": 232 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 234 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 235 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "from", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 236 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 240 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LSA", "value": "LSA", "keyword": null, "type": 0, "flags": 0, "position": 241 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 244 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "act", "value": "act", "keyword": null, "type": 0, "flags": 0, "position": 245 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 248 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "group by", "value": "GROUP BY", "keyword": "GROUP BY", "type": 1, "flags": 7, "position": 249 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 257 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "act", "value": "act", "keyword": null, "type": 0, "flags": 0, "position": 258 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 261 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "an", "value": "an", "keyword": null, "type": 0, "flags": 0, "position": 262 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 264 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "having", "value": "HAVING", "keyword": "HAVING", "type": 1, "flags": 3, "position": 265 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 271 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 272 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 273 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "acn", "value": "acn", "keyword": null, "type": 0, "flags": 0, "position": 274 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 277 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 278 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 279 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "act", "value": "act", "keyword": null, "type": 0, "flags": 0, "position": 280 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 283 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "an", "value": "an", "keyword": null, "type": 0, "flags": 0, "position": 284 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 286 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 287 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ">", "value": ">", "keyword": null, "type": 2, "flags": 2, "position": 288 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 289 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'2021-01-28'", "value": "2021-01-28", "keyword": null, "type": 7, "flags": 1, "position": 290 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 302 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "THEN", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 303 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 307 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'06/30/2020'", "value": "06/30/2020", "keyword": null, "type": 7, "flags": 1, "position": 308 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 320 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHEN", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 325 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 329 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 330 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 331 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "co", "value": "co", "keyword": null, "type": 0, "flags": 0, "position": 332 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 334 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "<", "value": "<", "keyword": null, "type": 2, "flags": 2, "position": 335 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 336 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'2021-01-28'", "value": "2021-01-28", "keyword": null, "type": 7, "flags": 1, "position": 337 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 349 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "THEN", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 350 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 354 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'12/31/2019'", "value": "12/31/2019", "keyword": null, "type": 7, "flags": 1, "position": 355 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 367 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ELSE", "value": "ELSE", "keyword": "ELSE", "type": 1, "flags": 3, "position": 372 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 376 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'06/30/2020'", "value": "06/30/2020", "keyword": null, "type": 7, "flags": 1, "position": 377 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 389 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": "END", "type": 1, "flags": 1, "position": 390 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 393 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 394 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 396 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DAOD", "value": "DAOD", "keyword": null, "type": 0, "flags": 0, "position": 397 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 401 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 402 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 406 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`LTKP`", "value": "LTKP", "keyword": null, "type": 8, "flags": 2, "position": 407 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 413 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 414 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 415 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "left join", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 416 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 425 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`LQA`", "value": "LQA", "keyword": null, "type": 8, "flags": 2, "position": 426 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 431 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "qa", "value": "qa", "keyword": null, "type": 0, "flags": 0, "position": 432 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 434 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "on", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 435 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 437 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "qa", "value": "qa", "keyword": null, "type": 0, "flags": 0, "position": 438 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 440 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pi", "value": "pi", "keyword": "PI", "type": 0, "flags": 0, "position": 441 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 443 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 444 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 445 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 446 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 447 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ID", "value": "ID", "keyword": null, "type": 0, "flags": 0, "position": 448 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 450 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "left join", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 451 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 460 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LSA", "value": "LSA", "keyword": null, "type": 0, "flags": 0, "position": 461 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 464 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "act", "value": "act", "keyword": null, "type": 0, "flags": 0, "position": 465 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 468 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "on", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 469 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 471 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 472 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 473 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "acn", "value": "acn", "keyword": null, "type": 0, "flags": 0, "position": 474 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 477 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 478 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 479 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "act", "value": "act", "keyword": null, "type": 0, "flags": 0, "position": 480 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 483 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "an", "value": "an", "keyword": null, "type": 0, "flags": 0, "position": 484 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 486 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "where", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 487 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 492 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 494 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 495 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 496 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 497 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 498 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 499 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 500 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "and", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 501 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 504 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 505 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 506 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mr", "value": "mr", "keyword": null, "type": 0, "flags": 0, "position": 507 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 509 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 510 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 511 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 512 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 513 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "and", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 514 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 517 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 518 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 519 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "sc", "value": "sc", "keyword": null, "type": 0, "flags": 0, "position": 520 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "<>", "value": "<>", "keyword": null, "type": 2, "flags": 2, "position": 522 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 524 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'23'", "value": "23", "keyword": null, "type": 7, "flags": 1, "position": 525 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 529 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "and", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 530 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 533 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "qa", "value": "qa", "keyword": null, "type": 0, "flags": 0, "position": 534 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 536 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "qt", "value": "qt", "keyword": null, "type": 0, "flags": 0, "position": 537 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 539 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 540 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 541 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'TEXT'", "value": "TEXT", "keyword": null, "type": 7, "flags": 1, "position": 542 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 548 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "and", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 549 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 552 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 553 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 554 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tl", "value": "tl", "keyword": null, "type": 0, "flags": 0, "position": 555 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 557 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 558 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 559 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"TEXT\"", "value": "TEXT", "keyword": null, "type": 7, "flags": 2, "position": 560 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 566 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "and", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 567 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 570 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "qa", "value": "qa", "keyword": null, "type": 0, "flags": 0, "position": 571 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 573 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 574 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 575 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 576 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 577 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 578 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 263, "idx": 263 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "p", "column": "aa", "expr": "p.aa", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "p", "column": "bb", "expr": "p.bb", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CaseExpression", "value": null, "conditions": [ [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "p", "cc", "Y" ], "isOperator": false, "expr": "p.cc = 'Y'" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "dd", "Found" ], "isOperator": false, "expr": "dd = 'Found'" } ], [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "p", "cc", "" ], "isOperator": false, "expr": "p.cc = ''" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "dd", "Found" ], "isOperator": false, "expr": "dd = 'Found'" } ] ], "results": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "99.99999", "expr": "'99.99999'", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "00.00000", "expr": "'00.00000'", "alias": null, "function": null, "subquery": null } ], "compare_values": [], "else_result": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "99.99999", "expr": "'99.99999'", "alias": null, "function": null, "subquery": null }, "alias": "RR", "expr": "CASE WHEN p.cc = 'Y' AND dd = 'Found' THEN '99.99999' WHEN p.cc = '' AND dd = 'Found' THEN '00.00000' ELSE '99.99999' END AS `RR`" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CaseExpression", "value": null, "conditions": [ [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "dd", "Found" ], "isOperator": false, "expr": "dd = 'Found'" } ] ], "results": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Y", "expr": "'Y'", "alias": null, "function": null, "subquery": null } ], "compare_values": [], "else_result": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "N", "expr": "'N'", "alias": null, "function": null, "subquery": null }, "alias": "RRI", "expr": "CASE WHEN dd = 'Found' THEN 'Y' ELSE 'N' END AS `RRI`" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CaseExpression", "value": null, "conditions": [ [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "MAX", "cd", "LSA", "act", "an", "p", "acn", "2021-01-28" ], "isOperator": false, "expr": "(SELECT MAX(cd) from LSA act group by act.an having p.acn = act.an) > '2021-01-28'" } ], [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "p", "co", "2021-01-28" ], "isOperator": false, "expr": "p.co < '2021-01-28'" } ] ], "results": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "06/30/2020", "expr": "'06/30/2020'", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "12/31/2019", "expr": "'12/31/2019'", "alias": null, "function": null, "subquery": null } ], "compare_values": [], "else_result": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "06/30/2020", "expr": "'06/30/2020'", "alias": null, "function": null, "subquery": null }, "alias": "DAOD", "expr": "CASE WHEN (SELECT MAX(cd) from LSA act group by act.an having p.acn = act.an) > '2021-01-28' THEN '06/30/2020' WHEN p.co < '2021-01-28' THEN '12/31/2019' ELSE '06/30/2020' END AS `DAOD`" } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "LTKP", "column": null, "expr": "`LTKP`", "alias": "p", "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "p", "a" ], "isOperator": false, "expr": "p.a =1" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "p", "mr" ], "isOperator": false, "expr": "p.mr = 1" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "p", "sc", "23" ], "isOperator": false, "expr": "p.sc<> '23'" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "qa", "qt", "TEXT" ], "isOperator": false, "expr": "qa.qt = 'TEXT'" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "p", "tl", "TEXT" ], "isOperator": false, "expr": "p.tl = \"TEXT\"" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "qa", "a" ], "isOperator": false, "expr": "qa.a = 1" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "LQA", "column": null, "expr": "`LQA`", "alias": "qa", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "qa", "pi", "p", "ID" ], "isOperator": false, "expr": "qa.pi = p.ID" } ], "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "LSA", "column": null, "expr": "LSA", "alias": "act", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "p", "acn", "act", "an" ], "isOperator": false, "expr": "p.acn = act.an" } ], "using": null } ], "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 261 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelect2.in000066400000000000000000000001031455302707200220500ustar00rootroot00000000000000SELECT (SELECT 'foo') bar, (SELECT 'baz') AS qux, a as b FROM tabl;sql-parser-5.9.0/tests/data/parser/parseSelect2.out000066400000000000000000000321001455302707200222530ustar00rootroot00000000000000{ "query": "SELECT (SELECT 'foo') bar, (SELECT 'baz') AS qux, a as b FROM tabl;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT (SELECT 'foo') bar, (SELECT 'baz') AS qux, a as b FROM tabl;", "len": 67, "last": 67, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'foo'", "value": "foo", "keyword": null, "type": 7, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bar", "value": "bar", "keyword": null, "type": 0, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'baz'", "value": "baz", "keyword": null, "type": 7, "flags": 1, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "qux", "value": "qux", "keyword": null, "type": 0, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tabl", "value": "tabl", "keyword": null, "type": 0, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 33, "idx": 33 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT 'foo')", "alias": "bar", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT 'baz')", "alias": "qux", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "a", "expr": "a", "alias": "b", "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "tabl", "column": null, "expr": "tabl", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 30 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelect3.in000066400000000000000000000001551455302707200220600ustar00rootroot00000000000000SELECT left_tbl.* FROM left_tbl LEFT JOIN right_tbl ON left_tbl.id = right_tbl.id WHERE right_tbl.id IS NULL;sql-parser-5.9.0/tests/data/parser/parseSelect3.out000066400000000000000000000363101455302707200222630ustar00rootroot00000000000000{ "query": "SELECT left_tbl.*\nFROM left_tbl LEFT JOIN right_tbl ON left_tbl.id = right_tbl.id\nWHERE right_tbl.id IS NULL;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT left_tbl.*\nFROM left_tbl LEFT JOIN right_tbl ON left_tbl.id = right_tbl.id\nWHERE right_tbl.id IS NULL;", "len": 109, "last": 109, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "left_tbl", "value": "left_tbl", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "left_tbl", "value": "left_tbl", "keyword": null, "type": 0, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "right_tbl", "value": "right_tbl", "keyword": null, "type": 0, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "left_tbl", "value": "left_tbl", "keyword": null, "type": 0, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "right_tbl", "value": "right_tbl", "keyword": null, "type": 0, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "right_tbl", "value": "right_tbl", "keyword": null, "type": 0, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IS", "value": "IS", "keyword": "IS", "type": 1, "flags": 3, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 37, "idx": 37 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "left_tbl", "column": null, "expr": "left_tbl.*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "left_tbl", "column": null, "expr": "left_tbl", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "right_tbl", "id" ], "isOperator": false, "expr": "right_tbl.id IS NULL" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "right_tbl", "column": null, "expr": "right_tbl", "alias": null, "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "left_tbl", "id", "right_tbl" ], "isOperator": false, "expr": "left_tbl.id = right_tbl.id" } ], "using": null } ], "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 34 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelect4.in000066400000000000000000000000661455302707200220620ustar00rootroot00000000000000SELECT * FROM test WHERE RIGHT(name, 2) = 'AB'; sql-parser-5.9.0/tests/data/parser/parseSelect4.out000066400000000000000000000236651455302707200222750ustar00rootroot00000000000000{ "query": "SELECT *\n FROM test\n WHERE RIGHT(name, 2) = 'AB';\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT *\n FROM test\n WHERE RIGHT(name, 2) = 'AB';\n", "len": 54, "last": 54, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RIGHT", "value": "RIGHT", "keyword": "RIGHT", "type": 1, "flags": 35, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'AB'", "value": "AB", "keyword": null, "type": 7, "flags": 1, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 24, "idx": 24 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test", "column": null, "expr": "test", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "name", "AB" ], "isOperator": false, "expr": "RIGHT(name, 2) = 'AB'" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 20 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelect5.in000066400000000000000000000001731455302707200220620ustar00rootroot00000000000000SELECT c1, c2, c3 /* Subquery in FROM list */ FROM (SELECT C1, c2, c3 FROM test2) t1 WHERE RIGHT(name, 2) = 'AB'; sql-parser-5.9.0/tests/data/parser/parseSelect5.out000066400000000000000000000440701455302707200222670ustar00rootroot00000000000000{ "query": "SELECT c1, c2, c3\n /* Subquery in FROM list */\n FROM (SELECT C1, c2, c3 FROM test2) t1\n WHERE RIGHT(name, 2) = 'AB';\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT c1, c2, c3\n /* Subquery in FROM list */\n FROM (SELECT C1, c2, c3 FROM test2) t1\n WHERE RIGHT(name, 2) = 'AB';\n", "len": 123, "last": 123, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c1", "value": "c1", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c2", "value": "c2", "keyword": null, "type": 0, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c3", "value": "c3", "keyword": null, "type": 0, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* Subquery in FROM list */", "value": "/* Subquery in FROM list */", "keyword": null, "type": 4, "flags": 2, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "C1", "value": "C1", "keyword": null, "type": 0, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c2", "value": "c2", "keyword": null, "type": 0, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c3", "value": "c3", "keyword": null, "type": 0, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test2", "value": "test2", "keyword": null, "type": 0, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RIGHT", "value": "RIGHT", "keyword": "RIGHT", "type": 1, "flags": 35, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'AB'", "value": "AB", "keyword": null, "type": 7, "flags": 1, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 48, "idx": 48 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "c1", "expr": "c1", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "c2", "expr": "c2", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "c3", "expr": "c3", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT C1, c2, c3 FROM test2)", "alias": "t1", "function": null, "subquery": "SELECT" } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "name", "AB" ], "isOperator": false, "expr": "RIGHT(name, 2) = 'AB'" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 44 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelect6.in000066400000000000000000000001441455302707200220610ustar00rootroot00000000000000SELECT * FROM t1 LEFT JOIN (t2, t3, t4) ON (t2.a=t1.a AND t3.b=t1.b AND t4.c=t1.c) sql-parser-5.9.0/tests/data/parser/parseSelect6.out000066400000000000000000000515731455302707200222760ustar00rootroot00000000000000{ "query": "SELECT * FROM t1 LEFT JOIN (t2, t3, t4)\n ON (t2.a=t1.a AND t3.b=t1.b AND t4.c=t1.c)\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM t1 LEFT JOIN (t2, t3, t4)\n ON (t2.a=t1.a AND t3.b=t1.b AND t4.c=t1.c)\n", "len": 100, "last": 100, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t2", "value": "t2", "keyword": null, "type": 0, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t3", "value": "t3", "keyword": null, "type": 0, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t4", "value": "t4", "keyword": null, "type": 0, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t2", "value": "t2", "keyword": null, "type": 0, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t3", "value": "t3", "keyword": null, "type": 0, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t4", "value": "t4", "keyword": null, "type": 0, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 53, "idx": 53 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t1", "column": null, "expr": "t1", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(t2, t3, t4)", "alias": null, "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "t2", "a", "t1" ], "isOperator": false, "expr": "(t2.a=t1.a" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "t3", "b", "t1" ], "isOperator": false, "expr": "t3.b=t1.b" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "t4", "c", "t1" ], "isOperator": false, "expr": "t4.c=t1.c)" } ], "using": null } ], "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 51 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelect7.in000066400000000000000000000001671455302707200220670ustar00rootroot00000000000000SELECT * FROM t1 LEFT JOIN (t2 CROSS JOIN t3 CROSS JOIN t4) ON (t2.a=t1.a AND t3.b=t1.b AND t4.c=t1.c)sql-parser-5.9.0/tests/data/parser/parseSelect7.out000066400000000000000000000524371455302707200222770ustar00rootroot00000000000000{ "query": "SELECT * FROM t1 LEFT JOIN (t2 CROSS JOIN t3 CROSS JOIN t4)\n ON (t2.a=t1.a AND t3.b=t1.b AND t4.c=t1.c)", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM t1 LEFT JOIN (t2 CROSS JOIN t3 CROSS JOIN t4)\n ON (t2.a=t1.a AND t3.b=t1.b AND t4.c=t1.c)", "len": 119, "last": 119, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t2", "value": "t2", "keyword": null, "type": 0, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CROSS JOIN", "value": "CROSS JOIN", "keyword": "CROSS JOIN", "type": 1, "flags": 7, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t3", "value": "t3", "keyword": null, "type": 0, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CROSS JOIN", "value": "CROSS JOIN", "keyword": "CROSS JOIN", "type": 1, "flags": 7, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t4", "value": "t4", "keyword": null, "type": 0, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t2", "value": "t2", "keyword": null, "type": 0, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t3", "value": "t3", "keyword": null, "type": 0, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t4", "value": "t4", "keyword": null, "type": 0, "flags": 0, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t1", "value": "t1", "keyword": null, "type": 0, "flags": 0, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 54, "idx": 54 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t1", "column": null, "expr": "t1", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(t2 CROSS JOIN t3 CROSS JOIN t4)", "alias": null, "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "t2", "a", "t1" ], "isOperator": false, "expr": "(t2.a=t1.a" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "t3", "b", "t1" ], "isOperator": false, "expr": "t3.b=t1.b" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "t4", "c", "t1" ], "isOperator": false, "expr": "t4.c=t1.c)" } ], "using": null } ], "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 52 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelect8.in000066400000000000000000000001041455302707200220570ustar00rootroot00000000000000select * FROM (select Pop FROM MyTable) p join tadaa t where p.x=t.ysql-parser-5.9.0/tests/data/parser/parseSelect8.out000066400000000000000000000332571455302707200222770ustar00rootroot00000000000000{ "query": "select * FROM (select Pop FROM MyTable) p join tadaa t where p.x=t.y", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "select * FROM (select Pop FROM MyTable) p join tadaa t where p.x=t.y", "len": 68, "last": 68, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "Pop", "value": "Pop", "keyword": null, "type": 0, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MyTable", "value": "MyTable", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "join", "value": "JOIN", "keyword": "JOIN", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tadaa", "value": "tadaa", "keyword": null, "type": 0, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t", "value": "t", "keyword": null, "type": 0, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "where", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p", "value": "p", "keyword": null, "type": 0, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "x", "value": "x", "keyword": "X", "type": 0, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t", "value": "t", "keyword": null, "type": 0, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "y", "value": "y", "keyword": "Y", "type": 0, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 34, "idx": 34 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(select Pop FROM MyTable)", "alias": "p", "function": null, "subquery": "SELECT" } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "p", "x", "t", "y" ], "isOperator": false, "expr": "p.x=t.y" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "JOIN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "tadaa", "column": null, "expr": "tadaa", "alias": "t", "function": null, "subquery": null }, "on": null, "using": null } ], "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 32 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelect9.in000066400000000000000000000004501455302707200220640ustar00rootroot00000000000000SELECT casein_pipe, email_cp, name_first_cp, name_last_cp, purpose_pipe FROM (tbl_comp_person INNER JOIN `tbl_pipelist` ON tbl_comp_person.IDp = tbl_pipelist.IDp) WHERE casein_pipe > '2016-03-01' AND `campaign_id_pipe` = 24569 AND `weeksonlist_pipe` = 1 ORDER BY `tbl_pipelist`.`casein_pipe` ASCsql-parser-5.9.0/tests/data/parser/parseSelect9.out000066400000000000000000000677441455302707200223100ustar00rootroot00000000000000{ "query": "SELECT casein_pipe, email_cp, name_first_cp, name_last_cp, purpose_pipe\nFROM (tbl_comp_person INNER JOIN `tbl_pipelist` ON tbl_comp_person.IDp = tbl_pipelist.IDp)\nWHERE casein_pipe > '2016-03-01' AND `campaign_id_pipe` = 24569 AND `weeksonlist_pipe` = 1\nORDER BY `tbl_pipelist`.`casein_pipe` ASC", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT casein_pipe, email_cp, name_first_cp, name_last_cp, purpose_pipe\nFROM (tbl_comp_person INNER JOIN `tbl_pipelist` ON tbl_comp_person.IDp = tbl_pipelist.IDp)\nWHERE casein_pipe > '2016-03-01' AND `campaign_id_pipe` = 24569 AND `weeksonlist_pipe` = 1\nORDER BY `tbl_pipelist`.`casein_pipe` ASC", "len": 296, "last": 296, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "casein_pipe", "value": "casein_pipe", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "email_cp", "value": "email_cp", "keyword": null, "type": 0, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name_first_cp", "value": "name_first_cp", "keyword": null, "type": 0, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name_last_cp", "value": "name_last_cp", "keyword": null, "type": 0, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "purpose_pipe", "value": "purpose_pipe", "keyword": null, "type": 0, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tbl_comp_person", "value": "tbl_comp_person", "keyword": null, "type": 0, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INNER JOIN", "value": "INNER JOIN", "keyword": "INNER JOIN", "type": 1, "flags": 7, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`tbl_pipelist`", "value": "tbl_pipelist", "keyword": null, "type": 8, "flags": 2, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tbl_comp_person", "value": "tbl_comp_person", "keyword": null, "type": 0, "flags": 0, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IDp", "value": "IDp", "keyword": null, "type": 0, "flags": 0, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tbl_pipelist", "value": "tbl_pipelist", "keyword": null, "type": 0, "flags": 0, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IDp", "value": "IDp", "keyword": null, "type": 0, "flags": 0, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 163 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 168 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "casein_pipe", "value": "casein_pipe", "keyword": null, "type": 0, "flags": 0, "position": 169 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ">", "value": ">", "keyword": null, "type": 2, "flags": 2, "position": 181 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 182 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'2016-03-01'", "value": "2016-03-01", "keyword": null, "type": 7, "flags": 1, "position": 183 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 195 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 196 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 199 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`campaign_id_pipe`", "value": "campaign_id_pipe", "keyword": null, "type": 8, "flags": 2, "position": 201 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 219 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 220 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 221 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "24569", "value": 24569, "keyword": null, "type": 6, "flags": 0, "position": 222 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 227 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 228 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 231 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`weeksonlist_pipe`", "value": "weeksonlist_pipe", "keyword": null, "type": 8, "flags": 2, "position": 232 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 250 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 251 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 252 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 253 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 254 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ORDER BY", "value": "ORDER BY", "keyword": "ORDER BY", "type": 1, "flags": 7, "position": 255 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 263 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`tbl_pipelist`", "value": "tbl_pipelist", "keyword": null, "type": 8, "flags": 2, "position": 264 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 278 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`casein_pipe`", "value": "casein_pipe", "keyword": null, "type": 8, "flags": 2, "position": 279 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 292 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ASC", "value": "ASC", "keyword": "ASC", "type": 1, "flags": 3, "position": 293 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 70, "idx": 70 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "casein_pipe", "expr": "casein_pipe", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "email_cp", "expr": "email_cp", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "name_first_cp", "expr": "name_first_cp", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "name_last_cp", "expr": "name_last_cp", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "purpose_pipe", "expr": "purpose_pipe", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(tbl_comp_person INNER JOIN `tbl_pipelist` ON tbl_comp_person.IDp = tbl_pipelist.IDp)", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "casein_pipe", "2016-03-01" ], "isOperator": false, "expr": "casein_pipe > '2016-03-01'" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "campaign_id_pipe" ], "isOperator": false, "expr": "`campaign_id_pipe` = 24569" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "weeksonlist_pipe" ], "isOperator": false, "expr": "`weeksonlist_pipe` = 1" } ], "group": null, "group_options": null, "having": null, "order": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\OrderKeyword", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "tbl_pipelist", "column": "casein_pipe", "expr": "`tbl_pipelist`.`casein_pipe`", "alias": null, "function": null, "subquery": null }, "type": "ASC" } ], "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 68 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectAggregateWithPartitionAndAlias.in000066400000000000000000000001271455302707200277260ustar00rootroot00000000000000SELECT *, COUNT(*) OVER(PARTITION BY `REGION`) AS "count(REGION)" FROM `world_borders` sql-parser-5.9.0/tests/data/parser/parseSelectAggregateWithPartitionAndAlias.out000066400000000000000000000253741455302707200301420ustar00rootroot00000000000000{ "query": "SELECT *, COUNT(*) OVER(PARTITION BY `REGION`) AS \"count(REGION)\" FROM `world_borders`\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT *, COUNT(*) OVER(PARTITION BY `REGION`) AS \"count(REGION)\" FROM `world_borders`\n", "len": 87, "last": 87, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COUNT", "value": "COUNT", "keyword": "COUNT", "type": 1, "flags": 33, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OVER", "value": "OVER", "keyword": null, "type": 0, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION BY", "value": "PARTITION BY", "keyword": "PARTITION BY", "type": 1, "flags": 7, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`REGION`", "value": "REGION", "keyword": null, "type": 8, "flags": 2, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"count(REGION)\"", "value": "count(REGION)", "keyword": null, "type": 7, "flags": 2, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`world_borders`", "value": "world_borders", "keyword": null, "type": 8, "flags": 2, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 26, "idx": 26 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "COUNT(*) OVER(PARTITION BY `REGION`)", "alias": "count(REGION)", "function": "COUNT", "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "world_borders", "column": null, "expr": "`world_borders`", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 24 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectCase1.in000066400000000000000000000002041455302707200226450ustar00rootroot00000000000000select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name, case 1 when 1 then "Some" else "Other" end FROM a;sql-parser-5.9.0/tests/data/parser/parseSelectCase1.out000066400000000000000000000475251455302707200230670ustar00rootroot00000000000000{ "query": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase 1 when 1 then \"Some\" else \"Other\" end FROM a;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase 1 when 1 then \"Some\" else \"Other\" end FROM a;", "len": 132, "last": 132, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql", "value": "mysql", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category", "value": "help_category", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category_id", "value": "help_category_id", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "case", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Some\"", "value": "Some", "keyword": null, "type": 7, "flags": 2, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "else", "value": "ELSE", "keyword": "ELSE", "type": 1, "flags": 3, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Other\"", "value": "Other", "keyword": null, "type": 7, "flags": 2, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "end", "value": "end", "keyword": "END", "type": 1, "flags": 1, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 50, "idx": 50 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT name FROM mysql.help_category WHERE help_category_id = 1)", "alias": "name", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CaseExpression", "value": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null }, "conditions": [], "results": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Some", "expr": "\"Some\"", "alias": null, "function": null, "subquery": null } ], "compare_values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null } ], "else_result": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Other", "expr": "\"Other\"", "alias": null, "function": null, "subquery": null }, "alias": null, "expr": "CASE 1 WHEN 1 THEN \"Some\" ELSE \"Other\" END" } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "a", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 47 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectCase2.in000066400000000000000000000002121455302707200226450ustar00rootroot00000000000000select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name, case /* */ when 1=1 then "Some" else "Other" end FROM a;sql-parser-5.9.0/tests/data/parser/parseSelectCase2.out000066400000000000000000000476761455302707200230770ustar00rootroot00000000000000{ "query": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase /* */ when 1=1 then \"Some\" else \"Other\" end FROM a;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase /* */ when 1=1 then \"Some\" else \"Other\" end FROM a;", "len": 138, "last": 138, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql", "value": "mysql", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category", "value": "help_category", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category_id", "value": "help_category_id", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "case", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* */", "value": "/* */", "keyword": null, "type": 4, "flags": 2, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Some\"", "value": "Some", "keyword": null, "type": 7, "flags": 2, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "else", "value": "ELSE", "keyword": "ELSE", "type": 1, "flags": 3, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Other\"", "value": "Other", "keyword": null, "type": 7, "flags": 2, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "end", "value": "end", "keyword": "END", "type": 1, "flags": 1, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 137 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 52, "idx": 52 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT name FROM mysql.help_category WHERE help_category_id = 1)", "alias": "name", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CaseExpression", "value": null, "conditions": [ [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": false, "expr": "1=1" } ] ], "results": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Some", "expr": "\"Some\"", "alias": null, "function": null, "subquery": null } ], "compare_values": [], "else_result": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Other", "expr": "\"Other\"", "alias": null, "function": null, "subquery": null }, "alias": null, "expr": "CASE WHEN 1=1 THEN \"Some\" ELSE \"Other\" END" } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "a", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 49 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectCase3.in000066400000000000000000000002231455302707200226500ustar00rootroot00000000000000select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name, case /* */ when 1=1 then "Some" when 2=1 then "Other" end FROM a;sql-parser-5.9.0/tests/data/parser/parseSelectCase3.out000066400000000000000000000542671455302707200230720ustar00rootroot00000000000000{ "query": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase /* */ when 1=1 then \"Some\" when 2=1 then \"Other\" end FROM a;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase /* */ when 1=1 then \"Some\" when 2=1 then \"Other\" end FROM a;", "len": 147, "last": 147, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql", "value": "mysql", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category", "value": "help_category", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category_id", "value": "help_category_id", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "case", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* */", "value": "/* */", "keyword": null, "type": 4, "flags": 2, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Some\"", "value": "Some", "keyword": null, "type": 7, "flags": 2, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Other\"", "value": "Other", "keyword": null, "type": 7, "flags": 2, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "end", "value": "end", "keyword": "END", "type": 1, "flags": 1, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 58, "idx": 58 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT name FROM mysql.help_category WHERE help_category_id = 1)", "alias": "name", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CaseExpression", "value": null, "conditions": [ [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": false, "expr": "1=1" } ], [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": false, "expr": "2=1" } ] ], "results": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Some", "expr": "\"Some\"", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Other", "expr": "\"Other\"", "alias": null, "function": null, "subquery": null } ], "compare_values": [], "else_result": null, "alias": null, "expr": "CASE WHEN 1=1 THEN \"Some\" WHEN 2=1 THEN \"Other\" END" } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "a", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 55 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectCase4.in000066400000000000000000000002211455302707200226470ustar00rootroot00000000000000select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name, case 1 /* */ when 1 then "Some" when 2 then "Other" end FROM a;sql-parser-5.9.0/tests/data/parser/parseSelectCase4.out000066400000000000000000000543221455302707200230630ustar00rootroot00000000000000{ "query": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase 1 /* */ when 1 then \"Some\" when 2 then \"Other\" end FROM a;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase 1 /* */ when 1 then \"Some\" when 2 then \"Other\" end FROM a;", "len": 145, "last": 145, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql", "value": "mysql", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category", "value": "help_category", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category_id", "value": "help_category_id", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "case", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* */", "value": "/* */", "keyword": null, "type": 4, "flags": 2, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Some\"", "value": "Some", "keyword": null, "type": 7, "flags": 2, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Other\"", "value": "Other", "keyword": null, "type": 7, "flags": 2, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "end", "value": "end", "keyword": "END", "type": 1, "flags": 1, "position": 134 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 137 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 56, "idx": 56 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT name FROM mysql.help_category WHERE help_category_id = 1)", "alias": "name", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CaseExpression", "value": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1 /* */", "alias": null, "function": null, "subquery": null }, "conditions": [], "results": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Some", "expr": "\"Some\"", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Other", "expr": "\"Other\"", "alias": null, "function": null, "subquery": null } ], "compare_values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "2", "alias": null, "function": null, "subquery": null } ], "else_result": null, "alias": null, "expr": "CASE 1 /* */ WHEN 1 THEN \"Some\" WHEN 2 THEN \"Other\" END" } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "a", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 53 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectCase5.in000066400000000000000000000002261455302707200226550ustar00rootroot00000000000000select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name, test=case 1 /* */ when 1 then "Some" when 2 then "Other" end FROM a;sql-parser-5.9.0/tests/data/parser/parseSelectCase5.out000066400000000000000000000506641455302707200230710ustar00rootroot00000000000000{ "query": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ntest=case 1 /* */ when 1 then \"Some\" when 2 then \"Other\" end FROM a;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ntest=case 1 /* */ when 1 then \"Some\" when 2 then \"Other\" end FROM a;", "len": 150, "last": 150, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql", "value": "mysql", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category", "value": "help_category", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category_id", "value": "help_category_id", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "case", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* */", "value": "/* */", "keyword": null, "type": 4, "flags": 2, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Some\"", "value": "Some", "keyword": null, "type": 7, "flags": 2, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Other\"", "value": "Other", "keyword": null, "type": 7, "flags": 2, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "end", "value": "end", "keyword": "END", "type": 1, "flags": 1, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 58, "idx": 58 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT name FROM mysql.help_category WHERE help_category_id = 1)", "alias": "name", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "test", "expr": "test=CASE 1 /* */ WHEN 1 THEN \"Some\" WHEN 2 THEN \"Other\" END", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "a", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 55 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectCaseAlias1.in000066400000000000000000000002461455302707200236250ustar00rootroot00000000000000select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name, case /* */ when 1=1 then "Some" when 2=1 then "Other" end /* */ AS /* */ foo FROM a;sql-parser-5.9.0/tests/data/parser/parseSelectCaseAlias1.out000066400000000000000000000611551455302707200240340ustar00rootroot00000000000000{ "query": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase /* */ when 1=1 then \"Some\" when 2=1 then \"Other\" end /* */ AS /* */ foo FROM a;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase /* */ when 1=1 then \"Some\" when 2=1 then \"Other\" end /* */ AS /* */ foo FROM a;", "len": 166, "last": 166, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql", "value": "mysql", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category", "value": "help_category", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category_id", "value": "help_category_id", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "case", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* */", "value": "/* */", "keyword": null, "type": 4, "flags": 2, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Some\"", "value": "Some", "keyword": null, "type": 7, "flags": 2, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Other\"", "value": "Other", "keyword": null, "type": 7, "flags": 2, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "end", "value": "end", "keyword": "END", "type": 1, "flags": 1, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* */", "value": "/* */", "keyword": null, "type": 4, "flags": 2, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* */", "value": "/* */", "keyword": null, "type": 4, "flags": 2, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 154 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 159 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 163 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 165 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 66, "idx": 66 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT name FROM mysql.help_category WHERE help_category_id = 1)", "alias": "name", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CaseExpression", "value": null, "conditions": [ [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": false, "expr": "1=1" } ], [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": false, "expr": "2=1" } ] ], "results": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Some", "expr": "\"Some\"", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Other", "expr": "\"Other\"", "alias": null, "function": null, "subquery": null } ], "compare_values": [], "else_result": null, "alias": "foo", "expr": "CASE WHEN 1=1 THEN \"Some\" WHEN 2=1 THEN \"Other\" END AS `foo`" } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "a", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 63 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectCaseAlias2.in000066400000000000000000000002351455302707200236240ustar00rootroot00000000000000select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name, case /* */ when 1=1 then "Some" when 2=1 then "Other" end /* */ foo FROM a;sql-parser-5.9.0/tests/data/parser/parseSelectCaseAlias2.out000066400000000000000000000566311455302707200240400ustar00rootroot00000000000000{ "query": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase /* */ when 1=1 then \"Some\" when 2=1 then \"Other\" end /* */ foo FROM a;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase /* */ when 1=1 then \"Some\" when 2=1 then \"Other\" end /* */ foo FROM a;", "len": 157, "last": 157, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql", "value": "mysql", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category", "value": "help_category", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category_id", "value": "help_category_id", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "case", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* */", "value": "/* */", "keyword": null, "type": 4, "flags": 2, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Some\"", "value": "Some", "keyword": null, "type": 7, "flags": 2, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Other\"", "value": "Other", "keyword": null, "type": 7, "flags": 2, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "end", "value": "end", "keyword": "END", "type": 1, "flags": 1, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* */", "value": "/* */", "keyword": null, "type": 4, "flags": 2, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 150 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 154 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 62, "idx": 62 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT name FROM mysql.help_category WHERE help_category_id = 1)", "alias": "name", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CaseExpression", "value": null, "conditions": [ [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": false, "expr": "1=1" } ], [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": false, "expr": "2=1" } ] ], "results": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Some", "expr": "\"Some\"", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Other", "expr": "\"Other\"", "alias": null, "function": null, "subquery": null } ], "compare_values": [], "else_result": null, "alias": "foo", "expr": "CASE WHEN 1=1 THEN \"Some\" WHEN 2=1 THEN \"Other\" END AS `foo`" } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "a", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 59 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectCaseAlias3.in000066400000000000000000000002511455302707200236230ustar00rootroot00000000000000select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name, test=case 1 /* */ when 1 then "Some" when 2 then "Other" end /* */ AS /* */ foo FROM a;sql-parser-5.9.0/tests/data/parser/parseSelectCaseAlias3.out000066400000000000000000000555511455302707200240410ustar00rootroot00000000000000{ "query": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ntest=case 1 /* */ when 1 then \"Some\" when 2 then \"Other\" end /* */ AS /* */ foo FROM a;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ntest=case 1 /* */ when 1 then \"Some\" when 2 then \"Other\" end /* */ AS /* */ foo FROM a;", "len": 169, "last": 169, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql", "value": "mysql", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category", "value": "help_category", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category_id", "value": "help_category_id", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "case", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* */", "value": "/* */", "keyword": null, "type": 4, "flags": 2, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Some\"", "value": "Some", "keyword": null, "type": 7, "flags": 2, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Other\"", "value": "Other", "keyword": null, "type": 7, "flags": 2, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "end", "value": "end", "keyword": "END", "type": 1, "flags": 1, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* */", "value": "/* */", "keyword": null, "type": 4, "flags": 2, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* */", "value": "/* */", "keyword": null, "type": 4, "flags": 2, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 166 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 168 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 66, "idx": 66 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT name FROM mysql.help_category WHERE help_category_id = 1)", "alias": "name", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "test", "expr": "test=CASE 1 /* */ WHEN 1 THEN \"Some\" WHEN 2 THEN \"Other\" END AS `foo`", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "a", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 63 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectCaseAlias4.in000066400000000000000000000002401455302707200236220ustar00rootroot00000000000000select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name, test=case 1 /* */ when 1 then "Some" when 2 then "Other" end /* */ foo FROM a;sql-parser-5.9.0/tests/data/parser/parseSelectCaseAlias4.out000066400000000000000000000532251455302707200240360ustar00rootroot00000000000000{ "query": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ntest=case 1 /* */ when 1 then \"Some\" when 2 then \"Other\" end /* */ foo FROM a;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ntest=case 1 /* */ when 1 then \"Some\" when 2 then \"Other\" end /* */ foo FROM a;", "len": 160, "last": 160, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql", "value": "mysql", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category", "value": "help_category", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category_id", "value": "help_category_id", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "case", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* */", "value": "/* */", "keyword": null, "type": 4, "flags": 2, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Some\"", "value": "Some", "keyword": null, "type": 7, "flags": 2, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Other\"", "value": "Other", "keyword": null, "type": 7, "flags": 2, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "end", "value": "end", "keyword": "END", "type": 1, "flags": 1, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* */", "value": "/* */", "keyword": null, "type": 4, "flags": 2, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 153 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 159 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 62, "idx": 62 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT name FROM mysql.help_category WHERE help_category_id = 1)", "alias": "name", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "test", "expr": "test=CASE 1 /* */ WHEN 1 THEN \"Some\" WHEN 2 THEN \"Other\" END AS `foo`", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "a", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 59 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectCaseAlias5.in000066400000000000000000000002261455302707200236270ustar00rootroot00000000000000select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name, case 1 when 1 then "Some" else "Other" end AS "string value" FROM a;sql-parser-5.9.0/tests/data/parser/parseSelectCaseAlias5.out000066400000000000000000000521551455302707200240400ustar00rootroot00000000000000{ "query": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase 1 when 1 then \"Some\" else \"Other\" end AS \"string value\" FROM a;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase 1 when 1 then \"Some\" else \"Other\" end AS \"string value\" FROM a;", "len": 150, "last": 150, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql", "value": "mysql", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category", "value": "help_category", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category_id", "value": "help_category_id", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "case", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Some\"", "value": "Some", "keyword": null, "type": 7, "flags": 2, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "else", "value": "ELSE", "keyword": "ELSE", "type": 1, "flags": 3, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Other\"", "value": "Other", "keyword": null, "type": 7, "flags": 2, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "end", "value": "end", "keyword": "END", "type": 1, "flags": 1, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"string value\"", "value": "string value", "keyword": null, "type": 7, "flags": 2, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 54, "idx": 54 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT name FROM mysql.help_category WHERE help_category_id = 1)", "alias": "name", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CaseExpression", "value": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null }, "conditions": [], "results": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Some", "expr": "\"Some\"", "alias": null, "function": null, "subquery": null } ], "compare_values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null } ], "else_result": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Other", "expr": "\"Other\"", "alias": null, "function": null, "subquery": null }, "alias": "string value", "expr": "CASE 1 WHEN 1 THEN \"Some\" ELSE \"Other\" END AS `string value`" } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "a", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 51 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectCaseAlias6.in000066400000000000000000000002261455302707200236300ustar00rootroot00000000000000select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name, case 1 when 1 then "Some" else "Other" end AS `symbol_value` FROM a;sql-parser-5.9.0/tests/data/parser/parseSelectCaseAlias6.out000066400000000000000000000521471455302707200240420ustar00rootroot00000000000000{ "query": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase 1 when 1 then \"Some\" else \"Other\" end AS `symbol_value` FROM a;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase 1 when 1 then \"Some\" else \"Other\" end AS `symbol_value` FROM a;", "len": 150, "last": 150, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql", "value": "mysql", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category", "value": "help_category", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category_id", "value": "help_category_id", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "case", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Some\"", "value": "Some", "keyword": null, "type": 7, "flags": 2, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "else", "value": "ELSE", "keyword": "ELSE", "type": 1, "flags": 3, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Other\"", "value": "Other", "keyword": null, "type": 7, "flags": 2, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "end", "value": "end", "keyword": "END", "type": 1, "flags": 1, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`symbol_value`", "value": "symbol_value", "keyword": null, "type": 8, "flags": 2, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 54, "idx": 54 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT name FROM mysql.help_category WHERE help_category_id = 1)", "alias": "name", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CaseExpression", "value": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null }, "conditions": [], "results": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Some", "expr": "\"Some\"", "alias": null, "function": null, "subquery": null } ], "compare_values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null } ], "else_result": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Other", "expr": "\"Other\"", "alias": null, "function": null, "subquery": null }, "alias": "symbol_value", "expr": "CASE 1 WHEN 1 THEN \"Some\" ELSE \"Other\" END AS `symbol_value`" } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "a", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 51 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectCaseAliasErr1.in000066400000000000000000000002161455302707200242730ustar00rootroot00000000000000select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name, case 1 when 1 then "Some" else "Other" end AS AS foo FROM a;sql-parser-5.9.0/tests/data/parser/parseSelectCaseAliasErr1.out000066400000000000000000000544531455302707200245100ustar00rootroot00000000000000{ "query": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase 1 when 1 then \"Some\" else \"Other\" end AS AS foo FROM a;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase 1 when 1 then \"Some\" else \"Other\" end AS AS foo FROM a;", "len": 142, "last": 142, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql", "value": "mysql", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category", "value": "help_category", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category_id", "value": "help_category_id", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "case", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Some\"", "value": "Some", "keyword": null, "type": 7, "flags": 2, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "else", "value": "ELSE", "keyword": "ELSE", "type": 1, "flags": 3, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Other\"", "value": "Other", "keyword": null, "type": 7, "flags": 2, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "end", "value": "end", "keyword": "END", "type": 1, "flags": 1, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 134 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 56, "idx": 56 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT name FROM mysql.help_category WHERE help_category_id = 1)", "alias": "name", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CaseExpression", "value": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null }, "conditions": [], "results": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Some", "expr": "\"Some\"", "alias": null, "function": null, "subquery": null } ], "compare_values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null } ], "else_result": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Other", "expr": "\"Other\"", "alias": null, "function": null, "subquery": null }, "alias": null, "expr": "CASE 1 WHEN 1 THEN \"Some\" ELSE \"Other\" END" } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "a", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 53 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Potential duplicate alias of CASE expression.", { "@type": "@49" }, 0 ], [ "An alias was expected after AS.", { "@type": "@48" }, 0 ], [ "Unrecognized keyword.", { "@type": "@49" }, 0 ], [ "Unexpected token.", { "@type": "@51" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSelectCaseAliasErr2.in000066400000000000000000000002071455302707200242740ustar00rootroot00000000000000select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name, case 1 when 1 then "Some" else "Other" end AS FROM a;sql-parser-5.9.0/tests/data/parser/parseSelectCaseAliasErr2.out000066400000000000000000000511631455302707200245040ustar00rootroot00000000000000{ "query": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase 1 when 1 then \"Some\" else \"Other\" end AS FROM a;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase 1 when 1 then \"Some\" else \"Other\" end AS FROM a;", "len": 135, "last": 135, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql", "value": "mysql", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category", "value": "help_category", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category_id", "value": "help_category_id", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "case", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Some\"", "value": "Some", "keyword": null, "type": 7, "flags": 2, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "else", "value": "ELSE", "keyword": "ELSE", "type": 1, "flags": 3, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Other\"", "value": "Other", "keyword": null, "type": 7, "flags": 2, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "end", "value": "end", "keyword": "END", "type": 1, "flags": 1, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 134 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 52, "idx": 52 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT name FROM mysql.help_category WHERE help_category_id = 1)", "alias": "name", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CaseExpression", "value": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null }, "conditions": [], "results": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Some", "expr": "\"Some\"", "alias": null, "function": null, "subquery": null } ], "compare_values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null } ], "else_result": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Other", "expr": "\"Other\"", "alias": null, "function": null, "subquery": null }, "alias": null, "expr": "CASE 1 WHEN 1 THEN \"Some\" ELSE \"Other\" END" } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "a", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 49 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "An alias expected after AS but got FROM", { "@type": "@49" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSelectCaseAliasErr3.in000066400000000000000000000002171455302707200242760ustar00rootroot00000000000000select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name, case 1 when 1 then "Some" else "Other" end AS foo bar FROM a;sql-parser-5.9.0/tests/data/parser/parseSelectCaseAliasErr3.out000066400000000000000000000537401455302707200245100ustar00rootroot00000000000000{ "query": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase 1 when 1 then \"Some\" else \"Other\" end AS foo bar FROM a;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase 1 when 1 then \"Some\" else \"Other\" end AS foo bar FROM a;", "len": 143, "last": 143, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql", "value": "mysql", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category", "value": "help_category", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category_id", "value": "help_category_id", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "case", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Some\"", "value": "Some", "keyword": null, "type": 7, "flags": 2, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "else", "value": "ELSE", "keyword": "ELSE", "type": 1, "flags": 3, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Other\"", "value": "Other", "keyword": null, "type": 7, "flags": 2, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "end", "value": "end", "keyword": "END", "type": 1, "flags": 1, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bar", "value": "bar", "keyword": null, "type": 0, "flags": 0, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 56, "idx": 56 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT name FROM mysql.help_category WHERE help_category_id = 1)", "alias": "name", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CaseExpression", "value": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null }, "conditions": [], "results": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Some", "expr": "\"Some\"", "alias": null, "function": null, "subquery": null } ], "compare_values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null } ], "else_result": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Other", "expr": "\"Other\"", "alias": null, "function": null, "subquery": null }, "alias": "foo", "expr": "CASE 1 WHEN 1 THEN \"Some\" ELSE \"Other\" END AS `foo`" } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "a", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 53 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "An alias was previously found.", { "@type": "@51" }, 0 ], [ "Unexpected token.", { "@type": "@51" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSelectCaseAliasErr4.in000066400000000000000000000001141455302707200242730ustar00rootroot00000000000000SELECT CASE WHEN 2 IS NULL THEN "this is true" ELSE "this is false" END AS ;sql-parser-5.9.0/tests/data/parser/parseSelectCaseAliasErr4.out000066400000000000000000000266621455302707200245140ustar00rootroot00000000000000{ "query": "SELECT CASE WHEN 2 IS NULL THEN \"this is true\" ELSE \"this is false\" END AS ;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT CASE WHEN 2 IS NULL THEN \"this is true\" ELSE \"this is false\" END AS ;", "len": 76, "last": 76, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CASE", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHEN", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IS", "value": "IS", "keyword": "IS", "type": 1, "flags": 3, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "THEN", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"this is true\"", "value": "this is true", "keyword": null, "type": 7, "flags": 2, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ELSE", "value": "ELSE", "keyword": "ELSE", "type": 1, "flags": 3, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"this is false\"", "value": "this is false", "keyword": null, "type": 7, "flags": 2, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "END", "value": "END", "keyword": "END", "type": 1, "flags": 1, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 26, "idx": 26 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CaseExpression", "value": null, "conditions": [ [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": false, "expr": "2 IS NULL" } ] ], "results": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "this is true", "expr": "\"this is true\"", "alias": null, "function": null, "subquery": null } ], "compare_values": [], "else_result": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "this is false", "expr": "\"this is false\"", "alias": null, "function": null, "subquery": null }, "alias": null, "expr": "CASE WHEN 2 IS NULL THEN \"this is true\" ELSE \"this is false\" END" } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 23 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "An alias was expected after AS.", { "@type": "@25" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSelectCaseErr1.in000066400000000000000000000002041455302707200233160ustar00rootroot00000000000000select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name, case 1 then 1 then "Some" else "Other" end FROM a;sql-parser-5.9.0/tests/data/parser/parseSelectCaseErr1.out000066400000000000000000000474271455302707200235410ustar00rootroot00000000000000{ "query": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name, case 1 then 1 then \"Some\" else \"Other\" end FROM a;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name, case 1 then 1 then \"Some\" else \"Other\" end FROM a;", "len": 132, "last": 132, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql", "value": "mysql", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category", "value": "help_category", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category_id", "value": "help_category_id", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "case", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Some\"", "value": "Some", "keyword": null, "type": 7, "flags": 2, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "else", "value": "ELSE", "keyword": "ELSE", "type": 1, "flags": 3, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Other\"", "value": "Other", "keyword": null, "type": 7, "flags": 2, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "end", "value": "end", "keyword": "END", "type": 1, "flags": 1, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 50, "idx": 50 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT name FROM mysql.help_category WHERE help_category_id = 1)", "alias": "name", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CaseExpression", "value": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null }, "conditions": [], "results": [], "compare_values": [], "else_result": null, "alias": null, "expr": "" } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "a", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 47 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword.", { "@type": "@33" }, 0 ], [ "Unexpected end of CASE expression", { "@type": "@32" }, 0 ], [ "Unrecognized keyword.", { "@type": "@33" }, 0 ], [ "Unexpected token.", { "@type": "@35" }, 0 ], [ "Unrecognized keyword.", { "@type": "@37" }, 0 ], [ "Unexpected token.", { "@type": "@39" }, 0 ], [ "Unrecognized keyword.", { "@type": "@41" }, 0 ], [ "Unexpected token.", { "@type": "@43" }, 0 ], [ "Unrecognized keyword.", { "@type": "@45" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSelectCaseErr2.in000066400000000000000000000002041455302707200233170ustar00rootroot00000000000000select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name, case then 1=1 then "Some" else "Other" end FROM a;sql-parser-5.9.0/tests/data/parser/parseSelectCaseErr2.out000066400000000000000000000472611455302707200235360ustar00rootroot00000000000000{ "query": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase then 1=1 then \"Some\" else \"Other\" end FROM a;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase then 1=1 then \"Some\" else \"Other\" end FROM a;", "len": 132, "last": 132, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql", "value": "mysql", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category", "value": "help_category", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category_id", "value": "help_category_id", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "case", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Some\"", "value": "Some", "keyword": null, "type": 7, "flags": 2, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "else", "value": "ELSE", "keyword": "ELSE", "type": 1, "flags": 3, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Other\"", "value": "Other", "keyword": null, "type": 7, "flags": 2, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "end", "value": "end", "keyword": "END", "type": 1, "flags": 1, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 50, "idx": 50 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT name FROM mysql.help_category WHERE help_category_id = 1)", "alias": "name", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CaseExpression", "value": null, "conditions": [], "results": [], "compare_values": [], "else_result": null, "alias": null, "expr": "" } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "a", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 47 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword.", { "@type": "@31" }, 0 ], [ "Unexpected end of CASE expression", { "@type": "@30" }, 0 ], [ "Unrecognized keyword.", { "@type": "@31" }, 0 ], [ "Unexpected token.", { "@type": "@33" }, 0 ], [ "Unexpected token.", { "@type": "@34" }, 0 ], [ "Unexpected token.", { "@type": "@35" }, 0 ], [ "Unrecognized keyword.", { "@type": "@37" }, 0 ], [ "Unexpected token.", { "@type": "@39" }, 0 ], [ "Unrecognized keyword.", { "@type": "@41" }, 0 ], [ "Unexpected token.", { "@type": "@43" }, 0 ], [ "Unrecognized keyword.", { "@type": "@45" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSelectCaseErr3.in000066400000000000000000000002041455302707200233200ustar00rootroot00000000000000select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name, case when 1=1 when "Some" else "Other" end FROM a;sql-parser-5.9.0/tests/data/parser/parseSelectCaseErr3.out000066400000000000000000000467251455302707200235430ustar00rootroot00000000000000{ "query": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase when 1=1 when \"Some\" else \"Other\" end FROM a;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase when 1=1 when \"Some\" else \"Other\" end FROM a;", "len": 132, "last": 132, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql", "value": "mysql", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category", "value": "help_category", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category_id", "value": "help_category_id", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "case", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Some\"", "value": "Some", "keyword": null, "type": 7, "flags": 2, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "else", "value": "ELSE", "keyword": "ELSE", "type": 1, "flags": 3, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Other\"", "value": "Other", "keyword": null, "type": 7, "flags": 2, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "end", "value": "end", "keyword": "END", "type": 1, "flags": 1, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 50, "idx": 50 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT name FROM mysql.help_category WHERE help_category_id = 1)", "alias": "name", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CaseExpression", "value": null, "conditions": [ [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": false, "expr": "1=1" } ] ], "results": [], "compare_values": [], "else_result": null, "alias": null, "expr": "" } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "a", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 47 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword.", { "@type": "@37" }, 0 ], [ "Unexpected end of CASE expression", { "@type": "@36" }, 0 ], [ "Unrecognized keyword.", { "@type": "@37" }, 0 ], [ "Unexpected token.", { "@type": "@39" }, 0 ], [ "Unrecognized keyword.", { "@type": "@41" }, 0 ], [ "Unexpected token.", { "@type": "@43" }, 0 ], [ "Unrecognized keyword.", { "@type": "@45" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSelectCaseErr4.in000066400000000000000000000002041455302707200233210ustar00rootroot00000000000000select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name, case 1 then 1 when "Some" else "Other" end FROM a;sql-parser-5.9.0/tests/data/parser/parseSelectCaseErr4.out000066400000000000000000000474321455302707200235400ustar00rootroot00000000000000{ "query": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase 1 then 1 when \"Some\" else \"Other\" end FROM a;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase 1 then 1 when \"Some\" else \"Other\" end FROM a;", "len": 132, "last": 132, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql", "value": "mysql", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category", "value": "help_category", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category_id", "value": "help_category_id", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "case", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Some\"", "value": "Some", "keyword": null, "type": 7, "flags": 2, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "else", "value": "ELSE", "keyword": "ELSE", "type": 1, "flags": 3, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Other\"", "value": "Other", "keyword": null, "type": 7, "flags": 2, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "end", "value": "end", "keyword": "END", "type": 1, "flags": 1, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 50, "idx": 50 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT name FROM mysql.help_category WHERE help_category_id = 1)", "alias": "name", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CaseExpression", "value": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null }, "conditions": [], "results": [], "compare_values": [], "else_result": null, "alias": null, "expr": "" } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "a", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 47 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword.", { "@type": "@33" }, 0 ], [ "Unexpected end of CASE expression", { "@type": "@32" }, 0 ], [ "Unrecognized keyword.", { "@type": "@33" }, 0 ], [ "Unexpected token.", { "@type": "@35" }, 0 ], [ "Unrecognized keyword.", { "@type": "@37" }, 0 ], [ "Unexpected token.", { "@type": "@39" }, 0 ], [ "Unrecognized keyword.", { "@type": "@41" }, 0 ], [ "Unexpected token.", { "@type": "@43" }, 0 ], [ "Unrecognized keyword.", { "@type": "@45" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSelectCaseErr5.in000066400000000000000000000002131455302707200233220ustar00rootroot00000000000000select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name, case 1 when 1 then "Some" when 2 when "Other" end FROM a;sql-parser-5.9.0/tests/data/parser/parseSelectCaseErr5.out000066400000000000000000000535341455302707200235410ustar00rootroot00000000000000{ "query": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase 1 when 1 then \"Some\" when 2 when \"Other\" end FROM a;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name,\ncase 1 when 1 then \"Some\" when 2 when \"Other\" end FROM a;", "len": 139, "last": 139, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "mysql", "value": "mysql", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category", "value": "help_category", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "help_category_id", "value": "help_category_id", "keyword": null, "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "case", "value": "CASE", "keyword": "CASE", "type": 1, "flags": 3, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "then", "value": "THEN", "keyword": "THEN", "type": 1, "flags": 3, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Some\"", "value": "Some", "keyword": null, "type": 7, "flags": 2, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "when", "value": "WHEN", "keyword": "WHEN", "type": 1, "flags": 3, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Other\"", "value": "Other", "keyword": null, "type": 7, "flags": 2, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "end", "value": "end", "keyword": "END", "type": 1, "flags": 1, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 137 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 54, "idx": 54 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT name FROM mysql.help_category WHERE help_category_id = 1)", "alias": "name", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CaseExpression", "value": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null }, "conditions": [], "results": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Some", "expr": "\"Some\"", "alias": null, "function": null, "subquery": null } ], "compare_values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "2", "alias": null, "function": null, "subquery": null } ], "else_result": null, "alias": null, "expr": "" } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "a", "column": null, "expr": "a", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 51 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword.", { "@type": "@45" }, 0 ], [ "Unexpected end of CASE expression", { "@type": "@44" }, 0 ], [ "Unrecognized keyword.", { "@type": "@45" }, 0 ], [ "Unexpected token.", { "@type": "@47" }, 0 ], [ "Unrecognized keyword.", { "@type": "@49" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSelectEndOptions1.in000066400000000000000000000001261455302707200240570ustar00rootroot00000000000000SELECT pid, name2 FROM tablename WHERE pid = 20 /* FOR UPDATE end_option */ FOR UPDATEsql-parser-5.9.0/tests/data/parser/parseSelectEndOptions1.out000066400000000000000000000245041455302707200242660ustar00rootroot00000000000000{ "query": "SELECT pid, name2 FROM tablename WHERE pid = 20 /* FOR UPDATE end_option */ FOR UPDATE", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT pid, name2 FROM tablename WHERE pid = 20 /* FOR UPDATE end_option */ FOR UPDATE", "len": 86, "last": 86, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pid", "value": "pid", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name2", "value": "name2", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tablename", "value": "tablename", "keyword": null, "type": 0, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pid", "value": "pid", "keyword": null, "type": 0, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "20", "value": 20, "keyword": null, "type": 6, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* FOR UPDATE end_option */", "value": "/* FOR UPDATE end_option */", "keyword": null, "type": 4, "flags": 2, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FOR UPDATE", "value": "FOR UPDATE", "keyword": "FOR UPDATE", "type": 1, "flags": 7, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 23, "idx": 23 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "pid", "expr": "pid", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "name2", "expr": "name2", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "tablename", "column": null, "expr": "tablename", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "pid" ], "isOperator": false, "expr": "pid = 20" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "FOR UPDATE" } }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 21 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectEndOptions2.in000066400000000000000000000001461455302707200240620ustar00rootroot00000000000000SELECT pid, name2 FROM tablename WHERE pid = 20 /* LOCK IN SHARE MODE end_option */ LOCK IN SHARE MODEsql-parser-5.9.0/tests/data/parser/parseSelectEndOptions2.out000066400000000000000000000246311455302707200242700ustar00rootroot00000000000000{ "query": "SELECT pid, name2 FROM tablename WHERE pid = 20\n/* LOCK IN SHARE MODE end_option */ LOCK IN SHARE MODE", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT pid, name2 FROM tablename WHERE pid = 20\n/* LOCK IN SHARE MODE end_option */ LOCK IN SHARE MODE", "len": 102, "last": 102, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pid", "value": "pid", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name2", "value": "name2", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tablename", "value": "tablename", "keyword": null, "type": 0, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pid", "value": "pid", "keyword": null, "type": 0, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "20", "value": 20, "keyword": null, "type": 6, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* LOCK IN SHARE MODE end_option */", "value": "/* LOCK IN SHARE MODE end_option */", "keyword": null, "type": 4, "flags": 2, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK IN SHARE MODE", "value": "LOCK IN SHARE MODE", "keyword": "LOCK IN SHARE MODE", "type": 1, "flags": 7, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 23, "idx": 23 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "pid", "expr": "pid", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "name2", "expr": "name2", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "tablename", "column": null, "expr": "tablename", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "pid" ], "isOperator": false, "expr": "pid = 20" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "LOCK IN SHARE MODE" } }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 21 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectEndOptionsErr.in000066400000000000000000000001641455302707200244510ustar00rootroot00000000000000SELECT pid, name2 FROM tablename WHERE pid = 20 /* USE both end_option, gives error */ FOR UPDATE LOCK IN SHARE MODEsql-parser-5.9.0/tests/data/parser/parseSelectEndOptionsErr.out000066400000000000000000000264321455302707200246600ustar00rootroot00000000000000{ "query": "SELECT pid, name2 FROM tablename WHERE pid = 20\n/* USE both end_option, gives error */\nFOR UPDATE LOCK IN SHARE MODE", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT pid, name2 FROM tablename WHERE pid = 20\n/* USE both end_option, gives error */\nFOR UPDATE LOCK IN SHARE MODE", "len": 116, "last": 116, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pid", "value": "pid", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name2", "value": "name2", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tablename", "value": "tablename", "keyword": null, "type": 0, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pid", "value": "pid", "keyword": null, "type": 0, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "20", "value": 20, "keyword": null, "type": 6, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* USE both end_option, gives error */", "value": "/* USE both end_option, gives error */", "keyword": null, "type": 4, "flags": 2, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FOR UPDATE", "value": "FOR UPDATE", "keyword": "FOR UPDATE", "type": 1, "flags": 7, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LOCK IN SHARE MODE", "value": "LOCK IN SHARE MODE", "keyword": "LOCK IN SHARE MODE", "type": 1, "flags": 7, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 25, "idx": 25 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "pid", "expr": "pid", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "name2", "expr": "name2", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "tablename", "column": null, "expr": "tablename", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "pid" ], "isOperator": false, "expr": "pid = 20" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "FOR UPDATE", "3": "LOCK IN SHARE MODE" } }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 23 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "This option conflicts with \"FOR UPDATE\".", { "@type": "@25" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSelectErr1.in000066400000000000000000000003341455302707200225260ustar00rootroot00000000000000SELECT ALL DISTINCT MAX_STATEMENT_TIME = 10 1 + 2 AS result, @idx, id, test.`users`.username AS FROM `test`.users PARTITION (p1, p2) WHERE id > 0 ORDER BY username DESC, id LIMIT 2, 3;sql-parser-5.9.0/tests/data/parser/parseSelectErr1.out000066400000000000000000000733021455302707200227340ustar00rootroot00000000000000{ "query": "SELECT ALL DISTINCT MAX_STATEMENT_TIME = 10\n 1 + 2 AS result,\n @idx,\n id,\n test.`users`.username AS\nFROM\n `test`.users\n PARTITION (p1, p2)\nWHERE\n id > 0\nORDER BY\n username DESC,\n id\nLIMIT 2, 3;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT ALL DISTINCT MAX_STATEMENT_TIME = 10\n 1 + 2 AS result,\n @idx,\n id,\n test.`users`.username AS\nFROM\n `test`.users\n PARTITION (p1, p2)\nWHERE\n id > 0\nORDER BY\n username DESC,\n id\nLIMIT 2, 3;", "len": 220, "last": 220, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALL", "value": "ALL", "keyword": "ALL", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DISTINCT", "value": "DISTINCT", "keyword": "DISTINCT", "type": 1, "flags": 3, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "MAX_STATEMENT_TIME", "value": "MAX_STATEMENT_TIME", "keyword": "MAX_STATEMENT_TIME", "type": 1, "flags": 1, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "result", "value": "result", "keyword": null, "type": 0, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@idx", "value": "idx", "keyword": null, "type": 8, "flags": 1, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`users`", "value": "users", "keyword": null, "type": 8, "flags": 2, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`test`", "value": "test", "keyword": null, "type": 8, "flags": 2, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "users", "value": "users", "keyword": null, "type": 0, "flags": 0, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "PARTITION", "value": "PARTITION", "keyword": "PARTITION", "type": 1, "flags": 3, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p1", "value": "p1", "keyword": null, "type": 0, "flags": 0, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "p2", "value": "p2", "keyword": null, "type": 0, "flags": 0, "position": 153 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 169 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ">", "value": ">", "keyword": null, "type": 2, "flags": 2, "position": 170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 171 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 172 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 173 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ORDER BY", "value": "ORDER BY", "keyword": "ORDER BY", "type": 1, "flags": 7, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 182 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 187 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 195 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DESC", "value": "DESC", "keyword": "DESC", "type": 1, "flags": 3, "position": 196 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 200 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 201 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 206 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 208 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIMIT", "value": "LIMIT", "keyword": "LIMIT", "type": 1, "flags": 3, "position": 209 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 214 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 215 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 216 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 217 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 218 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 219 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 77, "idx": 77 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1 + 2", "alias": "result", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "@idx", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "id", "expr": "id", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "test", "table": "users", "column": "username", "expr": "test.`users`.username", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "test", "table": "users", "column": null, "expr": "`test`.users", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "p1", "p2" ], "values": [ "p1", "p2" ] }, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "id" ], "isOperator": false, "expr": "id > 0" } ], "group": null, "group_options": null, "having": null, "order": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\OrderKeyword", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "username", "expr": "username", "alias": null, "function": null, "subquery": null }, "type": "DESC" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\OrderKeyword", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "id", "expr": "id", "alias": null, "function": null, "subquery": null }, "type": "ASC" } ], "limit": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Limit", "offset": 2, "rowCount": 3 }, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ALL", "3": { "name": "MAX_STATEMENT_TIME", "equals": true, "expr": "10", "value": "10" }, "13": "DISTINCT" } }, "first": 0, "last": 74 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "This option conflicts with \"ALL\".", { "@type": "@6" }, 0 ], [ "An alias was expected.", { "@type": "@38" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSelectErr2.in000066400000000000000000000000431455302707200225240ustar00rootroot00000000000000select * from foobar where foo = @ sql-parser-5.9.0/tests/data/parser/parseSelectErr2.out000066400000000000000000000172121455302707200227330ustar00rootroot00000000000000{ "query": "select * from foobar where foo = @\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "select * from foobar where foo = @\n", "len": 35, "last": 35, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "from", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foobar", "value": "foobar", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "where", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@", "value": "", "keyword": null, "type": 8, "flags": 1, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 16, "idx": 16 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "foobar", "column": null, "expr": "foobar", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "foo", "" ], "isOperator": false, "expr": "foo = @" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 14 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [ [ "Variable name was expected.", "\n", 34, 0 ] ], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectExists.in000066400000000000000000000000301455302707200231650ustar00rootroot00000000000000SELECT EXISTS(SELECT 1) sql-parser-5.9.0/tests/data/parser/parseSelectExists.out000066400000000000000000000117221455302707200234000ustar00rootroot00000000000000{ "query": "SELECT EXISTS(SELECT 1)\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT EXISTS(SELECT 1)\n", "len": 24, "last": 24, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "EXISTS", "value": "EXISTS", "keyword": "EXISTS", "type": 1, "flags": 35, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 10 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "EXISTS(SELECT 1)", "alias": null, "function": "EXISTS", "subquery": "SELECT" } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 8 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectGroupBy.in000066400000000000000000000004461455302707200233100ustar00rootroot00000000000000SELECT * FROM movie GROUP BY title; SELECT * FROM movie GROUP BY 1; SELECT * FROM movie GROUP BY year, title; SELECT * FROM movie GROUP BY year WITH ROLLUP; SELECT * FROM movie GROUP BY year, title WITH ROLLUP; SELECT * FROM movie GROUP BY year, title WITH ROLLUP ORDER BY year ASC LIMIT 0, 2; sql-parser-5.9.0/tests/data/parser/parseSelectGroupBy.out000066400000000000000000001437401455302707200235160ustar00rootroot00000000000000{ "query": "SELECT * FROM movie GROUP BY title;\nSELECT * FROM movie GROUP BY 1;\nSELECT * FROM movie GROUP BY year, title;\nSELECT * FROM movie GROUP BY year WITH ROLLUP;\nSELECT * FROM movie GROUP BY year, title WITH ROLLUP;\nSELECT * FROM movie GROUP BY year, title WITH ROLLUP ORDER BY year ASC LIMIT 0, 2;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM movie GROUP BY title;\nSELECT * FROM movie GROUP BY 1;\nSELECT * FROM movie GROUP BY year, title;\nSELECT * FROM movie GROUP BY year WITH ROLLUP;\nSELECT * FROM movie GROUP BY year, title WITH ROLLUP;\nSELECT * FROM movie GROUP BY year, title WITH ROLLUP ORDER BY year ASC LIMIT 0, 2;\n", "len": 294, "last": 294, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "movie", "value": "movie", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "GROUP BY", "value": "GROUP BY", "keyword": "GROUP BY", "type": 1, "flags": 7, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "title", "value": "title", "keyword": null, "type": 0, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "movie", "value": "movie", "keyword": null, "type": 0, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "GROUP BY", "value": "GROUP BY", "keyword": "GROUP BY", "type": 1, "flags": 7, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "movie", "value": "movie", "keyword": null, "type": 0, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "GROUP BY", "value": "GROUP BY", "keyword": "GROUP BY", "type": 1, "flags": 7, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "year", "value": "year", "keyword": "YEAR", "type": 1, "flags": 41, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "title", "value": "title", "keyword": null, "type": 0, "flags": 0, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "movie", "value": "movie", "keyword": null, "type": 0, "flags": 0, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "GROUP BY", "value": "GROUP BY", "keyword": "GROUP BY", "type": 1, "flags": 7, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "year", "value": "year", "keyword": "YEAR", "type": 1, "flags": 41, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH ROLLUP", "value": "WITH ROLLUP", "keyword": "WITH ROLLUP", "type": 1, "flags": 7, "position": 144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 163 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 165 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 166 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "movie", "value": "movie", "keyword": null, "type": 0, "flags": 0, "position": 171 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "GROUP BY", "value": "GROUP BY", "keyword": "GROUP BY", "type": 1, "flags": 7, "position": 177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 185 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "year", "value": "year", "keyword": "YEAR", "type": 1, "flags": 41, "position": 186 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 190 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 191 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "title", "value": "title", "keyword": null, "type": 0, "flags": 0, "position": 192 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 197 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH ROLLUP", "value": "WITH ROLLUP", "keyword": "WITH ROLLUP", "type": 1, "flags": 7, "position": 198 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 209 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 210 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 211 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 217 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 218 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 219 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 220 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 224 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "movie", "value": "movie", "keyword": null, "type": 0, "flags": 0, "position": 225 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 230 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "GROUP BY", "value": "GROUP BY", "keyword": "GROUP BY", "type": 1, "flags": 7, "position": 231 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 239 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "year", "value": "year", "keyword": "YEAR", "type": 1, "flags": 41, "position": 240 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 244 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 245 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "title", "value": "title", "keyword": null, "type": 0, "flags": 0, "position": 246 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 251 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH ROLLUP", "value": "WITH ROLLUP", "keyword": "WITH ROLLUP", "type": 1, "flags": 7, "position": 252 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 263 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ORDER BY", "value": "ORDER BY", "keyword": "ORDER BY", "type": 1, "flags": 7, "position": 264 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 272 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "year", "value": "year", "keyword": "YEAR", "type": 1, "flags": 41, "position": 273 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 277 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ASC", "value": "ASC", "keyword": "ASC", "type": 1, "flags": 3, "position": 278 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 281 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIMIT", "value": "LIMIT", "keyword": "LIMIT", "type": 1, "flags": 3, "position": 282 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 287 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 288 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 289 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 290 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 291 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 292 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 293 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 107, "idx": 107 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "movie", "column": null, "expr": "movie", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\GroupKeyword", "type": null, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "title", "expr": "title", "alias": null, "function": null, "subquery": null } } ], "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "movie", "column": null, "expr": "movie", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\GroupKeyword", "type": null, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null } } ], "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 11, "last": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "movie", "column": null, "expr": "movie", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\GroupKeyword", "type": null, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "year", "alias": null, "function": null, "subquery": null } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\GroupKeyword", "type": null, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "title", "expr": "title", "alias": null, "function": null, "subquery": null } } ], "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 24, "last": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "movie", "column": null, "expr": "movie", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\GroupKeyword", "type": null, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "year", "alias": null, "function": null, "subquery": null } } ], "group_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "WITH ROLLUP" } }, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 40, "last": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "movie", "column": null, "expr": "movie", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\GroupKeyword", "type": null, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "year", "alias": null, "function": null, "subquery": null } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\GroupKeyword", "type": null, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "title", "expr": "title", "alias": null, "function": null, "subquery": null } } ], "group_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "WITH ROLLUP" } }, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 55, "last": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "movie", "column": null, "expr": "movie", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\GroupKeyword", "type": null, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "year", "alias": null, "function": null, "subquery": null } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\GroupKeyword", "type": null, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "title", "expr": "title", "alias": null, "function": null, "subquery": null } } ], "group_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "WITH ROLLUP" } }, "having": null, "order": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\OrderKeyword", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "year", "alias": null, "function": null, "subquery": null }, "type": "ASC" } ], "limit": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Limit", "offset": 0, "rowCount": 2 }, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 73, "last": 103 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectGroupByErr.in000066400000000000000000000001021455302707200237460ustar00rootroot00000000000000SELECT * FROM movie GROUP BY title WITH ROLLUP, year WITH ROLLUP; sql-parser-5.9.0/tests/data/parser/parseSelectGroupByErr.out000066400000000000000000000236061455302707200241650ustar00rootroot00000000000000{ "query": "SELECT * FROM movie GROUP BY title WITH ROLLUP, year WITH ROLLUP;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM movie GROUP BY title WITH ROLLUP, year WITH ROLLUP;\n", "len": 66, "last": 66, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "movie", "value": "movie", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "GROUP BY", "value": "GROUP BY", "keyword": "GROUP BY", "type": 1, "flags": 7, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "title", "value": "title", "keyword": null, "type": 0, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH ROLLUP", "value": "WITH ROLLUP", "keyword": "WITH ROLLUP", "type": 1, "flags": 7, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "year", "value": "year", "keyword": "YEAR", "type": 1, "flags": 41, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH ROLLUP", "value": "WITH ROLLUP", "keyword": "WITH ROLLUP", "type": 1, "flags": 7, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 21, "idx": 21 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "movie", "column": null, "expr": "movie", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\GroupKeyword", "type": null, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "title", "expr": "title", "alias": null, "function": null, "subquery": null } } ], "group_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "WITH ROLLUP" } }, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 17 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected token.", { "@type": "@15" }, 0 ], [ "Unrecognized keyword.", { "@type": "@17" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSelectGroupByWithComments.in000066400000000000000000000001131455302707200256410ustar00rootroot00000000000000SELECT id, title FROM movie GROUP BY movie.id, /* removed_field, */ title; sql-parser-5.9.0/tests/data/parser/parseSelectGroupByWithComments.out000066400000000000000000000264511455302707200260570ustar00rootroot00000000000000{ "query": "SELECT id, title FROM movie GROUP BY movie.id, /* removed_field, */ title;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT id, title FROM movie GROUP BY movie.id, /* removed_field, */ title;\n", "len": 75, "last": 75, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "title", "value": "title", "keyword": null, "type": 0, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "movie", "value": "movie", "keyword": null, "type": 0, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "GROUP BY", "value": "GROUP BY", "keyword": "GROUP BY", "type": 1, "flags": 7, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "movie", "value": "movie", "keyword": null, "type": 0, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* removed_field, */", "value": "/* removed_field, */", "keyword": null, "type": 4, "flags": 2, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "title", "value": "title", "keyword": null, "type": 0, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 24, "idx": 24 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "id", "expr": "id", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "title", "expr": "title", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "movie", "column": null, "expr": "movie", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\GroupKeyword", "type": null, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "movie", "column": "id", "expr": "movie.id", "alias": null, "function": null, "subquery": null } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\GroupKeyword", "type": null, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "title", "expr": "title", "alias": null, "function": null, "subquery": null } } ], "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 20 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectIndexHint1.in000066400000000000000000000001451455302707200236700ustar00rootroot00000000000000SELECT * FROM address FORCE INDEX (idx_fk_city_id) IGNORE KEY FOR GROUP BY (a, b,c) WHERE city_id<0;sql-parser-5.9.0/tests/data/parser/parseSelectIndexHint1.out000066400000000000000000000405671455302707200241050ustar00rootroot00000000000000{ "query": "SELECT * FROM address FORCE INDEX (idx_fk_city_id) IGNORE KEY FOR GROUP BY (a, b,c) WHERE city_id<0;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM address FORCE INDEX (idx_fk_city_id) IGNORE KEY FOR GROUP BY (a, b,c) WHERE city_id<0;", "len": 101, "last": 101, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "address", "value": "address", "keyword": null, "type": 0, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FORCE", "value": "FORCE", "keyword": "FORCE", "type": 1, "flags": 3, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INDEX", "value": "INDEX", "keyword": "INDEX", "type": 1, "flags": 19, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "idx_fk_city_id", "value": "idx_fk_city_id", "keyword": null, "type": 0, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IGNORE", "value": "IGNORE", "keyword": "IGNORE", "type": 1, "flags": 3, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "KEY", "value": "KEY", "keyword": "KEY", "type": 1, "flags": 19, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FOR", "value": "FOR", "keyword": "FOR", "type": 1, "flags": 3, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "GROUP BY", "value": "GROUP BY", "keyword": "GROUP BY", "type": 1, "flags": 7, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "city_id", "value": "city_id", "keyword": null, "type": 0, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "<", "value": "<", "keyword": null, "type": 2, "flags": 2, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 40, "idx": 40 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "address", "column": null, "expr": "address", "alias": null, "function": null, "subquery": null } ], "index_hints": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\IndexHint", "type": "FORCE", "indexOrKey": "INDEX", "for": null, "indexes": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(idx_fk_city_id)", "alias": null, "function": null, "subquery": null } ] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\IndexHint", "type": "IGNORE", "indexOrKey": "KEY", "for": "GROUP BY", "indexes": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(a, b,c)", "alias": null, "function": null, "subquery": null } ] } ], "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "city_id" ], "isOperator": false, "expr": "city_id<0" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 37 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectIndexHint2.in000066400000000000000000000001411455302707200236650ustar00rootroot00000000000000SELECT * FROM address USE INDEX (idx_fk_city_id) FORCE KEY FOR GROUP BY (a, b,c) WHERE city_id<0sql-parser-5.9.0/tests/data/parser/parseSelectIndexHint2.out000066400000000000000000000400631455302707200240750ustar00rootroot00000000000000{ "query": "SELECT * FROM address USE INDEX (idx_fk_city_id) FORCE KEY FOR GROUP BY (a, b,c) WHERE city_id<0", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM address USE INDEX (idx_fk_city_id) FORCE KEY FOR GROUP BY (a, b,c) WHERE city_id<0", "len": 97, "last": 97, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "address", "value": "address", "keyword": null, "type": 0, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USE", "value": "USE", "keyword": "USE", "type": 1, "flags": 3, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INDEX", "value": "INDEX", "keyword": "INDEX", "type": 1, "flags": 19, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "idx_fk_city_id", "value": "idx_fk_city_id", "keyword": null, "type": 0, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FORCE", "value": "FORCE", "keyword": "FORCE", "type": 1, "flags": 3, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "KEY", "value": "KEY", "keyword": "KEY", "type": 1, "flags": 19, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FOR", "value": "FOR", "keyword": "FOR", "type": 1, "flags": 3, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "GROUP BY", "value": "GROUP BY", "keyword": "GROUP BY", "type": 1, "flags": 7, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "city_id", "value": "city_id", "keyword": null, "type": 0, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "<", "value": "<", "keyword": null, "type": 2, "flags": 2, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 39, "idx": 39 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "address", "column": null, "expr": "address", "alias": null, "function": null, "subquery": null } ], "index_hints": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\IndexHint", "type": "USE", "indexOrKey": "INDEX", "for": null, "indexes": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(idx_fk_city_id)", "alias": null, "function": null, "subquery": null } ] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\IndexHint", "type": "FORCE", "indexOrKey": "KEY", "for": "GROUP BY", "indexes": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(a, b,c)", "alias": null, "function": null, "subquery": null } ] } ], "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "city_id" ], "isOperator": false, "expr": "city_id<0" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 37 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectIndexHintErr1.in000066400000000000000000000000611455302707200243360ustar00rootroot00000000000000SELECT * FROM address FORCE INT (idx_fk_city_id);sql-parser-5.9.0/tests/data/parser/parseSelectIndexHintErr1.out000066400000000000000000000207331455302707200245470ustar00rootroot00000000000000{ "query": "SELECT * FROM address FORCE INT (idx_fk_city_id);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM address FORCE INT (idx_fk_city_id);", "len": 49, "last": 49, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "address", "value": "address", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FORCE", "value": "FORCE", "keyword": "FORCE", "type": 1, "flags": 3, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "idx_fk_city_id", "value": "idx_fk_city_id", "keyword": null, "type": 0, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 17, "idx": 17 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "address", "column": null, "expr": "address", "alias": null, "function": null, "subquery": null } ], "index_hints": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\IndexHint", "type": "FORCE", "indexOrKey": null, "for": null, "indexes": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(idx_fk_city_id)", "alias": null, "function": null, "subquery": null } ] } ], "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 14 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword.", { "@type": "@12" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSelectIndexHintErr2.in000066400000000000000000000000611455302707200243370ustar00rootroot00000000000000SELECT * FROM address FORCE abc (idx_fk_city_id);sql-parser-5.9.0/tests/data/parser/parseSelectIndexHintErr2.out000066400000000000000000000201571455302707200245500ustar00rootroot00000000000000{ "query": "SELECT * FROM address FORCE abc (idx_fk_city_id);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM address FORCE abc (idx_fk_city_id);", "len": 49, "last": 49, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "address", "value": "address", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FORCE", "value": "FORCE", "keyword": "FORCE", "type": 1, "flags": 3, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "abc", "value": "abc", "keyword": null, "type": 0, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "idx_fk_city_id", "value": "idx_fk_city_id", "keyword": null, "type": 0, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 17, "idx": 17 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "address", "column": null, "expr": "address", "alias": null, "function": null, "subquery": null } ], "index_hints": [], "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 14 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected token.", { "@type": "@12" }, 0 ], [ "Unexpected token.", { "@type": "@14" }, 0 ], [ "Unexpected token.", { "@type": "@15" }, 0 ], [ "Unexpected token.", { "@type": "@16" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSelectIndexHintErr3.in000066400000000000000000000000731455302707200243430ustar00rootroot00000000000000SELECT * FROM address FORCE INDEX FOR abc (idx_fk_city_id);sql-parser-5.9.0/tests/data/parser/parseSelectIndexHintErr3.out000066400000000000000000000225101455302707200245440ustar00rootroot00000000000000{ "query": "SELECT * FROM address FORCE INDEX FOR abc (idx_fk_city_id);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM address FORCE INDEX FOR abc (idx_fk_city_id);", "len": 59, "last": 59, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "address", "value": "address", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FORCE", "value": "FORCE", "keyword": "FORCE", "type": 1, "flags": 3, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INDEX", "value": "INDEX", "keyword": "INDEX", "type": 1, "flags": 19, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FOR", "value": "FOR", "keyword": "FOR", "type": 1, "flags": 3, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "abc", "value": "abc", "keyword": null, "type": 0, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "idx_fk_city_id", "value": "idx_fk_city_id", "keyword": null, "type": 0, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 21, "idx": 21 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "address", "column": null, "expr": "address", "alias": null, "function": null, "subquery": null } ], "index_hints": [], "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 18 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected token.", { "@type": "@16" }, 0 ], [ "Unexpected token.", { "@type": "@18" }, 0 ], [ "Unexpected token.", { "@type": "@19" }, 0 ], [ "Unexpected token.", { "@type": "@20" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSelectIndexHintErr4.in000066400000000000000000000000731455302707200243440ustar00rootroot00000000000000SELECT * FROM address FORCE INDEX FOR INT (idx_fk_city_id);sql-parser-5.9.0/tests/data/parser/parseSelectIndexHintErr4.out000066400000000000000000000232671455302707200245570ustar00rootroot00000000000000{ "query": "SELECT * FROM address FORCE INDEX FOR INT (idx_fk_city_id);", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM address FORCE INDEX FOR INT (idx_fk_city_id);", "len": 59, "last": 59, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "address", "value": "address", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FORCE", "value": "FORCE", "keyword": "FORCE", "type": 1, "flags": 3, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INDEX", "value": "INDEX", "keyword": "INDEX", "type": 1, "flags": 19, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FOR", "value": "FOR", "keyword": "FOR", "type": 1, "flags": 3, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INT", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "idx_fk_city_id", "value": "idx_fk_city_id", "keyword": null, "type": 0, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 21, "idx": 21 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "address", "column": null, "expr": "address", "alias": null, "function": null, "subquery": null } ], "index_hints": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\IndexHint", "type": "FORCE", "indexOrKey": "INDEX", "for": null, "indexes": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(idx_fk_city_id)", "alias": null, "function": null, "subquery": null } ] } ], "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 18 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected keyword.", { "@type": "@16" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSelectIntoOptions1.in000066400000000000000000000002301455302707200242560ustar00rootroot00000000000000SELECT a,b,a+b INTO OUTFILE '/tmp/result.txt' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"' LINES TERMINATED BY '\n' FROM test_table;sql-parser-5.9.0/tests/data/parser/parseSelectIntoOptions1.out000066400000000000000000000442211455302707200244670ustar00rootroot00000000000000{ "query": "SELECT a,b,a+b INTO OUTFILE '/tmp/result.txt'\n FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\\\"'\n LINES TERMINATED BY '\\n'\n FROM test_table;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT a,b,a+b INTO OUTFILE '/tmp/result.txt'\n FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\\\"'\n LINES TERMINATED BY '\\n'\n FROM test_table;", "len": 152, "last": 152, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OUTFILE", "value": "OUTFILE", "keyword": "OUTFILE", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'/tmp/result.txt'", "value": "/tmp/result.txt", "keyword": null, "type": 7, "flags": 1, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FIELDS", "value": "FIELDS", "keyword": "FIELDS", "type": 1, "flags": 1, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TERMINATED BY", "value": "TERMINATED BY", "keyword": "TERMINATED BY", "type": 1, "flags": 7, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "','", "value": ",", "keyword": null, "type": 7, "flags": 1, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OPTIONALLY", "value": "OPTIONALLY", "keyword": "OPTIONALLY", "type": 1, "flags": 3, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENCLOSED BY", "value": "ENCLOSED BY", "keyword": "ENCLOSED BY", "type": 1, "flags": 7, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'\\\"'", "value": "\"", "keyword": null, "type": 7, "flags": 1, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LINES", "value": "LINES", "keyword": "LINES", "type": 1, "flags": 3, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TERMINATED BY", "value": "TERMINATED BY", "keyword": "TERMINATED BY", "type": 1, "flags": 7, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'\\n'", "value": "\n", "keyword": null, "type": 7, "flags": 1, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test_table", "value": "test_table", "keyword": null, "type": 0, "flags": 0, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 39, "idx": 39 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "a", "expr": "a", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "b", "expr": "b", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "a", "expr": "a+b", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test_table", "column": null, "expr": "test_table", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": "OUTFILE", "dest": "/tmp/result.txt", "columns": null, "values": null, "fields_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "TERMINATED BY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": ",", "expr": "','", "alias": null, "function": null, "subquery": null }, "value": "','" }, "2": "OPTIONALLY", "3": { "name": "ENCLOSED BY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "\"", "expr": "'\\\"'", "alias": null, "function": null, "subquery": null }, "value": "'\\\"'" } } }, "fields_keyword": true, "lines_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "TERMINATED BY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "\n", "expr": "'\\n'", "alias": null, "function": null, "subquery": null }, "value": "'\\n'" } } } }, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 36 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectIntoOptions2.in000066400000000000000000000002311455302707200242600ustar00rootroot00000000000000SELECT a,b,a+b INTO OUTFILE '/tmp/result.txt' COLUMNS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"' LINES TERMINATED BY '\n' FROM test_table;sql-parser-5.9.0/tests/data/parser/parseSelectIntoOptions2.out000066400000000000000000000442271455302707200244760ustar00rootroot00000000000000{ "query": "SELECT a,b,a+b INTO OUTFILE '/tmp/result.txt'\n COLUMNS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\\\"'\n LINES TERMINATED BY '\\n'\n FROM test_table;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT a,b,a+b INTO OUTFILE '/tmp/result.txt'\n COLUMNS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\\\"'\n LINES TERMINATED BY '\\n'\n FROM test_table;", "len": 153, "last": 153, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OUTFILE", "value": "OUTFILE", "keyword": "OUTFILE", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'/tmp/result.txt'", "value": "/tmp/result.txt", "keyword": null, "type": 7, "flags": 1, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLUMNS", "value": "COLUMNS", "keyword": "COLUMNS", "type": 1, "flags": 1, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TERMINATED BY", "value": "TERMINATED BY", "keyword": "TERMINATED BY", "type": 1, "flags": 7, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "','", "value": ",", "keyword": null, "type": 7, "flags": 1, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OPTIONALLY", "value": "OPTIONALLY", "keyword": "OPTIONALLY", "type": 1, "flags": 3, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENCLOSED BY", "value": "ENCLOSED BY", "keyword": "ENCLOSED BY", "type": 1, "flags": 7, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'\\\"'", "value": "\"", "keyword": null, "type": 7, "flags": 1, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LINES", "value": "LINES", "keyword": "LINES", "type": 1, "flags": 3, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TERMINATED BY", "value": "TERMINATED BY", "keyword": "TERMINATED BY", "type": 1, "flags": 7, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'\\n'", "value": "\n", "keyword": null, "type": 7, "flags": 1, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 137 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test_table", "value": "test_table", "keyword": null, "type": 0, "flags": 0, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 39, "idx": 39 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "a", "expr": "a", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "b", "expr": "b", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "a", "expr": "a+b", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test_table", "column": null, "expr": "test_table", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": "OUTFILE", "dest": "/tmp/result.txt", "columns": null, "values": null, "fields_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "TERMINATED BY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": ",", "expr": "','", "alias": null, "function": null, "subquery": null }, "value": "','" }, "2": "OPTIONALLY", "3": { "name": "ENCLOSED BY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "\"", "expr": "'\\\"'", "alias": null, "function": null, "subquery": null }, "value": "'\\\"'" } } }, "fields_keyword": false, "lines_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "2": { "name": "TERMINATED BY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "\n", "expr": "'\\n'", "alias": null, "function": null, "subquery": null }, "value": "'\\n'" } } } }, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 36 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectIntoOptions3.in000066400000000000000000000001741455302707200242670ustar00rootroot00000000000000SELECT a,b,a+b INTO OUTFILE '/tmp/result.txt' COLUMNS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"' FROM test_table;sql-parser-5.9.0/tests/data/parser/parseSelectIntoOptions3.out000066400000000000000000000365601455302707200245000ustar00rootroot00000000000000{ "query": "SELECT a,b,a+b INTO OUTFILE '/tmp/result.txt'\n COLUMNS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\\\"'\n FROM test_table;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT a,b,a+b INTO OUTFILE '/tmp/result.txt'\n COLUMNS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\\\"'\n FROM test_table;", "len": 124, "last": 124, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "+", "value": "+", "keyword": null, "type": 2, "flags": 1, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OUTFILE", "value": "OUTFILE", "keyword": "OUTFILE", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'/tmp/result.txt'", "value": "/tmp/result.txt", "keyword": null, "type": 7, "flags": 1, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLUMNS", "value": "COLUMNS", "keyword": "COLUMNS", "type": 1, "flags": 1, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TERMINATED BY", "value": "TERMINATED BY", "keyword": "TERMINATED BY", "type": 1, "flags": 7, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "','", "value": ",", "keyword": null, "type": 7, "flags": 1, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OPTIONALLY", "value": "OPTIONALLY", "keyword": "OPTIONALLY", "type": 1, "flags": 3, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENCLOSED BY", "value": "ENCLOSED BY", "keyword": "ENCLOSED BY", "type": 1, "flags": 7, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'\\\"'", "value": "\"", "keyword": null, "type": 7, "flags": 1, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test_table", "value": "test_table", "keyword": null, "type": 0, "flags": 0, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 33, "idx": 33 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "a", "expr": "a", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "b", "expr": "b", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "a", "expr": "a+b", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test_table", "column": null, "expr": "test_table", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": "OUTFILE", "dest": "/tmp/result.txt", "columns": null, "values": null, "fields_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "TERMINATED BY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": ",", "expr": "','", "alias": null, "function": null, "subquery": null }, "value": "','" }, "2": "OPTIONALLY", "3": { "name": "ENCLOSED BY", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "\"", "expr": "'\\\"'", "alias": null, "function": null, "subquery": null }, "value": "'\\\"'" } } }, "fields_keyword": false, "lines_options": null }, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 30 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectJoinCross.in000066400000000000000000000001561455302707200236300ustar00rootroot00000000000000SELECT table112.id,table112.bval1,table112.bval2, table111.id,table111.aval1 FROM table112 CROSS JOIN table111sql-parser-5.9.0/tests/data/parser/parseSelectJoinCross.out000066400000000000000000000343661455302707200240430ustar00rootroot00000000000000{ "query": "SELECT table112.id,table112.bval1,table112.bval2,\ntable111.id,table111.aval1\nFROM table112\nCROSS JOIN table111", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT table112.id,table112.bval1,table112.bval2,\ntable111.id,table111.aval1\nFROM table112\nCROSS JOIN table111", "len": 110, "last": 110, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table112", "value": "table112", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table112", "value": "table112", "keyword": null, "type": 0, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bval1", "value": "bval1", "keyword": null, "type": 0, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table112", "value": "table112", "keyword": null, "type": 0, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bval2", "value": "bval2", "keyword": null, "type": 0, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table111", "value": "table111", "keyword": null, "type": 0, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table111", "value": "table111", "keyword": null, "type": 0, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "aval1", "value": "aval1", "keyword": null, "type": 0, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table112", "value": "table112", "keyword": null, "type": 0, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CROSS JOIN", "value": "CROSS JOIN", "keyword": "CROSS JOIN", "type": 1, "flags": 7, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table111", "value": "table111", "keyword": null, "type": 0, "flags": 0, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 31, "idx": 31 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table112", "column": "id", "expr": "table112.id", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table112", "column": "bval1", "expr": "table112.bval1", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table112", "column": "bval2", "expr": "table112.bval2", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table111", "column": "id", "expr": "table111.id", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table111", "column": "aval1", "expr": "table111.aval1", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table112", "column": null, "expr": "table112", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "CROSS", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table111", "column": null, "expr": "table111", "alias": null, "function": null, "subquery": null }, "on": null, "using": null } ], "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 29 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectJoinMultiple.in000066400000000000000000000001341455302707200243260ustar00rootroot00000000000000SELECT * FROM Orders NATURAL JOIN Items_Orders NATURAL JOIN Items WHERE customer= 'username'sql-parser-5.9.0/tests/data/parser/parseSelectJoinMultiple.out000066400000000000000000000263351455302707200245420ustar00rootroot00000000000000{ "query": "SELECT * FROM Orders NATURAL JOIN Items_Orders NATURAL JOIN Items\nWHERE customer= 'username'", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM Orders NATURAL JOIN Items_Orders NATURAL JOIN Items\nWHERE customer= 'username'", "len": 92, "last": 92, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "Orders", "value": "Orders", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NATURAL JOIN", "value": "NATURAL JOIN", "keyword": "NATURAL JOIN", "type": 1, "flags": 7, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "Items_Orders", "value": "Items_Orders", "keyword": null, "type": 0, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NATURAL JOIN", "value": "NATURAL JOIN", "keyword": "NATURAL JOIN", "type": 1, "flags": 7, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "Items", "value": "Items", "keyword": null, "type": 0, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "customer", "value": "customer", "keyword": null, "type": 0, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'username'", "value": "username", "keyword": null, "type": 7, "flags": 1, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 23, "idx": 23 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "Orders", "column": null, "expr": "Orders", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "customer", "username" ], "isOperator": false, "expr": "customer= 'username'" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "NATURAL", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "Items_Orders", "column": null, "expr": "Items_Orders", "alias": null, "function": null, "subquery": null }, "on": null, "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "NATURAL", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "Items", "column": null, "expr": "Items", "alias": null, "function": null, "subquery": null }, "on": null, "using": null } ], "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 21 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectJoinMultiple2.in000066400000000000000000000001661455302707200244150ustar00rootroot00000000000000SELECT * FROM orders NATURAL JOIN Items_Orders LEFT JOIN items on orders.item_id = items.id WHERE customer= 'username'sql-parser-5.9.0/tests/data/parser/parseSelectJoinMultiple2.out000066400000000000000000000365711455302707200246270ustar00rootroot00000000000000{ "query": "SELECT * FROM orders\nNATURAL JOIN Items_Orders LEFT JOIN items on orders.item_id = items.id\nWHERE customer= 'username'", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM orders\nNATURAL JOIN Items_Orders LEFT JOIN items on orders.item_id = items.id\nWHERE customer= 'username'", "len": 118, "last": 118, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "orders", "value": "orders", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NATURAL JOIN", "value": "NATURAL JOIN", "keyword": "NATURAL JOIN", "type": 1, "flags": 7, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "Items_Orders", "value": "Items_Orders", "keyword": null, "type": 0, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "items", "value": "items", "keyword": null, "type": 0, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "on", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "orders", "value": "orders", "keyword": null, "type": 0, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "item_id", "value": "item_id", "keyword": null, "type": 0, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "items", "value": "items", "keyword": null, "type": 0, "flags": 0, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "customer", "value": "customer", "keyword": null, "type": 0, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'username'", "value": "username", "keyword": null, "type": 7, "flags": 1, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 35, "idx": 35 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "orders", "column": null, "expr": "orders", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "customer", "username" ], "isOperator": false, "expr": "customer= 'username'" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "NATURAL", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "Items_Orders", "column": null, "expr": "Items_Orders", "alias": null, "function": null, "subquery": null }, "on": null, "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "items", "column": null, "expr": "items", "alias": null, "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "orders", "item_id", "items", "id" ], "isOperator": false, "expr": "orders.item_id = items.id" } ], "using": null } ], "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 33 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectJoinNatural.in000066400000000000000000000000711455302707200241410ustar00rootroot00000000000000SELECT id,aval1,cval1 FROM table111 NATURAL JOIN table113sql-parser-5.9.0/tests/data/parser/parseSelectJoinNatural.out000066400000000000000000000214211455302707200243440ustar00rootroot00000000000000{ "query": "SELECT id,aval1,cval1\nFROM table111\nNATURAL JOIN table113", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT id,aval1,cval1\nFROM table111\nNATURAL JOIN table113", "len": 57, "last": 57, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "aval1", "value": "aval1", "keyword": null, "type": 0, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cval1", "value": "cval1", "keyword": null, "type": 0, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table111", "value": "table111", "keyword": null, "type": 0, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NATURAL JOIN", "value": "NATURAL JOIN", "keyword": "NATURAL JOIN", "type": 1, "flags": 7, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table113", "value": "table113", "keyword": null, "type": 0, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 16, "idx": 16 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "id", "expr": "id", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "aval1", "expr": "aval1", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "cval1", "expr": "cval1", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table111", "column": null, "expr": "table111", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "NATURAL", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table113", "column": null, "expr": "table113", "alias": null, "function": null, "subquery": null }, "on": null, "using": null } ], "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 14 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectJoinNaturalLeft.in000066400000000000000000000001301455302707200247500ustar00rootroot00000000000000SELECT C.First_Name, C.Last_Name, O.title FROM Employee as C NATURAL LEFT JOIN JOb as O;sql-parser-5.9.0/tests/data/parser/parseSelectJoinNaturalLeft.out000066400000000000000000000336031455302707200251640ustar00rootroot00000000000000{ "query": "SELECT C.First_Name, C.Last_Name, O.title\nFROM Employee as C\nNATURAL LEFT JOIN JOb as O;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT C.First_Name, C.Last_Name, O.title\nFROM Employee as C\nNATURAL LEFT JOIN JOb as O;", "len": 88, "last": 88, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "C", "value": "C", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "First_Name", "value": "First_Name", "keyword": null, "type": 0, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "C", "value": "C", "keyword": null, "type": 0, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "Last_Name", "value": "Last_Name", "keyword": null, "type": 0, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "O", "value": "O", "keyword": null, "type": 0, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "title", "value": "title", "keyword": null, "type": 0, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "Employee", "value": "Employee", "keyword": null, "type": 0, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "C", "value": "C", "keyword": null, "type": 0, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NATURAL LEFT JOIN", "value": "NATURAL LEFT JOIN", "keyword": "NATURAL LEFT JOIN", "type": 1, "flags": 7, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "JOb", "value": "JOb", "keyword": null, "type": 0, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "O", "value": "O", "keyword": null, "type": 0, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 33, "idx": 33 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "C", "column": "First_Name", "expr": "C.First_Name", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "C", "column": "Last_Name", "expr": "C.Last_Name", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "O", "column": "title", "expr": "O.title", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "Employee", "column": null, "expr": "Employee", "alias": "C", "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "NATURAL LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "JOb", "column": null, "expr": "JOb", "alias": "O", "function": null, "subquery": null }, "on": null, "using": null } ], "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 30 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectJoinNaturalLeftOuter.in000066400000000000000000000000671455302707200260000ustar00rootroot00000000000000SELECT * FROM actor NATURAL LEFT OUTER JOIN film_actor;sql-parser-5.9.0/tests/data/parser/parseSelectJoinNaturalLeftOuter.out000066400000000000000000000161271455302707200262050ustar00rootroot00000000000000{ "query": "SELECT * FROM actor NATURAL LEFT OUTER JOIN film_actor;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM actor NATURAL LEFT OUTER JOIN film_actor;", "len": 55, "last": 55, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "actor", "value": "actor", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NATURAL LEFT OUTER JOIN", "value": "NATURAL LEFT OUTER JOIN", "keyword": "NATURAL LEFT OUTER JOIN", "type": 1, "flags": 7, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film_actor", "value": "film_actor", "keyword": null, "type": 0, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 13, "idx": 13 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "actor", "column": null, "expr": "actor", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "NATURAL LEFT OUTER", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "film_actor", "column": null, "expr": "film_actor", "alias": null, "function": null, "subquery": null }, "on": null, "using": null } ], "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 10 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectJoinNaturalRight.in000066400000000000000000000000631455302707200251400ustar00rootroot00000000000000SELECT * FROM actor NATURAL RIGHT JOIN film_actor; sql-parser-5.9.0/tests/data/parser/parseSelectJoinNaturalRight.out000066400000000000000000000165531455302707200253540ustar00rootroot00000000000000{ "query": "SELECT * FROM actor NATURAL RIGHT JOIN film_actor;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM actor NATURAL RIGHT JOIN film_actor;\n", "len": 51, "last": 51, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "actor", "value": "actor", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NATURAL RIGHT JOIN", "value": "NATURAL RIGHT JOIN", "keyword": "NATURAL RIGHT JOIN", "type": 1, "flags": 7, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film_actor", "value": "film_actor", "keyword": null, "type": 0, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 14, "idx": 14 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "actor", "column": null, "expr": "actor", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "NATURAL RIGHT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "film_actor", "column": null, "expr": "film_actor", "alias": null, "function": null, "subquery": null }, "on": null, "using": null } ], "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 10 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectJoinNaturalRightOuter.in000066400000000000000000000000701455302707200261550ustar00rootroot00000000000000SELECT * FROM actor NATURAL RIGHT OUTER JOIN film_actor;sql-parser-5.9.0/tests/data/parser/parseSelectJoinNaturalRightOuter.out000066400000000000000000000161351455302707200263670ustar00rootroot00000000000000{ "query": "SELECT * FROM actor NATURAL RIGHT OUTER JOIN film_actor;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM actor NATURAL RIGHT OUTER JOIN film_actor;", "len": 56, "last": 56, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "actor", "value": "actor", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NATURAL RIGHT OUTER JOIN", "value": "NATURAL RIGHT OUTER JOIN", "keyword": "NATURAL RIGHT OUTER JOIN", "type": 1, "flags": 7, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film_actor", "value": "film_actor", "keyword": null, "type": 0, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 13, "idx": 13 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "actor", "column": null, "expr": "actor", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "NATURAL RIGHT OUTER", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "film_actor", "column": null, "expr": "film_actor", "alias": null, "function": null, "subquery": null }, "on": null, "using": null } ], "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 10 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectJoinStraight.in000066400000000000000000000001251455302707200243200ustar00rootroot00000000000000SELECT id,aval1,cval1 FROM table111 STRAIGHT_JOIN table113 on table111.a = table113.bsql-parser-5.9.0/tests/data/parser/parseSelectJoinStraight.out000066400000000000000000000316611455302707200245320ustar00rootroot00000000000000{ "query": "SELECT id,aval1,cval1\nFROM table111\nSTRAIGHT_JOIN table113 on table111.a = table113.b", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT id,aval1,cval1\nFROM table111\nSTRAIGHT_JOIN table113 on table111.a = table113.b", "len": 85, "last": 85, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "aval1", "value": "aval1", "keyword": null, "type": 0, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cval1", "value": "cval1", "keyword": null, "type": 0, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table111", "value": "table111", "keyword": null, "type": 0, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "STRAIGHT_JOIN", "value": "STRAIGHT_JOIN", "keyword": "STRAIGHT_JOIN", "type": 1, "flags": 3, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table113", "value": "table113", "keyword": null, "type": 0, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "on", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table111", "value": "table111", "keyword": null, "type": 0, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table113", "value": "table113", "keyword": null, "type": 0, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "b", "value": "b", "keyword": null, "type": 0, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 28, "idx": 28 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "id", "expr": "id", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "aval1", "expr": "aval1", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "cval1", "expr": "cval1", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table111", "column": null, "expr": "table111", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "STRAIGHT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table113", "column": null, "expr": "table113", "alias": null, "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "table111", "a", "table113", "b" ], "isOperator": false, "expr": "table111.a = table113.b" } ], "using": null } ], "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 26 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectNested.in000066400000000000000000000000641455302707200231370ustar00rootroot00000000000000SELECT (SELECT 'foo') as Bar, (SELECT 'baz') as fOo;sql-parser-5.9.0/tests/data/parser/parseSelectNested.out000066400000000000000000000230751455302707200233470ustar00rootroot00000000000000{ "query": "SELECT (SELECT 'foo') as Bar, (SELECT 'baz') as fOo;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT (SELECT 'foo') as Bar, (SELECT 'baz') as fOo;", "len": 52, "last": 52, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'foo'", "value": "foo", "keyword": null, "type": 7, "flags": 1, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "Bar", "value": "Bar", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'baz'", "value": "baz", "keyword": null, "type": 7, "flags": 1, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "fOo", "value": "fOo", "keyword": null, "type": 0, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 24, "idx": 24 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT 'foo')", "alias": "Bar", "function": null, "subquery": "SELECT" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "(SELECT 'baz')", "alias": "fOo", "function": null, "subquery": "SELECT" } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 21 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectOrderByComment.in000066400000000000000000000002171455302707200246060ustar00rootroot00000000000000SELECT `one space` -- this is the SELECT FROM `Une table espace` -- this is the FROM ORDER BY `one space` ASC -- this is the order bysql-parser-5.9.0/tests/data/parser/parseSelectOrderByComment.out000066400000000000000000000226451455302707200250200ustar00rootroot00000000000000{ "query": "SELECT `one space` -- this is the SELECT\n FROM `Une table espace` -- this is the FROM\n ORDER BY `one space` ASC -- this is the order by", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT `one space` -- this is the SELECT\n FROM `Une table espace` -- this is the FROM\n ORDER BY `one space` ASC -- this is the order by", "len": 143, "last": 144, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`one space`", "value": "one space", "keyword": null, "type": 8, "flags": 2, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- this is the SELECT", "value": "-- this is the SELECT", "keyword": null, "type": 4, "flags": 4, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`Une table espace`", "value": "Une table espace", "keyword": null, "type": 8, "flags": 2, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- this is the FROM", "value": "-- this is the FROM", "keyword": null, "type": 4, "flags": 4, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ORDER BY", "value": "ORDER BY", "keyword": "ORDER BY", "type": 1, "flags": 7, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`one space`", "value": "one space", "keyword": null, "type": 8, "flags": 2, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ASC", "value": "ASC", "keyword": "ASC", "type": 1, "flags": 3, "position": 116 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- this is the order by", "value": "-- this is the order by", "keyword": null, "type": 4, "flags": 4, "position": 120 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 20, "idx": 20 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "one space", "expr": "`one space`", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "Une table espace", "column": null, "expr": "`Une table espace`", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\OrderKeyword", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "one space", "expr": "`one space`", "alias": null, "function": null, "subquery": null }, "type": "ASC" } ], "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 18 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectOrderByIsNull.in000066400000000000000000000000631455302707200244110ustar00rootroot00000000000000SELECT * FROM some_table ORDER BY some_col IS NULL;sql-parser-5.9.0/tests/data/parser/parseSelectOrderByIsNull.out000066400000000000000000000202331455302707200246130ustar00rootroot00000000000000{ "query": "SELECT * FROM some_table ORDER BY some_col IS NULL;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM some_table ORDER BY some_col IS NULL;", "len": 51, "last": 51, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "some_table", "value": "some_table", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ORDER BY", "value": "ORDER BY", "keyword": "ORDER BY", "type": 1, "flags": 7, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "some_col", "value": "some_col", "keyword": null, "type": 0, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IS", "value": "IS", "keyword": "IS", "type": 1, "flags": 3, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 17, "idx": 17 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "some_table", "column": null, "expr": "some_table", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\OrderKeyword", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "some_col", "expr": "some_col IS NULL", "alias": null, "function": null, "subquery": null }, "type": "ASC" } ], "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 14 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectOverAlias_mariadb_100600.in000066400000000000000000000002531455302707200260670ustar00rootroot00000000000000select `products`.`pid` AS `pid`, `products`.`pname` as `name`, rank() over( partition by `products`.`pvalue` order by `products`.`pid` desc) AS `myrank` from `products` sql-parser-5.9.0/tests/data/parser/parseSelectOverAlias_mariadb_100600.out000066400000000000000000000455541455302707200263050ustar00rootroot00000000000000{ "query": "select `products`.`pid` AS `pid`, `products`.`pname` as `name`, rank() over( partition by `products`.`pvalue` order by `products`.`pid` desc) AS `myrank` from `products` \n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "select `products`.`pid` AS `pid`, `products`.`pname` as `name`, rank() over( partition by `products`.`pvalue` order by `products`.`pid` desc) AS `myrank` from `products` \n", "len": 171, "last": 171, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "select", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`products`", "value": "products", "keyword": null, "type": 8, "flags": 2, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`pid`", "value": "pid", "keyword": null, "type": 8, "flags": 2, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`pid`", "value": "pid", "keyword": null, "type": 8, "flags": 2, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`products`", "value": "products", "keyword": null, "type": 8, "flags": 2, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`pname`", "value": "pname", "keyword": null, "type": 8, "flags": 2, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "as", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`name`", "value": "name", "keyword": null, "type": 8, "flags": 2, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "rank", "value": "rank", "keyword": null, "type": 0, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "over", "value": "OVER", "keyword": "OVER", "type": 1, "flags": 3, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "partition by", "value": "PARTITION BY", "keyword": "PARTITION BY", "type": 1, "flags": 7, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`products`", "value": "products", "keyword": null, "type": 8, "flags": 2, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`pvalue`", "value": "pvalue", "keyword": null, "type": 8, "flags": 2, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "order by", "value": "ORDER BY", "keyword": "ORDER BY", "type": 1, "flags": 7, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`products`", "value": "products", "keyword": null, "type": 8, "flags": 2, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`pid`", "value": "pid", "keyword": null, "type": 8, "flags": 2, "position": 130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "desc", "value": "DESC", "keyword": "DESC", "type": 1, "flags": 3, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`myrank`", "value": "myrank", "keyword": null, "type": 8, "flags": 2, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 153 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "from", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 154 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`products`", "value": "products", "keyword": null, "type": 8, "flags": 2, "position": 159 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " \n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 169 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 51, "idx": 51 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "products", "column": "pid", "expr": "`products`.`pid`", "alias": "pid", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "products", "column": "pname", "expr": "`products`.`pname`", "alias": "name", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "rank", "expr": "rank() over( partition by `products`.`pvalue` order by `products`.`pid` desc)", "alias": "myrank", "function": "rank", "subquery": "DESC" } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "products", "column": null, "expr": "`products`", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 49 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectUnion.in000066400000000000000000000000761455302707200230100ustar00rootroot00000000000000(SELECT a FROM t WHERE a=1) UNION (SELECT a FROM t WHERE a=2) sql-parser-5.9.0/tests/data/parser/parseSelectUnion.out000066400000000000000000000374351455302707200232220ustar00rootroot00000000000000{ "query": "(SELECT a FROM t WHERE a=1) UNION (SELECT a FROM t WHERE a=2)\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "(SELECT a FROM t WHERE a=1) UNION (SELECT a FROM t WHERE a=2)\n", "len": 62, "last": 62, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t", "value": "t", "keyword": null, "type": 0, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNION", "value": "UNION", "keyword": "UNION", "type": 1, "flags": 3, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t", "value": "t", "keyword": null, "type": 0, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 35, "idx": 35 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "a", "expr": "a", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t", "column": null, "expr": "t", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "a" ], "isOperator": false, "expr": "a=1" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [ [ "UNION", { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "a", "expr": "a", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t", "column": null, "expr": "t", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "a" ], "isOperator": false, "expr": "a=2" } ], "group": null, "group_options": null, "having": null, "order": [], "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 16, "last": 33 } ] ], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 33 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectUnion2.in000066400000000000000000000005301455302707200230650ustar00rootroot00000000000000(SELECT DISTINCT `User`, `Host` FROM `mysql`.`user` ) UNION (SELECT DISTINCT `User`, `Host` FROM `mysql`.`db` ) UNION (SELECT DISTINCT `User`, `Host` FROM `mysql`.`tables_priv` ) UNION (SELECT DISTINCT `User`, `Host` FROM `mysql`.`columns_priv` ) UNION (SELECT DISTINCT `User`, `Host` FROM `mysql`.`procs_priv` ) ORDER BY `User` ASC, `Host` ASCsql-parser-5.9.0/tests/data/parser/parseSelectUnion2.out000066400000000000000000001415331455302707200232770ustar00rootroot00000000000000{ "query": "(SELECT DISTINCT `User`, `Host` FROM `mysql`.`user` ) UNION (SELECT DISTINCT `User`, `Host` FROM `mysql`.`db` ) UNION (SELECT DISTINCT `User`, `Host` FROM `mysql`.`tables_priv` ) UNION (SELECT DISTINCT `User`, `Host` FROM `mysql`.`columns_priv` ) UNION (SELECT DISTINCT `User`, `Host` FROM `mysql`.`procs_priv` ) ORDER BY `User` ASC, `Host` ASC", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "(SELECT DISTINCT `User`, `Host` FROM `mysql`.`user` ) UNION (SELECT DISTINCT `User`, `Host` FROM `mysql`.`db` ) UNION (SELECT DISTINCT `User`, `Host` FROM `mysql`.`tables_priv` ) UNION (SELECT DISTINCT `User`, `Host` FROM `mysql`.`columns_priv` ) UNION (SELECT DISTINCT `User`, `Host` FROM `mysql`.`procs_priv` ) ORDER BY `User` ASC, `Host` ASC", "len": 344, "last": 344, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DISTINCT", "value": "DISTINCT", "keyword": "DISTINCT", "type": 1, "flags": 3, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`User`", "value": "User", "keyword": null, "type": 8, "flags": 2, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`Host`", "value": "Host", "keyword": null, "type": 8, "flags": 2, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`mysql`", "value": "mysql", "keyword": null, "type": 8, "flags": 2, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`user`", "value": "user", "keyword": null, "type": 8, "flags": 2, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNION", "value": "UNION", "keyword": "UNION", "type": 1, "flags": 3, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DISTINCT", "value": "DISTINCT", "keyword": "DISTINCT", "type": 1, "flags": 3, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`User`", "value": "User", "keyword": null, "type": 8, "flags": 2, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`Host`", "value": "Host", "keyword": null, "type": 8, "flags": 2, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`mysql`", "value": "mysql", "keyword": null, "type": 8, "flags": 2, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`db`", "value": "db", "keyword": null, "type": 8, "flags": 2, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNION", "value": "UNION", "keyword": "UNION", "type": 1, "flags": 3, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DISTINCT", "value": "DISTINCT", "keyword": "DISTINCT", "type": 1, "flags": 3, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 134 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`User`", "value": "User", "keyword": null, "type": 8, "flags": 2, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`Host`", "value": "Host", "keyword": null, "type": 8, "flags": 2, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 150 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 154 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`mysql`", "value": "mysql", "keyword": null, "type": 8, "flags": 2, "position": 155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`tables_priv`", "value": "tables_priv", "keyword": null, "type": 8, "flags": 2, "position": 163 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNION", "value": "UNION", "keyword": "UNION", "type": 1, "flags": 3, "position": 179 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 184 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 185 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 186 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 192 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DISTINCT", "value": "DISTINCT", "keyword": "DISTINCT", "type": 1, "flags": 3, "position": 193 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 201 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`User`", "value": "User", "keyword": null, "type": 8, "flags": 2, "position": 202 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 208 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 209 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`Host`", "value": "Host", "keyword": null, "type": 8, "flags": 2, "position": 210 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 216 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 217 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 221 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`mysql`", "value": "mysql", "keyword": null, "type": 8, "flags": 2, "position": 222 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 229 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`columns_priv`", "value": "columns_priv", "keyword": null, "type": 8, "flags": 2, "position": 230 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 244 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 245 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 246 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNION", "value": "UNION", "keyword": "UNION", "type": 1, "flags": 3, "position": 247 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 252 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 253 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 254 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 260 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DISTINCT", "value": "DISTINCT", "keyword": "DISTINCT", "type": 1, "flags": 3, "position": 261 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 269 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`User`", "value": "User", "keyword": null, "type": 8, "flags": 2, "position": 270 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 276 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 277 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`Host`", "value": "Host", "keyword": null, "type": 8, "flags": 2, "position": 278 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 284 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 285 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 289 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`mysql`", "value": "mysql", "keyword": null, "type": 8, "flags": 2, "position": 290 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 297 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`procs_priv`", "value": "procs_priv", "keyword": null, "type": 8, "flags": 2, "position": 298 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 310 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 311 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 312 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ORDER BY", "value": "ORDER BY", "keyword": "ORDER BY", "type": 1, "flags": 7, "position": 313 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 321 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`User`", "value": "User", "keyword": null, "type": 8, "flags": 2, "position": 322 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 328 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ASC", "value": "ASC", "keyword": "ASC", "type": 1, "flags": 3, "position": 329 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 332 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 333 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`Host`", "value": "Host", "keyword": null, "type": 8, "flags": 2, "position": 334 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 340 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ASC", "value": "ASC", "keyword": "ASC", "type": 1, "flags": 3, "position": 341 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 109, "idx": 109 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "User", "expr": "`User`", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Host", "expr": "`Host`", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "mysql", "table": "user", "column": null, "expr": "`mysql`.`user`", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\OrderKeyword", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "User", "expr": "`User`", "alias": null, "function": null, "subquery": null }, "type": "ASC" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\OrderKeyword", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Host", "expr": "`Host`", "alias": null, "function": null, "subquery": null }, "type": "ASC" } ], "limit": null, "procedure": null, "into": null, "join": null, "union": [ [ "UNION", { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "User", "expr": "`User`", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Host", "expr": "`Host`", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "mysql", "table": "db", "column": null, "expr": "`mysql`.`db`", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": [], "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "DISTINCT" } }, "first": 18, "last": 37 } ], [ "UNION", { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "User", "expr": "`User`", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Host", "expr": "`Host`", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "mysql", "table": "tables_priv", "column": null, "expr": "`mysql`.`tables_priv`", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": [], "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "DISTINCT" } }, "first": 38, "last": 57 } ], [ "UNION", { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "User", "expr": "`User`", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Host", "expr": "`Host`", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "mysql", "table": "columns_priv", "column": null, "expr": "`mysql`.`columns_priv`", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": [], "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "DISTINCT" } }, "first": 58, "last": 77 } ], [ "UNION", { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "User", "expr": "`User`", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "Host", "expr": "`Host`", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": "mysql", "table": "procs_priv", "column": null, "expr": "`mysql`.`procs_priv`", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": [], "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "DISTINCT" } }, "first": 78, "last": 107 } ] ], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "DISTINCT" } }, "first": 0, "last": 107 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectWhere.in000066400000000000000000000014501455302707200227670ustar00rootroot00000000000000SELECT * FROM film WHERE film_id = 10 OR film_id >= 20; SELECT * FROM film WHERE (film_id < 10) || (film_id > 20); SELECT * FROM film WHERE `film_id` != 10 AND `film_id` <= 20; SELECT * FROM film WHERE `film`.`film_id` <> 10 && `film`.`film_id` <= 20; SELECT * FROM film WHERE film.film_id < 20 XOR film.rating = 'PG-13'; SELECT * FROM film WHERE /* film_id = */ film_id = 10; SELECT * FROM film WHERE NOT film_id > 10; SELECT * FROM film WHERE ! (film_id > 10); SELECT * FROM film WHERE description IS NULL; SELECT * FROM film WHERE description IS NOT NULL; SELECT * FROM film WHERE film_id BETWEEN 10 AND 20; SELECT * FROM film WHERE film_id NOT BETWEEN 10 AND 20; SELECT * FROM film WHERE film_id IN (3,5,7); SELECT * FROM film WHERE rating = UPPER('pg'); SELECT * FROM film WHERE rating SOUNDS LIKE 'PG';sql-parser-5.9.0/tests/data/parser/parseSelectWhere.out000066400000000000000000004157621455302707200232070ustar00rootroot00000000000000{ "query": "SELECT * FROM film WHERE film_id = 10 OR film_id >= 20;\nSELECT * FROM film WHERE (film_id < 10) || (film_id > 20);\nSELECT * FROM film WHERE `film_id` != 10 AND `film_id` <= 20;\nSELECT * FROM film WHERE `film`.`film_id` <> 10 && `film`.`film_id` <= 20;\nSELECT * FROM film WHERE film.film_id < 20 XOR film.rating = 'PG-13';\nSELECT * FROM film WHERE /* film_id = */ film_id = 10;\nSELECT * FROM film WHERE NOT film_id > 10;\nSELECT * FROM film WHERE ! (film_id > 10);\nSELECT * FROM film WHERE description IS NULL;\nSELECT * FROM film WHERE description IS NOT NULL;\nSELECT * FROM film WHERE film_id BETWEEN 10 AND 20;\nSELECT * FROM film WHERE film_id NOT BETWEEN 10 AND 20;\nSELECT * FROM film WHERE film_id IN (3,5,7);\nSELECT * FROM film WHERE rating = UPPER('pg');\nSELECT * FROM film WHERE rating SOUNDS LIKE 'PG';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT * FROM film WHERE film_id = 10 OR film_id >= 20;\nSELECT * FROM film WHERE (film_id < 10) || (film_id > 20);\nSELECT * FROM film WHERE `film_id` != 10 AND `film_id` <= 20;\nSELECT * FROM film WHERE `film`.`film_id` <> 10 && `film`.`film_id` <= 20;\nSELECT * FROM film WHERE film.film_id < 20 XOR film.rating = 'PG-13';\nSELECT * FROM film WHERE /* film_id = */ film_id = 10;\nSELECT * FROM film WHERE NOT film_id > 10;\nSELECT * FROM film WHERE ! (film_id > 10);\nSELECT * FROM film WHERE description IS NULL;\nSELECT * FROM film WHERE description IS NOT NULL;\nSELECT * FROM film WHERE film_id BETWEEN 10 AND 20;\nSELECT * FROM film WHERE film_id NOT BETWEEN 10 AND 20;\nSELECT * FROM film WHERE film_id IN (3,5,7);\nSELECT * FROM film WHERE rating = UPPER('pg');\nSELECT * FROM film WHERE rating SOUNDS LIKE 'PG';", "len": 808, "last": 808, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film", "value": "film", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film_id", "value": "film_id", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OR", "value": "OR", "keyword": "OR", "type": 1, "flags": 3, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film_id", "value": "film_id", "keyword": null, "type": 0, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ">=", "value": ">=", "keyword": null, "type": 2, "flags": 2, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "20", "value": 20, "keyword": null, "type": 6, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film", "value": "film", "keyword": null, "type": 0, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film_id", "value": "film_id", "keyword": null, "type": 0, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "<", "value": "<", "keyword": null, "type": 2, "flags": 2, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "||", "value": "||", "keyword": null, "type": 2, "flags": 2, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film_id", "value": "film_id", "keyword": null, "type": 0, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ">", "value": ">", "keyword": null, "type": 2, "flags": 2, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "20", "value": 20, "keyword": null, "type": 6, "flags": 0, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 121 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film", "value": "film", "keyword": null, "type": 0, "flags": 0, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 134 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`film_id`", "value": "film_id", "keyword": null, "type": 8, "flags": 2, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "!=", "value": "!=", "keyword": null, "type": 2, "flags": 2, "position": 150 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 153 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 156 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 159 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`film_id`", "value": "film_id", "keyword": null, "type": 8, "flags": 2, "position": 160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 169 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "<=", "value": "<=", "keyword": null, "type": 2, "flags": 2, "position": 170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 172 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "20", "value": 20, "keyword": null, "type": 6, "flags": 0, "position": 173 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 175 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 176 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 183 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 184 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 185 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 186 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 190 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film", "value": "film", "keyword": null, "type": 0, "flags": 0, "position": 191 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 195 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 196 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 201 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`film`", "value": "film", "keyword": null, "type": 8, "flags": 2, "position": 202 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 208 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`film_id`", "value": "film_id", "keyword": null, "type": 8, "flags": 2, "position": 209 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 218 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "<>", "value": "<>", "keyword": null, "type": 2, "flags": 2, "position": 219 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 221 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 222 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 224 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "&&", "value": "&&", "keyword": null, "type": 2, "flags": 2, "position": 225 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 227 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`film`", "value": "film", "keyword": null, "type": 8, "flags": 2, "position": 228 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 234 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`film_id`", "value": "film_id", "keyword": null, "type": 8, "flags": 2, "position": 235 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 244 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "<=", "value": "<=", "keyword": null, "type": 2, "flags": 2, "position": 245 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 247 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "20", "value": 20, "keyword": null, "type": 6, "flags": 0, "position": 248 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 250 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 251 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 252 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 258 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 259 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 260 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 261 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 265 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film", "value": "film", "keyword": null, "type": 0, "flags": 0, "position": 266 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 270 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 271 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 276 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film", "value": "film", "keyword": null, "type": 0, "flags": 0, "position": 277 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 281 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film_id", "value": "film_id", "keyword": null, "type": 0, "flags": 0, "position": 282 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 289 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "<", "value": "<", "keyword": null, "type": 2, "flags": 2, "position": 290 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 291 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "20", "value": 20, "keyword": null, "type": 6, "flags": 0, "position": 292 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 294 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "XOR", "value": "XOR", "keyword": "XOR", "type": 1, "flags": 3, "position": 295 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 298 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film", "value": "film", "keyword": null, "type": 0, "flags": 0, "position": 299 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 303 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "rating", "value": "rating", "keyword": null, "type": 0, "flags": 0, "position": 304 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 310 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 311 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 312 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'PG-13'", "value": "PG-13", "keyword": null, "type": 7, "flags": 1, "position": 313 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 320 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 321 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 322 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 328 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 329 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 330 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 331 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 335 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film", "value": "film", "keyword": null, "type": 0, "flags": 0, "position": 336 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 340 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 341 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 346 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/* film_id = */", "value": "/* film_id = */", "keyword": null, "type": 4, "flags": 2, "position": 347 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 362 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film_id", "value": "film_id", "keyword": null, "type": 0, "flags": 0, "position": 363 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 370 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 371 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 372 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 373 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 375 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 376 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 377 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 383 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 384 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 385 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 386 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 390 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film", "value": "film", "keyword": null, "type": 0, "flags": 0, "position": 391 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 395 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 396 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 401 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT", "value": "NOT", "keyword": "NOT", "type": 1, "flags": 3, "position": 402 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 405 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film_id", "value": "film_id", "keyword": null, "type": 0, "flags": 0, "position": 406 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 413 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ">", "value": ">", "keyword": null, "type": 2, "flags": 2, "position": 414 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 415 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 416 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 418 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 419 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 420 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 426 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 427 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 428 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 429 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 433 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film", "value": "film", "keyword": null, "type": 0, "flags": 0, "position": 434 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 438 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 439 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 444 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "!", "value": "!", "keyword": null, "type": 2, "flags": 2, "position": 445 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 446 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 447 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film_id", "value": "film_id", "keyword": null, "type": 0, "flags": 0, "position": 448 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 455 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ">", "value": ">", "keyword": null, "type": 2, "flags": 2, "position": 456 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 457 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 458 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 460 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 461 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 462 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 463 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 469 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 470 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 471 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 472 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 476 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film", "value": "film", "keyword": null, "type": 0, "flags": 0, "position": 477 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 481 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 482 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 487 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "description", "value": "description", "keyword": null, "type": 0, "flags": 0, "position": 488 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 499 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IS", "value": "IS", "keyword": "IS", "type": 1, "flags": 3, "position": 500 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 502 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NULL", "value": "NULL", "keyword": "NULL", "type": 1, "flags": 3, "position": 503 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 507 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 508 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 509 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 515 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 516 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 517 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 518 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 522 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film", "value": "film", "keyword": null, "type": 0, "flags": 0, "position": 523 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 527 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 528 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 533 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "description", "value": "description", "keyword": null, "type": 0, "flags": 0, "position": 534 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 545 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IS", "value": "IS", "keyword": "IS", "type": 1, "flags": 3, "position": 546 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 548 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 549 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 557 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 558 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 559 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 565 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 566 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 567 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 568 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 572 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film", "value": "film", "keyword": null, "type": 0, "flags": 0, "position": 573 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 577 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 578 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 583 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film_id", "value": "film_id", "keyword": null, "type": 0, "flags": 0, "position": 584 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 591 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BETWEEN", "value": "BETWEEN", "keyword": "BETWEEN", "type": 1, "flags": 3, "position": 592 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 599 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 600 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 602 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 603 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 606 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "20", "value": 20, "keyword": null, "type": 6, "flags": 0, "position": 607 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 609 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 610 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 611 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 617 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 618 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 619 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 620 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 624 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film", "value": "film", "keyword": null, "type": 0, "flags": 0, "position": 625 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 629 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 630 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 635 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film_id", "value": "film_id", "keyword": null, "type": 0, "flags": 0, "position": 636 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 643 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT", "value": "NOT", "keyword": "NOT", "type": 1, "flags": 3, "position": 644 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 647 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BETWEEN", "value": "BETWEEN", "keyword": "BETWEEN", "type": 1, "flags": 3, "position": 648 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 655 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 656 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 658 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 659 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 662 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "20", "value": 20, "keyword": null, "type": 6, "flags": 0, "position": 663 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 665 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 666 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 667 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 673 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 674 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 675 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 676 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 680 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film", "value": "film", "keyword": null, "type": 0, "flags": 0, "position": 681 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 685 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 686 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 691 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film_id", "value": "film_id", "keyword": null, "type": 0, "flags": 0, "position": 692 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 699 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "IN", "value": "IN", "keyword": "IN", "type": 1, "flags": 35, "position": 700 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 702 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 703 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 704 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 705 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "5", "value": 5, "keyword": null, "type": 6, "flags": 0, "position": 706 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 707 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "7", "value": 7, "keyword": null, "type": 6, "flags": 0, "position": 708 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 709 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 710 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 711 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 712 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 718 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 719 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 720 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 721 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 725 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film", "value": "film", "keyword": null, "type": 0, "flags": 0, "position": 726 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 730 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 731 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 736 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "rating", "value": "rating", "keyword": null, "type": 0, "flags": 0, "position": 737 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 743 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 744 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 745 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UPPER", "value": "UPPER", "keyword": "UPPER", "type": 1, "flags": 33, "position": 746 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 751 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'pg'", "value": "pg", "keyword": null, "type": 7, "flags": 1, "position": 752 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 756 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 757 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 758 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 759 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 765 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 766 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 767 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 768 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 772 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "film", "value": "film", "keyword": null, "type": 0, "flags": 0, "position": 773 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 777 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 778 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 783 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "rating", "value": "rating", "keyword": null, "type": 0, "flags": 0, "position": 784 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 790 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SOUNDS", "value": "SOUNDS", "keyword": "SOUNDS", "type": 1, "flags": 1, "position": 791 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 797 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIKE", "value": "LIKE", "keyword": "LIKE", "type": 1, "flags": 3, "position": 798 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 802 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'PG'", "value": "PG", "keyword": null, "type": 7, "flags": 1, "position": 803 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 807 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 336, "idx": 336 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "film", "column": null, "expr": "film", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "film_id" ], "isOperator": false, "expr": "film_id = 10" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "OR" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "film_id" ], "isOperator": false, "expr": "film_id >= 20" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "film", "column": null, "expr": "film", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "film_id" ], "isOperator": false, "expr": "(film_id < 10)" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "||" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "film_id" ], "isOperator": false, "expr": "(film_id > 20)" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 23, "last": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "film", "column": null, "expr": "film", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "film_id" ], "isOperator": false, "expr": "`film_id` != 10" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "film_id" ], "isOperator": false, "expr": "`film_id` <= 20" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 52, "last": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "film", "column": null, "expr": "film", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "film", "film_id" ], "isOperator": false, "expr": "`film`.`film_id` <> 10" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "&&" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "film", "film_id" ], "isOperator": false, "expr": "`film`.`film_id` <= 20" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 77, "last": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "film", "column": null, "expr": "film", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "film", "film_id" ], "isOperator": false, "expr": "film.film_id < 20" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "XOR" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "film", "rating", "PG-13" ], "isOperator": false, "expr": "film.rating = 'PG-13'" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 106, "last": 134 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "film", "column": null, "expr": "film", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "film_id" ], "isOperator": false, "expr": "film_id = 10" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 135, "last": 153 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "film", "column": null, "expr": "film", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "film_id" ], "isOperator": false, "expr": "NOT film_id > 10" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 154, "last": 172 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "film", "column": null, "expr": "film", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "film_id" ], "isOperator": false, "expr": "! (film_id > 10)" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 173, "last": 193 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "film", "column": null, "expr": "film", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "description" ], "isOperator": false, "expr": "description IS NULL" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 194, "last": 210 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "film", "column": null, "expr": "film", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "description" ], "isOperator": false, "expr": "description IS NOT NULL" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 211, "last": 227 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "film", "column": null, "expr": "film", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "film_id" ], "isOperator": false, "expr": "film_id BETWEEN 10 AND 20" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 228, "last": 248 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "film", "column": null, "expr": "film", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "film_id" ], "isOperator": false, "expr": "film_id NOT BETWEEN 10 AND 20" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 249, "last": 271 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "film", "column": null, "expr": "film", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "film_id" ], "isOperator": false, "expr": "film_id IN (3,5,7)" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 272, "last": 294 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "film", "column": null, "expr": "film", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "rating", "UPPER", "pg" ], "isOperator": false, "expr": "rating = UPPER('pg')" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 295, "last": 314 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "film", "column": null, "expr": "film", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "rating", "SOUNDS", "PG" ], "isOperator": false, "expr": "rating SOUNDS LIKE 'PG'" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 315, "last": 333 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectWhereCollate.in000066400000000000000000000001401455302707200242660ustar00rootroot00000000000000SELECT 1 FROM my_table WHERE first_col = 'foo' AND second_col COLLATE utf8_bin = 'bar';sql-parser-5.9.0/tests/data/parser/parseSelectWhereCollate.out000066400000000000000000000303201455302707200244720ustar00rootroot00000000000000{ "query": "SELECT 1 FROM my_table WHERE first_col = 'foo' AND second_col COLLATE utf8_bin = 'bar';", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT 1 FROM my_table WHERE first_col = 'foo' AND second_col COLLATE utf8_bin = 'bar';", "len": 96, "last": 96, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_table", "value": "my_table", "keyword": null, "type": 0, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "first_col", "value": "first_col", "keyword": null, "type": 0, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'foo'", "value": "foo", "keyword": null, "type": 7, "flags": 1, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "second_col", "value": "second_col", "keyword": null, "type": 0, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLLATE", "value": "COLLATE", "keyword": "COLLATE", "type": 1, "flags": 3, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8_bin", "value": "utf8_bin", "keyword": null, "type": 0, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'bar'", "value": "bar", "keyword": null, "type": 7, "flags": 1, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 29, "idx": 29 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "my_table", "column": null, "expr": "my_table", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "first_col", "foo" ], "isOperator": false, "expr": "first_col = 'foo'" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": true, "expr": "AND" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "second_col", "utf8_bin", "bar" ], "isOperator": false, "expr": "second_col COLLATE utf8_bin = 'bar'" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 26 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectWithParenthesis.in000066400000000000000000000000531455302707200250340ustar00rootroot00000000000000(SELECT first_name FROM `actor` LIMIT 1, 2)sql-parser-5.9.0/tests/data/parser/parseSelectWithParenthesis.out000066400000000000000000000172061455302707200252450ustar00rootroot00000000000000{ "query": "(SELECT first_name FROM `actor` LIMIT 1, 2)", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "(SELECT first_name FROM `actor` LIMIT 1, 2)", "len": 43, "last": 43, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 1 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "first_name", "value": "first_name", "keyword": null, "type": 0, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`actor`", "value": "actor", "keyword": null, "type": 8, "flags": 2, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIMIT", "value": "LIMIT", "keyword": "LIMIT", "type": 1, "flags": 3, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 17, "idx": 17 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "first_name", "expr": "first_name", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "actor", "column": null, "expr": "`actor`", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Limit", "offset": 1, "rowCount": 2 }, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 15 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSelectWrongOrder.in000066400000000000000000000000701455302707200240020ustar00rootroot00000000000000SELECT pid, name2 FROM tablename LIMIT 10 WHERE pid = 20sql-parser-5.9.0/tests/data/parser/parseSelectWrongOrder.out000066400000000000000000000245231455302707200242140ustar00rootroot00000000000000{ "query": "SELECT pid, name2 FROM tablename LIMIT 10 WHERE pid = 20", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT pid, name2 FROM tablename LIMIT 10 WHERE pid = 20", "len": 56, "last": 56, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pid", "value": "pid", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name2", "value": "name2", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tablename", "value": "tablename", "keyword": null, "type": 0, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIMIT", "value": "LIMIT", "keyword": "LIMIT", "type": 1, "flags": 3, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "10", "value": 10, "keyword": null, "type": 6, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "pid", "value": "pid", "keyword": null, "type": 0, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "20", "value": 20, "keyword": null, "type": 6, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 23, "idx": 23 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "pid", "expr": "pid", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "name2", "expr": "name2", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "tablename", "column": null, "expr": "tablename", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "pid" ], "isOperator": false, "expr": "pid = 20" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Limit", "offset": 0, "rowCount": 10 }, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 21 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected ordering of clauses.", { "@type": "@13" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSelectWrongOrder2.in000066400000000000000000000001261455302707200240660ustar00rootroot00000000000000SELECT DISTINCT * FROM tbl1 INNER JOIN tbl2 ON id1 = id2 WHERE 1=1 LEFT OUTER JOIN l3;sql-parser-5.9.0/tests/data/parser/parseSelectWrongOrder2.out000066400000000000000000000330171455302707200242740ustar00rootroot00000000000000{ "query": "SELECT DISTINCT * FROM tbl1 INNER JOIN tbl2 ON id1 = id2 WHERE 1=1 LEFT OUTER JOIN l3;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SELECT DISTINCT * FROM tbl1 INNER JOIN tbl2 ON id1 = id2 WHERE 1=1 LEFT OUTER JOIN l3;", "len": 86, "last": 86, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DISTINCT", "value": "DISTINCT", "keyword": "DISTINCT", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tbl1", "value": "tbl1", "keyword": null, "type": 0, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INNER JOIN", "value": "INNER JOIN", "keyword": "INNER JOIN", "type": 1, "flags": 7, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "tbl2", "value": "tbl2", "keyword": null, "type": 0, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id1", "value": "id1", "keyword": null, "type": 0, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id2", "value": "id2", "keyword": null, "type": 0, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT OUTER JOIN", "value": "LEFT OUTER JOIN", "keyword": "LEFT OUTER JOIN", "type": 1, "flags": 7, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "l3", "value": "l3", "keyword": null, "type": 0, "flags": 0, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 33, "idx": 33 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "tbl1", "column": null, "expr": "tbl1", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": false, "expr": "1=1" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "l3", "column": null, "expr": "l3", "alias": null, "function": null, "subquery": null }, "on": null, "using": null } ], "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "DISTINCT" } }, "first": 0, "last": 30 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected ordering of clauses.", { "@type": "@24" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSetCharacterSet.in000066400000000000000000000000301455302707200235720ustar00rootroot00000000000000SET CHARACTER SET 'utf8'sql-parser-5.9.0/tests/data/parser/parseSetCharacterSet.out000066400000000000000000000063041455302707200240050ustar00rootroot00000000000000{ "query": "SET CHARACTER SET 'utf8'", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SET CHARACTER SET 'utf8'", "len": 24, "last": 24, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHARACTER SET", "value": "CHARACTER SET", "keyword": "CHARACTER SET", "type": 1, "flags": 7, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'utf8'", "value": "utf8", "keyword": null, "type": 7, "flags": 1, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 6, "idx": 6 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": { "name": "CHARACTER SET", "equals": false, "expr": "'utf8'", "value": "utf8" } } }, "end_options": null, "set": [], "first": 0, "last": 4 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSetCharacterSetError.in000066400000000000000000000000221455302707200246050ustar00rootroot00000000000000SET CHARACTER SET sql-parser-5.9.0/tests/data/parser/parseSetCharacterSetError.out000066400000000000000000000061061455302707200250170ustar00rootroot00000000000000{ "query": "SET CHARACTER SET ", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SET CHARACTER SET ", "len": 18, "last": 18, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHARACTER SET", "value": "CHARACTER SET", "keyword": "CHARACTER SET", "type": 1, "flags": 7, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 5, "idx": 5 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": { "name": "CHARACTER SET", "equals": false, "expr": "", "value": "" } } }, "end_options": null, "set": [], "first": 0, "last": 3 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Value/Expression for the option CHARACTER SET was expected.", { "@type": "@5" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSetCharset.in000066400000000000000000000000221455302707200226140ustar00rootroot00000000000000SET CHARSET 'utf8'sql-parser-5.9.0/tests/data/parser/parseSetCharset.out000066400000000000000000000062411455302707200230260ustar00rootroot00000000000000{ "query": "SET CHARSET 'utf8'", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SET CHARSET 'utf8'", "len": 18, "last": 18, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHARSET", "value": "CHARSET", "keyword": "CHARSET", "type": 1, "flags": 33, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'utf8'", "value": "utf8", "keyword": null, "type": 7, "flags": 1, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 6, "idx": 6 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": { "name": "CHARSET", "equals": false, "expr": "'utf8'", "value": "utf8" } } }, "end_options": null, "set": [], "first": 0, "last": 4 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSetCharsetError.in000066400000000000000000000000141455302707200236270ustar00rootroot00000000000000SET CHARSET sql-parser-5.9.0/tests/data/parser/parseSetCharsetError.out000066400000000000000000000060341455302707200240400ustar00rootroot00000000000000{ "query": "SET CHARSET ", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SET CHARSET ", "len": 12, "last": 12, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHARSET", "value": "CHARSET", "keyword": "CHARSET", "type": 0, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 5, "idx": 5 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": { "name": "CHARSET", "equals": false, "expr": "", "value": "" } } }, "end_options": null, "set": [], "first": 0, "last": 3 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Value/Expression for the option CHARSET was expected.", { "@type": "@5" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSetError1.in000066400000000000000000000000471455302707200224040ustar00rootroot00000000000000SET CHARSET 'utf8' CHARACTER SET 'utf8'sql-parser-5.9.0/tests/data/parser/parseSetError1.out000066400000000000000000000115341455302707200226100ustar00rootroot00000000000000{ "query": "SET CHARSET 'utf8' CHARACTER SET 'utf8'", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SET CHARSET 'utf8' CHARACTER SET 'utf8'", "len": 39, "last": 39, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHARSET", "value": "CHARSET", "keyword": "CHARSET", "type": 1, "flags": 33, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'utf8'", "value": "utf8", "keyword": null, "type": 7, "flags": 1, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHARACTER SET", "value": "CHARACTER SET", "keyword": "CHARACTER SET", "type": 1, "flags": 7, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'utf8'", "value": "utf8", "keyword": null, "type": 7, "flags": 1, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 10 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": { "name": "CHARSET", "equals": false, "expr": "'utf8'", "value": "utf8" }, "13": { "name": "CHARACTER SET", "equals": false, "expr": "'utf8'", "value": "utf8" } } }, "end_options": null, "set": [], "first": 0, "last": 8 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "This option conflicts with \"CHARSET\".", { "@type": "@8" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSetGlobalVariable.in000066400000000000000000000000361455302707200240760ustar00rootroot00000000000000SET GLOBAL max_connections = 1sql-parser-5.9.0/tests/data/parser/parseSetGlobalVariable.out000066400000000000000000000106371455302707200243070ustar00rootroot00000000000000{ "query": "SET GLOBAL max_connections = 1", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SET GLOBAL max_connections = 1", "len": 30, "last": 30, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "GLOBAL", "value": "GLOBAL", "keyword": "GLOBAL", "type": 1, "flags": 1, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "max_connections", "value": "max_connections", "keyword": null, "type": 0, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 10 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "GLOBAL" } }, "end_options": null, "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "max_connections", "value": "1" } ], "first": 0, "last": 8 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSetNames.in000066400000000000000000000000201455302707200222640ustar00rootroot00000000000000SET NAMES 'utf8'sql-parser-5.9.0/tests/data/parser/parseSetNames.out000066400000000000000000000062231455302707200225000ustar00rootroot00000000000000{ "query": "SET NAMES 'utf8'", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SET NAMES 'utf8'", "len": 16, "last": 16, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NAMES", "value": "NAMES", "keyword": "NAMES", "type": 1, "flags": 1, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'utf8'", "value": "utf8", "keyword": null, "type": 7, "flags": 1, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 6, "idx": 6 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": { "name": "NAMES", "equals": false, "expr": "'utf8'", "value": "utf8" } } }, "end_options": null, "set": [], "first": 0, "last": 4 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSetNames2.in000066400000000000000000000000521455302707200223530ustar00rootroot00000000000000SET NAMES 'utf8' COLLATE 'utf8_general_ci'sql-parser-5.9.0/tests/data/parser/parseSetNames2.out000066400000000000000000000115071455302707200225630ustar00rootroot00000000000000{ "query": "SET NAMES 'utf8' COLLATE 'utf8_general_ci'", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SET NAMES 'utf8' COLLATE 'utf8_general_ci'", "len": 42, "last": 42, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NAMES", "value": "NAMES", "keyword": "NAMES", "type": 1, "flags": 1, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'utf8'", "value": "utf8", "keyword": null, "type": 7, "flags": 1, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLLATE", "value": "COLLATE", "keyword": "COLLATE", "type": 1, "flags": 3, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'utf8_general_ci'", "value": "utf8_general_ci", "keyword": null, "type": 7, "flags": 1, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 10 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": { "name": "NAMES", "equals": false, "expr": "'utf8'", "value": "utf8" } } }, "end_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "COLLATE", "equals": false, "expr": "'utf8_general_ci'", "value": "utf8_general_ci" } } }, "set": [], "first": 0, "last": 8 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSetNames3.in000066400000000000000000000000311455302707200223510ustar00rootroot00000000000000SET NAMES 'utf8' DEFAULT;sql-parser-5.9.0/tests/data/parser/parseSetNames3.out000066400000000000000000000103731455302707200225640ustar00rootroot00000000000000{ "query": "SET NAMES 'utf8' DEFAULT;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SET NAMES 'utf8' DEFAULT;", "len": 25, "last": 25, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NAMES", "value": "NAMES", "keyword": "NAMES", "type": 1, "flags": 1, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'utf8'", "value": "utf8", "keyword": null, "type": 7, "flags": 1, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 9, "idx": 9 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": { "name": "NAMES", "equals": false, "expr": "'utf8'", "value": "utf8" } } }, "end_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "DEFAULT" } }, "set": [], "first": 0, "last": 6 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSetNamesError.in000066400000000000000000000000121455302707200232770ustar00rootroot00000000000000SET NAMES sql-parser-5.9.0/tests/data/parser/parseSetNamesError.out000066400000000000000000000060151455302707200235110ustar00rootroot00000000000000{ "query": "SET NAMES ", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SET NAMES ", "len": 10, "last": 10, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NAMES", "value": "NAMES", "keyword": "NAMES", "type": 1, "flags": 1, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 5, "idx": 5 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": { "name": "NAMES", "equals": false, "expr": "", "value": "" } } }, "end_options": null, "set": [], "first": 0, "last": 3 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Value/Expression for the option NAMES was expected.", { "@type": "@5" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSetNamesError2.in000066400000000000000000000000521455302707200233650ustar00rootroot00000000000000SET NAMES 'utf8' DEFAULT 'utf8_general_ci'sql-parser-5.9.0/tests/data/parser/parseSetNamesError2.out000066400000000000000000000114161455302707200235740ustar00rootroot00000000000000{ "query": "SET NAMES 'utf8' DEFAULT 'utf8_general_ci'", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SET NAMES 'utf8' DEFAULT 'utf8_general_ci'", "len": 42, "last": 42, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NAMES", "value": "NAMES", "keyword": "NAMES", "type": 1, "flags": 1, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'utf8'", "value": "utf8", "keyword": null, "type": 7, "flags": 1, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'utf8_general_ci'", "value": "utf8_general_ci", "keyword": null, "type": 7, "flags": 1, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 10, "idx": 10 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": { "name": "NAMES", "equals": false, "expr": "'utf8'", "value": "utf8" } } }, "end_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "DEFAULT" } }, "set": [], "first": 0, "last": 8 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected token.", { "@type": "@10" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSetNamesError3.in000066400000000000000000000000301455302707200233620ustar00rootroot00000000000000SET NAMES 'utf8' COLLATEsql-parser-5.9.0/tests/data/parser/parseSetNamesError3.out000066400000000000000000000105201455302707200235700ustar00rootroot00000000000000{ "query": "SET NAMES 'utf8' COLLATE", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SET NAMES 'utf8' COLLATE", "len": 24, "last": 24, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NAMES", "value": "NAMES", "keyword": "NAMES", "type": 1, "flags": 1, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'utf8'", "value": "utf8", "keyword": null, "type": 7, "flags": 1, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLLATE", "value": "COLLATE", "keyword": "COLLATE", "type": 1, "flags": 3, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 8, "idx": 8 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": { "name": "NAMES", "equals": false, "expr": "'utf8'", "value": "utf8" } } }, "end_options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "COLLATE", "equals": false, "expr": "", "value": "" } } }, "set": [], "first": 0, "last": 6 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Value/Expression for the option COLLATE was expected.", { "@type": "@8" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseSetVariable.in000066400000000000000000000000141455302707200227510ustar00rootroot00000000000000SET @foo = 1sql-parser-5.9.0/tests/data/parser/parseSetVariable.out000066400000000000000000000072621455302707200231660ustar00rootroot00000000000000{ "query": "SET @foo = 1", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SET @foo = 1", "len": 12, "last": 12, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@foo", "value": "foo", "keyword": null, "type": 8, "flags": 1, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 8, "idx": 8 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "end_options": null, "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "@foo", "value": "1" } ], "first": 0, "last": 6 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseSetVariable2.in000066400000000000000000000000161455302707200230350ustar00rootroot00000000000000SET @foo := 1 sql-parser-5.9.0/tests/data/parser/parseSetVariable2.out000066400000000000000000000077501455302707200232520ustar00rootroot00000000000000{ "query": "SET @foo := 1\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "SET @foo := 1\n", "len": 14, "last": 14, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 3 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@foo", "value": "foo", "keyword": null, "type": 8, "flags": 1, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ":=", "value": ":=", "keyword": null, "type": 2, "flags": 8, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 9, "idx": 9 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "end_options": null, "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "@foo", "value": "1" } ], "first": 0, "last": 7 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseTable1.in000066400000000000000000000000441455302707200216630ustar00rootroot00000000000000TABLE `fo` ORDER BY `fo`.`uuid` ASC;sql-parser-5.9.0/tests/data/parser/parseTable1.out000066400000000000000000000114701455302707200220710ustar00rootroot00000000000000{ "query": "TABLE `fo` ORDER BY `fo`.`uuid` ASC;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "TABLE `fo` ORDER BY `fo`.`uuid` ASC;", "len": 36, "last": 36, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`fo`", "value": "fo", "keyword": null, "type": 8, "flags": 2, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ORDER BY", "value": "ORDER BY", "keyword": "ORDER BY", "type": 1, "flags": 7, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`fo`", "value": "fo", "keyword": null, "type": 8, "flags": 2, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`uuid`", "value": "uuid", "keyword": null, "type": 8, "flags": 2, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ASC", "value": "ASC", "keyword": "ASC", "type": 1, "flags": 3, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 13, "idx": 13 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unrecognized statement type.", { "@type": "@2" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseTransaction.in000066400000000000000000000001661455302707200230450ustar00rootroot00000000000000START TRANSACTION; SELECT @A:=SUM(salary) FROM table1 WHERE type=1; UPDATE table2 SET summary=@A WHERE type=1; COMMIT;sql-parser-5.9.0/tests/data/parser/parseTransaction.out000066400000000000000000000457071455302707200232600ustar00rootroot00000000000000{ "query": "START TRANSACTION;\nSELECT @A:=SUM(salary) FROM table1 WHERE type=1;\nUPDATE table2 SET summary=@A WHERE type=1;\nCOMMIT;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "START TRANSACTION;\nSELECT @A:=SUM(salary) FROM table1 WHERE type=1;\nUPDATE table2 SET summary=@A WHERE type=1;\nCOMMIT;", "len": 118, "last": 118, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "START TRANSACTION", "value": "START TRANSACTION", "keyword": "START TRANSACTION", "type": 1, "flags": 7, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@A", "value": "A", "keyword": null, "type": 8, "flags": 1, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ":=", "value": ":=", "keyword": null, "type": 2, "flags": 8, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUM", "value": "SUM", "keyword": "SUM", "type": 1, "flags": 33, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "salary", "value": "salary", "keyword": null, "type": 0, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "type", "value": "type", "keyword": "TYPE", "type": 1, "flags": 1, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UPDATE", "value": "UPDATE", "keyword": "UPDATE", "type": 1, "flags": 3, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "summary", "value": "summary", "keyword": null, "type": 0, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@A", "value": "A", "keyword": null, "type": 8, "flags": 1, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "type", "value": "type", "keyword": "TYPE", "type": 1, "flags": 1, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMIT", "value": "COMMIT", "keyword": "COMMIT", "type": 1, "flags": 1, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 43, "idx": 43 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\TransactionStatement", "type": 1, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "@A:=SUM(salary)", "alias": null, "function": "SUM", "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "type" ], "isOperator": false, "expr": "type=1" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 1, "last": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\UpdateStatement", "tables": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table2", "column": null, "expr": "table2", "alias": null, "function": null, "subquery": null } ], "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "summary", "value": "@A" } ], "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "type" ], "isOperator": false, "expr": "type=1" } ], "order": null, "limit": null, "join": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 21, "last": 37 } ], "end": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\TransactionStatement", "type": 2, "statements": null, "end": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "COMMIT" } }, "first": 38, "last": 40 }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "START TRANSACTION" } }, "first": 0, "last": 0 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseTransaction2.in000066400000000000000000000001701455302707200231220ustar00rootroot00000000000000START TRANSACTION; SELECT @A:=SUM(salary) FROM table1 WHERE type=1; UPDATE table2 SET summary=@A WHERE type=1; ROLLBACK;sql-parser-5.9.0/tests/data/parser/parseTransaction2.out000066400000000000000000000457231455302707200233400ustar00rootroot00000000000000{ "query": "START TRANSACTION;\nSELECT @A:=SUM(salary) FROM table1 WHERE type=1;\nUPDATE table2 SET summary=@A WHERE type=1;\nROLLBACK;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "START TRANSACTION;\nSELECT @A:=SUM(salary) FROM table1 WHERE type=1;\nUPDATE table2 SET summary=@A WHERE type=1;\nROLLBACK;", "len": 120, "last": 120, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "START TRANSACTION", "value": "START TRANSACTION", "keyword": "START TRANSACTION", "type": 1, "flags": 7, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@A", "value": "A", "keyword": null, "type": 8, "flags": 1, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ":=", "value": ":=", "keyword": null, "type": 2, "flags": 8, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SUM", "value": "SUM", "keyword": "SUM", "type": 1, "flags": 33, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "salary", "value": "salary", "keyword": null, "type": 0, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table1", "value": "table1", "keyword": null, "type": 0, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "type", "value": "type", "keyword": "TYPE", "type": 1, "flags": 1, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UPDATE", "value": "UPDATE", "keyword": "UPDATE", "type": 1, "flags": 3, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "summary", "value": "summary", "keyword": null, "type": 0, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@A", "value": "A", "keyword": null, "type": 8, "flags": 1, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "type", "value": "type", "keyword": "TYPE", "type": 1, "flags": 1, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ROLLBACK", "value": "ROLLBACK", "keyword": "ROLLBACK", "type": 1, "flags": 1, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 43, "idx": 43 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\TransactionStatement", "type": 1, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "@A:=SUM(salary)", "alias": null, "function": "SUM", "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table1", "column": null, "expr": "table1", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "type" ], "isOperator": false, "expr": "type=1" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 1, "last": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\UpdateStatement", "tables": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table2", "column": null, "expr": "table2", "alias": null, "function": null, "subquery": null } ], "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "summary", "value": "@A" } ], "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "type" ], "isOperator": false, "expr": "type=1" } ], "order": null, "limit": null, "join": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 21, "last": 37 } ], "end": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\TransactionStatement", "type": 2, "statements": null, "end": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ROLLBACK" } }, "first": 38, "last": 40 }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "START TRANSACTION" } }, "first": 0, "last": 0 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseTransaction3.in000066400000000000000000000000521455302707200231220ustar00rootroot00000000000000begin; SELECT * FROM `tablename`; commit; sql-parser-5.9.0/tests/data/parser/parseTransaction3.out000066400000000000000000000163011455302707200233270ustar00rootroot00000000000000{ "query": "begin;\nSELECT * FROM `tablename`;\ncommit;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "begin;\nSELECT * FROM `tablename`;\ncommit;\n", "len": 42, "last": 42, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "begin", "value": "begin", "keyword": "BEGIN", "type": 1, "flags": 1, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`tablename`", "value": "tablename", "keyword": null, "type": 8, "flags": 2, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "commit", "value": "commit", "keyword": "COMMIT", "type": 1, "flags": 1, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 16, "idx": 16 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "tablename", "column": null, "expr": "`tablename`", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 1, "last": 9 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseTransaction4.in000066400000000000000000000000561455302707200231270ustar00rootroot00000000000000 START TRANSACTION; SET time_zone = "+00:00"; sql-parser-5.9.0/tests/data/parser/parseTransaction4.out000066400000000000000000000143601455302707200233330ustar00rootroot00000000000000{ "query": "\nSTART TRANSACTION;\nSET time_zone = \"+00:00\";\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "\nSTART TRANSACTION;\nSET time_zone = \"+00:00\";\n", "len": 46, "last": 46, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "START TRANSACTION", "value": "START TRANSACTION", "keyword": "START TRANSACTION", "type": 1, "flags": 7, "position": 1 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "time_zone", "value": "time_zone", "keyword": null, "type": 0, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"+00:00\"", "value": "+00:00", "keyword": null, "type": 7, "flags": 2, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 14, "idx": 14 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\TransactionStatement", "type": 1, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "end_options": null, "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "time_zone", "value": "\"+00:00\"" } ], "first": 2, "last": 10 } ], "end": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "START TRANSACTION" } }, "first": 0, "last": 1 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseTransaction5.in000066400000000000000000000002141455302707200231240ustar00rootroot00000000000000BEGIN; INSERT INTO t2 VALUES (3); SAVEPOINT my_savepoint; INSERT INTO t2 VALUES (4); RELEASE SAVEPOINT my_savepoint; COMMIT;sql-parser-5.9.0/tests/data/parser/parseTransaction5.out000066400000000000000000000464021455302707200233360ustar00rootroot00000000000000{ "query": "BEGIN;\n INSERT INTO t2 VALUES (3);\n SAVEPOINT my_savepoint;\n INSERT INTO t2 VALUES (4);\n RELEASE SAVEPOINT my_savepoint;\nCOMMIT;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "BEGIN;\n INSERT INTO t2 VALUES (3);\n SAVEPOINT my_savepoint;\n INSERT INTO t2 VALUES (4);\n RELEASE SAVEPOINT my_savepoint;\nCOMMIT;", "len": 140, "last": 140, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BEGIN", "value": "BEGIN", "keyword": "BEGIN", "type": 1, "flags": 1, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t2", "value": "t2", "keyword": null, "type": 0, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SAVEPOINT", "value": "SAVEPOINT", "keyword": "SAVEPOINT", "type": 1, "flags": 1, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_savepoint", "value": "my_savepoint", "keyword": null, "type": 0, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t2", "value": "t2", "keyword": null, "type": 0, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "4", "value": 4, "keyword": null, "type": 6, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "RELEASE", "value": "RELEASE", "keyword": "RELEASE", "type": 1, "flags": 3, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SAVEPOINT", "value": "SAVEPOINT", "keyword": "SAVEPOINT", "type": 1, "flags": 1, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_savepoint", "value": "my_savepoint", "keyword": null, "type": 0, "flags": 0, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMIT", "value": "COMMIT", "keyword": "COMMIT", "type": 1, "flags": 1, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 44, "idx": 44 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\TransactionStatement", "type": 1, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t2", "column": null, "expr": "t2", "alias": null, "function": null, "subquery": null }, "columns": null, "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "3" ], "values": [ "3" ] } ], "set": null, "select": null, "with": null, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 1, "last": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t2", "column": null, "expr": "t2", "alias": null, "function": null, "subquery": null }, "columns": null, "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "4" ], "values": [ "4" ] } ], "set": null, "select": null, "with": null, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 21, "last": 31 } ], "end": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\TransactionStatement", "type": 2, "statements": null, "end": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "COMMIT" } }, "first": 41, "last": 41 }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "BEGIN" } }, "first": 0, "last": 0 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unrecognized statement type.", { "@type": "@18" }, 0 ], [ "Unrecognized statement type.", { "@type": "@36" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseTransaction6.in000066400000000000000000000002251455302707200231270ustar00rootroot00000000000000BEGIN; INSERT INTO t2 VALUES (3); SAVEPOINT my_savepoint; INSERT INTO t2 VALUES (4); ROLLBACK WORK TO SAVEPOINT my_savepoint; COMMIT;sql-parser-5.9.0/tests/data/parser/parseTransaction6.out000066400000000000000000000527141455302707200233420ustar00rootroot00000000000000{ "query": "BEGIN;\n INSERT INTO t2 VALUES (3);\n SAVEPOINT my_savepoint;\n INSERT INTO t2 VALUES (4);\n ROLLBACK WORK TO SAVEPOINT my_savepoint;\nCOMMIT;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "BEGIN;\n INSERT INTO t2 VALUES (3);\n SAVEPOINT my_savepoint;\n INSERT INTO t2 VALUES (4);\n ROLLBACK WORK TO SAVEPOINT my_savepoint;\nCOMMIT;", "len": 149, "last": 149, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BEGIN", "value": "BEGIN", "keyword": "BEGIN", "type": 1, "flags": 1, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t2", "value": "t2", "keyword": null, "type": 0, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SAVEPOINT", "value": "SAVEPOINT", "keyword": "SAVEPOINT", "type": 1, "flags": 1, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_savepoint", "value": "my_savepoint", "keyword": null, "type": 0, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t2", "value": "t2", "keyword": null, "type": 0, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "4", "value": 4, "keyword": null, "type": 6, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ROLLBACK", "value": "ROLLBACK", "keyword": "ROLLBACK", "type": 1, "flags": 1, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WORK", "value": "WORK", "keyword": "WORK", "type": 1, "flags": 1, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SAVEPOINT", "value": "SAVEPOINT", "keyword": "SAVEPOINT", "type": 1, "flags": 1, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_savepoint", "value": "my_savepoint", "keyword": null, "type": 0, "flags": 0, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMIT", "value": "COMMIT", "keyword": "COMMIT", "type": 1, "flags": 1, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 48, "idx": 48 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\TransactionStatement", "type": 1, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t2", "column": null, "expr": "t2", "alias": null, "function": null, "subquery": null }, "columns": null, "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "3" ], "values": [ "3" ] } ], "set": null, "select": null, "with": null, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 1, "last": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t2", "column": null, "expr": "t2", "alias": null, "function": null, "subquery": null }, "columns": null, "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "4" ], "values": [ "4" ] } ], "set": null, "select": null, "with": null, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 21, "last": 31 } ], "end": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\TransactionStatement", "type": 2, "statements": null, "end": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ROLLBACK", "2": "WORK" } }, "first": 32, "last": 42 }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "BEGIN" } }, "first": 0, "last": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\TransactionStatement", "type": 2, "statements": null, "end": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "COMMIT" } }, "first": 43, "last": 45 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unrecognized statement type.", { "@type": "@18" }, 0 ], [ "Unrecognized keyword.", { "@type": "@40" }, 0 ], [ "Unrecognized keyword.", { "@type": "@42" }, 0 ], [ "Unexpected token.", { "@type": "@44" }, 0 ], [ "No transaction was previously started.", { "@type": "@47" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseTransaction7.in000066400000000000000000000002201455302707200231230ustar00rootroot00000000000000BEGIN; INSERT INTO t2 VALUES (3); SAVEPOINT my_savepoint; INSERT INTO t2 VALUES (4); ROLLBACK TO SAVEPOINT my_savepoint; COMMIT;sql-parser-5.9.0/tests/data/parser/parseTransaction7.out000066400000000000000000000514651455302707200233450ustar00rootroot00000000000000{ "query": "BEGIN;\n INSERT INTO t2 VALUES (3);\n SAVEPOINT my_savepoint;\n INSERT INTO t2 VALUES (4);\n ROLLBACK TO SAVEPOINT my_savepoint;\nCOMMIT;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "BEGIN;\n INSERT INTO t2 VALUES (3);\n SAVEPOINT my_savepoint;\n INSERT INTO t2 VALUES (4);\n ROLLBACK TO SAVEPOINT my_savepoint;\nCOMMIT;", "len": 144, "last": 144, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BEGIN", "value": "BEGIN", "keyword": "BEGIN", "type": 1, "flags": 1, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t2", "value": "t2", "keyword": null, "type": 0, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SAVEPOINT", "value": "SAVEPOINT", "keyword": "SAVEPOINT", "type": 1, "flags": 1, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_savepoint", "value": "my_savepoint", "keyword": null, "type": 0, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "t2", "value": "t2", "keyword": null, "type": 0, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "4", "value": 4, "keyword": null, "type": 6, "flags": 0, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ROLLBACK", "value": "ROLLBACK", "keyword": "ROLLBACK", "type": 1, "flags": 1, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TO", "value": "TO", "keyword": "TO", "type": 1, "flags": 3, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SAVEPOINT", "value": "SAVEPOINT", "keyword": "SAVEPOINT", "type": 1, "flags": 1, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "my_savepoint", "value": "my_savepoint", "keyword": null, "type": 0, "flags": 0, "position": 123 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMIT", "value": "COMMIT", "keyword": "COMMIT", "type": 1, "flags": 1, "position": 137 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 46, "idx": 46 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\TransactionStatement", "type": 1, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t2", "column": null, "expr": "t2", "alias": null, "function": null, "subquery": null }, "columns": null, "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "3" ], "values": [ "3" ] } ], "set": null, "select": null, "with": null, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 1, "last": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "t2", "column": null, "expr": "t2", "alias": null, "function": null, "subquery": null }, "columns": null, "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "4" ], "values": [ "4" ] } ], "set": null, "select": null, "with": null, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 21, "last": 31 } ], "end": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\TransactionStatement", "type": 2, "statements": null, "end": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ROLLBACK" } }, "first": 32, "last": 40 }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "BEGIN" } }, "first": 0, "last": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\TransactionStatement", "type": 2, "statements": null, "end": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "COMMIT" } }, "first": 41, "last": 43 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unrecognized statement type.", { "@type": "@18" }, 0 ], [ "Unrecognized keyword.", { "@type": "@38" }, 0 ], [ "Unrecognized keyword.", { "@type": "@40" }, 0 ], [ "Unexpected token.", { "@type": "@42" }, 0 ], [ "No transaction was previously started.", { "@type": "@45" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseTransactionErr1.in000066400000000000000000000000071455302707200235710ustar00rootroot00000000000000COMMIT;sql-parser-5.9.0/tests/data/parser/parseTransactionErr1.out000066400000000000000000000044041455302707200237770ustar00rootroot00000000000000{ "query": "COMMIT;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "COMMIT;", "len": 7, "last": 7, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMIT", "value": "COMMIT", "keyword": "COMMIT", "type": 1, "flags": 1, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 3, "idx": 3 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\TransactionStatement", "type": 2, "statements": null, "end": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "COMMIT" } }, "first": 0, "last": 0 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "No transaction was previously started.", { "@type": "@2" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseUnlock1.in000066400000000000000000000000161455302707200220660ustar00rootroot00000000000000UNLOCK TABLES;sql-parser-5.9.0/tests/data/parser/parseUnlock1.out000066400000000000000000000047431455302707200223020ustar00rootroot00000000000000{ "query": "UNLOCK TABLES;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "UNLOCK TABLES;", "len": 14, "last": 14, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNLOCK", "value": "UNLOCK", "keyword": "UNLOCK", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLES", "value": "TABLES", "keyword": "TABLES", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 5, "idx": 5 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LockStatement", "locked": [], "isLock": false, "options": null, "first": 0, "last": 3 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseUnlockErr1.in000066400000000000000000000000221455302707200225340ustar00rootroot00000000000000UNLOCK TABLES abc;sql-parser-5.9.0/tests/data/parser/parseUnlockErr1.out000066400000000000000000000063541455302707200227530ustar00rootroot00000000000000{ "query": "UNLOCK TABLES abc;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "UNLOCK TABLES abc;", "len": 18, "last": 18, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNLOCK", "value": "UNLOCK", "keyword": "UNLOCK", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLES", "value": "TABLES", "keyword": "TABLES", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "abc", "value": "abc", "keyword": null, "type": 0, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 7, "idx": 7 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\LockStatement", "locked": [], "isLock": false, "options": null, "first": 0, "last": 4 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected token.", { "@type": "@6" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseUpdate1.in000066400000000000000000000000661455302707200220620ustar00rootroot00000000000000UPDATE users SET username = "Dan", id=155;sql-parser-5.9.0/tests/data/parser/parseUpdate1.out000066400000000000000000000170271455302707200222700ustar00rootroot00000000000000{ "query": "UPDATE\n users\nSET\n username = \"Dan\",\n id=155;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "UPDATE\n users\nSET\n username = \"Dan\",\n id=155;", "len": 54, "last": 54, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UPDATE", "value": "UPDATE", "keyword": "UPDATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "users", "value": "users", "keyword": null, "type": 0, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Dan\"", "value": "Dan", "keyword": null, "type": 7, "flags": 2, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "155", "value": 155, "keyword": null, "type": 6, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 18, "idx": 18 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\UpdateStatement", "tables": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "users", "column": null, "expr": "users", "alias": null, "function": null, "subquery": null } ], "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "username", "value": "\"Dan\"" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "id", "value": "155" } ], "where": null, "order": null, "limit": null, "join": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 15 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseUpdate2.in000066400000000000000000000001431455302707200220570ustar00rootroot00000000000000UPDATE users SET username = "Dan", id=155 WHERE username = "Paul" LIMIT 1 OFFSET 2;sql-parser-5.9.0/tests/data/parser/parseUpdate2.out000066400000000000000000000316431455302707200222710ustar00rootroot00000000000000{ "query": "UPDATE\n users\nSET\n username = \"Dan\",\n id=155\nWHERE\n username = \"Paul\"\nLIMIT 1 OFFSET 2;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "UPDATE\n users\nSET\n username = \"Dan\",\n id=155\nWHERE\n username = \"Paul\"\nLIMIT 1 OFFSET 2;", "len": 99, "last": 99, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UPDATE", "value": "UPDATE", "keyword": "UPDATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "users", "value": "users", "keyword": null, "type": 0, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Dan\"", "value": "Dan", "keyword": null, "type": 7, "flags": 2, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "155", "value": 155, "keyword": null, "type": 6, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Paul\"", "value": "Paul", "keyword": null, "type": 7, "flags": 2, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LIMIT", "value": "LIMIT", "keyword": "LIMIT", "type": 1, "flags": 3, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "OFFSET", "value": "OFFSET", "keyword": "OFFSET", "type": 1, "flags": 1, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 98 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 34, "idx": 34 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\UpdateStatement", "tables": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "users", "column": null, "expr": "users", "alias": null, "function": null, "subquery": null } ], "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "username", "value": "\"Dan\"" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "id", "value": "155" } ], "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "username", "Paul" ], "isOperator": false, "expr": "username = \"Paul\"" } ], "order": null, "limit": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Limit", "offset": 2, "rowCount": 1 }, "join": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 31 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseUpdate3.in000066400000000000000000000000441455302707200220600ustar00rootroot00000000000000UPDATE foo SET bar = WHERE baz = 0 sql-parser-5.9.0/tests/data/parser/parseUpdate3.out000066400000000000000000000174521455302707200222740ustar00rootroot00000000000000{ "query": "UPDATE foo SET bar = WHERE baz = 0\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "UPDATE foo SET bar = WHERE baz = 0\n", "len": 36, "last": 36, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UPDATE", "value": "UPDATE", "keyword": "UPDATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "bar", "value": "bar", "keyword": null, "type": 0, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "baz", "value": "baz", "keyword": null, "type": 0, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 19, "idx": 19 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\UpdateStatement", "tables": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "foo", "column": null, "expr": "foo", "alias": null, "function": null, "subquery": null } ], "set": [], "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "baz" ], "isOperator": false, "expr": "baz = 0" } ], "order": null, "limit": null, "join": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 17 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Missing expression.", { "@type": "@12" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseUpdate4.in000066400000000000000000000001061455302707200220600ustar00rootroot00000000000000UPDATE Country x, City y set x.Name=x.Name where x.Code=y.CountryCode;sql-parser-5.9.0/tests/data/parser/parseUpdate4.out000066400000000000000000000305041455302707200222660ustar00rootroot00000000000000{ "query": "UPDATE Country x, City y set x.Name=x.Name where x.Code=y.CountryCode;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "UPDATE Country x, City y set x.Name=x.Name where x.Code=y.CountryCode;", "len": 70, "last": 70, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UPDATE", "value": "UPDATE", "keyword": "UPDATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "Country", "value": "Country", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "x", "value": "x", "keyword": "x", "type": 0, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 17 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "City", "value": "City", "keyword": null, "type": 0, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "y", "value": "y", "keyword": "y", "type": 0, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "set", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "x", "value": "x", "keyword": "x", "type": 0, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "Name", "value": "Name", "keyword": "NAME", "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "x", "value": "x", "keyword": "x", "type": 0, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "Name", "value": "Name", "keyword": "NAME", "type": 0, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "where", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "x", "value": "x", "keyword": "x", "type": 0, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "Code", "value": "Code", "keyword": "CODE", "type": 0, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "y", "value": "y", "keyword": "y", "type": 0, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CountryCode", "value": "CountryCode", "keyword": null, "type": 0, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 32, "idx": 32 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\UpdateStatement", "tables": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "Country", "column": null, "expr": "Country", "alias": "x", "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "City", "column": null, "expr": "City", "alias": "y", "function": null, "subquery": null } ], "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "x.Name", "value": "x.Name" } ], "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "x", "Code", "y", "CountryCode" ], "isOperator": false, "expr": "x.Code=y.CountryCode" } ], "order": null, "limit": null, "join": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 29 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseUpdate5.in000066400000000000000000000001321455302707200220600ustar00rootroot00000000000000update user u left join user_detail ud on u.id = ud.user_id set ud.ip ='33' where u.id = 1sql-parser-5.9.0/tests/data/parser/parseUpdate5.out000066400000000000000000000405521455302707200222730ustar00rootroot00000000000000{ "query": "update user u left join user_detail ud on u.id = ud.user_id set ud.ip ='33' where u.id = 1", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "update user u left join user_detail ud on u.id = ud.user_id set ud.ip ='33' where u.id = 1", "len": 90, "last": 90, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "update", "value": "UPDATE", "keyword": "UPDATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "user", "value": "user", "keyword": "USER", "type": 1, "flags": 33, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "u", "value": "u", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "left join", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "user_detail", "value": "user_detail", "keyword": null, "type": 0, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ud", "value": "ud", "keyword": null, "type": 0, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "on", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "u", "value": "u", "keyword": null, "type": 0, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ud", "value": "ud", "keyword": null, "type": 0, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "user_id", "value": "user_id", "keyword": null, "type": 0, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "set", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ud", "value": "ud", "keyword": null, "type": 0, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ip", "value": "ip", "keyword": null, "type": 0, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'33'", "value": "33", "keyword": null, "type": 7, "flags": 1, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "where", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "u", "value": "u", "keyword": null, "type": 0, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 43, "idx": 43 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\UpdateStatement", "tables": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "user", "column": null, "expr": "user", "alias": "u", "function": null, "subquery": null } ], "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "ud.ip", "value": "'33'" } ], "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "u", "id" ], "isOperator": false, "expr": "u.id = 1" } ], "order": null, "limit": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "user_detail", "column": null, "expr": "user_detail", "alias": "ud", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "u", "id", "ud", "user_id" ], "isOperator": false, "expr": "u.id = ud.user_id" } ], "using": null } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 41 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseUpdate6.in000066400000000000000000000003011455302707200220570ustar00rootroot00000000000000UPDATE customer_table c JOIN employee_table e ON c.city_id = e.city_id JOIN anyother_table a ON a.someID = e.someID SET c.active = "Yes" WHERE c.city = "New york";sql-parser-5.9.0/tests/data/parser/parseUpdate6.out000066400000000000000000000576011455302707200222770ustar00rootroot00000000000000{ "query": "UPDATE customer_table c\n\n JOIN\n employee_table e\n ON c.city_id = e.city_id\n JOIN\n anyother_table a\n ON a.someID = e.someID\n\nSET c.active = \"Yes\"\nWHERE c.city = \"New york\";", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "UPDATE customer_table c\n\n JOIN\n employee_table e\n ON c.city_id = e.city_id\n JOIN\n anyother_table a\n ON a.someID = e.someID\n\nSET c.active = \"Yes\"\nWHERE c.city = \"New york\";", "len": 193, "last": 193, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UPDATE", "value": "UPDATE", "keyword": "UPDATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "customer_table", "value": "customer_table", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "JOIN", "value": "JOIN", "keyword": "JOIN", "type": 1, "flags": 3, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "employee_table", "value": "employee_table", "keyword": null, "type": 0, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "e", "value": "e", "keyword": null, "type": 0, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "city_id", "value": "city_id", "keyword": null, "type": 0, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "e", "value": "e", "keyword": null, "type": 0, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "city_id", "value": "city_id", "keyword": null, "type": 0, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "JOIN", "value": "JOIN", "keyword": "JOIN", "type": 1, "flags": 3, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "anyother_table", "value": "anyother_table", "keyword": null, "type": 0, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 122 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "someID", "value": "someID", "keyword": null, "type": 0, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 134 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "e", "value": "e", "keyword": null, "type": 0, "flags": 0, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 137 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "someID", "value": "someID", "keyword": null, "type": 0, "flags": 0, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 150 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "active", "value": "active", "keyword": null, "type": 0, "flags": 0, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 159 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Yes\"", "value": "Yes", "keyword": null, "type": 7, "flags": 2, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 166 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 172 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 173 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "city", "value": "city", "keyword": null, "type": 0, "flags": 0, "position": 175 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 179 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 181 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"New york\"", "value": "New york", "keyword": null, "type": 7, "flags": 2, "position": 182 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 192 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 63, "idx": 63 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\UpdateStatement", "tables": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "customer_table", "column": null, "expr": "customer_table", "alias": "c", "function": null, "subquery": null } ], "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "c.active", "value": "\"Yes\"" } ], "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "c", "city", "New york" ], "isOperator": false, "expr": "c.city = \"New york\"" } ], "order": null, "limit": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "JOIN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "employee_table", "column": null, "expr": "employee_table", "alias": "e", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "c", "city_id", "e" ], "isOperator": false, "expr": "c.city_id = e.city_id" } ], "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "JOIN", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "anyother_table", "column": null, "expr": "anyother_table", "alias": "a", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "a", "someID", "e" ], "isOperator": false, "expr": "a.someID = e.someID" } ], "using": null } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 60 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseUpdate7.in000066400000000000000000000003141455302707200220640ustar00rootroot00000000000000UPDATE customer_table c INNER JOIN employee_table e ON c.city_id = e.city_id LEFT JOIN anyother_table a ON a.someID = e.someID SET c.active = "Yes" WHERE c.city = "New york";sql-parser-5.9.0/tests/data/parser/parseUpdate7.out000066400000000000000000000576731455302707200223110ustar00rootroot00000000000000{ "query": "UPDATE customer_table c\n\n INNER JOIN\n employee_table e\n ON c.city_id = e.city_id\n LEFT JOIN\n anyother_table a\n ON a.someID = e.someID\n\nSET c.active = \"Yes\"\nWHERE c.city = \"New york\";", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "UPDATE customer_table c\n\n INNER JOIN\n employee_table e\n ON c.city_id = e.city_id\n LEFT JOIN\n anyother_table a\n ON a.someID = e.someID\n\nSET c.active = \"Yes\"\nWHERE c.city = \"New york\";", "len": 204, "last": 204, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UPDATE", "value": "UPDATE", "keyword": "UPDATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "customer_table", "value": "customer_table", "keyword": null, "type": 0, "flags": 0, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INNER JOIN", "value": "INNER JOIN", "keyword": "INNER JOIN", "type": 1, "flags": 7, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "employee_table", "value": "employee_table", "keyword": null, "type": 0, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "e", "value": "e", "keyword": null, "type": 0, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "city_id", "value": "city_id", "keyword": null, "type": 0, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "e", "value": "e", "keyword": null, "type": 0, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "city_id", "value": "city_id", "keyword": null, "type": 0, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "LEFT JOIN", "value": "LEFT JOIN", "keyword": "LEFT JOIN", "type": 1, "flags": 7, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "anyother_table", "value": "anyother_table", "keyword": null, "type": 0, "flags": 0, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 124 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 133 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "a", "value": "a", "keyword": null, "type": 0, "flags": 0, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 137 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "someID", "value": "someID", "keyword": null, "type": 0, "flags": 0, "position": 138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "e", "value": "e", "keyword": null, "type": 0, "flags": 0, "position": 147 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "someID", "value": "someID", "keyword": null, "type": 0, "flags": 0, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 155 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 157 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 160 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "active", "value": "active", "keyword": null, "type": 0, "flags": 0, "position": 163 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 169 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 171 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Yes\"", "value": "Yes", "keyword": null, "type": 7, "flags": 2, "position": 172 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 177 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 183 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 184 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 185 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "city", "value": "city", "keyword": null, "type": 0, "flags": 0, "position": 186 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 190 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 191 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 192 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"New york\"", "value": "New york", "keyword": null, "type": 7, "flags": 2, "position": 193 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 203 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 63, "idx": 63 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\UpdateStatement", "tables": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "customer_table", "column": null, "expr": "customer_table", "alias": "c", "function": null, "subquery": null } ], "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "c.active", "value": "\"Yes\"" } ], "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "c", "city", "New york" ], "isOperator": false, "expr": "c.city = \"New york\"" } ], "order": null, "limit": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "INNER", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "employee_table", "column": null, "expr": "employee_table", "alias": "e", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "c", "city_id", "e" ], "isOperator": false, "expr": "c.city_id = e.city_id" } ], "using": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "LEFT", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "anyother_table", "column": null, "expr": "anyother_table", "alias": "a", "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "a", "someID", "e" ], "isOperator": false, "expr": "a.someID = e.someID" } ], "using": null } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 60 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseUpdateErr.in000066400000000000000000000001271455302707200224500ustar00rootroot00000000000000-- extraneous comma UPDATE users SET username = "Dan", id=155, WHERE 1 = 1;sql-parser-5.9.0/tests/data/parser/parseUpdateErr.out000066400000000000000000000264531455302707200226630ustar00rootroot00000000000000{ "query": "-- extraneous comma\nUPDATE\n users\nSET\n username = \"Dan\",\n id=155,\nWHERE 1 = 1;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "-- extraneous comma\nUPDATE\n users\nSET\n username = \"Dan\",\n id=155,\nWHERE 1 = 1;", "len": 87, "last": 87, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- extraneous comma", "value": "-- extraneous comma", "keyword": null, "type": 4, "flags": 4, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UPDATE", "value": "UPDATE", "keyword": "UPDATE", "type": 1, "flags": 3, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "users", "value": "users", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "username", "value": "username", "keyword": null, "type": 0, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"Dan\"", "value": "Dan", "keyword": null, "type": 7, "flags": 2, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "id", "value": "id", "keyword": null, "type": 0, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "155", "value": 155, "keyword": null, "type": 6, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 29, "idx": 29 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\UpdateStatement", "tables": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "users", "column": null, "expr": "users", "alias": null, "function": null, "subquery": null } ], "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "username", "value": "\"Dan\"" }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "id", "value": "155" } ], "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [], "isOperator": false, "expr": "1 = 1" } ], "order": null, "limit": null, "join": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 26 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected token.", { "@type": "@20" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseWithStatement.in000066400000000000000000000001361455302707200233550ustar00rootroot00000000000000INSERT INTO table_name WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FROM ctesql-parser-5.9.0/tests/data/parser/parseWithStatement.out000066400000000000000000000624071455302707200235670ustar00rootroot00000000000000{ "query": "INSERT INTO table_name WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FROM cte", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "INSERT INTO table_name WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FROM cte", "len": 94, "last": 94, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table_name", "value": "table_name", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNION ALL", "value": "UNION ALL", "keyword": "UNION ALL", "type": 1, "flags": 7, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 38, "idx": 38 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table_name", "column": null, "expr": "table_name", "alias": null, "function": null, "subquery": null }, "columns": null, "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": null, "set": null, "select": null, "with": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\WithStatement", "withers": { "cte": { "@type": "PhpMyAdmin\\SqlParser\\Components\\WithKeyword", "name": "cte", "columns": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "col1" ], "values": [ "col1" ] } ], "statement": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" }, { "@type": "@29" } ], "count": 11, "idx": 11 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [ [ "UNION ALL", { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "2", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": [], "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 5, "last": 10 } ] ], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 10 } ], "brackets": 0, "strict": false, "errors": [] } } }, "cteStatementParser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@32" }, { "@type": "@33" }, { "@type": "@34" }, { "@type": "@35" }, { "@type": "@36" }, { "@type": "@37" }, { "@type": "@38" }, { "@type": "@39" } ], "count": 8, "idx": 8 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "col1", "expr": "col1", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "cte", "column": null, "expr": "cte", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 6 } ], "brackets": 0, "strict": false, "errors": [] }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": null, "last": null }, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 36 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseWithStatement1.in000066400000000000000000000001371455302707200234370ustar00rootroot00000000000000CREATE table table_name WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FROM ctesql-parser-5.9.0/tests/data/parser/parseWithStatement1.out000066400000000000000000000623651455302707200236530ustar00rootroot00000000000000{ "query": "CREATE table table_name WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FROM cte", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE table table_name WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FROM cte", "len": 95, "last": 95, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table_name", "value": "table_name", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNION ALL", "value": "UNION ALL", "keyword": "UNION ALL", "type": 1, "flags": 7, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 38, "idx": 38 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table_name", "column": null, "expr": "table_name", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\WithStatement", "withers": { "cte": { "@type": "PhpMyAdmin\\SqlParser\\Components\\WithKeyword", "name": "cte", "columns": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "col1" ], "values": [ "col1" ] } ], "statement": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" }, { "@type": "@29" } ], "count": 11, "idx": 11 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [ [ "UNION ALL", { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "2", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": [], "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 5, "last": 10 } ] ], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 10 } ], "brackets": 0, "strict": false, "errors": [] } } }, "cteStatementParser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@32" }, { "@type": "@33" }, { "@type": "@34" }, { "@type": "@35" }, { "@type": "@36" }, { "@type": "@37" }, { "@type": "@38" }, { "@type": "@39" } ], "count": 8, "idx": 8 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "col1", "expr": "col1", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "cte", "column": null, "expr": "cte", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 6 } ], "brackets": 0, "strict": false, "errors": [] }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": null, "last": null }, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 36 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseWithStatement2.in000066400000000000000000000001601455302707200234340ustar00rootroot00000000000000INSERT INTO table_name WITH cte (col1) AS ( SELECT 1 ) SELECT col1 FROM cte ON DUPLICATE KEY UPDATE col_name = 3sql-parser-5.9.0/tests/data/parser/parseWithStatement2.out000066400000000000000000000606641455302707200236540ustar00rootroot00000000000000{ "query": "INSERT INTO table_name WITH cte (col1) AS ( SELECT 1 ) SELECT col1 FROM cte ON DUPLICATE KEY UPDATE col_name = 3", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "INSERT INTO table_name WITH cte (col1) AS ( SELECT 1 ) SELECT col1 FROM cte ON DUPLICATE KEY UPDATE col_name = 3", "len": 112, "last": 112, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table_name", "value": "table_name", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DUPLICATE", "value": "DUPLICATE", "keyword": "DUPLICATE", "type": 1, "flags": 1, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "KEY", "value": "KEY", "keyword": "KEY", "type": 1, "flags": 19, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UPDATE", "value": "UPDATE", "keyword": "UPDATE", "type": 1, "flags": 3, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 99 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col_name", "value": "col_name", "keyword": null, "type": 0, "flags": 0, "position": 100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 108 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 46, "idx": 46 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table_name", "column": null, "expr": "table_name", "alias": null, "function": null, "subquery": null }, "columns": null, "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": null, "set": null, "select": null, "with": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\WithStatement", "withers": { "cte": { "@type": "PhpMyAdmin\\SqlParser\\Components\\WithKeyword", "name": "cte", "columns": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "col1" ], "values": [ "col1" ] } ], "statement": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" } ], "count": 5, "idx": 5 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 4 } ], "brackets": 0, "strict": false, "errors": [] } } }, "cteStatementParser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" }, { "@type": "@29" }, { "@type": "@30" }, { "@type": "@31" }, { "@type": "@32" }, { "@type": "@33" } ], "count": 8, "idx": 8 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "col1", "expr": "col1", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "cte", "column": null, "expr": "cte", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 7 } ], "brackets": 0, "strict": false, "errors": [] }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": null, "last": null }, "onDuplicateSet": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "col_name", "value": "3" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 44 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseWithStatement3.in000066400000000000000000000004661455302707200234460ustar00rootroot00000000000000WITH categories(identifier, name, parent_id) AS ( SELECT c.identifier, c.name, c.parent_id FROM category c WHERE c.identifier = 'a' UNION ALL SELECT c.identifier, c.name, c.parent_id FROM categories, category c WHERE c.identifier = categories.parent_id ), foo AS ( SELECT * FROM test ) SELECT * FROM categoriessql-parser-5.9.0/tests/data/parser/parseWithStatement3.out000066400000000000000000002027071455302707200236510ustar00rootroot00000000000000{ "query": "WITH categories(identifier, name, parent_id) AS ( SELECT c.identifier, c.name, c.parent_id FROM category c WHERE c.identifier = 'a' UNION ALL SELECT c.identifier, c.name, c.parent_id FROM categories, category c WHERE c.identifier = categories.parent_id ), foo AS ( SELECT * FROM test ) SELECT * FROM categories", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "WITH categories(identifier, name, parent_id) AS ( SELECT c.identifier, c.name, c.parent_id FROM category c WHERE c.identifier = 'a' UNION ALL SELECT c.identifier, c.name, c.parent_id FROM categories, category c WHERE c.identifier = categories.parent_id ), foo AS ( SELECT * FROM test ) SELECT * FROM categories", "len": 310, "last": 310, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "categories", "value": "categories", "keyword": null, "type": 0, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "identifier", "value": "identifier", "keyword": null, "type": 0, "flags": 0, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 1, "flags": 1, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "parent_id", "value": "parent_id", "keyword": null, "type": 0, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "identifier", "value": "identifier", "keyword": null, "type": 0, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 0, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "parent_id", "value": "parent_id", "keyword": null, "type": 0, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "category", "value": "category", "keyword": null, "type": 0, "flags": 0, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 104 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 107 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 112 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 113 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 114 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "identifier", "value": "identifier", "keyword": null, "type": 0, "flags": 0, "position": 115 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'a'", "value": "a", "keyword": null, "type": 7, "flags": 1, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNION ALL", "value": "UNION ALL", "keyword": "UNION ALL", "type": 1, "flags": 7, "position": 132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 142 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 150 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "identifier", "value": "identifier", "keyword": null, "type": 0, "flags": 0, "position": 151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 161 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 163 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 164 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "name", "value": "name", "keyword": "NAME", "type": 0, "flags": 0, "position": 165 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 169 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 170 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 171 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 172 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "parent_id", "value": "parent_id", "keyword": null, "type": 0, "flags": 0, "position": 173 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 182 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 183 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 187 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "categories", "value": "categories", "keyword": null, "type": 0, "flags": 0, "position": 188 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 198 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 199 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "category", "value": "category", "keyword": null, "type": 0, "flags": 0, "position": 200 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 208 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 209 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 210 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 211 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 216 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "c", "value": "c", "keyword": null, "type": 0, "flags": 0, "position": 217 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 218 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "identifier", "value": "identifier", "keyword": null, "type": 0, "flags": 0, "position": 219 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 229 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 230 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 231 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "categories", "value": "categories", "keyword": null, "type": 0, "flags": 0, "position": 232 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 242 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "parent_id", "value": "parent_id", "keyword": null, "type": 0, "flags": 0, "position": 243 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 252 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 253 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 254 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 255 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "foo", "value": "foo", "keyword": null, "type": 0, "flags": 0, "position": 256 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 259 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 260 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 262 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 263 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 264 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 265 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 271 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 272 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 273 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 274 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 278 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "test", "value": "test", "keyword": null, "type": 0, "flags": 0, "position": 279 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 283 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 284 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 285 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 286 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 292 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 293 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 294 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 295 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 299 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "categories", "value": "categories", "keyword": null, "type": 0, "flags": 0, "position": 300 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 115, "idx": 115 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\WithStatement", "withers": { "categories": { "@type": "PhpMyAdmin\\SqlParser\\Components\\WithKeyword", "name": "categories", "columns": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "identifier", "name", "parent_id" ], "values": [ "identifier", "name", "parent_id" ] } ], "statement": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" }, { "@type": "@29" }, { "@type": "@30" }, { "@type": "@31" }, { "@type": "@32" }, { "@type": "@33" }, { "@type": "@34" }, { "@type": "@35" }, { "@type": "@36" }, { "@type": "@37" }, { "@type": "@38" }, { "@type": "@39" }, { "@type": "@40" }, { "@type": "@41" }, { "@type": "@42" }, { "@type": "@43" }, { "@type": "@44" }, { "@type": "@45" }, { "@type": "@46" }, { "@type": "@47" }, { "@type": "@48" }, { "@type": "@49" }, { "@type": "@50" }, { "@type": "@51" }, { "@type": "@52" }, { "@type": "@53" }, { "@type": "@54" }, { "@type": "@55" }, { "@type": "@56" }, { "@type": "@57" }, { "@type": "@58" }, { "@type": "@59" }, { "@type": "@60" }, { "@type": "@61" }, { "@type": "@62" }, { "@type": "@63" }, { "@type": "@64" }, { "@type": "@65" }, { "@type": "@66" }, { "@type": "@67" }, { "@type": "@68" }, { "@type": "@69" }, { "@type": "@70" }, { "@type": "@71" }, { "@type": "@72" }, { "@type": "@73" }, { "@type": "@74" }, { "@type": "@75" }, { "@type": "@76" }, { "@type": "@77" }, { "@type": "@78" }, { "@type": "@79" }, { "@type": "@80" }, { "@type": "@81" }, { "@type": "@82" }, { "@type": "@83" }, { "@type": "@84" }, { "@type": "@85" }, { "@type": "@86" }, { "@type": "@87" }, { "@type": "@88" }, { "@type": "@89" } ], "count": 72, "idx": 72 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "c", "column": "identifier", "expr": "c.identifier", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "c", "column": "name", "expr": "c.name", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "c", "column": "parent_id", "expr": "c.parent_id", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "category", "column": null, "expr": "category", "alias": "c", "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "c", "identifier", "a" ], "isOperator": false, "expr": "c.identifier = 'a'" } ], "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [ [ "UNION ALL", { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "c", "column": "identifier", "expr": "c.identifier", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "c", "column": "name", "expr": "c.name", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "c", "column": "parent_id", "expr": "c.parent_id", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "categories", "column": null, "expr": "categories", "alias": null, "function": null, "subquery": null }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "category", "column": null, "expr": "category", "alias": "c", "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "c", "identifier", "categories", "parent_id" ], "isOperator": false, "expr": "c.identifier = categories.parent_id" } ], "group": null, "group_options": null, "having": null, "order": [], "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 33, "last": 71 } ] ], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 71 } ], "brackets": 0, "strict": false, "errors": [] } }, "foo": { "@type": "PhpMyAdmin\\SqlParser\\Components\\WithKeyword", "name": "foo", "columns": [], "statement": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@98" }, { "@type": "@99" }, { "@type": "@100" }, { "@type": "@101" }, { "@type": "@102" }, { "@type": "@103" }, { "@type": "@104" }, { "@type": "@105" }, { "@type": "@106" } ], "count": 9, "idx": 9 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "test", "column": null, "expr": "test", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 8 } ], "brackets": 0, "strict": false, "errors": [] } } }, "cteStatementParser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@109" }, { "@type": "@110" }, { "@type": "@111" }, { "@type": "@112" }, { "@type": "@113" }, { "@type": "@114" }, { "@type": "@115" }, { "@type": "@116" } ], "count": 8, "idx": 8 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "categories", "column": null, "expr": "categories", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 6 } ], "brackets": 0, "strict": false, "errors": [] }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 113 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseWithStatement4.in000066400000000000000000000001201455302707200234320ustar00rootroot00000000000000CREATE table table_name AS WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) NOsql-parser-5.9.0/tests/data/parser/parseWithStatement4.out000066400000000000000000000513021455302707200236430ustar00rootroot00000000000000{ "query": "CREATE table table_name AS WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) NO", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE table table_name AS WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) NO", "len": 80, "last": 80, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table_name", "value": "table_name", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNION ALL", "value": "UNION ALL", "keyword": "UNION ALL", "type": 1, "flags": 7, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NO", "value": "NO", "keyword": "NO", "type": 1, "flags": 1, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 34, "idx": 35 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table_name", "column": null, "expr": "table_name", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\WithStatement", "withers": { "cte": { "@type": "PhpMyAdmin\\SqlParser\\Components\\WithKeyword", "name": "cte", "columns": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "col1" ], "values": [ "col1" ] } ], "statement": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" }, { "@type": "@29" }, { "@type": "@30" }, { "@type": "@31" } ], "count": 11, "idx": 11 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [ [ "UNION ALL", { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "2", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": [], "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 5, "last": 10 } ] ], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 10 } ], "brackets": 0, "strict": false, "errors": [] } } }, "cteStatementParser": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": null, "last": null }, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 31 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "An expression was expected.", { "@type": "@34" }, 0 ], [ "Unexpected end of the WITH CTE.", { "@type": "@34" }, 0 ], [ "Unrecognized statement type.", { "@type": "@34" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseWithStatement5.in000066400000000000000000000001371455302707200234430ustar00rootroot00000000000000CREATE view view_name AS WITH aa(col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FROM ctesql-parser-5.9.0/tests/data/parser/parseWithStatement5.out000066400000000000000000000631651455302707200236560ustar00rootroot00000000000000{ "query": "CREATE view view_name AS WITH aa(col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FROM cte", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE view view_name AS WITH aa(col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FROM cte", "len": 95, "last": 95, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "view", "value": "view", "keyword": "VIEW", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "view_name", "value": "view_name", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 25 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "aa", "value": "aa", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNION ALL", "value": "UNION ALL", "keyword": "UNION ALL", "type": 1, "flags": 7, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 81 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 82 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 91 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 92 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 39, "idx": 39 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "view_name", "column": null, "expr": "view_name", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\WithStatement", "withers": { "aa": { "@type": "PhpMyAdmin\\SqlParser\\Components\\WithKeyword", "name": "aa", "columns": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "col1" ], "values": [ "col1" ] } ], "statement": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" }, { "@type": "@29" }, { "@type": "@30" } ], "count": 11, "idx": 11 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [ [ "UNION ALL", { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "2", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": [], "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 5, "last": 10 } ] ], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 10 } ], "brackets": 0, "strict": false, "errors": [] } } }, "cteStatementParser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@33" }, { "@type": "@34" }, { "@type": "@35" }, { "@type": "@36" }, { "@type": "@37" }, { "@type": "@38" }, { "@type": "@39" }, { "@type": "@40" } ], "count": 8, "idx": 8 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "col1", "expr": "col1", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "cte", "column": null, "expr": "cte", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 6 } ], "brackets": 0, "strict": false, "errors": [] }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": null, "last": null }, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [ { "@type": "@39" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "view" } }, "first": 0, "last": 38 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseWithStatement6.in000066400000000000000000000001341455302707200234410ustar00rootroot00000000000000CREATE view view_name WITH aa(col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FROM ctesql-parser-5.9.0/tests/data/parser/parseWithStatement6.out000066400000000000000000000370141455302707200236510ustar00rootroot00000000000000{ "query": "CREATE view view_name WITH aa(col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FROM cte", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE view view_name WITH aa(col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FROM cte", "len": 92, "last": 92, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "view", "value": "view", "keyword": "VIEW", "type": 1, "flags": 1, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "view_name", "value": "view_name", "keyword": null, "type": 0, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 26 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "aa", "value": "aa", "keyword": null, "type": 0, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNION ALL", "value": "UNION ALL", "keyword": "UNION ALL", "type": 1, "flags": 7, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 37, "idx": 37 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "view_name", "column": null, "expr": "view_name", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [ { "@type": "@9" }, { "@type": "@10" }, { "@type": "@11" }, { "@type": "@12" }, { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" }, { "@type": "@29" }, { "@type": "@30" }, { "@type": "@31" }, { "@type": "@32" }, { "@type": "@33" }, { "@type": "@34" }, { "@type": "@35" }, { "@type": "@36" }, { "@type": "@37" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "view" } }, "first": 0, "last": 36 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseWithStatement7.in000066400000000000000000000001571455302707200234470ustar00rootroot00000000000000WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT * FROM cte INNER JOIN table2 ON table2.col1=cte.col1;sql-parser-5.9.0/tests/data/parser/parseWithStatement7.out000066400000000000000000000716461455302707200236630ustar00rootroot00000000000000{ "query": "WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT * FROM cte INNER JOIN table2 ON table2.col1=cte.col1;", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT * FROM cte INNER JOIN table2 ON table2.col1=cte.col1;", "len": 111, "last": 111, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNION ALL", "value": "UNION ALL", "keyword": "UNION ALL", "type": 1, "flags": 7, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*", "value": "*", "keyword": null, "type": 2, "flags": 16, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INNER JOIN", "value": "INNER JOIN", "keyword": "INNER JOIN", "type": 1, "flags": 7, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table2", "value": "table2", "keyword": null, "type": 0, "flags": 0, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 96 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 97 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 105 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 106 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 47, "idx": 47 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\WithStatement", "withers": { "cte": { "@type": "PhpMyAdmin\\SqlParser\\Components\\WithKeyword", "name": "cte", "columns": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "col1" ], "values": [ "col1" ] } ], "statement": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" } ], "count": 11, "idx": 11 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [ [ "UNION ALL", { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "2", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": [], "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 5, "last": 10 } ] ], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 10 } ], "brackets": 0, "strict": false, "errors": [] } } }, "cteStatementParser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" }, { "@type": "@29" }, { "@type": "@30" }, { "@type": "@31" }, { "@type": "@32" }, { "@type": "@33" }, { "@type": "@34" }, { "@type": "@35" }, { "@type": "@36" }, { "@type": "@37" }, { "@type": "@38" }, { "@type": "@39" }, { "@type": "@40" }, { "@type": "@41" }, { "@type": "@42" }, { "@type": "@43" }, { "@type": "@44" }, { "@type": "@45" }, { "@type": "@46" }, { "@type": "@47" }, { "@type": "@48" } ], "count": 23, "idx": 23 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "*", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "cte", "column": null, "expr": "cte", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword", "type": "INNER", "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table2", "column": null, "expr": "table2", "alias": null, "function": null, "subquery": null }, "on": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Condition", "identifiers": [ "table2", "col1", "cte" ], "isOperator": false, "expr": "table2.col1=cte.col1" } ], "using": null } ], "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 20 } ], "brackets": 0, "strict": false, "errors": [] }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 45 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }sql-parser-5.9.0/tests/data/parser/parseWithStatementErr.in000066400000000000000000000001351455302707200240250ustar00rootroot00000000000000INSERT INTO table_name WITH cte col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FROM ctesql-parser-5.9.0/tests/data/parser/parseWithStatementErr.out000066400000000000000000000352601455302707200242350ustar00rootroot00000000000000{ "query": "INSERT INTO table_name WITH cte col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FROM cte", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "INSERT INTO table_name WITH cte col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FROM cte", "len": 93, "last": 93, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table_name", "value": "table_name", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNION ALL", "value": "UNION ALL", "keyword": "UNION ALL", "type": 1, "flags": 7, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 80 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 90 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 37, "idx": 38 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table_name", "column": null, "expr": "table_name", "alias": null, "function": null, "subquery": null }, "columns": null, "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": null, "set": null, "select": null, "with": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\WithStatement", "withers": { "cte": { "@type": "PhpMyAdmin\\SqlParser\\Components\\WithKeyword", "name": "cte", "columns": [], "statement": null } }, "cteStatementParser": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": null, "last": null }, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 9 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unexpected token.", { "@type": "@12" }, 0 ], [ "Unexpected end of the WITH CTE.", { "@type": "@12" }, 0 ], [ "Unexpected token.", { "@type": "@12" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@12" }, 0 ], [ "Unrecognized statement type.", { "@type": "@15" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseWithStatementErr1.in000066400000000000000000000001341455302707200241050ustar00rootroot00000000000000CREATE table table_name WITH cte (col1) ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FROM ctesql-parser-5.9.0/tests/data/parser/parseWithStatementErr1.out000066400000000000000000000460431455302707200243170ustar00rootroot00000000000000{ "query": "CREATE table table_name WITH cte (col1) ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FROM cte", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE table table_name WITH cte (col1) ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FROM cte", "len": 92, "last": 92, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table_name", "value": "table_name", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNION ALL", "value": "UNION ALL", "keyword": "UNION ALL", "type": 1, "flags": 7, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 79 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 83 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 88 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 89 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 36, "idx": 36 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table_name", "column": null, "expr": "table_name", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\WithStatement", "withers": { "cte": { "@type": "PhpMyAdmin\\SqlParser\\Components\\WithKeyword", "name": "cte", "columns": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "col1" ], "values": [ "col1" ] } ], "statement": null } }, "cteStatementParser": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": null, "last": null }, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [ [ "UNION ALL", { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "2", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": [], "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 20, "last": 27 } ] ], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 14, "last": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "col1", "expr": "col1", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "cte", "column": null, "expr": "cte", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 28, "last": 34 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "AS keyword was expected.", { "@type": "@16" }, 0 ], [ "Unexpected end of the WITH CTE.", { "@type": "@16" }, 0 ], [ "This type of clause was previously parsed.", { "@type": "@30" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseWithStatementErr2.in000066400000000000000000000000621455302707200241060ustar00rootroot00000000000000WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 )sql-parser-5.9.0/tests/data/parser/parseWithStatementErr2.out000066400000000000000000000372661455302707200243270ustar00rootroot00000000000000{ "query": "WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 )", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 )", "len": 50, "last": 50, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNION ALL", "value": "UNION ALL", "keyword": "UNION ALL", "type": 1, "flags": 7, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 24, "idx": 24 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\WithStatement", "withers": { "cte": { "@type": "PhpMyAdmin\\SqlParser\\Components\\WithKeyword", "name": "cte", "columns": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "col1" ], "values": [ "col1" ] } ], "statement": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" } ], "count": 11, "idx": 11 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [ [ "UNION ALL", { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "2", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": [], "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 5, "last": 10 } ] ], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 10 } ], "brackets": 0, "strict": false, "errors": [] } } }, "cteStatementParser": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 22 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "An expression was expected.", { "@type": "@25" }, 0 ], [ "Unexpected end of the WITH CTE.", { "@type": "@25" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseWithStatementErr3.in000066400000000000000000000001131455302707200241040ustar00rootroot00000000000000CREATE table table_name WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ),sql-parser-5.9.0/tests/data/parser/parseWithStatementErr3.out000066400000000000000000000472151455302707200243230ustar00rootroot00000000000000{ "query": "CREATE table table_name WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ),", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE table table_name WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ),", "len": 75, "last": 75, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table_name", "value": "table_name", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNION ALL", "value": "UNION ALL", "keyword": "UNION ALL", "type": 1, "flags": 7, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 31, "idx": 31 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table_name", "column": null, "expr": "table_name", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\WithStatement", "withers": { "cte": { "@type": "PhpMyAdmin\\SqlParser\\Components\\WithKeyword", "name": "cte", "columns": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "col1" ], "values": [ "col1" ] } ], "statement": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" }, { "@type": "@29" } ], "count": 11, "idx": 11 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [ [ "UNION ALL", { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "2", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": [], "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 5, "last": 10 } ] ], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 10 } ], "brackets": 0, "strict": false, "errors": [] } } }, "cteStatementParser": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": null, "last": null }, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 29 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "The name of the CTE was expected.", { "@type": "@32" }, 0 ], [ "Unexpected end of the WITH CTE.", { "@type": "@32" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseWithStatementErr4.in000066400000000000000000000001151455302707200241070ustar00rootroot00000000000000CREATE table table_name WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) NOsql-parser-5.9.0/tests/data/parser/parseWithStatementErr4.out000066400000000000000000000501401455302707200243130ustar00rootroot00000000000000{ "query": "CREATE table table_name WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) NO", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE table table_name WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) NO", "len": 77, "last": 77, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table_name", "value": "table_name", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 52 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 53 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNION ALL", "value": "UNION ALL", "keyword": "UNION ALL", "type": 1, "flags": 7, "position": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 64 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 72 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 73 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NO", "value": "NO", "keyword": "NO", "type": 1, "flags": 1, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 32, "idx": 33 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table_name", "column": null, "expr": "table_name", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\WithStatement", "withers": { "cte": { "@type": "PhpMyAdmin\\SqlParser\\Components\\WithKeyword", "name": "cte", "columns": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "col1" ], "values": [ "col1" ] } ], "statement": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" }, { "@type": "@24" }, { "@type": "@25" }, { "@type": "@26" }, { "@type": "@27" }, { "@type": "@28" }, { "@type": "@29" } ], "count": 11, "idx": 11 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [ [ "UNION ALL", { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "2", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": [], "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 5, "last": 10 } ] ], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 10 } ], "brackets": 0, "strict": false, "errors": [] } } }, "cteStatementParser": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": null, "last": null }, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 29 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "An expression was expected.", { "@type": "@32" }, 0 ], [ "Unexpected end of the WITH CTE.", { "@type": "@32" }, 0 ], [ "Unrecognized statement type.", { "@type": "@32" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseWithStatementErr5.in000066400000000000000000000001111455302707200241040ustar00rootroot00000000000000CREATE table table_name WITH (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) NOsql-parser-5.9.0/tests/data/parser/parseWithStatementErr5.out000066400000000000000000000301411455302707200243130ustar00rootroot00000000000000{ "query": "CREATE table table_name WITH (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) NO", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "CREATE table table_name WITH (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) NO", "len": 73, "last": 73, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table_name", "value": "table_name", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 13 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 24 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 35 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 36 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNION ALL", "value": "UNION ALL", "keyword": "UNION ALL", "type": 1, "flags": 7, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 59 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 69 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 70 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NO", "value": "NO", "keyword": "NO", "type": 1, "flags": 1, "position": 71 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 30, "idx": 31 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table_name", "column": null, "expr": "table_name", "alias": null, "function": null, "subquery": null }, "entityOptions": null, "fields": null, "with": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\WithStatement", "withers": [], "cteStatementParser": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": null, "last": null }, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 0, "last": 7 } ], "brackets": 1, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "The name of the CTE was expected.", { "@type": "@10" }, 0 ], [ "Unexpected end of the WITH CTE.", { "@type": "@10" }, 0 ], [ "Unexpected beginning of statement.", { "@type": "@11" }, 0 ], [ "Unrecognized statement type.", { "@type": "@14" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseWithStatementErr6.in000066400000000000000000000002721455302707200241150ustar00rootroot00000000000000INSERT INTO table_name WITH cte (col1) AS ( INSERT INTO table_name (column1, column2, column3) VALUES (value1, value2, value3) ) SELECT col1 FROM cte ON DUPLICATE KEY UPDATE col_name = 3sql-parser-5.9.0/tests/data/parser/parseWithStatementErr6.out000066400000000000000000000712311455302707200243210ustar00rootroot00000000000000{ "query": "INSERT INTO table_name WITH cte (col1) AS ( INSERT INTO table_name (column1, column2, column3) VALUES (value1, value2, value3) ) SELECT col1 FROM cte ON DUPLICATE KEY UPDATE col_name = 3", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "INSERT INTO table_name WITH cte (col1) AS ( INSERT INTO table_name (column1, column2, column3) VALUES (value1, value2, value3) ) SELECT col1 FROM cte ON DUPLICATE KEY UPDATE col_name = 3", "len": 186, "last": 186, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 6 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 7 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 11 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table_name", "value": "table_name", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 12 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 32 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 41 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 42 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "table_name", "value": "table_name", "keyword": "TABLE_NAME", "type": 1, "flags": 1, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 67 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "column1", "value": "column1", "keyword": null, "type": 0, "flags": 0, "position": 68 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "column2", "value": "column2", "keyword": null, "type": 0, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 84 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 85 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "column3", "value": "column3", "keyword": null, "type": 0, "flags": 0, "position": 86 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 93 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 94 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 95 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 101 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 102 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "value1", "value": "value1", "keyword": null, "type": 0, "flags": 0, "position": 103 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 109 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 110 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "value2", "value": "value2", "keyword": null, "type": 0, "flags": 0, "position": 111 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "value3", "value": "value3", "keyword": null, "type": 0, "flags": 0, "position": 119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 125 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 128 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 129 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 140 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 141 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 145 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 146 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 150 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DUPLICATE", "value": "DUPLICATE", "keyword": "DUPLICATE", "type": 1, "flags": 1, "position": 153 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 162 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "KEY", "value": "KEY", "keyword": "KEY", "type": 1, "flags": 19, "position": 163 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 166 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UPDATE", "value": "UPDATE", "keyword": "UPDATE", "type": 1, "flags": 3, "position": 167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 173 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col_name", "value": "col_name", "keyword": null, "type": 0, "flags": 0, "position": 174 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 182 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 183 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 184 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "3", "value": 3, "keyword": null, "type": 6, "flags": 0, "position": 185 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 70, "idx": 71 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table_name", "column": null, "expr": "table_name", "alias": null, "function": null, "subquery": null }, "columns": null, "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": null, "set": null, "select": null, "with": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\WithStatement", "withers": { "cte": { "@type": "PhpMyAdmin\\SqlParser\\Components\\WithKeyword", "name": "cte", "columns": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "col1" ], "values": [ "col1" ] } ], "statement": null } }, "cteStatementParser": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": null, "last": null }, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement", "into": { "@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword", "type": null, "dest": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "table_name", "column": null, "expr": "table_name", "alias": null, "function": null, "subquery": null }, "columns": [ "column1", "column2", "column3" ], "values": null, "fields_options": null, "fields_keyword": null, "lines_options": null }, "values": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "value1", "value2", "value3" ], "values": [ "value1", "value2", "value3" ] } ], "set": null, "select": null, "with": null, "onDuplicateSet": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 16, "last": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "col1", "expr": "col1", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "cte", "column": null, "expr": "cte", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 46, "last": 55 } ], "brackets": 1, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Subquery of the CTE was expected.", { "@type": "@18" }, 0 ], [ "Unexpected end of the WITH CTE.", { "@type": "@18" }, 0 ], [ "Unexpected token.", { "@type": "@18" }, 0 ], [ "Unexpected token.", { "@type": "@48" }, 0 ], [ "Unrecognized statement type.", { "@type": "@58" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseWithStatementErr7.in000066400000000000000000000001051455302707200241110ustar00rootroot00000000000000WITH cte (col1) AS ( SELECT 1 UNN ALL SELECT 2 ) SELECT col1 FROM ctesql-parser-5.9.0/tests/data/parser/parseWithStatementErr7.out000066400000000000000000000341501455302707200243210ustar00rootroot00000000000000{ "query": "WITH cte (col1) AS ( SELECT 1 UNN ALL SELECT 2 ) SELECT col1 FROM cte", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "WITH cte (col1) AS ( SELECT 1 UNN ALL SELECT 2 ) SELECT col1 FROM cte", "len": 69, "last": 69, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNN", "value": "UNN", "keyword": null, "type": 0, "flags": 0, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 33 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALL", "value": "ALL", "keyword": "ALL", "type": 1, "flags": 3, "position": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 37 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 38 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 45 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 55 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 56 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 60 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 61 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 34, "idx": 34 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\WithStatement", "withers": { "cte": { "@type": "PhpMyAdmin\\SqlParser\\Components\\WithKeyword", "name": "cte", "columns": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "col1" ], "values": [ "col1" ] } ], "statement": null } }, "cteStatementParser": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "col1", "expr": "col1", "alias": null, "function": null, "subquery": null } ], "from": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "cte", "column": null, "expr": "cte", "alias": null, "function": null, "subquery": null } ], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 24, "last": 32 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "Unrecognized keyword.", { "@type": "@20" }, 0 ], [ "This type of clause was previously parsed.", { "@type": "@22" }, 0 ], [ "Unexpected end of the WITH CTE.", { "@type": "@26" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parseWithStatementErr8.in000066400000000000000000000001051455302707200241120ustar00rootroot00000000000000WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FR ctesql-parser-5.9.0/tests/data/parser/parseWithStatementErr8.out000066400000000000000000000471561455302707200243340ustar00rootroot00000000000000{ "query": "WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FR cte", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": "WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FR cte", "len": 69, "last": 69, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WITH", "value": "WITH", "keyword": "WITH", "type": 1, "flags": 3, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 4 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 5 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 8 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 9 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 10 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 14 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 15 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AS", "value": "AS", "keyword": "AS", "type": 1, "flags": 3, "position": 16 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 18 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 19 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 20 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 21 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 27 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "1", "value": 1, "keyword": null, "type": 6, "flags": 0, "position": 28 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 29 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNION ALL", "value": "UNION ALL", "keyword": "UNION ALL", "type": 1, "flags": 7, "position": 30 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 39 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 40 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 46 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "2", "value": 2, "keyword": null, "type": 6, "flags": 0, "position": 47 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 48 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 49 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 50 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SELECT", "value": "SELECT", "keyword": "SELECT", "type": 1, "flags": 3, "position": 51 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 57 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "col1", "value": "col1", "keyword": null, "type": 0, "flags": 0, "position": 58 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 62 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FR", "value": "FR", "keyword": null, "type": 0, "flags": 0, "position": 63 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "cte", "value": "cte", "keyword": null, "type": 0, "flags": 0, "position": 66 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 32, "idx": 32 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@1" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\WithStatement", "withers": { "cte": { "@type": "PhpMyAdmin\\SqlParser\\Components\\WithKeyword", "name": "cte", "columns": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\ArrayObj", "raw": [ "col1" ], "values": [ "col1" ] } ], "statement": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "@13" }, { "@type": "@14" }, { "@type": "@15" }, { "@type": "@16" }, { "@type": "@17" }, { "@type": "@18" }, { "@type": "@19" }, { "@type": "@20" }, { "@type": "@21" }, { "@type": "@22" }, { "@type": "@23" } ], "count": 11, "idx": 11 }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "1", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [ [ "UNION ALL", { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "2", "alias": null, "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": [], "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 5, "last": 10 } ] ], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 10 } ], "brackets": 0, "strict": false, "errors": [] } } }, "cteStatementParser": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 0, "last": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement", "expr": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "col1", "expr": "col1", "alias": "FR", "function": null, "subquery": null } ], "from": [], "index_hints": null, "partition": null, "where": null, "group": null, "group_options": null, "having": null, "order": null, "limit": null, "procedure": null, "into": null, "join": null, "union": [], "end_options": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "first": 24, "last": 30 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [ [ "An alias was previously found.", { "@type": "@32" }, 0 ], [ "Unexpected token.", { "@type": "@32" }, 0 ], [ "An alias was previously found.", { "@type": "@32" }, 0 ], [ "Unexpected token.", { "@type": "@32" }, 0 ] ] } }sql-parser-5.9.0/tests/data/parser/parsephpMyAdminExport1.in000066400000000000000000000051261455302707200241120ustar00rootroot00000000000000-- phpMyAdmin SQL Dump -- version 5.0.0-dev -- https://www.phpmyadmin.net/ -- -- Hôte : xxxx.xxxxx.eu-west-1.rds.amazonaws.com -- Généré le : mer. 05 sep. 2018 à 00:03 -- Version du serveur : 10.0.24-MariaDB -- Version de PHP : 7.2.8-1+ubuntu18.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Base de données : `xxxxxdbnamexxxxx` -- -- -------------------------------------------------------- -- -- Structure de la table `monitoring__times` -- CREATE TABLE `monitoring__times` ( `idServer` int(11) UNSIGNED NOT NULL COMMENT 'Id of server', `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Time UTC', `totalTime` float UNSIGNED NOT NULL COMMENT 'Total time in ms' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Déclencheurs `monitoring__times` -- DELIMITER $$ CREATE TRIGGER `copyTimes` AFTER INSERT ON `monitoring__times` FOR EACH ROW INSERT INTO monitoring__times_mirror (`idServer`, `time`, `totalTime`) VALUES(new.idServer, new.time, new.totalTime) $$ DELIMITER ; DELIMITER $$ CREATE TRIGGER `deleteTimes` AFTER DELETE ON `monitoring__times` FOR EACH ROW DELETE FROM monitoring__times_mirror WHERE `idServer`=old.idServer AND `time`=old.time AND `totalTime`=old.totalTime $$ DELIMITER ; DELIMITER $$ CREATE TRIGGER `updateTimes` AFTER UPDATE ON `monitoring__times` FOR EACH ROW UPDATE monitoring__times_mirror SET `idServer`=new.idServer, `time`=new.time, `totalTime`=new.totalTime WHERE `idServer`=old.idServer AND `time`=old.time AND `totalTime`=old.totalTime $$ DELIMITER ; -- -- Index pour les tables déchargées -- -- -- Index pour la table `monitoring__times` -- ALTER TABLE `monitoring__times` ADD UNIQUE KEY `idServer` (`idServer`,`time`) USING BTREE COMMENT 'Unique idServer/time', ADD KEY `INDEX_totalTime` (`totalTime`) USING BTREE COMMENT 'Index for totalTime column'; -- -- Contraintes pour les tables déchargées -- -- -- Contraintes pour la table `monitoring__times` -- ALTER TABLE `monitoring__times` ADD CONSTRAINT `monitoring__times__idServer` FOREIGN KEY (`idServer`) REFERENCES `monitoring__servers` (`id`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; sql-parser-5.9.0/tests/data/parser/parsephpMyAdminExport1.out000066400000000000000000006347761455302707200243360ustar00rootroot00000000000000{ "query": "-- phpMyAdmin SQL Dump\n-- version 5.0.0-dev\n-- https://www.phpmyadmin.net/\n--\n-- Hôte : xxxx.xxxxx.eu-west-1.rds.amazonaws.com\n-- Généré le : mer. 05 sep. 2018 à 00:03\n-- Version du serveur : 10.0.24-MariaDB\n-- Version de PHP : 7.2.8-1+ubuntu18.04.1+deb.sury.org+1\n\nSET SQL_MODE = \"NO_AUTO_VALUE_ON_ZERO\";\nSET AUTOCOMMIT = 0;\nSTART TRANSACTION;\nSET time_zone = \"+00:00\";\n\n\n/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;\n/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;\n/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;\n/*!40101 SET NAMES utf8mb4 */;\n\n--\n-- Base de données : `xxxxxdbnamexxxxx`\n--\n\n-- --------------------------------------------------------\n\n--\n-- Structure de la table `monitoring__times`\n--\n\nCREATE TABLE `monitoring__times` (\n `idServer` int(11) UNSIGNED NOT NULL COMMENT 'Id of server',\n `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Time UTC',\n `totalTime` float UNSIGNED NOT NULL COMMENT 'Total time in ms'\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Déclencheurs `monitoring__times`\n--\nDELIMITER $$\nCREATE TRIGGER `copyTimes` AFTER INSERT ON `monitoring__times` FOR EACH ROW INSERT INTO monitoring__times_mirror\n(`idServer`, `time`, `totalTime`) VALUES(new.idServer, new.time, new.totalTime)\n$$\nDELIMITER ;\nDELIMITER $$\nCREATE TRIGGER `deleteTimes` AFTER DELETE ON `monitoring__times` FOR EACH ROW DELETE FROM monitoring__times_mirror\nWHERE `idServer`=old.idServer\nAND `time`=old.time\nAND `totalTime`=old.totalTime\n$$\nDELIMITER ;\nDELIMITER $$\nCREATE TRIGGER `updateTimes` AFTER UPDATE ON `monitoring__times` FOR EACH ROW UPDATE monitoring__times_mirror\nSET `idServer`=new.idServer,\n`time`=new.time,\n`totalTime`=new.totalTime\nWHERE `idServer`=old.idServer\nAND `time`=old.time\nAND `totalTime`=old.totalTime\n$$\nDELIMITER ;\n\n--\n-- Index pour les tables déchargées\n--\n\n--\n-- Index pour la table `monitoring__times`\n--\nALTER TABLE `monitoring__times`\n ADD UNIQUE KEY `idServer` (`idServer`,`time`) USING BTREE COMMENT 'Unique idServer/time',\n ADD KEY `INDEX_totalTime` (`totalTime`) USING BTREE COMMENT 'Index for totalTime column';\n\n--\n-- Contraintes pour les tables déchargées\n--\n\n--\n-- Contraintes pour la table `monitoring__times`\n--\nALTER TABLE `monitoring__times`\n ADD CONSTRAINT `monitoring__times__idServer` FOREIGN KEY (`idServer`) REFERENCES `monitoring__servers` (`id`);\nCOMMIT;\n\n/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;\n/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;\n/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;\n", "lexer": { "@type": "PhpMyAdmin\\SqlParser\\Lexer", "str": { "@type": "PhpMyAdmin\\SqlParser\\UtfString", "str": "-- phpMyAdmin SQL Dump\n-- version 5.0.0-dev\n-- https://www.phpmyadmin.net/\n--\n-- Hôte : xxxx.xxxxx.eu-west-1.rds.amazonaws.com\n-- Généré le : mer. 05 sep. 2018 à 00:03\n-- Version du serveur : 10.0.24-MariaDB\n-- Version de PHP : 7.2.8-1+ubuntu18.04.1+deb.sury.org+1\n\nSET SQL_MODE = \"NO_AUTO_VALUE_ON_ZERO\";\nSET AUTOCOMMIT = 0;\nSTART TRANSACTION;\nSET time_zone = \"+00:00\";\n\n\n/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;\n/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;\n/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;\n/*!40101 SET NAMES utf8mb4 */;\n\n--\n-- Base de données : `xxxxxdbnamexxxxx`\n--\n\n-- --------------------------------------------------------\n\n--\n-- Structure de la table `monitoring__times`\n--\n\nCREATE TABLE `monitoring__times` (\n `idServer` int(11) UNSIGNED NOT NULL COMMENT 'Id of server',\n `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Time UTC',\n `totalTime` float UNSIGNED NOT NULL COMMENT 'Total time in ms'\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Déclencheurs `monitoring__times`\n--\nDELIMITER $$\nCREATE TRIGGER `copyTimes` AFTER INSERT ON `monitoring__times` FOR EACH ROW INSERT INTO monitoring__times_mirror\n(`idServer`, `time`, `totalTime`) VALUES(new.idServer, new.time, new.totalTime)\n$$\nDELIMITER ;\nDELIMITER $$\nCREATE TRIGGER `deleteTimes` AFTER DELETE ON `monitoring__times` FOR EACH ROW DELETE FROM monitoring__times_mirror\nWHERE `idServer`=old.idServer\nAND `time`=old.time\nAND `totalTime`=old.totalTime\n$$\nDELIMITER ;\nDELIMITER $$\nCREATE TRIGGER `updateTimes` AFTER UPDATE ON `monitoring__times` FOR EACH ROW UPDATE monitoring__times_mirror\nSET `idServer`=new.idServer,\n`time`=new.time,\n`totalTime`=new.totalTime\nWHERE `idServer`=old.idServer\nAND `time`=old.time\nAND `totalTime`=old.totalTime\n$$\nDELIMITER ;\n\n--\n-- Index pour les tables déchargées\n--\n\n--\n-- Index pour la table `monitoring__times`\n--\nALTER TABLE `monitoring__times`\n ADD UNIQUE KEY `idServer` (`idServer`,`time`) USING BTREE COMMENT 'Unique idServer/time',\n ADD KEY `INDEX_totalTime` (`totalTime`) USING BTREE COMMENT 'Index for totalTime column';\n\n--\n-- Contraintes pour les tables déchargées\n--\n\n--\n-- Contraintes pour la table `monitoring__times`\n--\nALTER TABLE `monitoring__times`\n ADD CONSTRAINT `monitoring__times__idServer` FOREIGN KEY (`idServer`) REFERENCES `monitoring__servers` (`id`);\nCOMMIT;\n\n/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;\n/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;\n/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;\n", "byteIdx": 2645, "charIdx": 2634, "byteLen": 2646, "charLen": 2635 }, "len": 2635, "last": 2635, "list": { "@type": "PhpMyAdmin\\SqlParser\\TokensList", "tokens": [ { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- phpMyAdmin SQL Dump", "value": "-- phpMyAdmin SQL Dump", "keyword": null, "type": 4, "flags": 4, "position": 0 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- version 5.0.0-dev", "value": "-- version 5.0.0-dev", "keyword": null, "type": 4, "flags": 4, "position": 23 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- https://www.phpmyadmin.net/", "value": "-- https://www.phpmyadmin.net/", "keyword": null, "type": 4, "flags": 4, "position": 44 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 74 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "--\n", "value": "--\n", "keyword": null, "type": 4, "flags": 4, "position": 75 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 77 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- Hôte : xxxx.xxxxx.eu-west-1.rds.amazonaws.com", "value": "-- Hôte : xxxx.xxxxx.eu-west-1.rds.amazonaws.com", "keyword": null, "type": 4, "flags": 4, "position": 78 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 126 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- Généré le : mer. 05 sep. 2018 à 00:03", "value": "-- Généré le : mer. 05 sep. 2018 à 00:03", "keyword": null, "type": 4, "flags": 4, "position": 127 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 168 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- Version du serveur : 10.0.24-MariaDB", "value": "-- Version du serveur : 10.0.24-MariaDB", "keyword": null, "type": 4, "flags": 4, "position": 169 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 209 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- Version de PHP : 7.2.8-1+ubuntu18.04.1+deb.sury.org+1", "value": "-- Version de PHP : 7.2.8-1+ubuntu18.04.1+deb.sury.org+1", "keyword": null, "type": 4, "flags": 4, "position": 210 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 267 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 269 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 272 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SQL_MODE", "value": "SQL_MODE", "keyword": null, "type": 0, "flags": 0, "position": 273 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 281 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 282 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 283 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"NO_AUTO_VALUE_ON_ZERO\"", "value": "NO_AUTO_VALUE_ON_ZERO", "keyword": null, "type": 7, "flags": 2, "position": 284 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 307 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 308 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 309 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 312 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AUTOCOMMIT", "value": "AUTOCOMMIT", "keyword": null, "type": 0, "flags": 0, "position": 313 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 323 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 324 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 325 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "0", "value": 0, "keyword": null, "type": 6, "flags": 0, "position": 326 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 327 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 328 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "START TRANSACTION", "value": "START TRANSACTION", "keyword": "START TRANSACTION", "type": 1, "flags": 7, "position": 329 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 346 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 347 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 348 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 351 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "time_zone", "value": "time_zone", "keyword": null, "type": 0, "flags": 0, "position": 352 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 361 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 362 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 363 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\"+00:00\"", "value": "+00:00", "keyword": null, "type": 7, "flags": 2, "position": 364 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 372 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 373 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/*!40101", "value": "/*!40101", "keyword": null, "type": 4, "flags": 10, "position": 376 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 384 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 385 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 388 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@OLD_CHARACTER_SET_CLIENT", "value": "OLD_CHARACTER_SET_CLIENT", "keyword": null, "type": 8, "flags": 1, "position": 389 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 414 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@@CHARACTER_SET_CLIENT", "value": "CHARACTER_SET_CLIENT", "keyword": null, "type": 8, "flags": 9, "position": 415 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 437 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*/", "value": "*/", "keyword": null, "type": 4, "flags": 2, "position": 438 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 440 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 441 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/*!40101", "value": "/*!40101", "keyword": null, "type": 4, "flags": 10, "position": 442 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 450 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 451 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 454 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@OLD_CHARACTER_SET_RESULTS", "value": "OLD_CHARACTER_SET_RESULTS", "keyword": null, "type": 8, "flags": 1, "position": 455 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 481 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@@CHARACTER_SET_RESULTS", "value": "CHARACTER_SET_RESULTS", "keyword": null, "type": 8, "flags": 9, "position": 482 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 505 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*/", "value": "*/", "keyword": null, "type": 4, "flags": 2, "position": 506 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 508 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 509 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/*!40101", "value": "/*!40101", "keyword": null, "type": 4, "flags": 10, "position": 510 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 518 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 519 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 522 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@OLD_COLLATION_CONNECTION", "value": "OLD_COLLATION_CONNECTION", "keyword": null, "type": 8, "flags": 1, "position": 523 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 548 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@@COLLATION_CONNECTION", "value": "COLLATION_CONNECTION", "keyword": null, "type": 8, "flags": 9, "position": 549 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 571 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*/", "value": "*/", "keyword": null, "type": 4, "flags": 2, "position": 572 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 574 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 575 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/*!40101", "value": "/*!40101", "keyword": null, "type": 4, "flags": 10, "position": 576 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 584 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 585 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 588 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NAMES", "value": "NAMES", "keyword": "NAMES", "type": 1, "flags": 1, "position": 589 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 594 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8mb4", "value": "utf8mb4", "keyword": null, "type": 0, "flags": 0, "position": 595 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 602 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*/", "value": "*/", "keyword": null, "type": 4, "flags": 2, "position": 603 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 605 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 606 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "--\n", "value": "--\n", "keyword": null, "type": 4, "flags": 4, "position": 608 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 610 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- Base de données : `xxxxxdbnamexxxxx`", "value": "-- Base de données : `xxxxxdbnamexxxxx`", "keyword": null, "type": 4, "flags": 4, "position": 611 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 651 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "--\n", "value": "--\n", "keyword": null, "type": 4, "flags": 4, "position": 652 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 654 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- --------------------------------------------------------", "value": "-- --------------------------------------------------------", "keyword": null, "type": 4, "flags": 4, "position": 656 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 715 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "--\n", "value": "--\n", "keyword": null, "type": 4, "flags": 4, "position": 717 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 719 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- Structure de la table `monitoring__times`", "value": "-- Structure de la table `monitoring__times`", "keyword": null, "type": 4, "flags": 4, "position": 720 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 764 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "--\n", "value": "--\n", "keyword": null, "type": 4, "flags": 4, "position": 765 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 767 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 769 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 775 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 776 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 781 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`monitoring__times`", "value": "monitoring__times", "keyword": null, "type": 8, "flags": 2, "position": 782 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 801 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 802 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 803 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`idServer`", "value": "idServer", "keyword": null, "type": 8, "flags": 2, "position": 806 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 816 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "int", "value": "INT", "keyword": "INT", "type": 1, "flags": 11, "position": 817 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 820 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "11", "value": 11, "keyword": null, "type": 6, "flags": 0, "position": 821 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 823 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 824 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 825 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 833 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 834 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 842 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 843 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 850 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Id of server'", "value": "Id of server", "keyword": null, "type": 7, "flags": 1, "position": 851 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 865 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 866 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`time`", "value": "time", "keyword": null, "type": 8, "flags": 2, "position": 869 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 875 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "timestamp", "value": "timestamp", "keyword": "TIMESTAMP", "type": 1, "flags": 41, "position": 876 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 885 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 886 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 894 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT", "value": "DEFAULT", "keyword": "DEFAULT", "type": 1, "flags": 35, "position": 895 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 902 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CURRENT_TIMESTAMP", "value": "CURRENT_TIMESTAMP", "keyword": "CURRENT_TIMESTAMP", "type": 1, "flags": 35, "position": 903 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 920 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON UPDATE", "value": "ON UPDATE", "keyword": "ON UPDATE", "type": 1, "flags": 7, "position": 921 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 930 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CURRENT_TIMESTAMP", "value": "CURRENT_TIMESTAMP", "keyword": "CURRENT_TIMESTAMP", "type": 1, "flags": 35, "position": 931 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 948 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 949 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 956 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Time UTC'", "value": "Time UTC", "keyword": null, "type": 7, "flags": 1, "position": 957 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 967 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 968 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`totalTime`", "value": "totalTime", "keyword": null, "type": 8, "flags": 2, "position": 971 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 982 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "float", "value": "FLOAT", "keyword": "FLOAT", "type": 1, "flags": 11, "position": 983 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 988 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNSIGNED", "value": "UNSIGNED", "keyword": "UNSIGNED", "type": 1, "flags": 3, "position": 989 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 997 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "NOT NULL", "value": "NOT NULL", "keyword": "NOT NULL", "type": 1, "flags": 7, "position": 998 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1006 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 1007 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1014 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Total time in ms'", "value": "Total time in ms", "keyword": null, "type": 7, "flags": 1, "position": 1015 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1033 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1034 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1035 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ENGINE", "value": "ENGINE", "keyword": "ENGINE", "type": 1, "flags": 1, "position": 1036 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 1042 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "InnoDB", "value": "InnoDB", "keyword": null, "type": 0, "flags": 0, "position": 1043 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1049 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DEFAULT CHARSET", "value": "DEFAULT CHARSET", "keyword": "DEFAULT CHARSET", "type": 1, "flags": 7, "position": 1050 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 1065 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8", "value": "utf8", "keyword": null, "type": 0, "flags": 0, "position": 1066 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1070 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLLATE", "value": "COLLATE", "keyword": "COLLATE", "type": 1, "flags": 3, "position": 1071 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 1078 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "utf8_unicode_ci", "value": "utf8_unicode_ci", "keyword": null, "type": 0, "flags": 0, "position": 1079 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 1094 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1095 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "--\n", "value": "--\n", "keyword": null, "type": 4, "flags": 4, "position": 1097 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1099 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- Déclencheurs `monitoring__times`", "value": "-- Déclencheurs `monitoring__times`", "keyword": null, "type": 4, "flags": 4, "position": 1100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1135 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "--\n", "value": "--\n", "keyword": null, "type": 4, "flags": 4, "position": 1136 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 1139 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1148 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 1149 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 1152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1158 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TRIGGER", "value": "TRIGGER", "keyword": "TRIGGER", "type": 1, "flags": 3, "position": 1159 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1166 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`copyTimes`", "value": "copyTimes", "keyword": null, "type": 8, "flags": 2, "position": 1167 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1178 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AFTER", "value": "AFTER", "keyword": "AFTER", "type": 1, "flags": 1, "position": 1179 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1184 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 1185 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1191 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 1192 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1194 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`monitoring__times`", "value": "monitoring__times", "keyword": null, "type": 8, "flags": 2, "position": 1195 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1214 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FOR EACH ROW", "value": "FOR EACH ROW", "keyword": "FOR EACH ROW", "type": 1, "flags": 7, "position": 1215 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1227 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INSERT", "value": "INSERT", "keyword": "INSERT", "type": 1, "flags": 35, "position": 1228 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1234 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "INTO", "value": "INTO", "keyword": "INTO", "type": 1, "flags": 3, "position": 1235 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1239 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "monitoring__times_mirror", "value": "monitoring__times_mirror", "keyword": null, "type": 0, "flags": 0, "position": 1240 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1264 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1265 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`idServer`", "value": "idServer", "keyword": null, "type": 8, "flags": 2, "position": 1266 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1276 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1277 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`time`", "value": "time", "keyword": null, "type": 8, "flags": 2, "position": 1278 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1284 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1285 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`totalTime`", "value": "totalTime", "keyword": null, "type": 8, "flags": 2, "position": 1286 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1297 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1298 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "VALUES", "value": "VALUES", "keyword": "VALUES", "type": 1, "flags": 35, "position": 1299 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 1305 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "new", "value": "new", "keyword": "NEW", "type": 1, "flags": 1, "position": 1306 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1309 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "idServer", "value": "idServer", "keyword": null, "type": 0, "flags": 0, "position": 1310 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1318 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1319 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "new", "value": "new", "keyword": "NEW", "type": 1, "flags": 1, "position": 1320 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1323 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "time", "value": "time", "keyword": "TIME", "type": 0, "flags": 0, "position": 1324 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1328 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1329 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "new", "value": "new", "keyword": "NEW", "type": 1, "flags": 1, "position": 1330 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1333 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "totalTime", "value": "totalTime", "keyword": null, "type": 0, "flags": 0, "position": 1334 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 1343 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1344 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 1345 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1347 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 1348 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1357 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 1358 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1359 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 1360 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1369 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 1370 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1372 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 1373 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1379 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TRIGGER", "value": "TRIGGER", "keyword": "TRIGGER", "type": 1, "flags": 3, "position": 1380 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1387 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`deleteTimes`", "value": "deleteTimes", "keyword": null, "type": 8, "flags": 2, "position": 1388 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1401 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AFTER", "value": "AFTER", "keyword": "AFTER", "type": 1, "flags": 1, "position": 1402 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1407 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 1408 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1414 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 1415 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1417 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`monitoring__times`", "value": "monitoring__times", "keyword": null, "type": 8, "flags": 2, "position": 1418 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1437 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FOR EACH ROW", "value": "FOR EACH ROW", "keyword": "FOR EACH ROW", "type": 1, "flags": 7, "position": 1438 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1450 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELETE", "value": "DELETE", "keyword": "DELETE", "type": 1, "flags": 3, "position": 1451 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1457 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FROM", "value": "FROM", "keyword": "FROM", "type": 1, "flags": 3, "position": 1458 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1462 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "monitoring__times_mirror", "value": "monitoring__times_mirror", "keyword": null, "type": 0, "flags": 0, "position": 1463 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1487 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 1488 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1493 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`idServer`", "value": "idServer", "keyword": null, "type": 8, "flags": 2, "position": 1494 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 1504 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "old", "value": "old", "keyword": null, "type": 0, "flags": 0, "position": 1505 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1508 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "idServer", "value": "idServer", "keyword": null, "type": 0, "flags": 0, "position": 1509 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1517 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 1518 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1521 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`time`", "value": "time", "keyword": null, "type": 8, "flags": 2, "position": 1522 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 1528 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "old", "value": "old", "keyword": null, "type": 0, "flags": 0, "position": 1529 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1532 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "time", "value": "time", "keyword": "TIME", "type": 0, "flags": 0, "position": 1533 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1537 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 1538 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1541 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`totalTime`", "value": "totalTime", "keyword": null, "type": 8, "flags": 2, "position": 1542 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 1553 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "old", "value": "old", "keyword": null, "type": 0, "flags": 0, "position": 1554 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1557 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "totalTime", "value": "totalTime", "keyword": null, "type": 0, "flags": 0, "position": 1558 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1567 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 1568 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1570 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 1571 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1580 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 1581 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1582 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 1583 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1592 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 1593 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1595 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CREATE", "value": "CREATE", "keyword": "CREATE", "type": 1, "flags": 3, "position": 1596 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1602 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TRIGGER", "value": "TRIGGER", "keyword": "TRIGGER", "type": 1, "flags": 3, "position": 1603 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1610 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`updateTimes`", "value": "updateTimes", "keyword": null, "type": 8, "flags": 2, "position": 1611 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1624 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AFTER", "value": "AFTER", "keyword": "AFTER", "type": 1, "flags": 1, "position": 1625 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1630 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UPDATE", "value": "UPDATE", "keyword": "UPDATE", "type": 1, "flags": 3, "position": 1631 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1637 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ON", "value": "ON", "keyword": "ON", "type": 1, "flags": 3, "position": 1638 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1640 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`monitoring__times`", "value": "monitoring__times", "keyword": null, "type": 8, "flags": 2, "position": 1641 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1660 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FOR EACH ROW", "value": "FOR EACH ROW", "keyword": "FOR EACH ROW", "type": 1, "flags": 7, "position": 1661 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1673 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UPDATE", "value": "UPDATE", "keyword": "UPDATE", "type": 1, "flags": 3, "position": 1674 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1680 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "monitoring__times_mirror", "value": "monitoring__times_mirror", "keyword": null, "type": 0, "flags": 0, "position": 1681 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1705 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 1706 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1709 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`idServer`", "value": "idServer", "keyword": null, "type": 8, "flags": 2, "position": 1710 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 1720 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "new", "value": "new", "keyword": "NEW", "type": 1, "flags": 1, "position": 1721 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1724 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "idServer", "value": "idServer", "keyword": null, "type": 0, "flags": 0, "position": 1725 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1733 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1734 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`time`", "value": "time", "keyword": null, "type": 8, "flags": 2, "position": 1735 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 1741 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "new", "value": "new", "keyword": "NEW", "type": 1, "flags": 1, "position": 1742 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1745 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "time", "value": "time", "keyword": "TIME", "type": 0, "flags": 0, "position": 1746 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 1750 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1751 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`totalTime`", "value": "totalTime", "keyword": null, "type": 8, "flags": 2, "position": 1752 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 1763 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "new", "value": "new", "keyword": "NEW", "type": 1, "flags": 1, "position": 1764 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1767 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "totalTime", "value": "totalTime", "keyword": null, "type": 0, "flags": 0, "position": 1768 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1777 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "WHERE", "value": "WHERE", "keyword": "WHERE", "type": 1, "flags": 3, "position": 1778 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1783 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`idServer`", "value": "idServer", "keyword": null, "type": 8, "flags": 2, "position": 1784 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 1794 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "old", "value": "old", "keyword": null, "type": 0, "flags": 0, "position": 1795 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1798 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "idServer", "value": "idServer", "keyword": null, "type": 0, "flags": 0, "position": 1799 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1807 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 1808 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1811 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`time`", "value": "time", "keyword": null, "type": 8, "flags": 2, "position": 1812 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 1818 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "old", "value": "old", "keyword": null, "type": 0, "flags": 0, "position": 1819 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1822 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "time", "value": "time", "keyword": "TIME", "type": 0, "flags": 0, "position": 1823 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1827 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "AND", "value": "AND", "keyword": "AND", "type": 1, "flags": 3, "position": 1828 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1831 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`totalTime`", "value": "totalTime", "keyword": null, "type": 8, "flags": 2, "position": 1832 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 1843 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "old", "value": "old", "keyword": null, "type": 0, "flags": 0, "position": 1844 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ".", "value": ".", "keyword": null, "type": 2, "flags": 16, "position": 1847 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "totalTime", "value": "totalTime", "keyword": null, "type": 0, "flags": 0, "position": 1848 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1857 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "$$", "value": "$$", "keyword": null, "type": 9, "flags": 0, "position": 1858 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1860 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "DELIMITER", "value": "DELIMITER", "keyword": null, "type": 0, "flags": 0, "position": 1861 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1870 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 1871 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1872 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "--\n", "value": "--\n", "keyword": null, "type": 4, "flags": 4, "position": 1874 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1876 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- Index pour les tables déchargées", "value": "-- Index pour les tables déchargées", "keyword": null, "type": 4, "flags": 4, "position": 1877 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1912 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "--\n", "value": "--\n", "keyword": null, "type": 4, "flags": 4, "position": 1913 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1915 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "--\n", "value": "--\n", "keyword": null, "type": 4, "flags": 4, "position": 1917 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1919 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- Index pour la table `monitoring__times`", "value": "-- Index pour la table `monitoring__times`", "keyword": null, "type": 4, "flags": 4, "position": 1920 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1962 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "--\n", "value": "--\n", "keyword": null, "type": 4, "flags": 4, "position": 1963 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1965 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 1966 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1971 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 1972 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1977 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`monitoring__times`", "value": "monitoring__times", "keyword": null, "type": 8, "flags": 2, "position": 1978 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 1997 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ADD", "value": "ADD", "keyword": "ADD", "type": 1, "flags": 3, "position": 2000 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2003 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "UNIQUE KEY", "value": "UNIQUE KEY", "keyword": "UNIQUE KEY", "type": 1, "flags": 23, "position": 2004 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2014 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`idServer`", "value": "idServer", "keyword": null, "type": 8, "flags": 2, "position": 2015 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2025 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2026 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`idServer`", "value": "idServer", "keyword": null, "type": 8, "flags": 2, "position": 2027 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2037 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`time`", "value": "time", "keyword": null, "type": 8, "flags": 2, "position": 2038 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2044 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2045 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 2046 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2051 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BTREE", "value": "BTREE", "keyword": "BTREE", "type": 1, "flags": 1, "position": 2052 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2057 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 2058 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2065 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Unique idServer/time'", "value": "Unique idServer/time", "keyword": null, "type": 7, "flags": 1, "position": 2066 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ",", "value": ",", "keyword": null, "type": 2, "flags": 16, "position": 2088 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2089 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ADD", "value": "ADD", "keyword": "ADD", "type": 1, "flags": 3, "position": 2092 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2095 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "KEY", "value": "KEY", "keyword": "KEY", "type": 1, "flags": 19, "position": 2096 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2099 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`INDEX_totalTime`", "value": "INDEX_totalTime", "keyword": null, "type": 8, "flags": 2, "position": 2100 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2117 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2118 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`totalTime`", "value": "totalTime", "keyword": null, "type": 8, "flags": 2, "position": 2119 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2130 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2131 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "USING", "value": "USING", "keyword": "USING", "type": 1, "flags": 3, "position": 2132 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2137 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "BTREE", "value": "BTREE", "keyword": "BTREE", "type": 1, "flags": 1, "position": 2138 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2143 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMENT", "value": "COMMENT", "keyword": "COMMENT", "type": 1, "flags": 1, "position": 2144 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2151 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "'Index for totalTime column'", "value": "Index for totalTime column", "keyword": null, "type": 7, "flags": 1, "position": 2152 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 2180 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2181 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "--\n", "value": "--\n", "keyword": null, "type": 4, "flags": 4, "position": 2183 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2185 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- Contraintes pour les tables déchargées", "value": "-- Contraintes pour les tables déchargées", "keyword": null, "type": 4, "flags": 4, "position": 2186 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2227 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "--\n", "value": "--\n", "keyword": null, "type": 4, "flags": 4, "position": 2228 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2230 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "--\n", "value": "--\n", "keyword": null, "type": 4, "flags": 4, "position": 2232 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2234 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "-- Contraintes pour la table `monitoring__times`", "value": "-- Contraintes pour la table `monitoring__times`", "keyword": null, "type": 4, "flags": 4, "position": 2235 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2283 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "--\n", "value": "--\n", "keyword": null, "type": 4, "flags": 4, "position": 2284 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2286 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ALTER", "value": "ALTER", "keyword": "ALTER", "type": 1, "flags": 3, "position": 2287 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2292 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "TABLE", "value": "TABLE", "keyword": "TABLE", "type": 1, "flags": 3, "position": 2293 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2298 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`monitoring__times`", "value": "monitoring__times", "keyword": null, "type": 8, "flags": 2, "position": 2299 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2318 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "ADD", "value": "ADD", "keyword": "ADD", "type": 1, "flags": 3, "position": 2321 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2324 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CONSTRAINT", "value": "CONSTRAINT", "keyword": "CONSTRAINT", "type": 1, "flags": 3, "position": 2325 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2335 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`monitoring__times__idServer`", "value": "monitoring__times__idServer", "keyword": null, "type": 8, "flags": 2, "position": 2336 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2365 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "FOREIGN KEY", "value": "FOREIGN KEY", "keyword": "FOREIGN KEY", "type": 1, "flags": 23, "position": 2366 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2377 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2378 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`idServer`", "value": "idServer", "keyword": null, "type": 8, "flags": 2, "position": 2379 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2389 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2390 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "REFERENCES", "value": "REFERENCES", "keyword": "REFERENCES", "type": 1, "flags": 3, "position": 2391 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2401 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`monitoring__servers`", "value": "monitoring__servers", "keyword": null, "type": 8, "flags": 2, "position": 2402 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2423 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "(", "value": "(", "keyword": null, "type": 2, "flags": 16, "position": 2424 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "`id`", "value": "id", "keyword": null, "type": 8, "flags": 2, "position": 2425 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ")", "value": ")", "keyword": null, "type": 2, "flags": 16, "position": 2429 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 2430 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2431 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COMMIT", "value": "COMMIT", "keyword": "COMMIT", "type": 1, "flags": 1, "position": 2432 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 2438 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2439 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/*!40101", "value": "/*!40101", "keyword": null, "type": 4, "flags": 10, "position": 2441 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2449 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 2450 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2453 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHARACTER_SET_CLIENT", "value": "CHARACTER_SET_CLIENT", "keyword": null, "type": 0, "flags": 0, "position": 2454 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2474 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@OLD_CHARACTER_SET_CLIENT", "value": "OLD_CHARACTER_SET_CLIENT", "keyword": null, "type": 8, "flags": 1, "position": 2475 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2500 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*/", "value": "*/", "keyword": null, "type": 4, "flags": 2, "position": 2501 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 2503 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2504 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/*!40101", "value": "/*!40101", "keyword": null, "type": 4, "flags": 10, "position": 2505 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2513 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 2514 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2517 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "CHARACTER_SET_RESULTS", "value": "CHARACTER_SET_RESULTS", "keyword": null, "type": 0, "flags": 0, "position": 2518 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2539 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@OLD_CHARACTER_SET_RESULTS", "value": "OLD_CHARACTER_SET_RESULTS", "keyword": null, "type": 8, "flags": 1, "position": 2540 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2566 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*/", "value": "*/", "keyword": null, "type": 4, "flags": 2, "position": 2567 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 2569 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2570 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "/*!40101", "value": "/*!40101", "keyword": null, "type": 4, "flags": 10, "position": 2571 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2579 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "SET", "value": "SET", "keyword": "SET", "type": 1, "flags": 11, "position": 2580 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2583 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "COLLATION_CONNECTION", "value": "COLLATION_CONNECTION", "keyword": null, "type": 0, "flags": 0, "position": 2584 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "=", "value": "=", "keyword": null, "type": 2, "flags": 2, "position": 2604 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "@OLD_COLLATION_CONNECTION", "value": "OLD_COLLATION_CONNECTION", "keyword": null, "type": 8, "flags": 1, "position": 2605 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": " ", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2630 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "*/", "value": "*/", "keyword": null, "type": 4, "flags": 2, "position": 2631 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": ";", "value": ";", "keyword": null, "type": 9, "flags": 0, "position": 2633 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": "\n", "value": " ", "keyword": null, "type": 3, "flags": 0, "position": 2634 }, { "@type": "PhpMyAdmin\\SqlParser\\Token", "token": null, "value": null, "keyword": null, "type": 9, "flags": 0, "position": null } ], "count": 505, "idx": 505 }, "delimiter": ";", "delimiterLen": 1, "strict": false, "errors": [] }, "parser": { "@type": "PhpMyAdmin\\SqlParser\\Parser", "list": { "@type": "@2" }, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "end_options": null, "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "SQL_MODE", "value": "\"NO_AUTO_VALUE_ON_ZERO\"" } ], "first": 0, "last": 22 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "end_options": null, "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "AUTOCOMMIT", "value": "0" } ], "first": 23, "last": 31 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\TransactionStatement", "type": 1, "statements": [ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "end_options": null, "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "time_zone", "value": "\"+00:00\"" } ], "first": 35, "last": 43 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "end_options": null, "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "@OLD_CHARACTER_SET_CLIENT", "value": "@@CHARACTER_SET_CLIENT" } ], "first": 44, "last": 54 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "end_options": null, "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "@OLD_CHARACTER_SET_RESULTS", "value": "@@CHARACTER_SET_RESULTS" } ], "first": 55, "last": 65 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "end_options": null, "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "@OLD_COLLATION_CONNECTION", "value": "@@COLLATION_CONNECTION" } ], "first": 66, "last": 76 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": { "name": "NAMES", "equals": false, "expr": "utf8mb4", "value": "utf8mb4" } } }, "end_options": null, "set": [], "first": 77, "last": 87 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "monitoring__times", "column": null, "expr": "`monitoring__times`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": { "name": "ENGINE", "equals": true, "expr": "InnoDB", "value": "InnoDB" }, "4": { "name": "DEFAULT CHARSET", "equals": true, "expr": "utf8", "value": "utf8" }, "6": { "name": "COLLATE", "equals": true, "expr": "utf8_unicode_ci", "value": "utf8_unicode_ci" } } }, "fields": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "idServer", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "INT", "parameters": [ "11" ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "5": { "name": "COMMENT", "equals": false, "expr": "'Id of server'", "value": "Id of server" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "time", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "TIMESTAMP", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "2": { "name": "DEFAULT", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "CURRENT_TIMESTAMP", "alias": null, "function": null, "subquery": null }, "value": "CURRENT_TIMESTAMP" }, "7": { "name": "ON UPDATE", "equals": false, "expr": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": null, "expr": "CURRENT_TIMESTAMP", "alias": null, "function": null, "subquery": null }, "value": "CURRENT_TIMESTAMP" }, "5": { "name": "COMMENT", "equals": false, "expr": "'Time UTC'", "value": "Time UTC" } } } }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition", "name": "totalTime", "isConstraint": null, "type": { "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType", "name": "FLOAT", "parameters": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "4": "UNSIGNED" } } }, "key": null, "references": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "NOT NULL", "5": { "name": "COMMENT", "equals": false, "expr": "'Total time in ms'", "value": "Total time in ms" } } } } ], "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": null, "return": null, "parameters": null, "body": [], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TABLE" } }, "first": 88, "last": 172 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "copyTimes", "column": null, "expr": "`copyTimes`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "AFTER", "2": "INSERT" } }, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "monitoring__times", "column": null, "expr": "`monitoring__times`", "alias": null, "function": null, "subquery": null }, "return": null, "parameters": null, "body": [ { "@type": "@203" }, { "@type": "@204" }, { "@type": "@205" }, { "@type": "@206" }, { "@type": "@207" }, { "@type": "@208" }, { "@type": "@209" }, { "@type": "@210" }, { "@type": "@211" }, { "@type": "@212" }, { "@type": "@213" }, { "@type": "@214" }, { "@type": "@215" }, { "@type": "@216" }, { "@type": "@217" }, { "@type": "@218" }, { "@type": "@219" }, { "@type": "@220" }, { "@type": "@221" }, { "@type": "@222" }, { "@type": "@223" }, { "@type": "@224" }, { "@type": "@225" }, { "@type": "@226" }, { "@type": "@227" }, { "@type": "@228" }, { "@type": "@229" }, { "@type": "@230" }, { "@type": "@231" }, { "@type": "@232" }, { "@type": "@233" }, { "@type": "@234" }, { "@type": "@235" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TRIGGER" } }, "first": 184, "last": 233 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "deleteTimes", "column": null, "expr": "`deleteTimes`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "AFTER", "2": "DELETE" } }, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "monitoring__times", "column": null, "expr": "`monitoring__times`", "alias": null, "function": null, "subquery": null }, "return": null, "parameters": null, "body": [ { "@type": "@262" }, { "@type": "@263" }, { "@type": "@264" }, { "@type": "@265" }, { "@type": "@266" }, { "@type": "@267" }, { "@type": "@268" }, { "@type": "@269" }, { "@type": "@270" }, { "@type": "@271" }, { "@type": "@272" }, { "@type": "@273" }, { "@type": "@274" }, { "@type": "@275" }, { "@type": "@276" }, { "@type": "@277" }, { "@type": "@278" }, { "@type": "@279" }, { "@type": "@280" }, { "@type": "@281" }, { "@type": "@282" }, { "@type": "@283" }, { "@type": "@284" }, { "@type": "@285" }, { "@type": "@286" }, { "@type": "@287" }, { "@type": "@288" }, { "@type": "@289" }, { "@type": "@290" }, { "@type": "@291" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TRIGGER" } }, "first": 243, "last": 289 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement", "name": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "updateTimes", "column": null, "expr": "`updateTimes`", "alias": null, "function": null, "subquery": null }, "entityOptions": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "AFTER", "2": "UPDATE" } }, "fields": null, "with": null, "select": null, "like": null, "partitionBy": null, "partitionsNum": null, "subpartitionBy": null, "subpartitionsNum": null, "partitions": null, "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "monitoring__times", "column": null, "expr": "`monitoring__times`", "alias": null, "function": null, "subquery": null }, "return": null, "parameters": null, "body": [ { "@type": "@318" }, { "@type": "@319" }, { "@type": "@320" }, { "@type": "@321" }, { "@type": "@322" }, { "@type": "@323" }, { "@type": "@324" }, { "@type": "@325" }, { "@type": "@326" }, { "@type": "@327" }, { "@type": "@328" }, { "@type": "@329" }, { "@type": "@330" }, { "@type": "@331" }, { "@type": "@332" }, { "@type": "@333" }, { "@type": "@334" }, { "@type": "@335" }, { "@type": "@336" }, { "@type": "@337" }, { "@type": "@338" }, { "@type": "@339" }, { "@type": "@340" }, { "@type": "@341" }, { "@type": "@342" }, { "@type": "@343" }, { "@type": "@344" }, { "@type": "@345" }, { "@type": "@346" }, { "@type": "@347" }, { "@type": "@348" }, { "@type": "@349" }, { "@type": "@350" }, { "@type": "@351" }, { "@type": "@352" }, { "@type": "@353" }, { "@type": "@354" }, { "@type": "@355" }, { "@type": "@356" }, { "@type": "@357" }, { "@type": "@358" }, { "@type": "@359" }, { "@type": "@360" }, { "@type": "@361" }, { "@type": "@362" }, { "@type": "@363" }, { "@type": "@364" }, { "@type": "@365" }, { "@type": "@366" }, { "@type": "@367" } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "6": "TRIGGER" } }, "first": 299, "last": 365 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "monitoring__times", "column": null, "expr": "`monitoring__times`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ADD" } }, "field": null, "partitions": null, "unknown": [ { "@type": "@394" }, { "@type": "@395" }, { "@type": "@396" }, { "@type": "@397" }, { "@type": "@398" }, { "@type": "@399" }, { "@type": "@400" }, { "@type": "@401" }, { "@type": "@402" }, { "@type": "@403" }, { "@type": "@404" }, { "@type": "@405" }, { "@type": "@406" }, { "@type": "@407" }, { "@type": "@408" }, { "@type": "@409" }, { "@type": "@410" } ] }, { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ADD", "2": "KEY" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "INDEX_totalTime", "expr": "`INDEX_totalTime`", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@419" }, { "@type": "@420" }, { "@type": "@421" }, { "@type": "@422" }, { "@type": "@423" }, { "@type": "@424" }, { "@type": "@425" }, { "@type": "@426" }, { "@type": "@427" }, { "@type": "@428" }, { "@type": "@429" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 371, "last": 427 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\AlterStatement", "table": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": "monitoring__times", "column": null, "expr": "`monitoring__times`", "alias": null, "function": null, "subquery": null }, "altered": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "ADD", "2": "CONSTRAINT" } }, "field": { "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression", "database": null, "table": null, "column": "monitoring__times__idServer", "expr": "`monitoring__times__idServer`", "alias": null, "function": null, "subquery": null }, "partitions": null, "unknown": [ { "@type": "@456" }, { "@type": "@457" }, { "@type": "@458" }, { "@type": "@459" }, { "@type": "@460" }, { "@type": "@461" }, { "@type": "@462" }, { "@type": "@463" }, { "@type": "@464" }, { "@type": "@465" }, { "@type": "@466" }, { "@type": "@467" }, { "@type": "@468" } ] } ], "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "3": "TABLE" } }, "first": 428, "last": 466 } ], "end": { "@type": "PhpMyAdmin\\SqlParser\\Statements\\TransactionStatement", "type": 2, "statements": null, "end": null, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "COMMIT" } }, "first": 467, "last": 468 }, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": { "1": "START TRANSACTION" } }, "first": 32, "last": 34 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "end_options": null, "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "CHARACTER_SET_CLIENT", "value": "@OLD_CHARACTER_SET_CLIENT" } ], "first": 469, "last": 479 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "end_options": null, "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "CHARACTER_SET_RESULTS", "value": "@OLD_CHARACTER_SET_RESULTS" } ], "first": 480, "last": 490 }, { "@type": "PhpMyAdmin\\SqlParser\\Statements\\SetStatement", "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", "options": [] }, "end_options": null, "set": [ { "@type": "PhpMyAdmin\\SqlParser\\Components\\SetOperation", "column": "COLLATION_CONNECTION", "value": "@OLD_COLLATION_CONNECTION" } ], "first": 491, "last": 501 } ], "brackets": 0, "strict": false, "errors": [] }, "errors": { "lexer": [], "parser": [] } }