anchor.diff:           get_compiled_ddl_version/1,
            get_ddl/1,
            get_state/1,
  -         get_tables_needing_recompiling/1,
  +         get_ddl_records_needing_recompiling/1,
            insert/5,
            is_compiling/1,
            new/1,
  
positive.code:                  <<"my_type2">>,
                   <<"my_type3">>,
                  ],
                  lists:sort(get_tables_needing_recompiling(8))
              )
          end).
  
  
negative.code:     CompilingPids = dets:match(?TABLE, {'_','_','_','$1',compiling}),
      lists:foreach(fun([Pid]) -> update_state(Pid, retrying) end, CompilingPids).
  
  %% Get the list of records which need to be recompiled
  -spec get_ddl_records_needing_recompiling(DDLVersion :: riak_ql_ddl:compiler_version_type()) ->
      [binary()].
  get_ddl_records_needing_recompiling(DDLVersion) ->
      %% First find all tables with a version
      MismatchedTables = dets:select(?TABLE, [{{'$1','$2','_','_',compiled},[{'/=','$2', DDLVersion}],['$$']}]),
      RetryingTables = dets:match(?TABLE, {'$1','$2','_','_',retrying}),
  