|
|
|
ошибка в БД , поясните
|
|||
|---|---|---|---|
|
#18+
собственно... есть код try { Statement statement = conn.createStatement(); ResultSet rs = statement.executeQuery("show databases"); ResultSet rs2 = statement.executeQuery("SHOW TABLES from `eden`"); while (rs.next()) { System.out.println(rs.getString(1)); } rs.close(); statement.close(); conn.close(); } catch(SQLException e) { displaySQLErrors(e); } на что мне вылетает ошибка SQLException: Operation not allowed after ResultSet closed SQLState: S1000 VendorError: 0 как я понял это из-за rs2? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 28.03.2007, 10:41:57 |
|
||
|
ошибка в БД , поясните
|
|||
|---|---|---|---|
|
#18+
javadoc By default, only one ResultSet object per Statement object can be open at the same time. Therefore, if the reading of one ResultSet object is interleaved with the reading of another, each must have been generated by different Statement objects. All execution methods in the Statement interface implicitly close a statment's current ResultSet object if an open one exists. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 28.03.2007, 10:47:52 |
|
||
|
|

start [/forum/topic.php?fid=59&gotonew=1&tid=2146261]: |
0ms |
get settings: |
20ms |
get forum list: |
26ms |
check forum access: |
6ms |
check topic access: |
6ms |
track hit: |
59ms |
get topic data: |
21ms |
get first new msg: |
13ms |
get forum data: |
5ms |
get page messages: |
80ms |
get tp. blocked users: |
3ms |
| others: | 323ms |
| total: | 562ms |

| 0 / 0 |
