summaryrefslogtreecommitdiffstats
path: root/tests/Parser/SelectStatementTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'QA'William Desportes2019-12-311-0/+1
|\ | | | | | | Signed-off-by: William Desportes <williamdes@wdes.fr>
| * 275: Prevent overwrite of offset in Limit clause by parenthesisDeven Bansod2019-12-301-1/+2
| |
| * Revert "Enable strict mode on PHP files"William Desportes2019-05-281-1/+0
| | | | | | | | | | This reverts commit 17da8a34b81442524a8e01fead7b5968fa1cc39d. Signed-off-by: William Desportes <williamdes@wdes.fr>
| * revert of new array syntaxWilliam Desportes2019-05-281-59/+59
| | | | | | | | | | See: 86c5baebda24c1721fb6881df8671a3c7df60e8b Signed-off-by: William Desportes <williamdes@wdes.fr>
* | Remove useless comments and annotationsMaurício Meneghini Fauth2019-12-141-2/+2
|/ | | | Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
* Fix risky testsMaurício Meneghini Fauth2019-01-161-2/+2
| | | | | | | - Rename test providers - Mark tests as incomplete Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
* Enable strict mode on PHP filesMaurício Meneghini Fauth2019-01-161-0/+1
| | | | Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
* Apply phpmyadmin/coding-standardMaurício Meneghini Fauth2019-01-161-59/+59
| | | | Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
* Merge pull request #203 from mostertb/case-aliasIsaac Bennetch2018-12-241-0/+10
|\ | | | | Add support for Aliases on CASE expressions
| * Add tests for parsing of CASE expressions with aliasesBrad Mostert2018-10-131-0/+10
| |
* | Add support for INDEX hints in SELECT statementDeven Bansod2018-12-231-0/+6
|/ | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Fix broken clause order validationDeven Bansod2017-02-171-0/+1
| | | | | | Fix #113 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Merge remote-tracking branch 'origin/pull/137'Michal Čihař2017-02-141-0/+2
|\
| * Apply cs fixesDamian Dlugosz2017-02-121-0/+1
| |
* | Order importsDamian Dlugosz2017-02-121-1/+1
|/
* Added PhpMyAdmin namespace prefix to follow PSR-4.Michal Čihař2017-01-231-3/+3
| | | | | | Fixes #126 Signed-off-by: Michal Čihař <michal@cihar.com>
* Fixed parsing of unterminated variables.Michal Čihař2017-01-201-0/+1
| | | | | | Fixes https://github.com/phpmyadmin/phpmyadmin/issues/12894 Signed-off-by: Michal Čihař <michal@cihar.com>
* Properly handle operators AND, NOT, OR, XOR, DIV, MODMichal Čihař2017-01-061-0/+1
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Apply php-cs-fixerDamian Dlugosz2017-01-061-2/+0
|
* Add more tests, fix unneeded errorDeven Bansod2016-12-211-0/+1
| | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Add more testsDeven Bansod2016-12-211-0/+1
| | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Add tests for parsing of FIELDS and LINES options in SELECT..INTODeven Bansod2016-12-211-0/+1
| | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Recognize BINARY as functionMichal Čihař2016-11-301-0/+1
| | | | | | Fixes https://github.com/phpmyadmin/phpmyadmin/issues/12762 Signed-off-by: Michal Čihař <michal@cihar.com>
* Add tests for prevention of incorrect errors in UNION queriesDeven Bansod2016-11-201-0/+1
| | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> Conflicts: tests/Parser/SelectStatementTest.php
* Add a forgotten testDeven Bansod2016-11-201-0/+1
| | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Add tests for prevention of wrong order in JOINsDeven Bansod2016-11-151-0/+1
| | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Add parser tests for end options in SELECTDeven Bansod2016-11-121-0/+3
| | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Add forgotten testcaseMichal Čihař2016-11-091-0/+1
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Add tests for #22Deven Bansod2016-11-031-0/+1
| | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Add call to test in test fileDeven Bansod2016-10-241-0/+1
| | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Add tests for various NATURAL JOINS, fix testDeven Bansod2016-10-241-0/+4
| | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Fix parsing of NATURAL JOIN, CROSS JOIN and related joinsDeven Bansod2016-10-241-0/+2
| | | | | | | | Fix #93 Add tests to cover parsing of these joins Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Fix parsing of variables being assigned value of CASE expr within SELECT ↵Deven Bansod2016-10-141-0/+1
| | | | | | | | | | statements For example, $query = "SELECT 1+ 2 AS `c2`, sum(c2), sum(c3) AS `sum_c3`, 'Status'= CASE WHEN quantity > 0 THEN 'in stock' ELSE 'out of stock' END FROM test_table" Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Merge pull request #90 from devenbansod/subquery_in_fromMichal Čihař2016-10-031-0/+4
|\ | | | | Fix parsing of subquery in FROM clause
| * Fix parsing of subquery in FROM clauseDeven Bansod2016-09-271-0/+4
| | | | | | | | | | | | Fix #52 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* | Add more testsDeven Bansod2016-09-261-0/+3
| | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* | Fix some issue with error reports and added testcasesDeven Bansod2016-09-261-0/+6
|/ | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.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>
* Reorganized tests.Dan Ungureanu2015-07-231-5/+8
| | | | Implemented a tool to generate tests.
* Imporved JOIN parsing and building.Dan Ungureanu2015-07-101-0/+1
| | | | Some keywords may appear in conditions.
* Added statement builder (converts statement trees into executable query ↵Dan Ungureanu2015-06-301-0/+33
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).