Skip to content

TypeError in select with missing values #244

@aplavin

Description

@aplavin

A consistently reproducible example:

using SQLite, Tables

db = SQLite.DB()
DBInterface.execute(db, "create table tmp ( x TEXT )")
DBInterface.execute(db, "insert into tmp values (?)", (nothing,))
DBInterface.execute(db, "insert into tmp values (?)", (:a,))
DBInterface.execute(db, "select x from tmp") |> rowtable

Last line throws ERROR: TypeError: in typeassert, expected Union{Missing, String}, got a value of type Symbol. A null value is necessary for this error to appear.
I don't really understand the internal steps SQLite.jl takes here, but looks like the type detection is somewhat off.

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