Re: modification required to pass Sun's CTS
| От | Oliver Jowett |
|---|---|
| Тема | Re: modification required to pass Sun's CTS |
| Дата | |
| Msg-id | 429E6208.4040001@opencloud.com обсуждение исходный текст |
| Ответ на | Re: modification required to pass Sun's CTS (Dave Cramer <pg@fastcrypt.com>) |
| Ответы |
Re: modification required to pass Sun's CTS
|
| Список | pgsql-jdbc |
Dave Cramer wrote:
> cstmt = conn.prepareCall("{call Numeric_Proc
> (?,?,?)}");
>
> msg.setMsg("Register the output parameter");
> cstmt.registerOutParameter
> (1,java.sql.Types.NUMERIC,15);
> cstmt.registerOutParameter
> (2,java.sql.Types.NUMERIC,15);
> cstmt.registerOutParameter
> (3,java.sql.Types.NUMERIC,15);
>
> msg.setMsg("execute the procedure");
> cstmt.executeUpdate();
Ok, so that is exactly the case I was talking about, a procedure that
doesn't return a value or resultset, but has OUT parameters. We should
mask the resultset we get from the backend in this case as it's just an
implementation detail of our OUT mechanism. (i.e. executeUpdate() does
not complain, executeQuery() does complain, etc)
-O
В списке pgsql-jdbc по дате отправления: