Skip to content

Commit b128ad2

Browse files
committed
fix: automatically set default_sequence_kind for CREATE SEQUENCE
1 parent 5658c83 commit b128ad2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/MissingDefaultSequenceKindException.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ public class MissingDefaultSequenceKindException extends SpannerException {
2828
private static final long serialVersionUID = 1L;
2929

3030
private static final Pattern PATTERN =
31-
Pattern.compile(
32-
"The sequence kind of an identity column .+ is not specified\\. Please specify the"
33-
+ " sequence kind explicitly or set the database option `default_sequence_kind`\\.");
31+
Pattern.compile(".*Please specify the sequence kind explicitly or set the database option `default_sequence_kind`\\.");
3432

3533
/** Private constructor. Use {@link SpannerExceptionFactory} to create instances. */
3634
MissingDefaultSequenceKindException(

0 commit comments

Comments
 (0)