summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Fix errors detected by PHPStan at level 0Maurício Meneghini Fauth2019-05-087-3/+6
|/ / | | | | | | Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
* | Fix failing test from pull request #224Isaac Bennetch2019-05-061-1/+1
| | | | | | | | Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
* | Add CHANGELOG entry for pull request #224Isaac Bennetch2019-05-061-0/+1
| | | | | | | | Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
* | Fix issue #223: can't parse multiple call statements (#224)Everstray Jun Sinri Edogawa2019-05-062-8/+26
| | | | | | | | | | Fix for errors when using multiple CALL statements and no arguments/parenthesis. Fixes: #223
* | Add CHANGELOG entry for pull request #241, commit a7c5771Isaac Bennetch2019-05-051-0/+1
| | | | | | | | Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
* | Merge pull request #241 from LeSuisse/php-warning-incomplete-case-expressionIsaac Bennetch2019-05-0519-20/+26
|\ \ | | | | | | Fix PHP warnings when building an incomplete CASE expression
| * | Fix PHP warnings when building an incomplete CASE expressionThomas Gerbet2019-04-1019-20/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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 ```
* | | Merge branch 'origin/master' into Weblate.Hosted Weblate2019-04-302-15/+16
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | [CI skip] Translation: phpMyAdmin/SQL parser Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/sql-parser/
| * | | Translated using Weblate (Norwegian Bokmål)Allan Nordhøy2019-04-302-15/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently translated at 90.9% (40 of 44 strings) [CI skip] Translation: phpMyAdmin/SQL parser Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/sql-parser/nb_NO/ Signed-off-by: Allan Nordhøy <epost@anotheragency.no>
* | | | Merge pull request #243 from ibennetch/usageIsaac Bennetch2019-04-302-6/+15
|\ \ \ \ | |/ / / |/| | | Add usage hints for command line stdin
| * | | Add usage hints for command line stdinIsaac Bennetch2019-04-292-6/+15
| |/ / | | | | | | | | | Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
* | | Translated using Weblate (Czech)William Desportes2019-04-282-7/+5
|/ / | | | | | | | | | | Currently translated at 25.0% (11 of 44 strings) [CI skip]
* | Add CHANGELOG entriesIsaac Bennetch2019-04-071-0/+2
| | | | | | | | Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
* | Add some documentation about the new ability to read from stdin, introduced ↵Isaac Bennetch2019-04-061-0/+6
| | | | | | | | | | | | with #239 Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
* | Add tokenize-query to Composer bin list, so a link will be created in ↵Isaac Bennetch2019-04-061-1/+2
| | | | | | | | | | | | | | | | vendor/bin/ Fixes #240 Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
* | Merge pull request #239 from staabm/stdinIsaac Bennetch2019-04-062-0/+49
|\ \ | | | | | | Support reading from stdin
| * | added stdin testcoverageMarkus Staab2019-04-051-0/+26
| | |
| * | Support reading from stdinMarkus Staab2019-04-051-0/+23
|/ /
* | Translated using Weblate (Kazakh)WWWesten2019-04-012-72/+50
| | | | | | | | | | | | Currently translated at 100.0% (44 of 44 strings) [CI skip]
* | Translated using Weblate (Persian)manssour2019-03-252-14/+21
| | | | | | | | | | | | Currently translated at 0.0% (0 of 44 strings) [CI skip]
* | fix incorrect PR title in ChangeLogDeven Bansod2019-03-241-1/+1
| |
* | Merge branch 'master' of https://github.com/phpmyadmin/sql-parserDeven Bansod2019-03-132-3/+88
|\ \
| * \ Merge pull request #233 from devenbansod/fix/pma/14995William Desportes2019-03-122-3/+88
| |\ \ | | | | | | | | fix: incorrect lastClauseIdx in Utils::getQuery
| | * | fix: incorrect lastClauseIdx in Util::getQueryDeven Bansod2019-03-122-3/+88
| |/ /
* | | Add ChangeLog for #228, #229 and #233Deven Bansod2019-03-131-0/+3
|/ /
* | Translated using Weblate (Indonesian)Muhammad Rifqi Priyo Susanto2019-03-112-111/+52
| | | | | | | | | | | | Currently translated at 100.0% (44 of 44 strings) [CI skip]
* | Fix #229 - Incorrect error on DEFAULT keyword in ALTER operationWilliam Desportes2019-03-075-9/+16
|\ \ | | | | | | | | | | | | Closes: #230 Fixes: #229 Signed-off-by: William Desportes <williamdes@wdes.fr>
| * | Fix incorrect error on DEFAULT keyword in ALTER operationDeven Bansod2019-03-075-9/+16
|/ /
* | Merge pull request #228 from mobtitude/fix-whitespacesDeven Bansod2019-02-269-28/+52
|\ \ | | | | | | Fix redundant whitespaces - Issue #227
| * | Fixed statements INSERT and REPLACE + options.Przemek Szalko2019-02-154-3/+27
| | |
| * | Changed implementation of build() methods to generate more consistent SQL.Przemek Szalko2019-02-159-27/+27
| | | | | | | | | | | | This commit fixes implementation of `build()` methods to produce more consistent SQL code without redundant spaces.
* | | Translated using Weblate (Japanese)Joshua PowellNishiyama2019-02-222-18/+8
|/ / | | | | | | | | | | Currently translated at 100.0% (44 of 44 strings) [CI skip]
* | Translated using Weblate (Japanese)Joshua PowellNishiyama2019-02-072-9/+9
| | | | | | | | | | | | Currently translated at 84.1% (37 of 44 strings) [CI skip]
* | Fix risky testsMaurício Meneghini Fauth2019-01-1627-55/+62
| | | | | | | | | | | | | | - 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-16160-103/+177
| | | | | | | | Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
* | Apply phpmyadmin/coding-standardMaurício Meneghini Fauth2019-01-16132-2094/+2958
| | | | | | | | Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
* | Create CODE_OF_CONDUCT.mdMaurício Meneghini Fauth2019-01-111-0/+76
| | | | | | Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
* | Merge pull request #220 from mauriciofauth/php71Maurício Meneghini Fauth2019-01-084-21/+12
|\ \ | | | | | | Bump minimum version to PHP 7.1
| * | Bump minimum version to PHP 7.1Maurício Meneghini Fauth2019-01-084-21/+12
|/ / | | | | | | | | | | Drop support for PHP 5.3, PHP 5.4, PHP 5.5, PHP 5.6, PHP 7.0 and HHVM Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
* | Fix phpunit config name on TravisMaurício Meneghini Fauth2019-01-081-2/+2
| | | | | | | | Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
* | Rename phpunit.xml to phpunit.xml.distMaurício Meneghini Fauth2019-01-082-0/+1
| | | | | | | | Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
* | Translated using Weblate (Norwegian Bokmål)Allan Nordhøy2019-01-082-11/+9
| | | | | | | | | | | | Currently translated at 93.2% (41 of 44 strings) [CI skip]
* | Prepare for next releaseIsaac Bennetch2019-01-051-0/+2
|/ | | | Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
* Prepare to release 4.3.1v4.3.1Isaac Bennetch2019-01-051-1/+1
| | | | Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
* Merge pull request #219 from devenbansod/fix/218Deven Bansod2019-01-055-1/+6
|\ | | | | Fix incorrect error on DEFAULT keyword in ALTER operation
| * Add ChangeLog for Issue 218Deven Bansod2019-01-031-0/+2
| | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
| * Fix incorrect error on DEFAULT keyword in ALTER operationDeven Bansod2019-01-034-1/+4
|/ | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Prepare CHANGELOG for next releaseIsaac Bennetch2018-12-251-0/+2
| | | | Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
* CHANGELOG dates for 4.3.0 releasev4.3.0Isaac Bennetch2018-12-251-1/+1
| | | | Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
* Add issue numbers and improve CHANGELOG entriesIsaac Bennetch2018-12-251-8/+10
| | | | Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
* Merge pull request #203 from mostertb/case-aliasIsaac Bennetch2018-12-2423-2/+166
|\ | | | | Add support for Aliases on CASE expressions
| * Apply php-cs-fixer formatting changesBrad Mostert2018-10-131-12/+9
| |
| * Add component build tests from CASE expressions with aliasesBrad Mostert2018-10-131-0/+28
| |
| * Add tests for parsing of CASE expressions with aliasesBrad Mostert2018-10-1321-0/+66
| |
| * Handle end of statement while parsing CASE aliasBrad Mostert2018-10-131-0/+4
| |
| * Explicitly handle case where keyword encountered before alias value foundBrad Mostert2018-10-131-8/+10
| |
| * Handle CASE alias without ASBrad Mostert2018-10-131-16/+14
| |
| * Add Support for CASE ... END AS aliasBrad Mostert2018-10-131-0/+69
| |
* | Merge pull request #217 from devenbansod/task/add-changelog-entriesIsaac Bennetch2018-12-241-0/+9
|\ \ | | | | | | Add missing ChangeLog entries
| * | Add missing ChangeLog entriesDeven Bansod2018-12-231-0/+9
| | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* | | Merge branch 'origin/master' into Weblate.Hosted Weblate2018-12-232-5/+5
|\ \ \
| * | | Translated using Weblate (French)tmtisfree2018-12-232-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | Currently translated at 100.0% (44 of 44 strings) [CI skip]
* | | | Merge pull request #216 from devenbansod/fix/199Deven Bansod2018-12-2318-0/+256
|\ \ \ \ | |/ / / |/| | | Add support for INDEX hints in SELECT statement
| * | | Add support for INDEX hints in SELECT statementDeven Bansod2018-12-2318-0/+256
| | | | | | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* | | | Merge pull request #215 from devenbansod/fix/180Deven Bansod2018-12-2242-0/+568
|\ \ \ \ | |/ / / | | | | Add support for LOCK and UNLOCK Statements
| * | | Add support for LOCK and UNLOCK StatementsDeven Bansod2018-12-2242-0/+568
| |/ / | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* | | Merge pull request #214 from devenbansod/fix/160Deven Bansod2018-12-224-4/+45
|\ \ \ | |/ / |/| | Throw a parser error on extraneous comma in UPDATE statement
| * | Throw a parser error on extraneous comma in UPDATE statementDeven Bansod2018-12-224-4/+45
| | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* | | Merge pull request #212 from devenbansod/fix/189Deven Bansod2018-12-218-0/+40
|\ \ \ | |/ / |/| | Throw a parse error if a comma missing between two alter operations
| * | Throw a parse error if a comma missing between two alter operationsDeven Bansod2018-12-218-0/+40
| | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* | | Merge pull request #213 from devenbansod/fix/196Deven Bansod2018-12-213-0/+14
|\ \ \ | |/ / |/| | Fix: Add missing support for STRAIGHT_JOIN
| * | Fix: Add missing support for STRAIGHT_JOINDeven Bansod2018-12-213-0/+14
|/ / | | | | | | | | | | | | | | * 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>
* | Merge pull request #211 from devenbansod/fix/190Deven Bansod2018-12-2111-10/+69
|\ \ | | | | | | Add support for end options in SET statement
| * | Add support for end options in SET statementDeven Bansod2018-12-2111-10/+69
| | | | | | | | | | | | | | | | | | * Support `[{ COLLATE expr | DEFAULT }] in `SET NAMES` statement Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* | | Merge pull request #210 from devenbansod/fix/204Deven Bansod2018-12-214-2/+52
|\ \ \ | | | | | | | | Fix building of RenameStatement
| * | | Fix building of RenameStatementDeven Bansod2018-12-204-2/+52
| |/ / | | | | | | | | | | | | | | | | | | | | | * 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>
* | | Merge pull request #209 from devenbansod/test/create-replace-viewWilliam Desportes2018-12-201-0/+12
|\ \ \ | | | | | | | | | | | | | | | | Add tests for builder of CREATE or REPLACE VIEW statement Signed-off-by: William Desportes <williamdes@wdes.fr>
| * | | Add tests for builder of CREATE or REPLACE VIEWDeven Bansod2018-12-201-0/+12
| |/ / | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* | | Merge pull request #208 from devenbansod/feature/purge-statementWilliam Desportes2018-12-2018-0/+212
|\ \ \ | |/ / |/| | | | | | | | Add support for PURGE statements Signed-off-by: William Desportes <williamdes@wdes.fr>
| * | Add support for PURGE statementsDeven Bansod2018-12-2018-0/+212
|/ / | | | | | | | | | | Fix #207 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* | Merge pull request #206 from bperel/cleanupDeven Bansod2018-12-0936-506/+491
|\ \ | | | | | | | | | | | | | | | | | | Cleanup the code * Avoid duplicate if conditions * Use switch/case instead of ifs when possible * Use triple (in)equalities when type compatibility is ensured
| * | Fix unused variableBruno Perel2018-12-091-3/+3
| | |
| * | Fix testsBruno Perel2018-11-273-21/+24
| | |
| * | Use triple (in)equalities when type compatibility is ensuredBruno Perel2018-11-2618-58/+56
| | |
| * | Cleanup and improve readability:Bruno Perel2018-11-2628-473/+457
| | | | | | | | | | | | | | | Avoid duplicate if conditions Use switch/case instead of ifs when possible
* | | Translated using Weblate (Gujarati)Hardik Jogadia2018-12-052-19/+20
| | | | | | | | | | | | | | | | | | Currently translated at 34.1% (15 of 44 strings) [CI skip]
* | | Translated using Weblate (Norwegian Bokmål)Kurt Eilertsen2018-11-292-71/+33
| | | | | | | | | | | | | | | | | | Currently translated at 86.4% (38 of 44 strings) [CI skip]
* | | Translated using Weblate (Chinese (Traditional))Walter Cheuk2018-11-292-6/+4
|/ / | | | | | | | | | | Currently translated at 100.0% (44 of 44 strings) [CI skip]
* | Prepare for next releaseIsaac Bennetch2018-10-311-0/+2
| | | | | | | | Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
* | Prepare to release version 4.2.5v4.2.5Isaac Bennetch2018-10-311-1/+1
|/ | | | Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
* Add ChangeLog entry for #198Maurício Meneghini Fauth2018-10-081-0/+2
| | | | Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
* Merge pull request #198 from aswaniprakash/create_or_replaceMaurício Meneghini Fauth2018-10-081-1/+1
|\ | | | | Create or replace view query not working issue solved
| * Create or replace view query not working issue solvedAswani Prakash2018-07-031-1/+1
| | | | | | | | Signed-off-by: Aswani Prakash <aswani15prakash@gmail.com>
* | Translated using Weblate (Portuguese)ssantos2018-10-082-13/+5
| | | | | | | | | | | | Currently translated at 100.0% (44 of 44 strings) [CI skip]
* | Translated using Weblate (Portuguese)Ayalos2018-10-062-71/+45
| | | | | | | | | | | | Currently translated at 88.6% (39 of 44 strings) [CI skip]
* | Translated using Weblate (Sinhala)Menuka Ishan2018-10-012-24/+14
| | | | | | | | | | | | Currently translated at 20.4% (9 of 44 strings) [CI skip]
* | Translated using Weblate (Thai)Anusuk Sangubon2018-08-172-6/+6
| | | | | | | | | | | | Currently translated at 72.7% (32 of 44 strings) [CI skip]
* | Translated using Weblate (Chinese (Simplified))popcorner2018-08-022-15/+15
| | | | | | | | | | | | Currently translated at 100.0% (44 of 44 strings) [CI skip]
* | Translated using Weblate (Chinese (Simplified))popcorner2018-08-012-89/+46
| | | | | | | | | | | | Currently translated at 100.0% (44 of 44 strings) [CI skip]
* | Translated using Weblate (Romanian)Dan Caragea2018-07-242-9/+4
| | | | | | | | | | | | Currently translated at 100.0% (44 of 44 strings) [CI skip]