File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
binlog-stream/app/io/laserdisc/mysql/binlog/stream Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -353,10 +353,10 @@ object TransactionState {
353
353
val jsonValue = metadata.dataType match {
354
354
case " bigint" => Json .fromLong(value.asInstanceOf [Long ])
355
355
case " int" | " tinyint" => Json .fromInt(value.asInstanceOf [Int ])
356
- case " date" | " datetime" => Json .fromLong(value.asInstanceOf [Long ])
356
+ case " date" | " datetime" | " time " => Json .fromLong(value.asInstanceOf [Long ])
357
357
case " decimal" => Json .fromBigDecimal(value.asInstanceOf [BigDecimal ])
358
358
case " float" => Json .fromFloat(value.asInstanceOf [Float ]).get
359
- case " text" | " mediumtext" | " longtext" | " tinytext" | " varchar" =>
359
+ case " text" | " mediumtext" | " longtext" | " tinytext" | " varchar | " char " =>
360
360
Json.fromString(new String(value.asInstanceOf[Array[Byte]]))
361
361
case " json " =>
362
362
Json.fromString(JsonBinary.parseAsString(value.asInstanceOf[Array[Byte]]))
You can’t perform that action at this time.
0 commit comments