webmcp

diff libraries/mondelefant/mondelefant_atom_connector.lua @ 375:fb98b17056e5

Proper support for mutable data types (JSON objects/arrays) in table columns
author jbe
date Sat Nov 14 15:44:53 2015 +0100 (2015-11-14)
parents 11ef7ab67e43
children 8b8ebcb87034
line diff
     1.1 --- a/libraries/mondelefant/mondelefant_atom_connector.lua	Sat Nov 14 14:15:31 2015 +0100
     1.2 +++ b/libraries/mondelefant/mondelefant_atom_connector.lua	Sat Nov 14 15:44:53 2015 +0100
     1.3 @@ -188,13 +188,10 @@
     1.4  end
     1.5  
     1.6  function mondelefant.verify_mutability_state(value, state)
     1.7 -  if state and tostring(value) ~= state then
     1.8 -    return true
     1.9 -  else
    1.10 -    return false
    1.11 -  end
    1.12 +  return tostring(value) ~= state
    1.13  end
    1.14  
    1.15 +
    1.16  return _M
    1.17  
    1.18  

Impressum / About Us