提交 178d2d98 编写于 作者: Z zyyang

change

上级 56e5beaf
package com.taosdata.jdbc; package com.taosdata.jdbc;
import java.sql.SQLException; import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
...@@ -48,6 +49,9 @@ public class TSDBError { ...@@ -48,6 +49,9 @@ public class TSDBError {
message = TSDBErrorMap.get(TSDBErrorNumbers.ERROR_UNKNOWN); message = TSDBErrorMap.get(TSDBErrorNumbers.ERROR_UNKNOWN);
} }
if (errorNumber == TSDBErrorNumbers.ERROR_UNSUPPORTED_METHOD)
return new SQLFeatureNotSupportedException(message);
if (errorNumber < TSDBErrorNumbers.ERROR_UNKNOWN) if (errorNumber < TSDBErrorNumbers.ERROR_UNKNOWN)
// JDBC exception's error number is less than 0x2350 // JDBC exception's error number is less than 0x2350
return new SQLException("ERROR (" + Integer.toHexString(errorNumber) + "): " + message); return new SQLException("ERROR (" + Integer.toHexString(errorNumber) + "): " + message);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册