Modified:
branches/branch_5_1/connector-j/src/com/mysql/jdbc/ServerPreparedStatement.java
Log:
upgraded ServerPreparedStatement.setNString as using SQLError.createSQLException
Modified: branches/branch_5_1/connector-j/src/com/mysql/jdbc/ServerPreparedStatement.java
===================================================================
--- branches/branch_5_1/connector-j/src/com/mysql/jdbc/ServerPreparedStatement.java 2006-01-26 00:03:23 UTC (rev 4854)
+++ branches/branch_5_1/connector-j/src/com/mysql/jdbc/ServerPreparedStatement.java 2006-01-26 00:25:36 UTC (rev 4855)
@@ -1873,7 +1873,7 @@
|| this.charEncoding.equalsIgnoreCase("utf8")) {
setString(parameterIndex, x);
} else {
- throw new SQLException(
+ throw SQLError.createSQLException(
"Can not call setNString() when connection character set isn't UTF-8");
}
}
| Thread |
|---|
| • Connector/J commit: r4855 - branches/branch_5_1/connector-j/src/com/mysql/jdbc | tikeda | 26 Jan |