Closed mmontone closed 4 months ago
It also happens with latest Github version.
I can prevent by not passing :primary-key
, but docs mention I can pass with NIL
.
https://marijnhaverbeke.nl/postmodern/s-sql.html#sql-op-create-table
I think I'd expect the same, nil
being the same as the option not given.
The problem seems to be in s-sql.lisp, line 2178 (in function expand-table-column
), where this should probably just be checked as another case:
((null value)
'())
This should probably be the first clause, so that we can omit and value
in the others.
Is someone going to submit a pull request?
Just committed @svantevonerichsen6906 's suggestion and fixed the relevant tests. Thank you both for identifying it and the suggested fix.
Thanks for the fix!
When I compile an SQL expression with
:primary-key
inNIL
, I get an incorrectPRIMARY KEY
sql output nonetheless.I expect
PRIMARY KEY
not present fornon_primary
column.I have to check with latest Postmodern yet, I'm using Quicklisp version.