Skip to content

Conversation

@devenbansod
Copy link
Member

  • The nuance here is that we don't treat RENAME TABLE as the keyword of the clause, only RENAME is considered.
  • That's why we can't use Statement::$CLAUSES directly here (even with value of 3 (see Statement::$CLAUSES))
  • Providing an overriden definition of build() in RenameStatement

Fix #201

Signed-off-by: Deven Bansod [email protected]

* The nuance here is that we don't treat `RENAME TABLE` as the keyword of the clause, only `RENAME` is considered.
* That's why we can't use `Statement::$CLAUSES` directly here (even with value of `3` (see `Statement::$CLAUSES`))
* Providing an overriden definition of `build()` in RenameStatement

Signed-off-by: Deven Bansod <[email protected]>
@codecov
Copy link

codecov bot commented Dec 20, 2018

Codecov Report

Merging #210 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master     #210      +/-   ##
============================================
+ Coverage     99.75%   99.75%   +<.01%     
- Complexity     1732     1733       +1     
============================================
  Files            58       58              
  Lines          4135     4137       +2     
============================================
+ Hits           4125     4127       +2     
  Misses           10       10

Copy link
Member

@williamdes williamdes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@devenbansod devenbansod merged commit 1b64402 into phpmyadmin:master Dec 21, 2018
@devenbansod devenbansod deleted the fix/204 branch December 21, 2018 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants