NULL parameter for ODBC param_query

Ryan Huffman ryanhuffman@REDACTED
Thu Jan 20 01:00:28 CET 2011


Is it possible to use null values in a parameterized query?

example: odbc:param_query("exec User_Read ?", [{sql_integer, Param}]).  %
Param is either an integer or null

The odbc driver returns the 'null' atom when selecting rows, but I haven't
found a value that allows me to specify a null parameter ('null', 'NULL',
<<"null">>, etc...)

Thanks!

Ryan


More information about the erlang-questions mailing list