summaryrefslogtreecommitdiffstats
path: root/tests/Utils/QueryTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'QA'William Desportes2019-12-311-0/+14
|\ | | | | | | Signed-off-by: William Desportes <williamdes@wdes.fr>
| * Add test case for #249William Desportes2019-12-311-0/+14
| | | | | | | | Signed-off-by: William Desportes <williamdes@wdes.fr>
| * 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-193/+193
| | | | | | | | | | See: 86c5baebda24c1721fb6881df8671a3c7df60e8b Signed-off-by: William Desportes <williamdes@wdes.fr>
* | Remove useless comments and annotationsMaurício Meneghini Fauth2019-12-141-4/+4
|/ | | | Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
* fix: incorrect lastClauseIdx in Util::getQueryDeven Bansod2019-03-121-1/+86
|
* Fix risky testsMaurício Meneghini Fauth2019-01-161-4/+4
| | | | | | | - 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-181/+214
| | | | Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
* Refactoring testsGabriel Caruso2017-12-141-1/+1
|
* Apply php-cs-fixerMichal Čihař2017-10-101-1/+1
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Correctly handle CASE expression in SELECT statementMichal Čihař2017-07-121-0/+17
| | | | | | Fixes https://github.com/phpmyadmin/phpmyadmin/issues/13487 Signed-off-by: Michal Čihař <michal@cihar.com>
* Add recognizer for SET StatementsDeven Bansod2017-07-071-0/+6
| | | | | | | | Fix #157 Add Tests for SET statement flag Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Parse LOAD statement properlyDeven Bansod2017-02-181-0/+8
| | | | | | | | Fix #131 Might help to fix phpmyadmin/phpmyadmin#12345 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Merge remote-tracking branch 'origin/pull/137'Michal Čihař2017-02-141-0/+6
|\
| * Apply cs fixesDamian Dlugosz2017-02-121-0/+4
| |
* | Order importsDamian Dlugosz2017-02-121-1/+1
|/
* Added PhpMyAdmin namespace prefix to follow PSR-4.Michal Čihař2017-01-231-4/+4
| | | | | | Fixes #126 Signed-off-by: Michal Čihař <michal@cihar.com>
* Apply php-cs-fixerDamian Dlugosz2017-01-061-58/+56
|
* Fix some errors with INTO keyword more to followDeven Bansod2016-09-281-5/+5
| | | | | | Add more test cases Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Allow to use function name in ASv3.4.4Michal Čihař2016-04-261-0/+8
| | | | | | Fixes https://github.com/phpmyadmin/phpmyadmin/issues/12144 Signed-off-by: Michal Čihař <michal@cihar.com>
* Fix order of parameters to avoid confusing error messagesMichal Čihař2016-04-061-2/+2
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Change return value from getAll in case of not parsed queryMichal Čihař2016-02-171-1/+32
| | | | | | Fixes https://github.com/phpmyadmin/phpmyadmin/issues/11609 Signed-off-by: Michal Čihař <michal@cihar.com>
* Updated coding style to follow PSR-2 coding standards.Dan Ungureanu2015-09-251-1/+2
|
* Add support for MySQL commands inside comments.Dan Ungureanu2015-08-081-1/+1
|
* Fixed a bug that didn't parse comments properly.Dan Ungureanu2015-08-051-1/+40
| | | | | | getFirstStatement util doesn't ignore MySQL specific query anymore (between comments). Misc coding style fixes. Fixed tests.
* Improved support for UNION.Dan Ungureanu2015-07-251-0/+15
|
* Improved fragments. New builders available. Refactored some fields.Dan Ungureanu2015-07-071-0/+46
| | | | | | | | 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.
* Improved condition parsing and query utilities.Dan Ungureanu2015-07-051-4/+80
|
* Improved WHERE keyword parser and query's utilities.Dan Ungureanu2015-07-021-5/+1
|
* Added statement builder (converts statement trees into executable query ↵Dan Ungureanu2015-06-301-0/+328
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).