Skip to content

fix previous refactoring of parseLiteral() to parseListeralValue() #119

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 25, 2014

Conversation

lsmith77
Copy link
Member

fix for regression introduced in #118

*
* @return LiteralInterface
*/
protected function parseFulltextLiteral()
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 seems to be unused

@lsmith77
Copy link
Member Author

@dbu @dantleech

@@ -772,7 +772,7 @@ protected function parseCastLiteral($token)
throw new InvalidQueryException("Syntax error: attempting to cast string '$token' to type '$type'");
}

return $this->factory->literal($token);
return $token;
Copy link
Member

Choose a reason for hiding this comment

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

ah. did you grep if we have other places that could have similar issues?

Copy link
Member Author

Choose a reason for hiding this comment

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

the issue is limited to places where we return in parseLiteralValue() and all of these cases are now covered.

@dbu
Copy link
Member

dbu commented Jul 25, 2014

looks right to me. surprised about the unused method though.

@lsmith77
Copy link
Member Author

the unused method seems to have been added accidentally in 57dbaef

lsmith77 added a commit that referenced this pull request Jul 25, 2014
fix previous refactoring of parseLiteral() to parseListeralValue()
@lsmith77 lsmith77 merged commit 8b20282 into master Jul 25, 2014
@lsmith77 lsmith77 deleted the fix_cast_parsing branch July 25, 2014 11:16
@dbu
Copy link
Member

dbu commented Jul 25, 2014

thanks lukas.

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.

2 participants