Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 17e87a6

Browse files
committed
Merge branch 'main' into PR #2191 to update
2 parents 249f850 + 3fdf19f commit 17e87a6

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

.github/release-please.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@ releaseType: java-yoshi
22
bumpMinorPreMajor: true
33
handleGHRelease: true
44
branches:
5-
- branch: 1.21.x
6-
releaseType: java-yoshi
7-
bumpMinorPreMajor: true
8-
handleGHRelease: true
9-
- branch: protobuf-4.x-rc
10-
releaseType: java-yoshi
11-
bumpMinorPreMajor: true
12-
handleGHRelease: true
13-
manifest: true
5+
- branch: 1.21.x
6+
- branch: protobuf-4.x-rc
7+
manifest: true
148
extraFiles: ["README.md"]

src/main/java/com/google/cloud/spanner/jdbc/JdbcDataType.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ public Type getSpannerType() {
113113
}
114114
},
115115
FLOAT32 {
116+
private final Set<String> aliases = new HashSet<>(Collections.singletonList("float4"));
117+
116118
@Override
117119
public int getSqlType() {
118120
return Types.REAL;
@@ -152,6 +154,11 @@ public List<Float> getArrayElements(ResultSet rs, int columnIndex) {
152154
public Type getSpannerType() {
153155
return Type.float32();
154156
}
157+
158+
@Override
159+
public Set<String> getPostgreSQLAliases() {
160+
return aliases;
161+
}
155162
},
156163
FLOAT64 {
157164
private final Set<Class<?>> classes = new HashSet<>(Arrays.asList(Float.class, Double.class));

0 commit comments

Comments
 (0)