summaryrefslogtreecommitdiffstats
path: root/tests/Parser/CreateStatementTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'QA'William Desportes2019-12-311-0/+4
|\ | | | | | | Signed-off-by: William Desportes <williamdes@wdes.fr>
| * fix #231: allow SCHEMA to be used in CREATE Database statementDeven Bansod2019-12-291-1/+5
| |
| * Revert "Enable strict mode on PHP files"William Desportes2019-05-281-1/+0
| | | | | | | | | | This reverts commit 17da8a34b81442524a8e01fead7b5968fa1cc39d. Signed-off-by: William Desportes <williamdes@wdes.fr>
| * revert of new array syntaxWilliam Desportes2019-05-281-31/+31
| | | | | | | | | | See: 86c5baebda24c1721fb6881df8671a3c7df60e8b Signed-off-by: William Desportes <williamdes@wdes.fr>
* | Remove useless comments and annotationsMaurício Meneghini Fauth2019-12-141-2/+2
|/ | | | Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
* Fix risky testsMaurício Meneghini Fauth2019-01-161-2/+2
| | | | | | | - Rename test providers - Mark tests as incomplete Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
* Enable strict mode on PHP filesMaurício Meneghini Fauth2019-01-161-0/+1
| | | | Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
* Apply phpmyadmin/coding-standardMaurício Meneghini Fauth2019-01-161-31/+31
| | | | Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
* Add tests for partition definitions with engineMichal Čihař2017-10-101-0/+1
| | | | | | | | This seems to work just fine. Issue #174 Signed-off-by: Michal Čihař <michal@cihar.com>
* Actually run new testMichal Čihař2017-07-121-0/+1
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Merge remote-tracking branch 'origin/pull/137'Michal Čihař2017-02-141-0/+2
|\
| * Apply cs fixesDamian Dlugosz2017-02-121-0/+1
|/
* Added PhpMyAdmin namespace prefix to follow PSR-4.Michal Čihař2017-01-231-2/+2
| | | | | | Fixes #126 Signed-off-by: Michal Čihař <michal@cihar.com>
* Apply php-cs-fixerDamian Dlugosz2017-01-061-1/+0
|
* Add missing test for error conditionMichal Čihař2017-01-031-0/+1
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Fix parsing of ON UPDATE option in TIMESTAMP field with precisionDeven Bansod2016-10-101-0/+1
| | | | | | Fix #92 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Fix parsing of user@host without backquotesDeven Bansod2016-09-201-0/+2
| | | | | | | | | | 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>
* Add test for non-reserved keyword as column nameMichal Čihař2016-09-131-0/+1
| | | | | | Issue #59 Signed-off-by: Michal Čihař <michal@cihar.com>
* Merge remote-tracking branch 'origin/pull/70'Michal Čihař2016-09-131-0/+2
|\
| * Fix #59: Non-reserved keywords should be allowed as a field nameDeven Bansod2016-09-071-0/+2
| | | | | | | | | | | | | | | | | | 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>
* | Fix #55 : Add support for spatial datatypesDeven Bansod2016-09-081-0/+1
|/ | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Added test case for missing LIKE expr and building of queryDeven Bansod2016-09-071-0/+1
| | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Added a testcase for CREATE TABLE .. LIKE 'old_table'Deven Bansod2016-09-071-0/+1
| | | | Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
* Properly parse CREATE TABLE [AS] SELECTMichal Čihař2016-03-191-0/+2
| | | | | | Fixes https://github.com/phpmyadmin/phpmyadmin/issues/12109 Signed-off-by: Michal Čihař <michal@cihar.com>
* Fixed a couple of minor bugs in partition parsing.Dan Ungureanu2015-08-161-0/+1
| | | | | | | '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.
* Reorganized tests.Dan Ungureanu2015-07-231-14/+14
| | | | Implemented a tool to generate tests.
* Better error detection. Fixed some of the old messages.Dan Ungureanu2015-07-151-0/+1
| | | | Minor coding style fixes.
* Added MariaDB's options for virtual fields. Updated contexts to contain ↵Dan Ungureanu2015-07-141-0/+1
| | | | | | | | | 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.
* Improved fragments. New builders available. Refactored some fields.Dan Ungureanu2015-07-071-0/+1
| | | | | | | | 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.
* The context depends on the SQL mode.Dan Ungureanu2015-07-041-5/+7
| | | | | | | | | 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.
* Added statement builder (converts statement trees into executable query ↵Dan Ungureanu2015-06-301-0/+32
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).