summaryrefslogtreecommitdiffstats
path: root/tests/Parser
Commit message (Collapse)AuthorAgeFilesLines
...
* Properly parse CREATE TABLE [AS] SELECTMichal Čihař2016-03-191-0/+2
| | | | | | Fixes https://github.com/phpmyadmin/phpmyadmin/issues/12109 Signed-off-by: Michal Čihař <michal@cihar.com>
* Do not fail on function which is reserved in a WHERE conditionMichal Čihař2016-02-171-0/+1
| | | | | | Fixes https://github.com/phpmyadmin/phpmyadmin/issues/11975 Signed-off-by: Michal Čihař <michal@cihar.com>
* Improved test coverage.Dan Ungureanu2015-11-081-0/+1
|
* Fixed a couple of minor bugs in partition parsing.Dan Ungureanu2015-08-161-0/+1
| | | | | | | 'MAXVALUE' can be used for partitions. The correct class is used for parsing. Options may be specified for the class that is used for parsing. Wrote tests.
* Added tests for BufferedQuery and Parser.Dan Ungureanu2015-08-111-2/+13
|
* Reorganized tests.Dan Ungureanu2015-07-2313-41/+45
| | | | Implemented a tool to generate tests.
* Added the missing files.Dan Ungureanu2015-07-231-0/+25
|
* Refactoring.Dan Ungureanu2015-07-221-21/+3
|
* Refactoring.Dan Ungureanu2015-07-211-2/+20
| | | | Improved localization tests.
* Improved localization.Dan Ungureanu2015-07-211-4/+7
|
* Avoid processing the alias twice and generate an error.Dan Ungureanu2015-07-191-3/+3
| | | | | Errors are triggered when an unexpected token is found between clauses. Refactoring.
* Better error detection. Fixed some of the old messages.Dan Ungureanu2015-07-152-1/+2
| | | | Minor coding style fixes.
* Improved error messages.Dan Ungureanu2015-07-153-4/+9
| | | | | Achieved 100% code coverage. Some refactoring.
* Added MariaDB's options for virtual fields. Updated contexts to contain ↵Dan Ungureanu2015-07-141-0/+1
| | | | | | | | | relevant keywords. Added magic method '__toString()' for components and statements for building. Fixed a bug that caused the function name to be incorrectly detected in an expression. Fixed a bug that ignored the 'noAlias' option in expressions. Options may be expressions now.
* Imporved JOIN parsing and building.Dan Ungureanu2015-07-101-0/+1
| | | | Some keywords may appear in conditions.
* Improved fragments. New builders available. Refactored some fields.Dan Ungureanu2015-07-071-0/+1
| | | | | | | | New query utility to extract the name of the tables used in a statement. TRUNCATE is being parsed now. CREATE parsing and building has been improved. Improved the definition of UPDATE and DELETE statements. Fixed coding style. Improved documentation and tests.
* The context depends on the SQL mode.Dan Ungureanu2015-07-046-76/+55
| | | | | | | | | Implemented a few more builders. Improved some fragments and statement types. Fixed the noAlias option in FieldFragment. Reordered CREATE statements's options. Updated contexts definitions. Fixed typos. Improved tests.
* Added statement builder (converts statement trees into executable query ↵Dan Ungureanu2015-06-3013-0/+376
strings). Implemented support for UNIONs in parser. Code coverage is now over 99%. Fixed CHECKSUM statement (typos). Refactored code. Removed pieces of duplicated code. Improved documentation and fixed coding style. Improved PHPUnit's configuration (more test suites for fine-grained testing).