|
|
|
@ -455,6 +455,10 @@ public class PreparedStatement extends Statement implements java.sql.PreparedSta |
|
|
|
|
*/ |
|
|
|
|
public void setObject(int parameterIndex, Object x, int targetSqlType, int scale) throws SQLException |
|
|
|
|
{ |
|
|
|
|
if (x == null){ |
|
|
|
|
setNull(parameterIndex,Types.OTHER); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
switch (targetSqlType) |
|
|
|
|
{ |
|
|
|
|
case Types.TINYINT: |
|
|
|
@ -506,6 +510,10 @@ public class PreparedStatement extends Statement implements java.sql.PreparedSta |
|
|
|
|
*/ |
|
|
|
|
public void setObject(int parameterIndex, Object x) throws SQLException |
|
|
|
|
{ |
|
|
|
|
if (x == null){ |
|
|
|
|
setNull(parameterIndex,Types.OTHER); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (x instanceof String) |
|
|
|
|
setString(parameterIndex, (String)x); |
|
|
|
|
else if (x instanceof BigDecimal) |
|
|
|
|