Skip to content

Commit c1f949b

Browse files
authored
Merge pull request #2590 from artem-zinnatullin/az/fix-datatime-typo
Fix exception message DataTime → DateTime
2 parents f78e975 + ff0d2a4 commit c1f949b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/SerializerUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,7 @@ public static void writeDateTime(OutputStream output, Object value, ZoneId targe
11431143
Instant dt = (Instant) value;
11441144
ts = dt.getEpochSecond();
11451145
} else {
1146-
throw new IllegalArgumentException("Cannot convert " + value + " to DataTime");
1146+
throw new IllegalArgumentException("Cannot convert " + value + " to DateTime");
11471147
}
11481148

11491149
BinaryStreamUtils.writeUnsignedInt32(output, ts);
@@ -1179,7 +1179,7 @@ public static void writeDateTime64(OutputStream output, Object value, int scale,
11791179
ts = dt.getEpochSecond();
11801180
nano = dt.getNano();
11811181
} else {
1182-
throw new IllegalArgumentException("Cannot convert " + value + " to DataTime");
1182+
throw new IllegalArgumentException("Cannot convert " + value + " to DateTime");
11831183
}
11841184

11851185
ts *= BinaryStreamReader.BASES[scale];

0 commit comments

Comments
 (0)