libsql-experimental-python icon indicating copy to clipboard operation
libsql-experimental-python copied to clipboard

Unable to set a `NULL` value parameter

Open cmendoza-cs opened this issue 11 months ago • 0 comments

libsql-experimental version: 0.0.41

I'm trying to figure out how to pass a null value parameter. I believe using None is the expected way, but passing None results in the error: ValueError: Unsupported parameter type.

i.e.

    conn = libsql.connect(...)

    conn.execute(
        """
        INSERT INTO user (name, age)
        VALUES (?, ?)
        """,
        ("Chris", None)
    )
    # ValueError: Unsupported parameter type

cmendoza-cs avatar Jan 21 '25 18:01 cmendoza-cs