Passing ‘nothing’ to a prepared statement throws an error
Passing ‘missing’ to a prepared statement does work
using LibPQ
conn = LibPQ.Connection("dbname=library user=library"; throw_error=true)
prepared_insert = LibPQ.prepare(conn,
"INSERT INTO book (title,publisher_description) VALUES (\$1, \$2);")
result = execute(prepared_insert, ["O'Neil and the Martians", missing]; throw_error=true)
close(conn)