webmcp

changeset 417:03f4f905a41a

Renamed "columns" property to "_col"
author jbe
date Sat Jan 09 19:40:04 2016 +0100 (2016-01-09)
parents 046927075270
children 05e56ca2f324
files libraries/mondelefant/mondelefant_native.autodoc.lua libraries/mondelefant/mondelefant_native.c
line diff
     1.1 --- a/libraries/mondelefant/mondelefant_native.autodoc.lua	Sat Jan 09 19:29:36 2016 +0100
     1.2 +++ b/libraries/mondelefant/mondelefant_native.autodoc.lua	Sat Jan 09 19:40:04 2016 +0100
     1.3 @@ -333,9 +333,11 @@
     1.4  
     1.5  
     1.6  --[[--
     1.7 -<db_object>.columns  -- proxy table mapping column names to their values
     1.8 +<db_object>._col  -- proxy table mapping column names to their values
     1.9  
    1.10 -This attribute can be used to access column values directly (helpful if <db_class>:document_column is set). Currently pairs(...) and ipairs(...) are not implemented on this proxy table.
    1.11 +This attribute can be used to access column values directly (helpful if <db_class>:document_column is set).
    1.12 +
    1.13 +NOTE: Neither pairs(...) nor ipairs(...) are implemented on this proxy table. Use <db_object>._column_info instead.
    1.14  
    1.15  --]]--
    1.16  -- implemented in mondelefant_native.c as
     2.1 --- a/libraries/mondelefant/mondelefant_native.c	Sat Jan 09 19:29:36 2016 +0100
     2.2 +++ b/libraries/mondelefant/mondelefant_native.c	Sat Jan 09 19:40:04 2016 +0100
     2.3 @@ -581,12 +581,12 @@
     2.4    lua_setfield(L, 2, "_dirty");
     2.5    lua_newtable(L);  // 3
     2.6    lua_setfield(L, 2, "_ref");  // nil=no info, false=nil, else table
     2.7 -  // create column proxy (field "columns" in result object):
     2.8 +  // create column proxy (field "_col" in result object):
     2.9    lua_newtable(L);  // 3
    2.10    luaL_setmetatable(L, MONDELEFANT_COLUMNS_MT_REGKEY);
    2.11    lua_pushvalue(L, 2);  // 4
    2.12    lua_rawsetp(L, 3, MONDELEFANT_COLUMNS_RESULT_LUKEY);
    2.13 -  lua_setfield(L, 2, "columns");
    2.14 +  lua_setfield(L, 2, "_col");
    2.15    // return created database result object (from stack position 2):
    2.16    return 1;
    2.17  }

Impressum / About Us