Skip to content
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

Fix escapeLiteral() so it properly returns empty string and null #48

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rgagnon24
Copy link

escapeLiteral("") should return "''"
and
escapeLiteral(null) should return "NULL"

If empty string is currently sent to escapeLiteral, empty string is returned. What should be returned is a string containing just an open and close single-quote (which the actual library will do)

If null is sent to the method, the string "NULL" should be returned.

escapeLiteral("") should return "''"
and
escapeLiteral(null) should return "NULL"
@rgagnon24 rgagnon24 closed this Dec 6, 2016
@rgagnon24 rgagnon24 reopened this Dec 6, 2016
@rgagnon24 rgagnon24 changed the title Fix esacpeLiteral() so it properly returns empty string and null Fix escapeLiteral() so it properly returns empty string and null Dec 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant