mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
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 int rowIdSqlType() {
|
||||
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 String createMarker(int position, JdbcType jdbcType) {
|
||||
public DmlTargetColumnQualifierSupport getDmlTargetColumnQualifierSupport() {
|
||||
return DmlTargetColumnQualifierSupport.TABLE_ALIAS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCaseInsensitiveLike() {
|
||||
return "ilike";
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsCaseInsensitiveLike(){
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -153,6 +153,7 @@ public PostgreSQLDialect() {
|
||||
|
||||
public PostgreSQLDialect(DialectResolutionInfo info) {
|
||||
this( info, PostgreSQLDriverKind.determineKind( info ) );
|
||||
registerKeywords( info );
|
||||
}
|
||||
|
||||
public PostgreSQLDialect(DatabaseVersion version) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user