Skip to content

Commit cbbef49

Browse files
authored
Update error messages and comments for unsupported operations (#136)
1 parent e33402b commit cbbef49

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

hibernate-dialect-v5/src/main/java/tech/ydb/hibernate/dialect/YdbDialect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public String getCurrentTimestampSelectString() {
176176

177177
@Override
178178
public String getForUpdateString() {
179-
throw new UnsupportedOperationException("YDB don't support FOR UPDATE statement");
179+
throw new UnsupportedOperationException("YDB does not support FOR UPDATE statement");
180180
}
181181

182182
@Override

hibernate-dialect/src/main/java/tech/ydb/hibernate/dialect/YdbDialect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public String getCurrentTimestampSelectString() {
235235

236236
@Override
237237
public String getForUpdateString() {
238-
throw new UnsupportedOperationException("YDB don't support FOR UPDATE statement");
238+
throw new UnsupportedOperationException("YDB does not support FOR UPDATE statement");
239239
}
240240

241241
@Override

liquibase-dialect/src/main/java/tech/ydb/liquibase/database/YdbDatabase.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,23 +119,23 @@ public boolean supportsTablespaces() {
119119
}
120120

121121
/**
122-
* YDB don't support foreign key
122+
* YDB does not support foreign key
123123
*/
124124
@Override
125125
public boolean supportsForeignKeyDisable() {
126126
return true;
127127
}
128128

129129
/**
130-
* YDB don't support sequences
130+
* YDB does not support sequences (yet)
131131
*/
132132
@Override
133133
public boolean supportsSequences() {
134134
return false;
135135
}
136136

137137
/**
138-
* YDB don't support auto increment
138+
* YDB does not support auto increment (yet)
139139
*/
140140
@Override
141141
public boolean supportsAutoIncrement() {

spring-data-dialect/src/main/java/tech/ydb/data/core/dialect/YdbDialect.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public Position getClausePosition() {
4242

4343
private static final LockClause LOCK_CLAUSE = new LockClause() {
4444
public String getLock(LockOptions lockOptions) {
45-
throw new UnsupportedOperationException("YDB don't support pessimistic locks");
45+
throw new UnsupportedOperationException("YDB does not support pessimistic locks");
4646
}
4747

4848
public LockClause.Position getClausePosition() {
@@ -76,7 +76,7 @@ public Set<Class<?>> simpleTypes() {
7676
@Override
7777
public InsertRenderContext getInsertRenderContext() {
7878
return () -> {
79-
throw new UnsupportedOperationException("YDB don't support VALUES (DEFAULT) statement");
79+
throw new UnsupportedOperationException("YDB does not support VALUES (DEFAULT) statement");
8080
};
8181
}
8282

0 commit comments

Comments
 (0)