erlangbureau / jamdb_sybase

SAP Sybase ASE Database driver for Erlang
MIT License
11 stars 2 forks source link

Driver crashing when stored procedure returns out parameters #4

Closed vkletsko closed 10 years ago

vkletsko commented 10 years ago

I received an error when calling the procedure

%%============================================================================ tag 0.4.3 \ exception error: no match of right hand side value <<>> in function jamdb_sybase_tds_decoder:decode_paramsformat2_token/1 (src/jamdb_sybase_tds_decoder.erl, line 265) in call from jamdb_sybase:handle_resp/4 (src/jamdb_sybase.erl, line 162) in call from calc_exchange_refresh_manager:test/1 (src/calc_exchange_refresh_manager.erl, line 236)

kostiushkin commented 10 years ago

Thank you. I found that 0.4.3 has to bugs:

  1. Bad token length on decoding paramsformat and paramsformat2 tokens
  2. Crashing when stored procedure returns out parameters. This bug was introduced after I added support for wide tables in 0.4.2