I have something like the following to use JDBC Connection to call a PL/SQL proceudre on Oracle 8i.
The problem is with the CHAR field, when char is not null, then result1 becomes something like 32K of spaces!!
when it is null, it is fine!
Anyone know what is wrong please?
Code:
sCall.setString(MyConstant.STOREPROCEDURE_PARAM_CRITERION, Criterion);
sCall = jdbcConnection.prepareCall(???);
sCall.registerOutParameter(MyConstant.STOREPROCEDURE_PARAM_CODE, Types.CHAR);
sCall.registerOutParameter(MyConstant.STOREPROCEDURE_PARAM_DESCR, Types.VARCHAR);
sCall.executeQuery();
result1 = sCall.getString(STOREPROCEDURE_PARAM_CODE);
result2 = sCall.getString(STOREPROCEDURE_PARAM_DESCR);
when it is null, it is fine!
Anyone know what is wrong please?