From b128ad2c6ce39b5b26adad140f0736b99fd11ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Knut=20Olav=20L=C3=B8ite?= Date: Thu, 2 Oct 2025 11:05:32 +0200 Subject: [PATCH 1/2] fix: automatically set default_sequence_kind for CREATE SEQUENCE --- .../cloud/spanner/MissingDefaultSequenceKindException.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/MissingDefaultSequenceKindException.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/MissingDefaultSequenceKindException.java index f153cf6fe4f..249f74465ae 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/MissingDefaultSequenceKindException.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/MissingDefaultSequenceKindException.java @@ -28,9 +28,7 @@ public class MissingDefaultSequenceKindException extends SpannerException { private static final long serialVersionUID = 1L; private static final Pattern PATTERN = - Pattern.compile( - "The sequence kind of an identity column .+ is not specified\\. Please specify the" - + " sequence kind explicitly or set the database option `default_sequence_kind`\\."); + Pattern.compile(".*Please specify the sequence kind explicitly or set the database option `default_sequence_kind`\\."); /** Private constructor. Use {@link SpannerExceptionFactory} to create instances. */ MissingDefaultSequenceKindException( From b9466315a348e3287a360afdf45fd1607de1a6e2 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Thu, 2 Oct 2025 09:12:17 +0000 Subject: [PATCH 2/2] chore: generate libraries at Thu Oct 2 09:09:42 UTC 2025 --- .github/workflows/update_generation_config.yaml | 2 +- .../cloud/spanner/MissingDefaultSequenceKindException.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index 59e39834dd0..a7e14bb483c 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/MissingDefaultSequenceKindException.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/MissingDefaultSequenceKindException.java index 249f74465ae..80e0ac7efaa 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/MissingDefaultSequenceKindException.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/MissingDefaultSequenceKindException.java @@ -28,7 +28,9 @@ public class MissingDefaultSequenceKindException extends SpannerException { private static final long serialVersionUID = 1L; private static final Pattern PATTERN = - Pattern.compile(".*Please specify the sequence kind explicitly or set the database option `default_sequence_kind`\\."); + Pattern.compile( + ".*Please specify the sequence kind explicitly or set the database option" + + " `default_sequence_kind`\\."); /** Private constructor. Use {@link SpannerExceptionFactory} to create instances. */ MissingDefaultSequenceKindException(