HHH-16454 PostgreSQL ILIKE Keyword is considered a column name when deducing alias injection points
This commit is contained in:
parent
13c714c4c4
commit
29f51ef9ca
|
@ -972,4 +972,19 @@ public class H2LegacyDialect extends Dialect {
|
|||
public DmlTargetColumnQualifierSupport getDmlTargetColumnQualifierSupport() {
|
||||
return DmlTargetColumnQualifierSupport.TABLE_ALIAS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCaseInsensitiveLike() {
|
||||
if ( getVersion().isSameOrAfter( 1, 4, 194 ) ) {
|
||||
return "ilike";
|
||||
}
|
||||
else {
|
||||
return super.getCaseInsensitiveLike();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsCaseInsensitiveLike() {
|
||||
return getVersion().isSameOrAfter( 1, 4, 194 );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -982,4 +982,15 @@ public class H2Dialect extends Dialect {
|
|||
public DmlTargetColumnQualifierSupport getDmlTargetColumnQualifierSupport() {
|
||||
return DmlTargetColumnQualifierSupport.TABLE_ALIAS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCaseInsensitiveLike() {
|
||||
return "ilike";
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsCaseInsensitiveLike(){
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -153,6 +153,7 @@ public class PostgreSQLDialect extends Dialect {
|
|||
|
||||
public PostgreSQLDialect(DialectResolutionInfo info) {
|
||||
this( info, PostgreSQLDriverKind.determineKind( info ) );
|
||||
registerKeywords( info );
|
||||
}
|
||||
|
||||
public PostgreSQLDialect(DatabaseVersion version) {
|
||||
|
|
Loading…
Reference in New Issue