8000 Cannot encode LocalTime: java.lang.UnsupportedOperationException: Printing not supported · Issue #142 · mauricio/postgresql-async · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Dec 3, 2019. It is now read-only.
This repository was archived by the owner on Dec 3, 2019. It is now read-only.
Cannot encode LocalTime: java.lang.UnsupportedOperationException: Printing not supported #142
Closed
@ghost

Description

I'm unable to encode LocalTime instances for insertion into the database. An exception is thrown at org.joda.time.format.DateTimeFormatter.requirePrinter(DateTimeFormatter.java:695), which is caused by com.github.mauricio.async.db.column.TimeEncoderDecoder.encode(TimeEncoderDecoder.scala:43).

I'm not exactly sure what's going on. I'm reading that calls to format.appendOptional(...) to append an optional parser to the formatter turns it into a parsing-only formatter, ie: after this call it cannot print. This might be related to JodaOrg/joda-time#75

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0