Skip to content

Add support for TEXT_DATETIME #289

Closed

Description

@CGenie

For my DB I'm getting:

┌ Warning: Unsupported SQLite declared type TEXT_DATETIME, falling back to String type
└ @ SQLite ~/.julia/packages/SQLite/aDggE/src/SQLite.jl:416

I guess TEXT_DATETIME should be supported by Julia though I can't find it officially mentioned in the documentation:
https://www.sqlite.org/datatype3.html

Activity

  1. quinnj commented on Apr 9, 2022

    @quinnj
    Member

    Yeah, we're talking about removing the warning since we can't possible cover all possible types since sqlite allows you to put "anything" as the column type (ref #279 )

  2. quinnj commented on Oct 4, 2026

    @quinnj
    Member

    The warning reported here was removed in #290, included in v1.4.1. I verified registered SQLite.jl 1.9.0 and current master 997c150 on Julia 1.9.4 and 1.13.1 with a TEXT_DATETIME column: inserting and selecting 2022-04-09 15:30:00 returns the original string without a warning.

    SQLite permits arbitrary declared type names and has no separate date/time storage class. SQLite.jl falls back to the stored value's type for an unfamiliar declaration; TEXT_DATETIME therefore does not imply an automatic Julia DateTime conversion. Applications can parse the returned strings using their chosen date format.

    Closing the reported warning as resolved. No new special case for this declaration is needed.

    AI disclosure: This work was prepared with assistance from OpenAI Codex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions