Skip to content

Commit

Permalink
Update error messages and comments for unsupported operations
Browse files Browse the repository at this point in the history
  • Loading branch information
zinal committed Jun 27, 2024
1 parent 914dccd commit a7e347c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public String getCurrentTimestampSelectString() {

@Override
public String getForUpdateString() {
throw new UnsupportedOperationException("YDB don't support FOR UPDATE statement");
throw new UnsupportedOperationException("YDB does not support FOR UPDATE statement");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public String getCurrentTimestampSelectString() {

@Override
public String getForUpdateString() {
throw new UnsupportedOperationException("YDB don't support FOR UPDATE statement");
throw new UnsupportedOperationException("YDB does not support FOR UPDATE statement");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,23 +119,23 @@ public boolean supportsTablespaces() {
}

/**
* YDB don't support foreign key
* YDB does not support foreign key
*/
@Override
public boolean supportsForeignKeyDisable() {
return true;
}

/**
* YDB don't support sequences
* YDB does not support sequences (yet)
*/
@Override
public boolean supportsSequences() {
return false;
}

/**
* YDB don't support auto increment
* YDB does not support auto increment (yet)
*/
@Override
public boolean supportsAutoIncrement() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public Position getClausePosition() {

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

public LockClause.Position getClausePosition() {
Expand Down Expand Up @@ -76,7 +76,7 @@ public Set<Class<?>> simpleTypes() {
@Override
public InsertRenderContext getInsertRenderContext() {
return () -> {
throw new UnsupportedOperationException("YDB don't support VALUES (DEFAULT) statement");
throw new UnsupportedOperationException("YDB does not support VALUES (DEFAULT) statement");
};
}

Expand Down

0 comments on commit a7e347c

Please sign in to comment.