HHH-12856 Fix sequences with liblist support

This commit is contained in:
Pierrick Rouxel 2018-08-06 09:10:38 +02:00 committed by Andrea Boriero
parent 4aea43bdb0
commit b204c95e0c
1 changed files with 3 additions and 1 deletions

View File

@ -39,7 +39,9 @@ public class DB2400V7R3Dialect extends DB2400Dialect {
@Override @Override
public String getQuerySequencesString() { public String getQuerySequencesString() {
return "select seqname from qsys2.syssequences"; return "select distinct sequence_name from qsys2.syssequences " +
"where ( current_schema = '*LIBL' and sequence_schema in ( select schema_name from qsys2.library_list_info ) ) " +
"or sequence_schema = current_schema";
} }
@Override @Override