Skip to content

Commit 897a4b6

Browse files
committed
Rename error codes
1 parent 396ad31 commit 897a4b6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

core/src/main/java/com/scalar/db/common/CoreError.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,13 +736,13 @@ public enum CoreError implements ScalarDbError {
736736
"The BOOLEAN type is not supported for index columns in DynamoDB. Column: %s",
737737
"",
738738
""),
739-
DB2_INDEX_OR_KEY_ON_BLOB_COLUMN_NOT_SUPPORTED(
739+
JDBC_DB2_INDEX_OR_KEY_ON_BLOB_COLUMN_NOT_SUPPORTED(
740740
Category.USER_ERROR,
741741
"0227",
742742
"With Db2, using a BLOB column as partition key, clustering key or secondary index is not supported.",
743743
"",
744744
""),
745-
DB2_CROSS_PARTITION_SCAN_ORDERING_ON_BLOB_COLUMN_NOT_SUPPORTED(
745+
JDBC_DB2_CROSS_PARTITION_SCAN_ORDERING_ON_BLOB_COLUMN_NOT_SUPPORTED(
746746
Category.USER_ERROR,
747747
"0228",
748748
"With Db2, setting an ordering on a BLOB column when using a cross partition scan operation is not supported. Ordering: %s",

core/src/main/java/com/scalar/db/storage/jdbc/RdbEngineDb2.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ public String getDataTypeForKey(DataType dataType) {
390390
return "VARCHAR(" + keyColumnSize + ") NOT NULL";
391391
case BLOB:
392392
throw new UnsupportedOperationException(
393-
CoreError.DB2_INDEX_OR_KEY_ON_BLOB_COLUMN_NOT_SUPPORTED.buildMessage());
393+
CoreError.JDBC_DB2_INDEX_OR_KEY_ON_BLOB_COLUMN_NOT_SUPPORTED.buildMessage());
394394
default:
395395
return getDataTypeForEngine(dataType) + " NOT NULL";
396396
}
@@ -404,7 +404,7 @@ public String getDataTypeForSecondaryIndex(DataType dataType) {
404404
return "VARCHAR(" + keyColumnSize + ")";
405405
case BLOB:
406406
throw new UnsupportedOperationException(
407-
CoreError.DB2_INDEX_OR_KEY_ON_BLOB_COLUMN_NOT_SUPPORTED.buildMessage());
407+
CoreError.JDBC_DB2_INDEX_OR_KEY_ON_BLOB_COLUMN_NOT_SUPPORTED.buildMessage());
408408
default:
409409
return null;
410410
}
@@ -563,8 +563,8 @@ public void throwIfCrossPartitionScanOrderingOnBlobColumnNotSupported(
563563
.findFirst();
564564
if (orderingOnBlobColumn.isPresent()) {
565565
throw new UnsupportedOperationException(
566-
CoreError.DB2_CROSS_PARTITION_SCAN_ORDERING_ON_BLOB_COLUMN_NOT_SUPPORTED.buildMessage(
567-
orderingOnBlobColumn.get()));
566+
CoreError.JDBC_DB2_CROSS_PARTITION_SCAN_ORDERING_ON_BLOB_COLUMN_NOT_SUPPORTED
567+
.buildMessage(orderingOnBlobColumn.get()));
568568
}
569569
}
570570
}

0 commit comments

Comments
 (0)