Skip to content

Commit 85f0d92

Browse files
Support all the array types
1 parent d7bd88b commit 85f0d92

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ public Type getSpannerType() {
163163
},
164164
FLOAT64 {
165165
private final Set<Class<?>> classes = new HashSet<>(Arrays.asList(Float.class, Double.class));
166+
private final Set<String> aliases = new HashSet<>(Collections.singletonList("float8"));
166167

167168
@Override
168169
public int getSqlType() {
@@ -193,6 +194,11 @@ public List<Double> getArrayElements(ResultSet rs, int columnIndex) {
193194
public Type getSpannerType() {
194195
return Type.float64();
195196
}
197+
198+
@Override
199+
public Set<String> getAliases() {
200+
return aliases;
201+
}
196202
},
197203
INT64 {
198204
private final Set<Class<?>> classes =

0 commit comments

Comments
 (0)