Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Fix parsing of subquery in FROM clause | Deven Bansod | 2016-09-27 | 1 | -2/+6 | |
| | | | | | | | | | | | | Fix #52 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | |||||
* | | Merge pull request #87 from devenbansod/delete_statement | Michal Čihař | 2016-10-03 | 1 | -5/+1 | |
|\ \ | | | | | | | Implement parsing and building for Delete Statement | |||||
| * | | Fixed some errors and add new tests | Deven Bansod | 2016-09-27 | 1 | -5/+1 | |
| | | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | |||||
| * | | Implement parsing for Delete Statement | Deven Bansod | 2016-09-24 | 1 | -1/+1 | |
| | | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | |||||
* | | | Adjust license URL to be consistent with others (#88) | Michal Čihař | 2016-10-03 | 1 | -1/+1 | |
| | | | | | | | | | | | | Signed-off-by: Michal Čihař <michal@cihar.com> | |||||
* | | | Merge pull request #88 from devenbansod/fix_pma_12100 | Michal Čihař | 2016-10-03 | 2 | -3/+261 | |
|\ \ \ | |_|/ |/| | | Add parsing of CASE Expressions | |||||
| * | | Add more tests | Deven Bansod | 2016-09-26 | 1 | -16/+2 | |
| | | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | |||||
| * | | Remove author tag as per master | Deven Bansod | 2016-09-26 | 1 | -1/+0 | |
| | | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | |||||
| * | | Fix declaration to be same as parentClass | Deven Bansod | 2016-09-26 | 1 | -1/+1 | |
| | | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | |||||
| * | | Fix some issue with error reports and added testcases | Deven Bansod | 2016-09-26 | 1 | -27/+8 | |
| | | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | |||||
| * | | Add parsing of CASE Expressions | Deven Bansod | 2016-09-25 | 2 | -3/+295 | |
| |/ | | | | | | | | | | | Fix phpmyadmin/phpmyadmin#12100 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | |||||
* | | Clarify license | Michal Čihař | 2016-09-26 | 21 | -21/+21 | |
| | | | | | | | | | | | | | | | | | | - 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 metadata | Michal Čihař | 2016-09-26 | 21 | -21/+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> | |||||
* | | Fix parsing of user@host without backquotes | Deven Bansod | 2016-09-20 | 1 | -5/+9 | |
|/ | | | | | | | | | | 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> | |||||
* | Merge remote-tracking branch 'origin/pull/70' | Michal Čihař | 2016-09-13 | 2 | -1/+18 | |
|\ | ||||||
| * | Add backquotes for field names by default | Deven Bansod | 2016-09-10 | 1 | -1/+1 | |
| | | | | | | | | | | | | Fix #72 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | |||||
| * | Fix #59: Non-reserved keywords should be allowed as a field name | Deven Bansod | 2016-09-07 | 1 | -0/+17 | |
| | | | | | | | | | | | | | | | | | | While trying to parse a fieldname, disallow only if it is a reserved keywords. Reserved keywords are still allowed if backquotes are used. Added testcases to cover both with and w/o backquotes scenarios. Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | |||||
* | | Add special cases for SET CHARACTER SET, CHARSET, NAMES | Deven Bansod | 2016-09-10 | 1 | -0/+19 | |
|/ | | | | | | | Fix #51 Fix #74 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | |||||
* | Merge remote-tracking branch 'origin/pull/67' | Michal Čihař | 2016-09-07 | 1 | -0/+1 | |
|\ | ||||||
| * | Fix #53: Allow parsing of COMMENT operation in ALTER statement | Deven Bansod | 2016-09-03 | 1 | -0/+1 | |
| | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | |||||
* | | Merge pull request #69 from devenbansod/fix_pma_12545 | Michal Čihař | 2016-09-07 | 1 | -1/+1 | |
|\ \ | | | | | | | Fix spaces after expression in PartitionDefinition's build | |||||
| * | | Fix spaces after expression in PartitionDefinition's build | Deven Bansod | 2016-09-07 | 1 | -1/+1 | |
| |/ | | | | | | | | | | | Fixes phpmyadmin/phpmyadmin#12545 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | |||||
* | | Add a new test case for statements with missing delimiter | Deven Bansod | 2016-09-07 | 1 | -1/+1 | |
| | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | |||||
* | | Fix test failure | Deven Bansod | 2016-09-07 | 1 | -5/+8 | |
| | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | |||||
* | | Fix #10: Add a check if we find a new start to new statement before delimiter | Deven Bansod | 2016-09-03 | 1 | -0/+9 | |
|/ | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> | |||||
* | Allow to use function name in ASv3.4.4 | Michal Čihař | 2016-04-26 | 1 | -2/+3 | |
| | | | | | | Fixes https://github.com/phpmyadmin/phpmyadmin/issues/12144 Signed-off-by: Michal Čihař <michal@cihar.com> | |||||
* | Add support for FULL OUTER JOIN | Michal Čihař | 2016-04-26 | 1 | -0/+1 | |
| | | | | | | Fixes https://github.com/phpmyadmin/phpmyadmin/issues/12205 Signed-off-by: Michal Čihař <michal@cihar.com> | |||||
* | Recognize REGEXP and RLIKE | Michal Čihař | 2016-04-07 | 1 | -0/+2 | |
| | | | | | | Issue #41 Signed-off-by: Michal Čihař <michal@cihar.com> | |||||
* | Better recognize missing symbol in create definition | Michal Čihař | 2016-04-06 | 1 | -1/+7 | |
| | | | | | | Fixes #47 Signed-off-by: Michal Čihař <michal@cihar.com> | |||||
* | Correctly compare for empty string | Michal Čihař | 2016-04-06 | 1 | -2/+2 | |
| | | | | | | | | | The empty('0') returns true, so we need to be careful when handling expressions in strings. Fixes https://github.com/phpmyadmin/phpmyadmin/issues/12165 Signed-off-by: Michal Čihař <michal@cihar.com> | |||||
* | Do not consume closing bracket if we didn't consume opening one | Michal Čihař | 2016-04-06 | 1 | -0/+3 | |
| | | | | | | See also https://github.com/phpmyadmin/phpmyadmin/issues/12165 Signed-off-by: Michal Čihař <michal@cihar.com> | |||||
* | Properly handle brackets in expression | Michal Čihař | 2016-03-18 | 1 | -0/+3 | |
| | | | | | | Fixes https://github.com/phpmyadmin/phpmyadmin/issues/12026 Signed-off-by: Michal Čihař <michal@cihar.com> | |||||
* | Fixed parsing of table with DEFAULT and COMMENT. | Michal Čihař | 2016-03-02 | 1 | -0/+3 | |
| | | | | | | Fixes #39 Signed-off-by: Michal Čihař <michal@cihar.com> | |||||
* | Recognize ALL when used with WHERE clause | Ujjwal Wahi | 2016-02-26 | 1 | -0/+1 | |
| | | | | | | Fixes phpmyadmin/phpmyadmin#12028 Signed-off-by: Ujjwal Wahi <w.ujjwal@gmail.com> | |||||
* | CreateDefinition: Properly parse DEFAULT value.v3.4.0 | Dan Ungureanu | 2016-02-23 | 1 | -1/+1 | |
| | | | | | | Fixes phpmyadmin/phpmyadmin#12012. Signed-off-by: Dan Ungureanu <udan1107@gmail.com> | |||||
* | Misc: Fixed coding style issues. | Dan Ungureanu | 2016-02-21 | 1 | -1/+1 | |
| | | | | Signed-off-by: Dan Ungureanu <udan1107@gmail.com> | |||||
* | AlterOperation: Parse ALTER VIEW correctly. | Dan Ungureanu | 2016-02-21 | 1 | -0/+11 | |
| | | | | Signed-off-by: Dan Ungureanu <udan1107@gmail.com> | |||||
* | Expression: Improved error messages related to aliases. | Dan Ungureanu | 2016-02-21 | 1 | -2/+2 | |
| | | | | Signed-off-by: Dan Ungureanu <udan1107@gmail.com> | |||||
* | OptionsArray: Fixed case-sensitivity issues. | Dan Ungureanu | 2016-02-21 | 1 | -6/+11 | |
| | | | | Signed-off-by: Dan Ungureanu <udan1107@gmail.com> | |||||
* | Misc: Fixed some more issues reported by Scrutinizer. | Dan Ungureanu | 2016-02-21 | 5 | -6/+14 | |
| | | | | Signed-off-by: Dan Ungureanu <udan1107@gmail.com> | |||||
* | Misc: Fixed some issues reported by Scrutinizer. | Dan Ungureanu | 2016-02-21 | 3 | -5/+5 | |
| | | | | Signed-off-by: Dan Ungureanu <udan1107@gmail.com> | |||||
* | Fix ALTER statement not constructed properly, phpmyadmin/sql-parser#33 | Durgesh | 2016-02-19 | 1 | -10/+27 | |
| | | | | Signed-off-by: Durgesh <007durgesh219@gmail.com> | |||||
* | Update corresponding build method | Madhura Jayaratne | 2016-02-19 | 1 | -2/+4 | |
| | | | | Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com> | |||||
* | Improve variable and flow documentation. Simplify condition | Madhura Jayaratne | 2016-02-19 | 1 | -3/+13 | |
| | | | | Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com> | |||||
* | Fix Row count wrong when grouping joined tables, phpmyadmin/phpmyadmin#11982 | Durgesh | 2016-02-18 | 1 | -3/+11 | |
| | | | | Signed-off-by: Durgesh <007durgesh219@gmail.com> | |||||
* | Do not fail on function which is reserved in a WHERE condition | Michal Čihař | 2016-02-17 | 1 | -1/+3 | |
| | | | | | | Fixes https://github.com/phpmyadmin/phpmyadmin/issues/11975 Signed-off-by: Michal Čihař <michal@cihar.com> | |||||
* | Condition: Allow keyword INTERVAL.v3.3.1 | Dan Ungureanu | 2016-02-12 | 1 | -0/+1 | |
| | ||||||
* | Expression: Refactored parsing options.v3.3.0 | Dan Ungureanu | 2016-02-12 | 9 | -38/+71 | |
| | ||||||
* | Misc: Fixed coding style. | Dan Ungureanu | 2016-02-10 | 3 | -3/+3 | |
| | ||||||
* | Expression: Rewrote expression parsing. | Dan Ungureanu | 2016-02-04 | 1 | -111/+123 | |
| | ||||||
* | ArrayObj: Handle more complex expressions in arrays. | Dan Ungureanu | 2016-02-02 | 1 | -47/+82 | |
| | ||||||
* | Condition: Allow IF in conditions. | Dan Ungureanu | 2016-01-29 | 1 | -16/+23 | |
| | ||||||
* | Merge pull request #26 from madhuracj/bug11840 | Dan Ungureanu | 2016-01-13 | 1 | -0/+1 | |
|\ | | | | | Fixes phpmyadmin/phpmyadmin#11840. Index comments not working properly. | |||||
| * | Fixes https://github.com/phpmyadmin/phpmyadmin/issues/11840 | Madhura Jayaratne | 2016-01-11 | 1 | -0/+1 | |
| | | ||||||
* | | CreateStatement: The DEFAULT option may be an expression. | Dan Ungureanu | 2016-01-13 | 1 | -1/+1 | |
|/ | ||||||
* | Allow NULL in expressions.v3.0.8 | Dan Ungureanu | 2015-12-18 | 2 | -0/+2 | |
| | ||||||
* | Updated PHPUnit to 5.1 and fixed some of the tests. | Dan Ungureanu | 2015-12-18 | 1 | -11/+2 | |
| | ||||||
* | Added UNION ALL as a type of UNION. | Dan Ungureanu | 2015-12-17 | 1 | -1/+5 | |
| | ||||||
* | Expressions are permitted in SET operations. | Dan Ungureanu | 2015-12-17 | 1 | -10/+19 | |
| | ||||||
* | Added STRAIGHT_JOIN as a known type of join. | Dan Ungureanu | 2015-12-17 | 1 | -1/+2 | |
| | ||||||
* | Added missing definitions for MATCH and AGAINST. | Dan Ungureanu | 2015-12-17 | 1 | -0/+1 | |
| | ||||||
* | Expressions may begin with a function that is also a reserved keyword.v3.0.7 | Dan Ungureanu | 2015-11-17 | 1 | -0/+1 | |
| | ||||||
* | Fixed coding style. | Dan Ungureanu | 2015-11-08 | 1 | -2/+2 | |
| | ||||||
* | Improved test coverage. | Dan Ungureanu | 2015-11-08 | 1 | -2/+3 | |
| | ||||||
* | Accept NOT operator in conditions. | Dan Ungureanu | 2015-11-07 | 1 | -0/+1 | |
| | ||||||
* | Fix error message.v3.0.4 | Dan Ungureanu | 2015-10-21 | 1 | -1/+3 | |
| | ||||||
* | Add EXISTS as an acceptable keyword in conditions.v3.0.2 | Dan Ungureanu | 2015-10-10 | 1 | -0/+1 | |
| | ||||||
* | Minor code improvements. | Dan Ungureanu | 2015-10-03 | 1 | -1/+0 | |
| | ||||||
* | Support for references from different tables.v3.0.0 | Dan Ungureanu | 2015-10-03 | 1 | -4/+12 | |
| | ||||||
* | Properly parse options when the value of the option is '='.v2.1.2 | Dan Ungureanu | 2015-10-02 | 1 | -1/+1 | |
| | ||||||
* | Only RANGE and LIST type partitions support VALUES.v2.1.1 | Dan Ungureanu | 2015-10-01 | 1 | -4/+15 | |
| | ||||||
* | Fix failing test. | Dan Ungureanu | 2015-09-30 | 1 | -1/+1 | |
| | ||||||
* | Added missing NOT IN operator.v2.0.3 | Dan Ungureanu | 2015-09-30 | 1 | -0/+1 | |
| | ||||||
* | Removed invalid option. | Dan Ungureanu | 2015-09-30 | 1 | -1/+0 | |
| | ||||||
* | Added support for OUTER as an optional keyword in joins.v2.0.2 | Dan Ungureanu | 2015-09-30 | 1 | -0/+2 | |
| | ||||||
* | Improved partition support.v2.0.1 | Dan Ungureanu | 2015-09-30 | 1 | -2/+3 | |
| | ||||||
* | Updated coding style to follow PSR-2 coding standards. | Dan Ungureanu | 2015-09-25 | 20 | -27/+15 | |
| | ||||||
* | Better parsing for CREATE TABLE statements.v2.0.0 | Dan Ungureanu | 2015-09-25 | 1 | -3/+38 | |
| | | | | Fixes #16. | |||||
* | Fixed spacing. | Dan Ungureanu | 2015-08-24 | 1 | -1/+1 | |
| | ||||||
* | Improved documentation. | Dan Ungureanu | 2015-08-24 | 1 | -1/+1 | |
| | ||||||
* | Fixed minor style issues in generated queries.v1.0.0 | Dan Ungureanu | 2015-08-20 | 21 | -28/+55 | |
| | | | | | | | | | Introduced options for builders. Data types are lower case in CREATE TABLE statements, but in any other case they continue to be upper case. Formatter uses 2 spaces instead of 4 for indentation as specified in the MySQL Coding Guidelines. https://dev.mysql.com/doc/internals/en/indentation-spacing.html. | |||||
* | Replaced explicit calls to Component::build() with implicit calls to ↵ | Dan Ungureanu | 2015-08-18 | 18 | -105/+66 | |
| | | | | | | | Component::__toString(). Fixed bugs that caused field names like '0', '0.0', etc. to be considered invalid. Refactoring. | |||||
* | Added missing table options to AlterOperation. Fixes #14. | Dan Ungureanu | 2015-08-16 | 1 | -41/+49 | |
| | ||||||
* | Fixed Scrutinizer issue. | Dan Ungureanu | 2015-08-16 | 2 | -4/+4 | |
| | ||||||
* | Fixed a couple of minor bugs in partition parsing. | Dan Ungureanu | 2015-08-16 | 2 | -9/+23 | |
| | | | | | | | 'MAXVALUE' can be used for partitions. The correct class is used for parsing. Options may be specified for the class that is used for parsing. Wrote tests. | |||||
* | Improved support for partitions in the builder and formatter. | Dan Ungureanu | 2015-08-16 | 1 | -0/+28 | |
| | ||||||
* | Added missing partition definition. | Dan Ungureanu | 2015-08-15 | 1 | -0/+181 | |
| | ||||||
* | Consistent PHPDoc style. | Dan Ungureanu | 2015-08-15 | 19 | -27/+77 | |
| | ||||||
* | Initial support for partitions. | Dan Ungureanu | 2015-08-15 | 1 | -4/+8 | |
| | ||||||
* | Finished builders for components. | Dan Ungureanu | 2015-08-14 | 4 | -8/+61 | |
| | ||||||
* | Coding style fixes. | Dan Ungureanu | 2015-08-11 | 2 | -5/+5 | |
| | ||||||
* | Introduced the buffered query parser. This is used to extract statements from a | Dan Ungureanu | 2015-08-09 | 1 | -2/+2 | |
| | | | | | | buffered string that may be parsed using the parser. DELIMITER is no longer reported as unexpected beginning of statement. Fixed typos. | |||||
* | Fixed minor coding style issue. | Dan Ungureanu | 2015-08-08 | 1 | -1/+1 | |
| | ||||||
* | Refactored field to something more appropriate depending on the context in ↵ | Dan Ungureanu | 2015-08-08 | 7 | -30/+30 | |
| | | | | which it is used. | |||||
* | Fixed a bug where brackets in alter operation weren't used. | Dan Ungureanu | 2015-08-05 | 1 | -1/+3 | |
| | ||||||
* | Fixed coding style. | Dan Ungureanu | 2015-08-01 | 1 | -3/+1 | |
| | | | | Fixed a bug which caused an infinite loop when a invalid DELIMITER statement was provided. | |||||
* | Removed extra space in data types. | Dan Ungureanu | 2015-07-28 | 1 | -1/+1 | |
| | | | | Added comment about encoding. | |||||
* | Improved support for UNION. | Dan Ungureanu | 2015-07-25 | 1 | -0/+41 | |
| | ||||||
* | Added support for SELECT * FROM dual; | Dan Ungureanu | 2015-07-25 | 2 | -2/+8 | |
| | ||||||
* | Added builder for ORDER keyword. | Dan Ungureanu | 2015-07-25 | 1 | -1/+31 | |
| |