[erlang-bugs] ODBC param_query issues.

Jan Jacobs hpjcon@REDACTED
Mon Dec 15 19:31:16 CET 2008


 Hi,
 
 While adding the handling of SQL_TYPE_TIMESTAMP to param_query, I have
 picked up the following:
 
 1) In the source code (odbc.erl) for param_query the following statement
 appears:
        [{_,Values}|_]=Params
    This is wrong according to the documentation:
         Params = [{odbc_data_type(), [value()]}] |[{odbc_data_type(), 
 in_or_out(), [value()]}]
 
    I changed it to:
    Values =
    case Params of    
      [{_, Vs} | _] -> Vs;
      [{_, _, Vs} | _] -> Vs
    end,
 
 2) Adding additional types requires a lot of changes in the C source in
 different places. I want to know if I can change the internals of the
 source code to C++. I need to handle additional types in the
 param_query.
    
 Thanks
 Jan



More information about the erlang-bugs mailing list