Skip to content

Commit 44222e1

Browse files
committed
HHH-20069 Remove usage of non-existing rowid_ column on DB2 for i and z/OS
1 parent 64499dc commit 44222e1

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

hibernate-core/src/main/java/org/hibernate/dialect/DB2iDialect.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,9 @@ protected <T extends JdbcOperation> SqlAstTranslator<T> buildTranslator(
156156
};
157157
}
158158

159-
// I speculate that this is a correct implementation of rowids for DB2 for i,
160-
// just on the basis of the DB2 docs, but I currently have no way to test it
161-
// Note that the implementation inherited from DB2Dialect for LUW will not work!
162-
163159
@Override
164160
public String rowId(String rowId) {
165-
return rowId == null || rowId.isEmpty() ? "rowid_" : rowId;
161+
return rowId;
166162
}
167163

168164
@Override

hibernate-core/src/main/java/org/hibernate/dialect/DB2zDialect.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,9 @@ protected <T extends JdbcOperation> SqlAstTranslator<T> buildTranslator(
189189
};
190190
}
191191

192-
// I speculate that this is a correct implementation of rowids for DB2 for z/OS,
193-
// just on the basis of the DB2 docs. But I currently have no way to test it.
194-
// Note that the implementation inherited from DB2Dialect for LUW will not work!
195-
196192
@Override
197193
public String rowId(String rowId) {
198-
return rowId == null || rowId.isEmpty() ? "rowid_" : rowId;
194+
return rowId;
199195
}
200196

201197
@Override

0 commit comments

Comments
 (0)