Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.sql.*;
- public class TestCase {
- public static void main(String args[]){
- Connection connection;
- String stringConnection;
- Statement stmt;
- ResultSet rs;
- try {
- Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
- stringConnection = "jdbc:oracle:thin:@localhost:1521:xe";
- connection = DriverManager.getConnection(stringConnection, "lbd", "lbd");
- stmt = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
- rs = stmt.executeQuery("SELECT * FROM PERSONA");
- System.out.println(rs.getConcurrency() == ResultSet.CONCUR_UPDATABLE); //FALSE!!!
- rs.close();
- stmt.close();
- }
- catch (Exception e){
- e.printStackTrace();
- }
- }
- }
- $ javac TestCase.java
- $ java -cp .:ojdbc14.jar TestCase
- false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement