Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge branch 'QA' | William Desportes | 2019-12-31 | 4 | -5/+5 |
|\ | | | | | | | Signed-off-by: William Desportes <williamdes@wdes.fr> | ||||
| * | Fix phpdoc using phpstan level 3 | William Desportes | 2019-12-31 | 4 | -5/+5 |
| | | | | | | | | Signed-off-by: William Desportes <williamdes@wdes.fr> | ||||
* | | Remove left overs of old array syntax | William Desportes | 2019-12-31 | 2 | -6/+6 |
| | | | | | | | | Signed-off-by: William Desportes <williamdes@wdes.fr> | ||||
* | | Merge branch 'QA' | William Desportes | 2019-12-31 | 1 | -0/+5 |
|\ \ | |/ | | | | | Signed-off-by: William Desportes <williamdes@wdes.fr> | ||||
| * | 275: Prevent overwrite of offset in Limit clause by parenthesis | Deven Bansod | 2019-12-30 | 1 | -0/+5 |
| | | |||||
* | | Add PHPStan at level 2 | Maurício Meneghini Fauth | 2019-12-16 | 3 | -4/+6 |
| | | | | | | | | Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev> | ||||
* | | Remove useless comments and annotations | Maurício Meneghini Fauth | 2019-12-14 | 25 | -147/+7 |
| | | | | | | | | Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev> | ||||
* | | Replace is_null($var) with $var === null | Maurício Meneghini Fauth | 2019-12-14 | 2 | -2/+2 |
| | | | | | | | | Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev> | ||||
* | | Remove useless parentheses | Maurício Meneghini Fauth | 2019-12-14 | 6 | -6/+6 |
| | | | | | | | | Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev> | ||||
* | | Remove trailing whitespace | Maurício Meneghini Fauth | 2019-12-14 | 2 | -2/+2 |
| | | | | | | | | Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev> | ||||
* | | Merge branch 'QA' | William Desportes | 2019-11-13 | 1 | -0/+5 |
|\ \ | |/ | | | | | Signed-off-by: William Desportes <williamdes@wdes.fr> | ||||
| * | fixes #267 - ALTER TABLE ... PRIMARY/UNIQUE KEY "Missing comma" error | MisterCoder | 2019-11-13 | 1 | -1/+6 |
| | | |||||
* | | Merge branch 'QA' | William Desportes | 2019-11-01 | 1 | -4/+10 |
|\ \ | |/ | | | | | Signed-off-by: William Desportes <williamdes@wdes.fr> | ||||
| * | Add test case to check partition name starting by a number | Hugues Peccatte | 2019-11-01 | 1 | -1/+1 |
| | | | | | | | | Signed-off-by: Hugues Peccatte <hugues.peccatte@aareon.fr> | ||||
| * | Fix #13951 wrong parsing partitions | Hugues Peccatte | 2019-11-01 | 1 | -4/+10 |
| | | | | | | | | | | | | When partition names contain "_", the parser wasn't reading the full name, but stopped before the first "_". Signed-off-by: Hugues Peccatte <hugues.peccatte@aareon.fr> | ||||
* | | Merge branch 'QA' | William Desportes | 2019-10-29 | 4 | -3/+8 |
|\ \ | |/ | | | | | | | | | This merge includes phpcs fixes Signed-off-by: William Desportes <williamdes@wdes.fr> | ||||
| * | Merge #264 - parse CHECK keyword on table definition | William Desportes | 2019-10-28 | 1 | -1/+6 |
| |\ | | | | | | | | | | | | | | | | | | | Ref: #167 Pull-request: #264 Signed-off-by: William Desportes <williamdes@wdes.fr> | ||||
| | * | Manage "CHECK" keyword | Hugues Peccatte | 2019-10-28 | 1 | -1/+6 |
| | | | | | | | | | | | | | | | | | | | | | Even if this keyword is ignored by MySQL, it should be parsed. Ref: #167 Signed-off-by: Hugues Peccatte <hugues.peccatte@aareon.fr> | ||||
| * | | fix implode arg. order | Remi Collet | 2019-10-28 | 2 | -2/+2 |
| |/ | | | | | | | Ref: https://www.php.net/manual/en/function.implode.php | ||||
| * | Revert "Enable strict mode on PHP files" | William Desportes | 2019-05-28 | 25 | -30/+30 |
| | | | | | | | | | | This reverts commit 17da8a34b81442524a8e01fead7b5968fa1cc39d. Signed-off-by: William Desportes <williamdes@wdes.fr> | ||||
| * | revert of new array syntax | William Desportes | 2019-05-28 | 16 | -180/+180 |
| | | | | | | | | | | See: 86c5baebda24c1721fb6881df8671a3c7df60e8b Signed-off-by: William Desportes <williamdes@wdes.fr> | ||||
| * | Revert array syntax | William Desportes | 2019-05-28 | 25 | -86/+86 |
| | | | | | | | | | | See: 86c5baebda24c1721fb6881df8671a3c7df60e8b Signed-off-by: William Desportes <williamdes@wdes.fr> | ||||
* | | Replaced new self with new static | MartkCz | 2019-05-17 | 22 | -35/+35 |
|/ | |||||
* | Fix PHP warnings when building an incomplete CASE expression | Thomas Gerbet | 2019-04-10 | 1 | -3/+3 |
| | | | | | | | | | Issue can be reproduced with the following code snippet: ```php new \PhpMyAdmin\SqlParser\Parser('SELECT a CASE'); // PHP Warning: count(): Parameter must be an array or an object that implements Countable in src/Components/CaseExpression.php on line 296 // PHP Warning: count(): Parameter must be an array or an object that implements Countable in src/Components/CaseExpression.php on line 297 ``` | ||||
* | Fix incorrect error on DEFAULT keyword in ALTER operation | Deven Bansod | 2019-03-07 | 1 | -4/+6 |
| | |||||
* | Enable strict mode on PHP files | Maurício Meneghini Fauth | 2019-01-16 | 25 | -30/+30 |
| | | | | Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com> | ||||
* | Apply phpmyadmin/coding-standard | Maurício Meneghini Fauth | 2019-01-16 | 25 | -265/+423 |
| | | | | Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com> | ||||
* | Fix incorrect error on DEFAULT keyword in ALTER operation | Deven Bansod | 2019-01-03 | 1 | -1/+1 |
| | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | ||||
* | Merge pull request #203 from mostertb/case-alias | Isaac Bennetch | 2018-12-24 | 1 | -2/+72 |
|\ | | | | | Add support for Aliases on CASE expressions | ||||
| * | Apply php-cs-fixer formatting changes | Brad Mostert | 2018-10-13 | 1 | -12/+9 |
| | | |||||
| * | Handle end of statement while parsing CASE alias | Brad Mostert | 2018-10-13 | 1 | -0/+4 |
| | | |||||
| * | Explicitly handle case where keyword encountered before alias value found | Brad Mostert | 2018-10-13 | 1 | -8/+10 |
| | | |||||
| * | Handle CASE alias without AS | Brad Mostert | 2018-10-13 | 1 | -16/+14 |
| | | |||||
| * | Add Support for CASE ... END AS alias | Brad Mostert | 2018-10-13 | 1 | -0/+69 |
| | | |||||
* | | Merge pull request #216 from devenbansod/fix/199 | Deven Bansod | 2018-12-23 | 1 | -0/+193 |
|\ \ | | | | | | | Add support for INDEX hints in SELECT statement | ||||
| * | | Add support for INDEX hints in SELECT statement | Deven Bansod | 2018-12-23 | 1 | -0/+193 |
| | | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | ||||
* | | | Merge pull request #215 from devenbansod/fix/180 | Deven Bansod | 2018-12-22 | 1 | -0/+203 |
|\ \ \ | |/ / | | | | Add support for LOCK and UNLOCK Statements | ||||
| * | | Add support for LOCK and UNLOCK Statements | Deven Bansod | 2018-12-22 | 1 | -0/+203 |
| | | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | ||||
* | | | Merge pull request #214 from devenbansod/fix/160 | Deven Bansod | 2018-12-22 | 1 | -4/+18 |
|\ \ \ | |/ / |/| | | Throw a parser error on extraneous comma in UPDATE statement | ||||
| * | | Throw a parser error on extraneous comma in UPDATE statement | Deven Bansod | 2018-12-22 | 1 | -4/+18 |
| | | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | ||||
* | | | Throw a parse error if a comma missing between two alter operations | Deven Bansod | 2018-12-21 | 1 | -0/+23 |
|/ / | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | ||||
* | | Fix building of RenameStatement | Deven Bansod | 2018-12-20 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | * The nuance here is that we don't treat `RENAME TABLE` as the keyword of the clause, only `RENAME` is considered. * That's why we can't use `Statement::$CLAUSES` directly here (even with value of `3` (see `Statement::$CLAUSES`)) * Providing an overriden definition of `build()` in RenameStatement Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | ||||
* | | Fix tests | Bruno Perel | 2018-11-27 | 2 | -20/+23 |
| | | |||||
* | | Use triple (in)equalities when type compatibility is ensured | Bruno Perel | 2018-11-26 | 7 | -12/+12 |
| | | |||||
* | | Cleanup and improve readability: | Bruno Perel | 2018-11-26 | 9 | -115/+111 |
|/ | | | | | Avoid duplicate if conditions Use switch/case instead of ifs when possible | ||||
* | PHPDOC fix | William Desportes | 2018-06-06 | 1 | -0/+1 |
| | | | | | | - Added phpdoc for $options as requested by Sami Signed-off-by: William Desportes <williamdes@wdes.fr> | ||||
* | Fix parsing of CREATE TABLE with per field COLLATE | Michal Čihař | 2017-11-08 | 1 | -0/+4 |
| | | | | | | Fixes #182 Signed-off-by: Michal Čihař <michal@cihar.com> | ||||
* | Fixed build CREATE TABLE query with PARTITIONS having ENGINE but not VALUES. | Michal Čihař | 2017-10-10 | 1 | -1/+1 |
| | | | | | | Fixes #174 Signed-off-by: Michal Čihař <michal@cihar.com> | ||||
* | Apply php-cs-fixer | Michal Čihař | 2017-10-10 | 6 | -17/+16 |
| | | | | Signed-off-by: Michal Čihař <michal@cihar.com> | ||||
* | Fix #172 Support parameter binding | Madhura Jayaratne | 2017-09-23 | 1 | -0/+2 |
| | | | | Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com> | ||||
* | Provide $expr consistently for CaseExpression as with Expression | Michal Čihař | 2017-07-12 | 1 | -0/+9 |
| | | | | | | | This is probably better approach to address https://github.com/phpmyadmin/phpmyadmin/issues/13487 Signed-off-by: Michal Čihař <michal@cihar.com> | ||||
* | Remove not used type arg from GROUP BY | Michal Čihař | 2017-06-01 | 1 | -12/+3 |
| | | | | | | | | It should not be there since beginning. Issue #154 Signed-off-by: Michal Čihař <michal@cihar.com> | ||||
* | Add GroupKeyword class to fix postgres GROUP BY | José Tobias de Freitas Neto | 2017-05-31 | 1 | -0/+141 |
| | |||||
* | Fixed minor documentation error. | Dan Ungureanu | 2017-05-16 | 1 | -1/+1 |
| | | | | Signed-off-by: Dan Ungureanu <udan1107@gmail.com> | ||||
* | Added constructor for SetOperation. | Dan Ungureanu | 2017-05-16 | 1 | -0/+12 |
| | | | | Signed-off-by: Dan Ungureanu <udan1107@gmail.com> | ||||
* | Added constructor for RenameOperation. | Dan Ungureanu | 2017-05-16 | 1 | -0/+12 |
| | | | | Signed-off-by: Dan Ungureanu <udan1107@gmail.com> | ||||
* | Added constructor for ParameterDefinition. | Dan Ungureanu | 2017-05-16 | 1 | -0/+14 |
| | | | | Signed-off-by: Dan Ungureanu <udan1107@gmail.com> | ||||
* | Added constructor for JoinKeyword. | Dan Ungureanu | 2017-05-16 | 1 | -0/+18 |
| | | | | Signed-off-by: Dan Ungureanu <udan1107@gmail.com> | ||||
* | Added constructor for IntoKeyword. | Dan Ungureanu | 2017-05-16 | 1 | -0/+26 |
| | | | | Signed-off-by: Dan Ungureanu <udan1107@gmail.com> | ||||
* | Added constructor for AlterOperation. | Dan Ungureanu | 2017-05-16 | 1 | -0/+17 |
| | | | | Signed-off-by: Dan Ungureanu <udan1107@gmail.com> | ||||
* | Fix type documentation | Michal Čihař | 2017-02-20 | 1 | -1/+1 |
| | | | | Signed-off-by: Michal Čihař <michal@cihar.com> | ||||
* | Merge remote-tracking branch 'origin/pull/138' | Michal Čihař | 2017-02-14 | 10 | -90/+89 |
|\ | |||||
| * | No useless else | Damian Dlugosz | 2017-02-12 | 10 | -90/+92 |
| | | |||||
* | | Order imports | Damian Dlugosz | 2017-02-12 | 5 | -5/+5 |
|/ | |||||
* | Apply cs fixes | Damian Dlugosz | 2017-02-12 | 1 | -1/+0 |
| | |||||
* | Fix parameter type | Michal Čihař | 2017-02-07 | 1 | -2/+2 |
| | | | | Signed-off-by: Michal Čihař <michal@cihar.com> | ||||
* | Properly document parameter type | Michal Čihař | 2017-02-07 | 3 | -6/+6 |
| | | | | Signed-off-by: Michal Čihař <michal@cihar.com> | ||||
* | Move count() outside of the loop | Michal Čihař | 2017-02-07 | 1 | -10/+6 |
| | | | | Signed-off-by: Michal Čihař <michal@cihar.com> | ||||
* | Scrutinizer Auto-Fixes | Scrutinizer Auto-Fixer | 2017-02-06 | 1 | -1/+1 |
| | | | | This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com | ||||
* | Use keyword attribute for comparing keyword name | Michal Čihař | 2017-02-06 | 9 | -30/+28 |
| | | | | | | | We do not uppercase non reserved keywords, so this way we make the comparison properly handle that. Signed-off-by: Michal Čihař <michal@cihar.com> | ||||
* | Merge branch 'master' into motranslator | Michal Čihař | 2017-01-23 | 22 | -116/+116 |
|\ | |||||
| * | Added PhpMyAdmin namespace prefix to follow PSR-4. | Michal Čihař | 2017-01-23 | 22 | -114/+114 |
| | | | | | | | | | | | | Fixes #126 Signed-off-by: Michal Čihař <michal@cihar.com> | ||||
* | | Merge branch 'master' into motranslator | Michal Čihař | 2017-01-20 | 1 | -0/+1 |
|\ \ | |/ | |||||
| * | Properly handle operators AND, NOT, OR, XOR, DIV, MOD | Michal Čihař | 2017-01-06 | 1 | -0/+1 |
| | | | | | | | | Signed-off-by: Michal Čihař <michal@cihar.com> | ||||
* | | Apply php-cs-fixer | Michal Čihař | 2017-01-06 | 1 | -1/+1 |
| | | | | | | | | Signed-off-by: Michal Čihař <michal@cihar.com> | ||||
* | | Merge branch 'master' into motranslator | Michal Čihař | 2017-01-06 | 22 | -531/+463 |
|\ \ | |/ | |||||
| * | Apply php-cs-fixer | Damian Dlugosz | 2017-01-06 | 22 | -531/+463 |
| | | |||||
* | | Merge branch 'master' into motranslator | Michal Čihař | 2017-01-03 | 1 | -0/+1 |
|\ \ | |/ | |||||
| * | Properly report missing expression error | Michal Čihař | 2017-01-03 | 1 | -0/+1 |
| | | | | | | | | Signed-off-by: Michal Čihař <michal@cihar.com> | ||||
* | | Merge branch 'master' into motranslator | Michal Čihař | 2017-01-02 | 1 | -1/+0 |
|\ \ | |/ | |||||
| * | Remove duplicate array item in JOINs | Deven Bansod | 2016-12-26 | 1 | -1/+0 |
| | | | | | | | | | | | | Fix #108 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | ||||
* | | Merge branch 'master' into motranslator | Michal Čihař | 2016-12-22 | 1 | -5/+103 |
|\ \ | |/ | |||||
| * | Merge pull request #107 from devenbansod/fix_105 | Michal Čihař | 2016-12-22 | 1 | -5/+103 |
| |\ | | | | | | | Fix #105: Fix parsing of FIELDS and LINES options in Select..Into | ||||
| | * | Make the method access public since called from object | Deven Bansod | 2016-12-22 | 1 | -3/+3 |
| | | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | ||||
| | * | Add more tests, fix unneeded error | Deven Bansod | 2016-12-21 | 1 | -4/+0 |
| | | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | ||||
| | * | Fix parsing of FIELDS and LINES options in SELECT..INTO | Deven Bansod | 2016-12-21 | 1 | -5/+107 |
| | | | | | | | | | | | | | | | | | | Fix #105 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | ||||
| * | | Consistently end message with . | Michal Čihař | 2016-12-21 | 1 | -1/+1 |
| |/ | | | | | | | Signed-off-by: Michal Čihař <michal@cihar.com> | ||||
* | | Migrate new code to use Translator class | Michal Čihař | 2016-12-21 | 4 | -12/+11 |
| | | | | | | | | Signed-off-by: Michal Čihař <michal@cihar.com> | ||||
* | | Use static method for translating | Michal Čihař | 2016-12-21 | 2 | -2/+2 |
| | | | | | | | | Signed-off-by: Michal Čihař <michal@cihar.com> | ||||
* | | Replace __( usage by Translator class | Michal Čihař | 2016-12-21 | 10 | -23/+25 |
|/ | | | | Signed-off-by: Michal Čihař <michal@cihar.com> | ||||
* | Use strlen on strings instead of count | Michal Čihař | 2016-11-30 | 1 | -1/+1 |
| | | | | | | This fails in PHP 7.2 Signed-off-by: Michal Čihař <michal@cihar.com> | ||||
* | In SQL we should use 'column' and not 'field' | Marc Delisle | 2016-11-08 | 1 | -1/+1 |
| | |||||
* | Add parsing of multiple JOINS in single query | Deven Bansod | 2016-10-24 | 1 | -2/+11 |
| | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | ||||
* | Fix parsing of NATURAL JOIN, CROSS JOIN and related joins | Deven Bansod | 2016-10-24 | 1 | -0/+7 |
| | | | | | | | | 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 Bansod | 2016-10-14 | 1 | -1/+8 |
| | | | | | | | | | | 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> | ||||
* | Fix parsing of ON UPDATE option in TIMESTAMP field with precision | Deven Bansod | 2016-10-10 | 1 | -1/+1 |
| | | | | | | Fix #92 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | ||||
* | Remove unused use | Michal Čihař | 2016-10-03 | 1 | -1/+0 |
| | | | | Signed-off-by: Michal Čihař <michal@cihar.com> | ||||
* | Merge pull request #90 from devenbansod/subquery_in_from | Michal Čihař | 2016-10-03 | 2 | -11/+32 |
|\ | | | | | Fix parsing of subquery in FROM clause | ||||
| * | Fix parsing and building of SELECT ... INTO @var1 [,@var2...] | Deven Bansod | 2016-09-28 | 1 | -8/+25 |
| | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | ||||
| * | Fix some errors with INTO keyword more to follow | Deven Bansod | 2016-09-28 | 1 | -1/+1 |
| | | | | | | | | | | | | Add more test cases Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> |