[HHH-1697] OracleDialect fails to recognize sequence accessible through syonyms when validating schema
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@14938 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
6d1d3809a8
commit
3052c2a742
|
@ -325,7 +325,12 @@ public class Oracle8iDialect extends Dialect {
|
|||
}
|
||||
|
||||
public String getQuerySequencesString() {
|
||||
return "select sequence_name from user_sequences";
|
||||
return "select sequence_name from all_sequences "
|
||||
+ "union "
|
||||
+ "select synonym_name "
|
||||
+ " from all_synonyms us, all_sequences asq "
|
||||
+ " where asq.sequence_name = us.table_name"
|
||||
+ " and asq.sequence_owner = us.table_owner";
|
||||
}
|
||||
|
||||
public String getSelectGUIDString() {
|
||||
|
|
Loading…
Reference in New Issue