Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fixed minor style issues in generated queries.v1.0.0 | Dan Ungureanu | 2015-08-20 | 1 | -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 Ungureanu | 2015-08-18 | 2 | -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 Ungureanu | 2015-08-16 | 5 | -2/+13 | |
| | ||||||
* | Moved the tool that genereates tests. | Dan Ungureanu | 2015-08-16 | 1 | -222/+0 | |
| | ||||||
* | Fixed a couple of minor bugs in partition parsing. | Dan Ungureanu | 2015-08-16 | 6 | -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 Ungureanu | 2015-08-16 | 6 | -6/+6 | |
| | ||||||
* | Consistent PHPDoc style. | Dan Ungureanu | 2015-08-15 | 3 | -6/+13 | |
| | ||||||
* | Finished builders for components. | Dan Ungureanu | 2015-08-14 | 3 | -0/+39 | |
| | ||||||
* | Lex system variables as symbols. Fixed #13. | Dan Ungureanu | 2015-08-12 | 3 | -6/+8 | |
| | ||||||
* | Added tests for BufferedQuery and Parser. | Dan Ungureanu | 2015-08-11 | 4 | -2/+288 | |
| | ||||||
* | Add support for MySQL commands inside comments. | Dan Ungureanu | 2015-08-08 | 3 | -11/+11 | |
| | ||||||
* | Refactored field to something more appropriate depending on the context in ↵ | Dan Ungureanu | 2015-08-08 | 12 | -19/+19 | |
| | | | | which it is used. | |||||
* | Fixed error message. | Dan Ungureanu | 2015-08-06 | 1 | -1/+1 | |
| | ||||||
* | Fixed a bug that didn't parse comments properly. | Dan Ungureanu | 2015-08-05 | 4 | -5/+46 | |
| | | | | | | getFirstStatement util doesn't ignore MySQL specific query anymore (between comments). Misc coding style fixes. Fixed tests. | |||||
* | Fixed coding style. | Dan Ungureanu | 2015-08-01 | 3 | -0/+6 | |
| | | | | Fixed a bug which caused an infinite loop when a invalid DELIMITER statement was provided. | |||||
* | Added MySQL utility statements. | Dan Ungureanu | 2015-07-30 | 4 | -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 Ungureanu | 2015-07-28 | 1 | -1/+1 | |
| | | | | Added comment about encoding. | |||||
* | Lexer parses bit values. | Dan Ungureanu | 2015-07-28 | 2 | -7/+7 | |
| | ||||||
* | Translated exceptions. | Dan Ungureanu | 2015-07-25 | 2 | -15/+10 | |
| | | | | Refactored tests. | |||||
* | Improved support for UNION. | Dan Ungureanu | 2015-07-25 | 1 | -0/+15 | |
| | ||||||
* | Added builder for ORDER keyword. | Dan Ungureanu | 2015-07-25 | 1 | -0/+26 | |
| | ||||||
* | Using the usual parsing method for transactions. | Dan Ungureanu | 2015-07-25 | 1 | -1/+1 | |
| | ||||||
* | Fixed coding style. | Dan Ungureanu | 2015-07-23 | 1 | -1/+1 | |
| | ||||||
* | Reorganized tests. | Dan Ungureanu | 2015-07-23 | 193 | -215/+737 | |
| | | | | Implemented a tool to generate tests. | |||||
* | Added the missing files. | Dan Ungureanu | 2015-07-23 | 6 | -0/+71 | |
| | ||||||
* | Implemented support for transactions. | Dan Ungureanu | 2015-07-23 | 1 | -4/+15 | |
| | ||||||
* | Refactoring. | Dan Ungureanu | 2015-07-22 | 3 | -45/+12 | |
| | ||||||
* | Refactoring. | Dan Ungureanu | 2015-07-21 | 3 | -2/+51 | |
| | | | | Improved localization tests. | |||||
* | Improved localization. | Dan Ungureanu | 2015-07-21 | 4 | -11/+18 | |
| | ||||||
* | Avoid processing the alias twice and generate an error. | Dan Ungureanu | 2015-07-19 | 17 | -20/+54 | |
| | | | | | Errors are triggered when an unexpected token is found between clauses. Refactoring. | |||||
* | Fixed test for PHP5.5-. | Dan Ungureanu | 2015-07-18 | 1 | -2/+1 | |
| | ||||||
* | Fixed support for multi-byte strings. | Dan Ungureanu | 2015-07-16 | 4 | -0/+91 | |
| | ||||||
* | Better error detection. Fixed some of the old messages. | Dan Ungureanu | 2015-07-15 | 15 | -14/+66 | |
| | | | | Minor coding style fixes. | |||||
* | Fixed some Scrutinizer issues. | Dan Ungureanu | 2015-07-15 | 1 | -1/+2 | |
| | ||||||
* | Improved error messages. | Dan Ungureanu | 2015-07-15 | 26 | -38/+181 | |
| | | | | | Achieved 100% code coverage. Some refactoring. | |||||
* | Added switch to skip sorting options. | Dan Ungureanu | 2015-07-14 | 9 | -23/+19 | |
| | | | | Renamed the keys used for options to something more relevant. | |||||
* | Improved Table utilities. | Dan Ungureanu | 2015-07-14 | 1 | -7/+37 | |
| | | | | Fixed coding style. | |||||
* | Added MariaDB's options for virtual fields. Updated contexts to contain ↵ | Dan Ungureanu | 2015-07-14 | 6 | -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 Ungureanu | 2015-07-11 | 1 | -0/+5 | |
| | ||||||
* | Added remove() method for OptionsArray. | Dan Ungureanu | 2015-07-10 | 1 | -0/+28 | |
| | | | | | Fixed undefined variables introduced by previous renaming. Some refactoring. | |||||
* | Imporved JOIN parsing and building. | Dan Ungureanu | 2015-07-10 | 5 | -1/+44 | |
| | | | | Some keywords may appear in conditions. | |||||
* | Mass renaming. Using 'component' instead of 'fragment'. | Dan Ungureanu | 2015-07-10 | 54 | -255/+255 | |
| | ||||||
* | Improved the formatting formatting of CREATE's builder. | Dan Ungureanu | 2015-07-10 | 1 | -4/+19 | |
| | | | | | Fixed a bug which considered symbols to be options, if the value matched. Improved documentation. | |||||
* | Added utilities for parsing errors. | Dan Ungureanu | 2015-07-09 | 2 | -1/+35 | |
| | ||||||
* | More coding style fixes. And typos. Lots of them. | Dan Ungureanu | 2015-07-08 | 2 | -4/+4 | |
| | ||||||
* | Fixed the 'CREATE' statement for long queries, where there may be more than ↵ | Dan Ungureanu | 2015-07-08 | 8 | -9/+9 | |
| | | | | | | | one 'END' keyword. Added 'CHARSET' as synonym for 'CHARACTER SET'. Updated contexts definitions. | |||||
* | Improved fragments. New builders available. Refactored some fields. | Dan Ungureanu | 2015-07-07 | 25 | -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 Ungureanu | 2015-07-05 | 1 | -4/+80 | |
| | ||||||
* | The context depends on the SQL mode. | Dan Ungureanu | 2015-07-04 | 38 | -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 Ungureanu | 2015-07-03 | 1 | -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 Ungureanu | 2015-07-02 | 6 | -10/+6 | |
| | ||||||
* | Miscellaneous fixes. | Dan Ungureanu | 2015-06-30 | 14 | -15/+15 | |
| | ||||||
* | Added statement builder (converts statement trees into executable query ↵ | Dan Ungureanu | 2015-06-30 | 63 | -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 Ungureanu | 2015-06-28 | 1 | -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 Ungureanu | 2015-06-28 | 52 | -80/+127 | |
| | | | | Refactoring and improved documentation. | |||||
* | Improved query's utilities. | Dan Ungureanu | 2015-06-26 | 2 | -21/+69 | |
| | | | | | Fixed an issue in contexts. Updated tests. | |||||
* | Added query utilities. | Dan Ungureanu | 2015-06-25 | 31 | -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 Ungureanu | 2015-06-24 | 3 | -13/+13 | |
| | ||||||
* | Refactoring. | Dan Ungureanu | 2015-06-23 | 32 | -26/+287 | |
| | | | | Improved tests and documentation. | |||||
* | Added table utilities. | Dan Ungureanu | 2015-06-23 | 1 | -1/+1 | |
| | | | | | Implemented better support for keys in FieldDefFragment. Improved contexts' documentation and definition. | |||||
* | Return more information about routines. | Dan Ungureanu | 2015-06-22 | 1 | -0/+11 | |
| | ||||||
* | Added table utilities. | Dan Ungureanu | 2015-06-22 | 40 | -103/+106 | |
| | | | | Refactoring and bug fixing. | |||||
* | Refactoring. | Dan Ungureanu | 2015-06-22 | 1 | -6/+6 | |
| | ||||||
* | Fixed coding style. | Dan Ungureanu | 2015-06-22 | 5 | -10/+14 | |
| | ||||||
* | Removed the tokens array. | Dan Ungureanu | 2015-06-21 | 23 | -23/+23 | |
| | ||||||
* | Added multiple contexts. | Dan Ungureanu | 2015-06-20 | 43 | -107/+149 | |
| | | | | Edited the behaviour of the keyword token. | |||||
* | Improved delimiter parser. | Dan Ungureanu | 2015-06-16 | 31 | -37/+52 | |
| | ||||||
* | Improved documentation and coding style. | Dan Ungureanu | 2015-06-16 | 1 | -3/+3 | |
| | ||||||
* | Added methods to extract only one parameter and the return type of a routine. | Dan Ungureanu | 2015-06-15 | 1 | -0/+76 | |
| | | | | | | Improved the value extraction method for tokens. Fixed a bug in data type parser. Minor parser refactoring. | |||||
* | Follow the PSR2 standard. | Dan Ungureanu | 2015-06-13 | 17 | -137/+198 | |
| | ||||||
* | Added method that extracts aliases map. | Dan Ungureanu | 2015-06-12 | 11 | -7/+100 | |
| | | | | | | | Improved field parser. Support for joins. Added tests. Minor documentation fix. | |||||
* | Implemented Routine utilities. | Dan Ungureanu | 2015-06-11 | 41 | -51/+183 | |
| | | | | | | Refactored string and symbol parsers. Lexer can now parse user references. Changed tests' format. Better data type support. | |||||
* | Initial commit. | Dan Ungureanu | 2015-06-08 | 87 | -0/+955 | |