Skip to content

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