HHH-12856 Fix sequences with liblist support
This commit is contained in:
parent
4aea43bdb0
commit
b204c95e0c
|
@ -39,7 +39,9 @@ public class DB2400V7R3Dialect extends DB2400Dialect {
|
|||
|
||||
@Override
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue