Skip to content

Commit 5ab0ebd

Browse files
chore: update libraries bom, fix unparsable file
1 parent bc728df commit 5ab0ebd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

generation_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
gapic_generator_version: 2.56.2
22
googleapis_commitish: 261895f1d8ced9564f4cf872f7f4f9a1f4c615d3
3-
libraries_bom_version:
3+
libraries_bom_version: 26.59.0
44
libraries:
55
- api_shortname: spanner
66
name_pretty: Cloud Spanner

google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/ClientSideStatementValueConverters.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,12 @@ public PgDurationConverter(String allowedValues) {
272272
/** Converter from string to possible values for read only staleness ({@link TimestampBound}). */
273273
static class ReadOnlyStalenessConverter
274274
implements ClientSideStatementValueConverter<TimestampBound> {
275+
// Some backslashes need to be specified as hexcode.
276+
// See https://github.com/google/google-java-format/issues/1253
275277
static final ReadOnlyStalenessConverter INSTANCE =
276278
new ReadOnlyStalenessConverter(
277-
"'((STRONG)|(MIN_READ_TIMESTAMP)[\\t ]+((\\d{4})-(\\d{2})-(\\d{2})([Tt](\\d{2}):(\\d{2}):(\\d{2})(\\.\\d{1,9})?)([Zz]|([+-])(\\d{2}):(\\d{2})))|(READ_TIMESTAMP)[\\t ]+((\\d{4})-(\\d{2})-(\\d{2})([Tt](\\d{2}):(\\d{2}):(\\d{2})(\\.\\d{1,9})?)([Zz]|([+-])(\\d{2}):(\\d{2})))|(MAX_STALENESS)[\\t ]+((\\d{1,19})(s|ms|us|ns))|(EXACT_STALENESS)[\\t ]+((\\d{1,19})(s|ms|us|ns)))'");
279+
"'((STRONG)|(MIN_READ_TIMESTAMP)[\\t ]+((\\d{4})-(\\d{2})-(\\d{2})([Tt](\\d{2}):(\\d{2}):(\\d{2})(\\.\\d{1,9})?)([Zz]|([+-])(\\d{2}):(\\d{2})))|(READ_TIMESTAMP)[\u005Ct ]+((\\d{4})-(\\d{2})-(\\d{2})([Tt](\\d{2}):(\\d{2}):( \\d{2})(\\.\\d{1,9})?)([Zz]|([+-])(\\d{2}):(\\d{2})))|(MAX_STALENESS)[\u005Ct ]+((\\d{1,19})(s|ms|us|ns))|(EXACT_STALENESS)[\\t ]+((\\d{1,19})(s|ms|us|ns)))'");
280+
278281

279282
private final Pattern allowedValues;
280283
private final CaseInsensitiveEnumMap<Mode> values = new CaseInsensitiveEnumMap<>(Mode.class);

0 commit comments

Comments
 (0)