Search Postgresql Archives

AccessShareLock question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I get an AccessShareLock in a simple select command and I am not using the FOR SHARE clause. 
The select is just "select * from controle". The connection is JDBC and the driver is postgresql-8.4-701.jar.
What am I doing wrong?

This is the code:

            Class.forName(jdbc).newInstance();
            Connection connection = DriverManager.getConnection(url, login, password);
            connection.setCatalog(database);
            connection.setAutoCommit(false);
            Statement st = connection.createStatement();
            ResultSet rs = st.executeQuery("select * from controle");
            while (rs.next()) {
                System.out.println(rs.getString(1));
            }
            rs.close();
            st.close();
 
Thanks,
 
Clayton

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux