Skip to content

Refactored Converter to make it more extensible #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2014

Conversation

dantleech
Copy link
Member

  • Minor refactorings to make the class more reutilizable

Made in association with: phpcr/phpcr-shell#68

@@ -782,7 +782,7 @@ protected function parseCastLiteral($token)
*
* @return LiteralInterface
*/
protected function parseLiteral()
protected function parseLiteralValue()
Copy link
Member Author

Choose a reason for hiding this comment

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

This method now simply returns the literal value not the LiteralValueIntreface object - which is only used directly once anyway.

@dbu
Copy link
Member

dbu commented Jul 14, 2014

cool! the only worry is the sql2 field that is now commented out.

- Minor refactorings to make the class more reutilizable
@dantleech
Copy link
Member Author

Updated, Apparently the comment thing is "valid" according to PHP, fixed in anycase. Added a test to ensure that the class is at least instantiable.

@dantleech
Copy link
Member Author

Failing on benchmark test:

1) PHPCR\Tests\Util\NodeHelperTest::testBenchmarkOrderBeforeArray

PHP_Invoker_TimeoutException: Execution aborted after 1 second

dbu added a commit that referenced this pull request Jul 18, 2014
…endable

Refactored Converter to make it more extensible
@dbu dbu merged commit 717e75e into master Jul 18, 2014
@dbu dbu deleted the made_sql2_query_converter_more_extendable branch July 18, 2014 08:36
@dbu
Copy link
Member

dbu commented Jul 18, 2014

benchmark seems a close one, travis did not fail on the last update of your commit :-)

@lsmith77
Copy link
Member

this merge is causing a regression:
https://travis-ci.org/jackalope/jackalope-jackrabbit/jobs/30823367

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants