summaryrefslogtreecommitdiffstats
path: root/src/Components
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Fixes #9.Dan Ungureanu2015-07-231-0/+7
| | | | | | Improved error detection for FieldDefinition and TransactionStatement. When two statements of the same type weren't properly terminated only one was parsed. Fixed a issue where two consecutive SELECT statements where considered a UNION.
* Implemented support for transactions.Dan Ungureanu2015-07-231-0/+18
|
* Refactoring.Dan Ungureanu2015-07-2210-26/+66
|
* Improved localization.Dan Ungureanu2015-07-212-2/+10
|
* Minor style fix.Dan Ungureanu2015-07-191-2/+0
|
* Avoid processing the alias twice and generate an error.Dan Ungureanu2015-07-194-30/+46
| | | | | Errors are triggered when an unexpected token is found between clauses. Refactoring.
* Fixed support for multi-byte strings.Dan Ungureanu2015-07-161-2/+2
|
* Better error detection. Fixed some of the old messages.Dan Ungureanu2015-07-157-17/+23
| | | | Minor coding style fixes.
* Fixed some Scrutinizer issues.Dan Ungureanu2015-07-152-5/+1
|
* Improved error messages.Dan Ungureanu2015-07-158-106/+140
| | | | | Achieved 100% code coverage. Some refactoring.
* Added switch to skip sorting options.Dan Ungureanu2015-07-142-26/+53
| | | | Renamed the keys used for options to something more relevant.
* Stored is the MySQL counterpart of PERSISTENT. See ↵Madhura Jayaratne2015-07-141-1/+2
| | | | | | http://mysqlserverteam.com/generated-columns-in-mysql-5-7-5/ Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
* Fixed typos and documentation.Dan Ungureanu2015-07-141-7/+9
|
* Improved Table utilities.Dan Ungureanu2015-07-141-0/+2
| | | | Fixed coding style.