summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Various coding style fixesMichal Čihař2017-02-071-3/+1
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Test getopt() invocation as wellMichal Čihař2017-02-071-0/+16
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Run php-cs-fixerMichal Čihař2017-02-061-85/+43
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Fix expected format for BEGIN/ENDMichal Čihař2017-02-061-6/+12
| | | | | | Issue #120 Signed-off-by: Michal Čihař <michal@cihar.com>
* Merge remote-tracking branch 'origin/pull/120' into tmpMichal Čihař2017-02-061-132/+296
|\
| * Remove old tests and fix method names 'formatQueries' and 'testFormat'Damian Dlugosz2017-02-051-148/+3
| |
| * Testing typicalDamian Dlugosz2017-02-011-1/+46
| |
| * Fix test create tableDamian Dlugosz2017-02-011-7/+7
| |
| * Testing minimal and simplyDamian Dlugosz2017-02-011-6/+30
| |
| * Testing create tableDamian Dlugosz2017-02-011-1/+35
| |
| * Testing escaping cli and escaping htmlDamian Dlugosz2017-02-011-4/+36
| |
| * Testing string as aliasDamian Dlugosz2017-02-011-3/+15
| |
| * Testing distinct countDamian Dlugosz2017-02-011-0/+12
| |
| * Testing InsertDamian Dlugosz2017-02-011-6/+12
| |
| * Testing create procedureDamian Dlugosz2017-02-011-6/+42
| |
| * Testing keywordsDamian Dlugosz2017-02-011-1/+13
| |
| * Testing strip commentsDamian Dlugosz2017-02-011-11/+41
| |
| * Rebased on top of masterDamian Dlugosz2017-02-011-25/+17
| |
| * Testing commentsDamian Dlugosz2017-02-011-9/+31
| |
| * select with commentDamian Dlugosz2017-02-011-0/+13
| |
| * Begin writing new format queries testsDamian Dlugosz2017-02-011-13/+52
| |
* | Store uppercase keyword value for later processingMichal Čihař2017-02-06179-537/+537
|/ | | | | | This makes easier to compare it later. Signed-off-by: Michal Čihař <michal@cihar.com>
* Merge branch 'master' into motranslatorMichal Čihař2017-01-23239-760/+760
|\
| * Added PhpMyAdmin namespace prefix to follow PSR-4.Michal Čihař2017-01-23239-760/+760
| | | | | | | | | | | | Fixes #126 Signed-off-by: Michal Čihař <michal@cihar.com>
* | Merge branch 'master' into motranslatorMichal Čihař2017-01-234-27/+29
|\ \ | |/
| * Merge pull request #123 from bigfoot90/fix-comment-parsingMichal Čihař2017-01-204-27/+29
| |\ | | | | | | Fix comment parsing
| | * Fix comment parsingDamian Dlugosz2017-01-102-13/+25
| | |
| | * Fix comment parsingDamian Dlugosz2017-01-083-15/+5
| | |
* | | Merge branch 'master' into motranslatorMichal Čihař2017-01-208-33/+50
|\ \ \ | |/ /
| * | Fixed parsing of unterminated variables.Michal Čihař2017-01-203-0/+6
| |/ | | | | | | | | | | Fixes https://github.com/phpmyadmin/phpmyadmin/issues/12894 Signed-off-by: Michal Čihař <michal@cihar.com>
| * Merge pull request #121 from bigfoot90/better-htmlMichal Čihař2017-01-072-31/+37
| |\ | | | | | | Fix indentation on html format
| | * Fix indentation on html formatDamian Dlugosz2017-01-062-31/+37
| | |
| * | autload-devDamian Dlugosz2017-01-061-2/+1
| |/
| * Properly handle operators AND, NOT, OR, XOR, DIV, MODMichal Čihař2017-01-063-0/+6
| | | | | | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* | Merge branch 'master' into motranslatorMichal Čihař2017-01-0660-311/+200
|\ \ | |/
| * Apply php-cs-fixerDamian Dlugosz2017-01-0660-311/+200
| |
* | Merge branch 'master' into motranslatorMichal Čihař2017-01-032-3/+37
|\ \ | |/
| * Add some missing assertionsMichal Čihař2017-01-031-3/+31
| | | | | | | | Signed-off-by: Michal Čihař <michal@cihar.com>
| * Simplify rules mergingMichal Čihař2017-01-031-0/+6
| | | | | | | | | | | | | | We first sanitize the merged array and we can later use it without checking. Signed-off-by: Michal Čihař <michal@cihar.com>
* | Merge branch 'master' into motranslatorMichal Čihař2017-01-033-0/+6
|\ \ | |/
| * Properly report missing expression errorMichal Čihař2017-01-033-0/+6
| | | | | | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* | Merge branch 'master' into motranslatorMichal Čihař2017-01-031-0/+5
|\ \ | |/
| * Add test for text formatterMichal Čihař2017-01-031-0/+5
| | | | | | | | | | | | Issue #110 Signed-off-by: Michal Čihař <michal@cihar.com>
* | Merge branch 'master' into motranslatorMichal Čihař2017-01-033-0/+6
|\ \ | |/
| * Test error on double ASMichal Čihař2017-01-033-0/+6
| | | | | | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* | Merge branch 'master' into motranslatorMichal Čihař2017-01-033-0/+6
|\ \ | |/
| * Add missing test for error conditionMichal Čihař2017-01-033-0/+6
| | | | | | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* | Merge branch 'master' into motranslatorMichal Čihař2017-01-021-0/+214
|\ \ | |/
| * Handling merging formats arraysDamian Dlugosz2016-12-301-0/+214
| |
* | Merge branch 'master' into motranslatorMichal Čihař2016-12-228-0/+58
|\ \ | |/
| * Merge pull request #107 from devenbansod/fix_105Michal Čihař2016-12-228-0/+58
| |\ | | | | | | Fix #105: Fix parsing of FIELDS and LINES options in Select..Into
| | * Add more tests, fix unneeded errorDeven Bansod2016-12-213-0/+11
| | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
| | * Add more testsDeven Bansod2016-12-214-0/+32
| | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
| | * Add tests for parsing of FIELDS and LINES options in SELECT..INTODeven Bansod2016-12-213-0/+15
| | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* | | Merge branch 'master' into motranslatorMichal Čihař2016-12-213-3/+3
|\ \ \ | |/ /
| * | Consistently end message with .Michal Čihař2016-12-213-3/+3
| |/ | | | | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* | Replace __( usage by Translator classMichal Čihař2016-12-213-6/+8
|/ | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Document why unserialize() is needed for testsMichal Čihař2016-12-081-0/+5
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Recognize BINARY as functionMichal Čihař2016-11-303-0/+6
| | | | | | 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-203-0/+3
| | | | | | | 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-153-0/+11
| | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Add builders test for end options in SELECTDeven Bansod2016-11-121-0/+23
| | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Add parser tests for end options in SELECTDeven Bansod2016-11-127-0/+21
| | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Add forgotten testcaseMichal Čihař2016-11-092-0/+11
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Fix test for pr #97 and #98Michal Čihař2016-11-091-1/+1
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Fix test for terminology changeMarc Delisle2016-11-091-1/+1
|
* Add tests for #22Deven Bansod2016-11-033-0/+3
| | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Merge branch 'master' of https://github.com/phpmyadmin/sql-parserDeven Bansod2016-10-2521-2/+144
|\
| * Merge pull request #94 from devenbansod/fix_57Michal Čihař2016-10-255-0/+86
| |\ | | | | | | Enable Lexing of begin_label in the in-procedure statements
| | * Enable Lexing of begin_label in the in-procedure statementsDeven Bansod2016-10-215-0/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ex. BEGIN.. END, LOOP, REPEAT, WHILE statements Fix #57 Fix phpmyadmin/phpmyadmin#12344 Fix phpmyadmin/phpmyadmin#12228 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
| * | Merge pull request #95 from devenbansod/fix_93Michal Čihař2016-10-2516-2/+58
| |\ \ | | | | | | | | Fix #93 : Fix parsing of NATURAL JOIN, CROSS JOIN and related joins
| | * | Add call to test in test fileDeven Bansod2016-10-241-0/+1
| | | | | | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
| | * | Add parsing of multiple JOINS in single queryDeven Bansod2016-10-242-0/+6
| | | | | | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
| | * | Add tests for various NATURAL JOINS, fix testDeven Bansod2016-10-2410-2/+25
| | | | | | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
| | * | Fix parsing of NATURAL JOIN, CROSS JOIN and related joinsDeven Bansod2016-10-245-0/+26
| | |/ | | | | | | | | | | | | | | | | | | | | | Fix #93 Add tests to cover parsing of these joins Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* | | Add tests for removal of option which has value attached to itDeven Bansod2016-10-251-0/+15
|/ / | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* | Add tests for ALTER DATABASE and ALTER VIEWDeven Bansod2016-10-255-0/+6
|/ | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Fix parsing of variables being assigned value of CASE expr within SELECT ↵Deven Bansod2016-10-143-0/+7
| | | | | | | | | | 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>
* Add builder's test for #92Deven Bansod2016-10-101-0/+11
| | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Fix parsing of ON UPDATE option in TIMESTAMP field with precisionDeven Bansod2016-10-103-0/+19
| | | | | | Fix #92 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Merge pull request #90 from devenbansod/subquery_in_fromMichal Čihař2016-10-0312-5/+53
|\ | | | | Fix parsing of subquery in FROM clause
| * Fix parsing and building of SELECT ... INTO @var1 [,@var2...]Deven Bansod2016-09-281-0/+6
| | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
| * Fix some errors with INTO keyword more to followDeven Bansod2016-09-282-5/+9
| | | | | | | | | | | | Add more test cases Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
| * Fix parsing of subquery in FROM clauseDeven Bansod2016-09-279-0/+38
| | | | | | | | | | | | Fix #52 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* | Merge pull request #87 from devenbansod/delete_statementMichal Čihař2016-10-0350-13/+177
|\ \ | | | | | | Implement parsing and building for Delete Statement
| * | Fixed some errors and add new testsDeven Bansod2016-09-2731-11/+66
| | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
| * | Added test cases for Building DELETE StatementsDeven Bansod2016-09-241-0/+82
| | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
| * | Added test cases for parsing DELETE statementsDeven Bansod2016-09-2421-2/+29
| | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* | | Merge pull request #88 from devenbansod/fix_pma_12100Michal Čihař2016-10-0320-0/+147
|\ \ \ | |_|/ |/| | Add parsing of CASE Expressions
| * | Add more testsDeven Bansod2016-09-2612-9/+82
| | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
| * | Fix some issue with error reports and added testcasesDeven Bansod2016-09-2614-0/+74
| |/ | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* | Clarify licenseMichal Čihař2016-09-261-1/+1
| | | | | | | | | | | | | | | | | | - Add link to official license text - Use SPDX identifier for license - Clarify that the code is GPL or later - See issue #89 Signed-off-by: Michal Čihař <michal@cihar.com>
* | Remove @author from comment metadataMichal Čihař2016-09-261-1/+0
| | | | | | | | | | | | | | | | - We're doing this for ages in phpmyadmin repo - The comments get outdated over time - See issue #89 Signed-off-by: Michal Čihař <michal@cihar.com>
* | Add tests for #83 and #84Michal Čihař2016-09-201-0/+10
| | | | | | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* | Fix parsing of user@host without backquotesDeven Bansod2016-09-2013-8/+38
|/ | | | | | | | | | Introduce an option to parse 'expr=' (like var, var=, expr) Fix tests Fix phpmyadmin/phpmyadmin#12298 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* fix default options in Formater constructorRemi Collet2016-09-132-35/+35
|
* Test error handling in INSERT and REPLACE statementsMichal Čihař2016-09-1314-0/+52
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Add alias extraction test for query with no tableMichal Čihař2016-09-131-0/+5
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Test for invalid output formatMichal Čihař2016-09-131-0/+5
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>