ruricolist / cl-yesql

Common Lisp library for using SQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Values are coerced into strings in "SELECT ? AS p;"

phoe opened this issue · comments

-- name: check-selection
SELECT ? AS p;
SQL/TEST> (check-selection t)
(("true"))

Types are not preserved across SELECT queries, it seems. I think this is an issue on the Postmodern side as I have been able to reproduce it with pomo:query.

I have been able to work around this via explicit casting.

-- name: check-selection
SELECT ?::boolean AS p;
SQL/TEST> (check-selection t)
((T))