Uploaded image for project: 'Erlang/OTP'
  1. Erlang/OTP
  2. ERL-1384

Bug related to usage of case clause in compiled code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 23.1.1
    • Fix Version/s: None
    • Component/s: compiler
    • Labels:
      None

      Description

      The following piece of code goes in the second clause {_, false} even though V is not undefined

       

      case {boss_sql_lib:is_foreign_key(Type, A), V =/= undefined} of        
        {truetrue} ->            
          {_, _, _, ForeignId} = boss_sql_lib:infer_type_from_id(V),            
          ForeignId;        
        {_, false} ->            
          null;        
        _ ->
          V    end,

       

      This behaviour was observed in only compiled code and not via. running with debugger

       

        Attachments

          Activity

            People

            Assignee:
            john John Högberg
            Reporter:
            sonicoder SoniCoder
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: