Skip to content

FLOATING-POINT-OVERFLOW with declared type of 'string' #10

@thomp

Description

@thomp

According to the sqlite spec (http://www.sqlite.org/datatype3.html), a column with declared type of 'string' should have affinity NUMERIC. However, the last query triggers a FLOATING-POINT-OVERFLOW error. Is this what we expect with the last query? Rather, as with the earlier query (8351E70), shouldn't the last query also return NIL?

(defun test1 ()
  (let ((our-db (connect ":memory:")))
    (execute-non-query our-db "CREATE TABLE \"sub\" (`tr` string);")
    (execute-non-query our-db "INSERT INTO `sub` VALUES('0');")
    (sqlite::execute-single our-db "SELECT * FROM sub WHERE tr=? ;" "8351E70")
    (sqlite::execute-single our-db "SELECT * FROM sub WHERE tr=? ;" "8351E700")))

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions