Skip to content

Commit ff0d2a4

Browse files
Fix exception message DataTime → DateTime
1 parent f78e975 commit ff0d2a4

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)