提交 8e903cb0 编写于 作者: J jurgen

PostgreSQL sequences read fix

上级 0a4cae29
DB toolbar/menu visibility config in Eclipse mode
MacOS test
Eclipse Mars update
OpenSUSE test (UI is broken)
Objects cache. Allow to load single object without entire cache loading (for table metadata reading).
Remove QMDB warnings from main Error Log
......
......@@ -85,8 +85,9 @@ public class PostgreMetaModel extends GenericMetaModel implements DBCQueryTransf
public List<GenericSequence> loadSequences(DBRProgressMonitor monitor, GenericObjectContainer container) throws DBException {
JDBCSession session = container.getDataSource().getDefaultContext(true).openSession(monitor, DBCExecutionPurpose.META, "Read procedure definition");
try {
JDBCPreparedStatement dbStat = session.prepareStatement("SELECT sequence_name FROM information_schema.sequences");
JDBCPreparedStatement dbStat = session.prepareStatement("SELECT sequence_name FROM information_schema.sequences WHERE sequence_schema=?");
try {
dbStat.setString(1, container.getName());
JDBCResultSet dbResult = dbStat.executeQuery();
try {
List<GenericSequence> result = new ArrayList<GenericSequence>();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册