1 create or replace function xt.undomerge(schema_name text, table_name text, id integer) returns integer as $$
2 /* Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
3 See www.xtuple.com/CPAL for the full text of the software license. */
6 XT.allowEditComments = true;
7 result = plv8.execute('select public.undomerge($1, $2, $3) as result;', [schema_name, table_name, id])[0].result;
8 XT.allowEditComments = false;