anchor.diff:              , fun test_with_sec/1
           ]}
       }.
  -    
  -test_without_sec(_) -> 
  +
  +test_without_sec(_) ->
       test_with_or_without_sec(false).
   
   test_with_sec(_) ->
  
positive.code:     end,
      if_call_mfa(IsSec, 'drop_index', [SKey,Table,Index]);
  
  exec(SKey, {'create index', IndexType, IndexName, TableName
              , IndexDefn, NormWithFun, FilterWithFun} = _ParseTree
              , _Stmt, _Opts, IsSec) ->
      ?LogDebug("Create Index Parse Tree~n~p~n", [_ParseTree]),
      MySchema = imem_meta:schema(),
      MySchemaName = ?atom_to_binary(MySchema),
      {TableSchema, Tbl} = imem_sql_expr:binstr_to_qname2(TableName),                
      {IndexSchema, Index} = imem_sql_expr:binstr_to_qname2(IndexName),
      Table = case TableSchema of
          MySchemaName -> list_to_existing_atom(binary_to_list(Tbl)); 
          undefined ->    list_to_existing_atom(binary_to_list(Tbl)); 
          _ ->            ?ClientError({"Cannot create index on foreign schema table", TableSchema})
      end,
      case IndexSchema of
          MySchemaName -> ok; 
          undefined ->    ok; 
          _ ->            ?ClientError({"Cannot create index in foreign schema", IndexSchema})
      end,
      ExistingIndexDefs = case imem_meta:read(ddTable, {MySchema,Table}) of
          [#ddTable{}=D] -> 
              case lists:keysearch(index, 1, D#ddTable.opts) of
                  {value,{index, EID}} -> EID;
                  false ->                []
  
negative.code:     % ?LogDebug("Drop Index Parse Tree~n~p~n", [_ParseTree]),
      {TableSchema, Tbl} = imem_sql_expr:binstr_to_qname2(TableName),
      {IndexSchema, Index} = imem_sql_expr:binstr_to_qname2(IndexName),
      if
          not (IndexSchema =:= TableSchema) ->
              ?ClientError({"Index and table are in different schema",{IndexSchema,TableSchema}});
          true ->
              ok
      end,
      Table = if
          TableSchema =:= undefined ->
              {imem_meta:schema(),list_to_existing_atom(binary_to_list(Tbl))};
          true ->
  