AccessShareLock question
| От | Clayton Graf |
|---|---|
| Тема | AccessShareLock question |
| Дата | |
| Msg-id | 7b2fe65d0912190604v671c2abjcf0f203ff028d5ac@mail.gmail.com обсуждение |
| Ответы |
Re: AccessShareLock question
|
| Список | pgsql-general |
I get an AccessShareLock in a simple select command and I am not using the FOR SHARE clause.
Thanks,
Clayton
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
В списке pgsql-general по дате отправления: