| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| | |
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
| |
| |
| |
| | |
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
| |
| |
| |
| | |
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
|\ \
| |/
| |
| | |
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
| |\
| | |
| | |
| | |
| | |
| | |
| | | |
Pull-request: #280
Fixes: #259
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
| | | |
|
| |/
| |
| |
| | |
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
|\ \
| |/
| |
| | |
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
| |
| |
| |
| | |
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
|\ \
| |/
| |
| | |
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
| |\
| | |
| | |
| | |
| | |
| | |
| | | |
Pull-request: #276
Fixes: #255
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
| | | |
|
| |\ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Pull-request: #277
Fixes: #231
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
| | |/ |
|
| |/ |
|
| |
| |
| |
| | |
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
|
| |
| |
| |
| |
| |
| | |
Related to #272
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
|
| |
| |
| |
| | |
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
|
| |
| |
| |
| | |
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
|
| |
| |
| |
| | |
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
|
| |
| |
| |
| | |
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
|
| |
| |
| |
| | |
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
|
| |
| |
| |
| | |
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
|
| |
| |
| |
| | |
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
|
| |
| |
| |
| | |
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
|
|\ \
| |/
| |
| | |
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
| | |
|
|\ \
| |/
| |
| | |
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
| |
| |
| |
| |
| | |
Ref: fd4c4f34715070d7f7238ab3838935863a92f556
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
| |
| |
| |
| | |
Signed-off-by: Hugues Peccatte <hugues.peccatte@aareon.fr>
|
| |
| |
| |
| |
| |
| | |
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>
|
|\ \
| |/
| |
| |
| |
| | |
This merge includes phpcs fixes
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Fixes: #221
Pull-request: #222
Co-authored-by: Sinri Edogawa <e.joshua.s.e@gmail.com>
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
| |\
| | |
| | |
| | |
| | |
| | |
| | | |
Ref: #167
Pull-request: #264
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Even if this keyword is ignored by MySQL, it should be parsed.
Ref: #167
Signed-off-by: Hugues Peccatte <hugues.peccatte@aareon.fr>
|
| |/
| |
| |
| | |
Ref: https://www.php.net/manual/en/function.implode.php
|
| |
| |
| |
| |
| |
| | |
See: 86c5baebda24c1721fb6881df8671a3c7df60e8b
Related-to: 930a860bc7f0684c45babd012070f88a9505d427, 5d5089a259d0195c4a1e4aa3588c31c839954067
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
| |
| |
| |
| |
| | |
This reverts commit 17da8a34b81442524a8e01fead7b5968fa1cc39d.
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
| |
| |
| |
| |
| | |
See: 86c5baebda24c1721fb6881df8671a3c7df60e8b
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
| |
| |
| |
| |
| | |
See: 86c5baebda24c1721fb6881df8671a3c7df60e8b
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
|/ |
|
|\
| |
| |
| | |
Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Added null check to fix tests from pull request #224.
|
| | | |
|
|/ /
| |
| |
| | |
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
|
| |
| |
| |
| |
| | |
Fix for errors when using multiple CALL statements and no arguments/parenthesis.
Fixes: #223
|
|\ \
| | |
| | | |
Fix PHP warnings when building an incomplete CASE expression
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
```
|
|/ /
| |
| |
| | |
Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
This commit fixes implementation of `build()` methods to produce more consistent SQL code without redundant spaces.
|
| |
| |
| |
| | |
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
|
|/
|
|
| |
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
|
|
|
|
| |
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
|
|\
| |
| | |
Add support for Aliases on CASE expressions
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Add support for INDEX hints in SELECT statement
|
| | |
| | |
| | |
| | | |
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
|
|\ \ \
| |/ /
| | | |
Add support for LOCK and UNLOCK Statements
|
| | |
| | |
| | |
| | | |
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
|
|\ \ \
| |/ /
|/| | |
Throw a parser error on extraneous comma in UPDATE statement
|
| | |
| | |
| | |
| | | |
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
|
|\ \ \
| |/ /
|/| | |
Throw a parse error if a comma missing between two alter operations
|
| | |
| | |
| | |
| | | |
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
* This was originally added in v3.0.8 but was erroneously removed in https://github.com/phpmyadmin/sql-parser/commit/848610a2004e37ec374c2c7a688c8c9131cd5687#diff-1041b02aae148a89853dc0d2710afc9c
* Added a test case for this so that we don't remove it in future releases
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
|
|\ \
| | |
| | | |
Add support for end options in SET statement
|
| | |
| | |
| | |
| | |
| | |
| | | |
* Support `[{ COLLATE expr | DEFAULT }] in `SET NAMES` statement
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
|
|\ \ \
| | | |
| | | | |
Fix building of RenameStatement
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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 #207
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
|
| | |
|
| | |
|
| | |
|
|/
|
|
|
| |
Avoid duplicate if conditions
Use switch/case instead of ifs when possible
|
|
|
|
| |
Signed-off-by: Aswani Prakash <aswani15prakash@gmail.com>
|
|
|
|
|
|
| |
- Added phpdoc for $options as requested by Sami
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- add fallback in case there is no version match
- do not zero one by one, byt by two to match version parts
- better handle corner cases
Fixes https://github.com/phpmyadmin/phpmyadmin/issues/13728
Signed-off-by: Michal Čihař <michal@cihar.com>
|
|
|
|
|
|
| |
Fixes #182
Signed-off-by: Michal Čihař <michal@cihar.com>
|
|
|
|
|
|
| |
Issue #177
Signed-off-by: Michal Čihař <michal@cihar.com>
|
|
|
|
|
|
| |
Fixes #174
Signed-off-by: Michal Čihař <michal@cihar.com>
|
|
|
|
| |
Signed-off-by: Michal Čihař <michal@cihar.com>
|
|
|
|
|
|
| |
Wildcards really can not work here, list the constants.
Signed-off-by: Michal Čihař <michal@cihar.com>
|
|
|
|
| |
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
|
|
|
|
|
|
|
|
| |
This avoids problems later when using it to detect handling of query.
Fixes https://github.com/phpmyadmin/phpmyadmin/issues/13640
Signed-off-by: Michal Čihař <michal@cihar.com>
|
|
|
|
|
|
| |
Fixes #166
Signed-off-by: Michal Čihař <michal@cihar.com>
|
|
|
|
| |
Signed-off-by: Michal Čihař <michal@cihar.com>
|
|
|
|
|
|
|
|
| |
This also includes INTERSECT and EXPECT reserved words.
Issue #166
Signed-off-by: Michal Čihař <michal@cihar.com>
|
|
|
|
| |
Signed-off-by: Michal Čihař <michal@cihar.com>
|
|
|
|
| |
Signed-off-by: Michal Čihař <michal@cihar.com>
|