summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix ALTER statement not constructed properly, phpmyadmin/sql-parser#33Durgesh2016-02-192-17/+50
| | | | | | | | Signed-off-by: Durgesh <007durgesh219@gmail.com>
* | Merge pull request #31 from madhuracj/bug11977Dan Ungureanu2016-02-212-0/+13
|\ \ | |/ |/| | | DropStatement: Parse the table containing the index. Fixes phpmyadmin/phpmyadmin#11977.
| * Fix https://github.com/phpmyadmin/phpmyadmin/issues/11977Madhura Jayaratne2016-02-182-0/+13
| | | | | | | | Signed-off-by: Madhura Jayaratne <madhura.cj@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>
* | Change return value from getAll in case of not parsed queryMichal Čihař2016-02-171-1/+1
| | | | | | | | | | | | Fixes https://github.com/phpmyadmin/phpmyadmin/issues/11609 Signed-off-by: Michal Čihař <michal@cihar.com>
* | Fix index type is not recognized by parser, Issue#11971Durgesh2016-02-171-0/+3
| |
* | Condition: Allow keyword INTERVAL.v3.3.1Dan Ungureanu2016-02-121-0/+1
| |
* | Expression: Refactored parsing options.v3.3.0Dan Ungureanu2016-02-1212-58/+89
| |
* | Context: Added custom mode that avoids escaping when possible.v3.2.0Dan Ungureanu2016-02-111-0/+14
|/
* Merge branch 'master' of github.com:udan11/sql-parserDan Ungureanu2016-02-101-0/+1
|\
| * Fixed 500 error when DESC syntax is used in queryRoss McFadyen2016-01-191-0/+1
| |
* | Misc: Fixed coding style.Dan Ungureanu2016-02-105-7/+7
| |
* | 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
| |
* | Misc: Removed dependency to Ctype.Dan Ungureanu2016-01-291-2/+5
|/
* 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
|/
* Context: Updated contexts to contain 'BIT' data type.Dan Ungureanu2016-01-105-15/+15
| | | | Tools: Documented tags in ContextGenerator.
* Context: Add ; as operator.Dan Ungureanu2016-01-101-1/+1
|
* BufferedQuery: Backslashes in comments escaped characters in comments.Dan Ungureanu2016-01-091-7/+13
|
* Allow NULL in expressions.v3.0.8Dan Ungureanu2015-12-183-1/+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-179-11/+24
|
* Expressions are permitted in SET operations.Dan Ungureanu2015-12-171-10/+19
|
* Added STRAIGHT_JOIN as a known type of join.Dan Ungureanu2015-12-172-1/+6
|
* Added missing definitions for MATCH and AGAINST.Dan Ungureanu2015-12-176-101/+98
|
* Added missing statement (FLUSH and DEALLOCATE).Dan Ungureanu2015-12-171-3/+5
|
* Expressions may begin with a function that is also a reserved keyword.v3.0.7Dan Ungureanu2015-11-171-0/+1
|
* Fixed a bug where formatter split the function name and the parameters list.v3.0.6Dan Ungureanu2015-11-121-5/+6
|
* Fixed coding style.Dan Ungureanu2015-11-082-3/+4
|
* Improved test coverage.Dan Ungureanu2015-11-082-3/+4
|
* Added INSERT statement builder.Dan Ungureanu2015-11-081-1/+11
|
* Fixed DELIMITER statements in BufferedQuery.Dan Ungureanu2015-11-081-0/+5
|
* Accept NOT operator in conditions.Dan Ungureanu2015-11-071-0/+1
|
* Added dummy parsers for CREATE USER and SET PASSWORD statements.Dan Ungureanu2015-11-027-7/+21
|
* Fix the order of clauses in SELECT statements involing UNIONs.Dan Ungureanu2015-11-024-11/+61
|
* Use JOIN expressions for flag detection.Dan Ungureanu2015-11-021-1/+8
|
* Add GRANT as known statement.Dan Ungureanu2015-11-021-0/+1
|
* Fix error message.v3.0.4Dan Ungureanu2015-10-211-1/+3
|
* Avoid building a field multiple times if clause has synonyms.v3.0.3Dan Ungureanu2015-10-101-0/+23
|
* Add EXISTS as an acceptable keyword in conditions.v3.0.2Dan Ungureanu2015-10-101-0/+1
|
* Handle backslashes separately for BufferedQuery.v3.0.1Dan Ungureanu2015-10-061-2/+14
|
* Minor code improvements.Dan Ungureanu2015-10-032-2/+1
|
* Support for references from different tables.v3.0.0Dan Ungureanu2015-10-032-5/+14
|
* Add all JOIN clauses.v2.1.3Dan Ungureanu2015-10-021-14/+22
|
* Properly parse options when the value of the option is '='.v2.1.2Dan Ungureanu2015-10-021-1/+1
|
* Fix typoMarc Delisle2015-10-011-1/+1
| | | Signed-off-by: Marc Delisle <marc@infomarc.info>
* Only RANGE and LIST type partitions support VALUES.v2.1.1Dan Ungureanu2015-10-011-4/+15
|
* Fixed coding style.Dan Ungureanu2015-09-301-8/+5
|
* Added utilities for handling tokens and tokens list.v2.1.0Dan Ungureanu2015-09-302-0/+194
|
* 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-307-10/+20
|
* Improved partition support.v2.0.1Dan Ungureanu2015-09-301-2/+3
|
* Updated coding style to follow PSR-2 coding standards.Dan Ungureanu2015-09-2532-108/+89
|
* Better parsing for CREATE TABLE statements.v2.0.0Dan Ungureanu2015-09-252-4/+44
| | | | Fixes #16.
* Added JSON data type.Dan Ungureanu2015-09-235-5/+5
|
* Fixed spacing.Dan Ungureanu2015-08-241-1/+1
|
* Improved documentation.Dan Ungureanu2015-08-241-1/+1
|
* Refactoring. Removed duplicate code.Dan Ungureanu2015-08-244-1267/+1235
| | | | Fixed documentation.
* Fixed minor style issues in generated queries.v1.0.0Dan Ungureanu2015-08-2023-30/+58
| | | | | | | | | 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-1822-128/+98
| | | | | | | 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
|
* Added the tool that generates contexts.Dan Ungureanu2015-08-165-0/+10
|
* Fixed Scrutinizer issue.Dan Ungureanu2015-08-162-4/+4
|
* Added 'SERIAL' as a data type.Dan Ungureanu2015-08-165-20/+34
|
* Fixed a couple of minor bugs in partition parsing.Dan Ungureanu2015-08-163-10/+28
| | | | | | | '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.
* Fixed tests.Dan Ungureanu2015-08-161-5/+7
|
* Fixed documentation.Dan Ungureanu2015-08-161-1/+1
|
* Improved support for partitions in the builder and formatter.Dan Ungureanu2015-08-164-152/+228
|
* Added missing partition definition.Dan Ungureanu2015-08-151-0/+181
|
* Consistent PHPDoc style.Dan Ungureanu2015-08-1529-35/+159
|
* Initial support for partitions.Dan Ungureanu2015-08-157-18/+135
|
* Finished builders for components.Dan Ungureanu2015-08-144-8/+61
|
* Lex system variables as symbols. Fixed #13.Dan Ungureanu2015-08-122-2/+12
|
* Fixed spacing in comment.Dan Ungureanu2015-08-111-1/+1
|
* Coding style fixes.Dan Ungureanu2015-08-118-14/+14
|
* The initial value of the query is no longer ignored in BufferedQuery's ↵Dan Ungureanu2015-08-111-1/+1
| | | | constructor.
* Refactored some parts of BufferedQuery. Fixed minor bugs.Dan Ungureanu2015-08-111-13/+17
|
* Fixed a bug which caused the parser to set wrong starting position after aDan Ungureanu2015-08-111-1/+1
| | | | DELIMITER statement.
* Typo in operator name.Dan Ungureanu2015-08-112-3/+3
| | | | Fixed spacing in comment.
* Introduced the buffered query parser. This is used to extract statements from aDan Ungureanu2015-08-095-4/+404
| | | | | | buffered string that may be parsed using the parser. DELIMITER is no longer reported as unexpected beginning of statement. Fixed typos.
* Add support for MySQL commands inside comments.Dan Ungureanu2015-08-082-4/+26
|
* 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-089-47/+47
| | | | which it is used.
* Fixed error message.Dan Ungureanu2015-08-061-1/+1
|
* Fixed a bug where brackets in alter operation weren't used.Dan Ungureanu2015-08-051-1/+3
|
* Fixed some of Scrutinizer's issues.Dan Ungureanu2015-08-052-5/+1
|
* Fixed a bug that didn't parse comments properly.Dan Ungureanu2015-08-054-26/+33
| | | | | | getFirstStatement util doesn't ignore MySQL specific query anymore (between comments). Misc coding style fixes. Fixed tests.
* Added utility to get first full statement from a buffer.Dan Ungureanu2015-08-022-38/+117
| | | | Misc coding style fixes.
* Added formatting utilities.Dan Ungureanu2015-08-011-0/+512
|
* Fixed coding style.Dan Ungureanu2015-08-019-18/+39
| | | | Fixed a bug which caused an infinite loop when a invalid DELIMITER statement was provided.
* Added MySQL utility statements.Dan Ungureanu2015-07-305-28/+127
| | | | | | | | Added support for SET statement. Reserved keyword preceded by a dot are no longer considered reserved words. Improved error reporting for statements. A statement is no longer considered unrecognized if the parser doesn't have a full definition of it. Duplicated clauses are reported.
* Removed extra space in data types.Dan Ungureanu2015-07-282-1/+6
| | | | Added comment about encoding.