# HG changeset patch # User jbe # Date 1452364804 -3600 # Node ID 03f4f905a41a2a81b90c2c1322691af8bc6c37e7 # Parent 04692707527036401bd6a7802b15456870aaf4b1 Renamed "columns" property to "_col" diff -r 046927075270 -r 03f4f905a41a libraries/mondelefant/mondelefant_native.autodoc.lua --- a/libraries/mondelefant/mondelefant_native.autodoc.lua Sat Jan 09 19:29:36 2016 +0100 +++ b/libraries/mondelefant/mondelefant_native.autodoc.lua Sat Jan 09 19:40:04 2016 +0100 @@ -333,9 +333,11 @@ --[[-- -.columns -- proxy table mapping column names to their values +._col -- proxy table mapping column names to their values -This attribute can be used to access column values directly (helpful if :document_column is set). Currently pairs(...) and ipairs(...) are not implemented on this proxy table. +This attribute can be used to access column values directly (helpful if :document_column is set). + +NOTE: Neither pairs(...) nor ipairs(...) are implemented on this proxy table. Use ._column_info instead. --]]-- -- implemented in mondelefant_native.c as diff -r 046927075270 -r 03f4f905a41a libraries/mondelefant/mondelefant_native.c --- a/libraries/mondelefant/mondelefant_native.c Sat Jan 09 19:29:36 2016 +0100 +++ b/libraries/mondelefant/mondelefant_native.c Sat Jan 09 19:40:04 2016 +0100 @@ -581,12 +581,12 @@ lua_setfield(L, 2, "_dirty"); lua_newtable(L); // 3 lua_setfield(L, 2, "_ref"); // nil=no info, false=nil, else table - // create column proxy (field "columns" in result object): + // create column proxy (field "_col" in result object): lua_newtable(L); // 3 luaL_setmetatable(L, MONDELEFANT_COLUMNS_MT_REGKEY); lua_pushvalue(L, 2); // 4 lua_rawsetp(L, 3, MONDELEFANT_COLUMNS_RESULT_LUKEY); - lua_setfield(L, 2, "columns"); + lua_setfield(L, 2, "_col"); // return created database result object (from stack position 2): return 1; }