summaryrefslogtreecommitdiffstats
path: root/src/Components
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix parsing of subquery in FROM clauseDeven Bansod2016-09-271-2/+6
| | | | | | | | | | | | Fix #52 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* | Merge pull request #87 from devenbansod/delete_statementMichal Čihař2016-10-031-5/+1
|\ \ | | | | | | Implement parsing and building for Delete Statement
| * | Fixed some errors and add new testsDeven Bansod2016-09-271-5/+1
| | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
| * | Implement parsing for Delete StatementDeven Bansod2016-09-241-1/+1
| | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* | | Adjust license URL to be consistent with others (#88)Michal Čihař2016-10-031-1/+1
| | | | | | | | | | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* | | Merge pull request #88 from devenbansod/fix_pma_12100Michal Čihař2016-10-032-3/+261
|\ \ \ | |_|/ |/| | Add parsing of CASE Expressions
| * | Add more testsDeven Bansod2016-09-261-16/+2
| | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
| * | Remove author tag as per masterDeven Bansod2016-09-261-1/+0
| | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
| * | Fix declaration to be same as parentClassDeven Bansod2016-09-261-1/+1
| | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
| * | Fix some issue with error reports and added testcasesDeven Bansod2016-09-261-27/+8
| | | | | | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
| * | Add parsing of CASE ExpressionsDeven Bansod2016-09-252-3/+295
| |/ | | | | | | | | | | Fix phpmyadmin/phpmyadmin#12100 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* | Clarify licenseMichal Čihař2016-09-2621-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 metadataMichal Čihař2016-09-2621-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 backquotesDeven Bansod2016-09-201-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-132-1/+18
|\
| * Add backquotes for field names by defaultDeven Bansod2016-09-101-1/+1
| | | | | | | | | | | | Fix #72 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
| * Fix #59: Non-reserved keywords should be allowed as a field nameDeven Bansod2016-09-071-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, NAMESDeven Bansod2016-09-101-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-071-0/+1
|\
| * Fix #53: Allow parsing of COMMENT operation in ALTER statementDeven Bansod2016-09-031-0/+1
| | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* | Merge pull request #69 from devenbansod/fix_pma_12545Michal Čihař2016-09-071-1/+1
|\ \ | | | | | | Fix spaces after expression in PartitionDefinition's build
| * | Fix spaces after expression in PartitionDefinition's buildDeven Bansod2016-09-071-1/+1
| |/ | | | | | | | | | | Fixes phpmyadmin/phpmyadmin#12545 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* | Add a new test case for statements with missing delimiterDeven Bansod2016-09-071-1/+1
| | | | | | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* | Fix test failureDeven Bansod2016-09-071-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 delimiterDeven Bansod2016-09-031-0/+9
|/ | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Allow to use function name in ASv3.4.4Michal Čihař2016-04-261-2/+3
| | | | | | Fixes https://github.com/phpmyadmin/phpmyadmin/issues/12144 Signed-off-by: Michal Čihař <michal@cihar.com>
* Add support for FULL OUTER JOINMichal Čihař2016-04-261-0/+1
| | | | | | Fixes https://github.com/phpmyadmin/phpmyadmin/issues/12205 Signed-off-by: Michal Čihař <michal@cihar.com>
* Recognize REGEXP and RLIKEMichal Čihař2016-04-071-0/+2
| | | | | | Issue #41 Signed-off-by: Michal Čihař <michal@cihar.com>
* Better recognize missing symbol in create definitionMichal Čihař2016-04-061-1/+7
| | | | | | Fixes #47 Signed-off-by: Michal Čihař <michal@cihar.com>
* Correctly compare for empty stringMichal Čihař2016-04-061-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 oneMichal Čihař2016-04-061-0/+3
| | | | | | See also https://github.com/phpmyadmin/phpmyadmin/issues/12165 Signed-off-by: Michal Čihař <michal@cihar.com>
* Properly handle brackets in expressionMichal Čihař2016-03-181-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-021-0/+3
| | | | | | Fixes #39 Signed-off-by: Michal Čihař <michal@cihar.com>
* Recognize ALL when used with WHERE clauseUjjwal Wahi2016-02-261-0/+1
| | | | | | Fixes phpmyadmin/phpmyadmin#12028 Signed-off-by: Ujjwal Wahi <w.ujjwal@gmail.com>
* CreateDefinition: Properly parse DEFAULT value.v3.4.0Dan Ungureanu2016-02-231-1/+1
| | | | | | Fixes phpmyadmin/phpmyadmin#12012. Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
* Misc: Fixed coding style issues.Dan Ungureanu2016-02-211-1/+1
| | | | Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
* AlterOperation: Parse ALTER VIEW correctly.Dan Ungureanu2016-02-211-0/+11
| | | | Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
* Expression: Improved error messages related to aliases.Dan Ungureanu2016-02-211-2/+2
| | | | Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
* OptionsArray: Fixed case-sensitivity issues.Dan Ungureanu2016-02-211-6/+11
| | | | Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
* Misc: Fixed some more issues reported by Scrutinizer.Dan Ungureanu2016-02-215-6/+14
| | | | Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
* Misc: Fixed some issues reported by Scrutinizer.Dan Ungureanu2016-02-213-5/+5
| | | | Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
* Fix ALTER statement not constructed properly, phpmyadmin/sql-parser#33Durgesh2016-02-191-10/+27
| | | | Signed-off-by: Durgesh <007durgesh219@gmail.com>
* Update corresponding build methodMadhura Jayaratne2016-02-191-2/+4
| | | | Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
* Improve variable and flow documentation. Simplify conditionMadhura Jayaratne2016-02-191-3/+13
| | | | Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
* Fix Row count wrong when grouping joined tables, phpmyadmin/phpmyadmin#11982Durgesh2016-02-181-3/+11
| | | | Signed-off-by: Durgesh <007durgesh219@gmail.com>
* Do not fail on function which is reserved in a WHERE conditionMichal Čihař2016-02-171-1/+3
| | | | | | Fixes https://github.com/phpmyadmin/phpmyadmin/issues/11975 Signed-off-by: Michal Čihař <michal@cihar.com>
* Condition: Allow keyword INTERVAL.v3.3.1Dan Ungureanu2016-02-121-0/+1
|
* Expression: Refactored parsing options.v3.3.0Dan Ungureanu2016-02-129-38/+71
|
* Misc: Fixed coding style.Dan Ungureanu2016-02-103-3/+3
|
* Expression: Rewrote expression parsing.Dan Ungureanu2016-02-041-111/+123
|
* ArrayObj: Handle more complex expressions in arrays.Dan Ungureanu2016-02-021-47/+82
|
* Condition: Allow IF in conditions.Dan Ungureanu2016-01-291-16/+23
|
* Merge pull request #26 from madhuracj/bug11840Dan Ungureanu2016-01-131-0/+1
|\ | | | | Fixes phpmyadmin/phpmyadmin#11840. Index comments not working properly.
| * Fixes https://github.com/phpmyadmin/phpmyadmin/issues/11840Madhura Jayaratne2016-01-111-0/+1
| |
* | CreateStatement: The DEFAULT option may be an expression.Dan Ungureanu2016-01-131-1/+1
|/
* Allow NULL in expressions.v3.0.8Dan Ungureanu2015-12-182-0/+2
|
* Updated PHPUnit to 5.1 and fixed some of the tests.Dan Ungureanu2015-12-181-11/+2
|
* Added UNION ALL as a type of UNION.Dan Ungureanu2015-12-171-1/+5
|
* Expressions are permitted in SET operations.Dan Ungureanu2015-12-171-10/+19
|
* Added STRAIGHT_JOIN as a known type of join.Dan Ungureanu2015-12-171-1/+2
|
* Added missing definitions for MATCH and AGAINST.Dan Ungureanu2015-12-171-0/+1
|
* Expressions may begin with a function that is also a reserved keyword.v3.0.7Dan Ungureanu2015-11-171-0/+1
|
* Fixed coding style.Dan Ungureanu2015-11-081-2/+2
|
* Improved test coverage.Dan Ungureanu2015-11-081-2/+3
|
* Accept NOT operator in conditions.Dan Ungureanu2015-11-071-0/+1
|
* Fix error message.v3.0.4Dan Ungureanu2015-10-211-1/+3
|
* Add EXISTS as an acceptable keyword in conditions.v3.0.2Dan Ungureanu2015-10-101-0/+1
|
* Minor code improvements.Dan Ungureanu2015-10-031-1/+0
|
* Support for references from different tables.v3.0.0Dan Ungureanu2015-10-031-4/+12
|
* Properly parse options when the value of the option is '='.v2.1.2Dan Ungureanu2015-10-021-1/+1
|
* Only RANGE and LIST type partitions support VALUES.v2.1.1Dan Ungureanu2015-10-011-4/+15
|
* Fix failing test.Dan Ungureanu2015-09-301-1/+1
|
* Added missing NOT IN operator.v2.0.3Dan Ungureanu2015-09-301-0/+1
|
* Removed invalid option.Dan Ungureanu2015-09-301-1/+0
|
* Added support for OUTER as an optional keyword in joins.v2.0.2Dan Ungureanu2015-09-301-0/+2
|
* Improved partition support.v2.0.1Dan Ungureanu2015-09-301-2/+3
|
* Updated coding style to follow PSR-2 coding standards.Dan Ungureanu2015-09-2520-27/+15
|
* Better parsing for CREATE TABLE statements.v2.0.0Dan Ungureanu2015-09-251-3/+38
| | | | Fixes #16.
* Fixed spacing.Dan Ungureanu2015-08-241-1/+1
|
* Improved documentation.Dan Ungureanu2015-08-241-1/+1
|
* Fixed minor style issues in generated queries.v1.0.0Dan Ungureanu2015-08-2021-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 Ungureanu2015-08-1818-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 Ungureanu2015-08-161-41/+49
|
* Fixed Scrutinizer issue.Dan Ungureanu2015-08-162-4/+4
|
* Fixed a couple of minor bugs in partition parsing.Dan Ungureanu2015-08-162-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 Ungureanu2015-08-161-0/+28
|
* Added missing partition definition.Dan Ungureanu2015-08-151-0/+181
|
* Consistent PHPDoc style.Dan Ungureanu2015-08-1519-27/+77
|
* Initial support for partitions.Dan Ungureanu2015-08-151-4/+8
|
* Finished builders for components.Dan Ungureanu2015-08-144-8/+61
|
* Coding style fixes.Dan Ungureanu2015-08-112-5/+5
|
* Introduced the buffered query parser. This is used to extract statements from aDan Ungureanu2015-08-091-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 Ungureanu2015-08-081-1/+1
|
* Refactored field to something more appropriate depending on the context in ↵Dan Ungureanu2015-08-087-30/+30
| | | | which it is used.
* Fixed a bug where brackets in alter operation weren't used.Dan Ungureanu2015-08-051-1/+3
|
* Fixed coding style.Dan Ungureanu2015-08-011-3/+1
| | | | Fixed a bug which caused an infinite loop when a invalid DELIMITER statement was provided.
* Removed extra space in data types.Dan Ungureanu2015-07-281-1/+1
| | | | Added comment about encoding.
* Improved support for UNION.Dan Ungureanu2015-07-251-0/+41
|
* Added support for SELECT * FROM dual;Dan Ungureanu2015-07-252-2/+8
|
* Added builder for ORDER keyword.Dan Ungureanu2015-07-251-1/+31
|