-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b89
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8142803 | emb-9 | Lance Andersen | P4 | Resolved | Fixed | team |
Add two convenience methods
- enquoteLiteral which returns a string enclosed in single quotes where all occurrences of a single quote are converted to two single quotes see [1] and [2]
- enquoteName returns a simple SQL identifier
[1] https://commons.apache.org/proper/commons-lang/javadocs/api-2.6/org/apache/commons/lang/StringEscapeUtils.html#escapeSql(java.lang.String)
[2] http://grepcode.com/file/repo1.maven.org/maven2/org.owasp.esapi/esapi/2.1.0/org/owasp/esapi/Encoder.java?av=f
- enquoteLiteral which returns a string enclosed in single quotes where all occurrences of a single quote are converted to two single quotes see [1] and [2]
- enquoteName returns a simple SQL identifier
[1] https://commons.apache.org/proper/commons-lang/javadocs/api-2.6/org/apache/commons/lang/StringEscapeUtils.html#escapeSql(java.lang.String)
[2] http://grepcode.com/file/repo1.maven.org/maven2/org.owasp.esapi/esapi/2.1.0/org/owasp/esapi/Encoder.java?av=f
- backported by
-
JDK-8142803 Add Convenience methods to improve usablility
-
- Resolved
-