summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed minor style issues in generated queries.v1.0.0Dan Ungureanu2015-08-201-4/+4
| | | | | | | | | 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-182-3/+9
| | | | | | | 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-165-2/+13
|
* Moved the tool that genereates tests.Dan Ungureanu2015-08-161-222/+0
|
* Fixed a couple of minor bugs in partition parsing.Dan Ungureanu2015-08-166-0/+152
| | | | | | | '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-166-6/+6
|
* Consistent PHPDoc style.Dan Ungureanu2015-08-153-6/+13
|
* Finished builders for components.Dan Ungureanu2015-08-143-0/+39
|
* Lex system variables as symbols. Fixed #13.Dan Ungureanu2015-08-123-6/+8
|
* Added tests for BufferedQuery and Parser.Dan Ungureanu2015-08-114-2/+288
|
* Add support for MySQL commands inside comments.Dan Ungureanu2015-08-083-11/+11
|
* Refactored field to something more appropriate depending on the context in ↵Dan Ungureanu2015-08-0812-19/+19
| | | | which it is used.
* Fixed error message.Dan Ungureanu2015-08-061-1/+1
|
* Fixed a bug that didn't parse comments properly.Dan Ungureanu2015-08-054-5/+46
| | | | | | getFirstStatement util doesn't ignore MySQL specific query anymore (between comments). Misc coding style fixes. Fixed tests.
* Fixed coding style.Dan Ungureanu2015-08-013-0/+6
| | | | Fixed a bug which caused an infinite loop when a invalid DELIMITER statement was provided.
* Added MySQL utility statements.Dan Ungureanu2015-07-304-1/+4
| | | | | | | | 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-281-1/+1
| | | | Added comment about encoding.
* Lexer parses bit values.Dan Ungureanu2015-07-282-7/+7
|
* Translated exceptions.Dan Ungureanu2015-07-252-15/+10
| | | | Refactored tests.
* Improved support for UNION.Dan Ungureanu2015-07-251-0/+15
|
* Added builder for ORDER keyword.Dan Ungureanu2015-07-251-0/+26
|
* Using the usual parsing method for transactions.Dan Ungureanu2015-07-251-1/+1
|
* Fixed coding style.Dan Ungureanu2015-07-231-1/+1
|
* Reorganized tests.Dan Ungureanu2015-07-23193-215/+737
| | | | Implemented a tool to generate tests.
* Added the missing files.Dan Ungureanu2015-07-236-0/+71
|
* Implemented support for transactions.Dan Ungureanu2015-07-231-4/+15
|
* Refactoring.Dan Ungureanu2015-07-223-45/+12
|
* Refactoring.Dan Ungureanu2015-07-213-2/+51
| | | | Improved localization tests.
* Improved localization.Dan Ungureanu2015-07-214-11/+18
|
* Avoid processing the alias twice and generate an error.Dan Ungureanu2015-07-1917-20/+54
| | | | | Errors are triggered when an unexpected token is found between clauses. Refactoring.
* Fixed test for PHP5.5-.Dan Ungureanu2015-07-181-2/+1
|
* Fixed support for multi-byte strings.Dan Ungureanu2015-07-164-0/+91
|
* Better error detection. Fixed some of the old messages.Dan Ungureanu2015-07-1515-14/+66
| | | | Minor coding style fixes.
* Fixed some Scrutinizer issues.Dan Ungureanu2015-07-151-1/+2
|
* Improved error messages.Dan Ungureanu2015-07-1526-38/+181
| | | | | Achieved 100% code coverage. Some refactoring.
* Added switch to skip sorting options.Dan Ungureanu2015-07-149-23/+19
| | | | Renamed the keys used for options to something more relevant.
* Improved Table utilities.Dan Ungureanu2015-07-141-7/+37
| | | | Fixed coding style.
* Added MariaDB's options for virtual fields. Updated contexts to contain ↵Dan Ungureanu2015-07-146-6/+33
| | | | | | | | | relevant keywords. Added magic method '__toString()' for components and statements for building. Fixed a bug that caused the function name to be incorrectly detected in an expression. Fixed a bug that ignored the 'noAlias' option in expressions. Options may be expressions now.
* The closest context can be loaded for better compatibility.Dan Ungureanu2015-07-111-0/+5
|
* Added remove() method for OptionsArray.Dan Ungureanu2015-07-101-0/+28
| | | | | Fixed undefined variables introduced by previous renaming. Some refactoring.
* Imporved JOIN parsing and building.Dan Ungureanu2015-07-105-1/+44
| | | | Some keywords may appear in conditions.
* Mass renaming. Using 'component' instead of 'fragment'.Dan Ungureanu2015-07-1054-255/+255
|
* Improved the formatting formatting of CREATE's builder.Dan Ungureanu2015-07-101-4/+19
| | | | | Fixed a bug which considered symbols to be options, if the value matched. Improved documentation.
* Added utilities for parsing errors.Dan Ungureanu2015-07-092-1/+35
|
* More coding style fixes. And typos. Lots of them.Dan Ungureanu2015-07-082-4/+4
|
* Fixed the 'CREATE' statement for long queries, where there may be more than ↵Dan Ungureanu2015-07-088-9/+9
| | | | | | | one 'END' keyword. Added 'CHARSET' as synonym for 'CHARACTER SET'. Updated contexts definitions.
* Improved fragments. New builders available. Refactored some fields.Dan Ungureanu2015-07-0725-23/+129
| | | | | | | | New query utility to extract the name of the tables used in a statement. TRUNCATE is being parsed now. CREATE parsing and building has been improved. Improved the definition of UPDATE and DELETE statements. Fixed coding style. Improved documentation and tests.
* Improved condition parsing and query utilities.Dan Ungureanu2015-07-051-4/+80
|
* The context depends on the SQL mode.Dan Ungureanu2015-07-0438-111/+320
| | | | | | | | | Implemented a few more builders. Improved some fragments and statement types. Fixed the noAlias option in FieldFragment. Reordered CREATE statements's options. Updated contexts definitions. Fixed typos. Improved tests.
* Moved build() to Statement class to be next to the parse() method.Dan Ungureanu2015-07-031-3/+1
| | | | | | Improved CREATE statements. Improved TokensList's getNext(). Better first and last positions for statements.
* Improved WHERE keyword parser and query's utilities.Dan Ungureanu2015-07-026-10/+6
|
* Miscellaneous fixes.Dan Ungureanu2015-06-3014-15/+15
|
* Added statement builder (converts statement trees into executable query ↵Dan Ungureanu2015-06-3063-47/+433
| | | | | | | | | | | strings). Implemented support for UNIONs in parser. Code coverage is now over 99%. Fixed CHECKSUM statement (typos). Refactored code. Removed pieces of duplicated code. Improved documentation and fixed coding style. Improved PHPUnit's configuration (more test suites for fine-grained testing).
* Improved parsing system.Dan Ungureanu2015-06-281-2/+41
| | | | | | | Better support for current statements. Improved query utilities. Fixed a bug in LIMIT's parser. Fixed a documentation issue.
* New query utilities.Dan Ungureanu2015-06-2852-80/+127
| | | | Refactoring and improved documentation.
* Improved query's utilities.Dan Ungureanu2015-06-262-21/+69
| | | | | Fixed an issue in contexts. Updated tests.
* Added query utilities.Dan Ungureanu2015-06-2531-36/+208
| | | | | | | | Included basic support for ANALYZE, BACKUP, CHECK, CHECKSUM, OPTIMIZE, REPAIR and RESTORE statements. Better parsing for fields, SELECT statement, INTO keyword. Improved contexts (included functions). Improved documentation. Refactoring and coding style fixes.
* Simplified parsing process.Dan Ungureanu2015-06-243-13/+13
|
* Refactoring.Dan Ungureanu2015-06-2332-26/+287
| | | | Improved tests and documentation.
* Added table utilities.Dan Ungureanu2015-06-231-1/+1
| | | | | Implemented better support for keys in FieldDefFragment. Improved contexts' documentation and definition.
* Return more information about routines.Dan Ungureanu2015-06-221-0/+11
|
* Added table utilities.Dan Ungureanu2015-06-2240-103/+106
| | | | Refactoring and bug fixing.
* Refactoring.Dan Ungureanu2015-06-221-6/+6
|
* Fixed coding style.Dan Ungureanu2015-06-225-10/+14
|
* Removed the tokens array.Dan Ungureanu2015-06-2123-23/+23
|
* Added multiple contexts.Dan Ungureanu2015-06-2043-107/+149
| | | | Edited the behaviour of the keyword token.
* Improved delimiter parser.Dan Ungureanu2015-06-1631-37/+52
|
* Improved documentation and coding style.Dan Ungureanu2015-06-161-3/+3
|
* Added methods to extract only one parameter and the return type of a routine.Dan Ungureanu2015-06-151-0/+76
| | | | | | Improved the value extraction method for tokens. Fixed a bug in data type parser. Minor parser refactoring.
* Follow the PSR2 standard.Dan Ungureanu2015-06-1317-137/+198
|
* Added method that extracts aliases map.Dan Ungureanu2015-06-1211-7/+100
| | | | | | | Improved field parser. Support for joins. Added tests. Minor documentation fix.
* Implemented Routine utilities.Dan Ungureanu2015-06-1141-51/+183
| | | | | | Refactored string and symbol parsers. Lexer can now parse user references. Changed tests' format. Better data type support.
* Initial commit.Dan Ungureanu2015-06-0887-0/+955