Skip to content

Commit

Permalink
[CONJ-1058] code style correction for Statement.enquote* port from 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Mar 2, 2023
1 parent e97a4ae commit f6f5edc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/org/mariadb/jdbc/Statement.java
Original file line number Diff line number Diff line change
Expand Up @@ -1637,12 +1637,12 @@ public boolean isSimpleIdentifier(String identifier) throws SQLException {
}

/**
* Enquote utf8 value.
*
* @param val value to enquote
* @return enquoted String value
* @throws SQLException - not possible -
*/
* Enquote utf8 value.
*
* @param val value to enquote
* @return enquoted String value
* @throws SQLException - not possible -
*/
@Override
public String enquoteNCharLiteral(String val) throws SQLException {
return "N'" + val.replace("'", "''") + "'";
Expand Down

0 comments on commit f6f5edc

Please sign in to comment.