|
|
|
ava.sql.SQLException: Длина типа превышает максимум
|
|||
|---|---|---|---|
|
#18+
Добрый день. Пример из документации "Java Developer Guide.pdf" раздел Accessing REF CURSOR Data private void Test(){ CallableStatement cstmt; ResultSet cursor; OracleDataSource ods; try { ods = new OracleDataSource(); ods.setURL(ConnectionString); Connection conn = ods.getConnection(); String jobquery = "begin open ? for select c1 from t1; end;"; cstmt = conn.prepareCall(jobquery); cstmt.registerOutParameter(1, OracleTypes.CURSOR); cstmt.execute(); cursor = (ResultSet)cstmt.getObject(1); while (cursor.next ()) {System.out.println (cursor.getString(1));} ods.close(); cursor.close(); conn.close(); } catch (SQLException e) { System.out.println(e); } } Выдает ошибку java.sql.SQLException: Длина типа превышает максимум Использовал JDeveloper, Oracle XE В чем может быть проблема? То что это работает сомнений нет, непонятно почему у меня это не работает. Как искать причину, что сделать чтоб устранить? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.01.2007, 11:50:16 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=34277967&tid=2146860]: |
0ms |
get settings: |
16ms |
get forum list: |
22ms |
check forum access: |
6ms |
check topic access: |
6ms |
track hit: |
49ms |
get topic data: |
19ms |
get forum data: |
4ms |
get page messages: |
62ms |
get tp. blocked users: |
2ms |
| others: | 286ms |
| total: | 472ms |

| 0 / 0 |
