anchor.diff:              end, 
               #ddColumn{type=Type, len=Len, prec=P} = imem_meta:meta_field_info(Name),
               Cmap1 = Cmap0#bind{tind=?MetaIdx, cind=Cindex, type=Type, len=Len, prec=P},
  -            column_map([], Columns, Tindex, Lookup, Meta1, [Cmap1|Acc]);                          
  +            column_map_columns(Columns, Lookup, Meta1, [Cmap1|Acc]);                          
           (Tcount==0) andalso (Schema==undefined) andalso (Table==undefined)->  
               ?ClientError({"Unknown column name", Name});
           (Tcount==0) andalso (Schema==undefined)->  
  
positive.code: column_map(Tables, []) ->
      column_map(Tables, [#bind{name='*'}]);    
  column_map(Tables, Columns) ->
      column_map([{S,imem_meta:physical_table_name(T),A}||{S,T,A} <- Tables], Columns, ?MainIdx, [], [], []).    %% First table has index 2
  
  column_map([{undefined,Table,Alias}|Tables], Columns, Tindex, Lookup, Meta, Acc) ->
      column_map([{imem_meta:schema(),Table,Alias}|Tables], Columns, Tindex, Lookup, Meta, Acc);
  column_map([{Schema,Table,Alias}|Tables], Columns, Tindex, Lookup, Meta, Acc) ->
      Cols = imem_meta:column_infos({Schema,Table}),
      L = [{Tindex, Cindex, Schema, Alias, Cinfo#ddColumn.name, Cinfo} || {Cindex, Cinfo} <- lists:zip(lists:seq(2,length(Cols)+1), Cols)],
      % ?Debug("column_map lookup ~p~n", [Lookup++L]),
      % ?Debug("column_map columns ~p~n", [Columns]),
      column_map(Tables, Columns, Tindex+1, Lookup++L, Meta, Acc);
  
  column_map([], [#bind{schema=undefined, table=undefined, name='*'}=Cmap0|Columns], Tindex, Lookup, Meta, Acc) ->
      % ?Debug("column_map 1 ~p~n", [Cmap0]),
      NameList = [N ||  {_, _, _, _, N, _} <- Lookup],
      NameDups = length(Lookup) - length(lists:usort(NameList)),
  
negative.code:               } ||  {Ti, Ci, S, T, N, #ddColumn{type=Type, len=Len, prec=P}} <- Lookup
               ]
      end,
      column_map_columns(Cmaps ++ Columns, Lookup, Meta, Acc);
  column_map_columns([#bind{schema=undefined, name='*'}=Cmap0|Columns], Lookup, Meta, Acc) ->
      % ?Debug("column_map 2 ~p~n", [Cmap0]),
      column_map_columns([Cmap0#bind{schema=imem_meta:schema()}|Columns], Lookup, Meta, Acc);
  column_map_columns([#bind{schema=Schema, table=Table, name='*'}=Cmap0|Columns], Lookup, Meta, Acc) ->
      % ?Debug("column_map 3 ~p~n", [Cmap0]),
      Prefix = case imem_meta:schema() of
          Schema ->   atom_to_list(Table);
  