anchor.diff:  -define(E_IRREG,    3).
   -define(E_PUT,      4).
   -define(E_NOCREATE, 5).
  --define(E_TYPE_MISSING, 6).
  +-define(E_NOT_TS_TYPE, 6).
  +-define(E_MISSING_TYPE, 7).
  +-define(E_MISSING_TS_MODULE, 8).
   
   -define(FETCH_RETRIES, 10).  %% TODO make it configurable in tsqueryreq
   
  
positive.code:         true ->
              %% however, prevent bad data to crash us
              try
                  case put_data(Data, Table, Mod) of
                      0 ->
                          {reply, #tsputresp{}, State};
                      ErrorCount ->
  
negative.code: %% local functions
  %% ---------------------------------------------------
  
  -spec make_rpberrresp(integer(), string()) -> #rpberrorresp{}.
  make_rpberrresp(Code, Message) ->
      #rpberrorresp{errcode = Code,
                    errmsg = lists:flatten(Message)}.
  
  
  -spec decode_query_permissions(#ddl_v1{} | #riak_sql_v1{}) -> {string(), binary()}.
  