The following lines contain the word 'select', 'insert', 'update' or 'delete':
select ojds$node_number$.nextval into inode from dual;
insert into ojds$inode$ (node, type, refcount, creation_ts,
last_modified, owner, is_context)
values (inode, 1, 0, sysdate, sysdate, c, 1);
insert into ojds$bindings$ (parent, child, id, binding_type)
values (inode, p, '..', 1);
insert into ojds$bindings$ (parent, child, id, binding_type)
values (inode, inode, '.', 1);
select ojds$node_number$.nextval into inode from dual;
insert into ojds$inode$ (node, type, refcount, creation_ts,
last_modified, owner, is_context)
values (inode, 2, 0, sysdate, sysdate, r, 0);
update ojds$inode$ set refcount = refcount + 1 where node = c;
insert into ojds$bindings$ (parent, child, id, binding_type)
values (p, c, i, bt);
select b.child, b.binding_type into c, bt
from ojds$bindings$ b, ojds$inode$ n
where b.parent = p and b.id = i and
n.node = b.child for update;
delete from ojds$bindings$ where parent = c and (id = '.' or id = '..');
delete from ojds$bindings$
where parent = p and id = i;
update ojds$inode$ set refcount = refcount - 1 where node = c;
delete from ojds$inode$ where refcount = 0 and node = c;
if sql%rowcount > 0 then -- true if the node was deleted in $inode
delete from ojds$permissions$ where node = c;
delete from ojds$attributes$ where node = c;
delete from ojds$refaddr$ where node = c;
cursor unrefNodes_cur is select node from ojds$inode$ where refcount = 0;
delete from ojds$inode$ where node = unrefNodes_rec.node;
delete from ojds$permissions$ where node = unrefNodes_rec.node;
delete from ojds$attributes$ where node = unrefNodes_rec.node;
delete from ojds$refaddr$ where node = unrefNodes_rec.node;
update ojds$inode$ set refcount = refcount - 1 where
node in (select i.node from ojds$inode$ i, ojds$bindings$ b
where i.node = b.child and b.parent = unrefNodes_rec.node and b.id <> '..' and b.id <> '.');
delete from ojds$bindings$ where parent = unrefNodes_rec.node;
select count(*) into cnt from ojds$bindings$ where parent = c and id <> '.' and id <> '..';
delete from ojds$bindings$ where parent = c;
delete from ojds$bindings$ where child = c;
delete from ojds$inode$ where node = c;
delete from ojds$permissions$ where node = c;
delete from ojds$attributes$ where node = c;
delete from ojds$refaddr$ where node = c;
select b.child into c from ojds$bindings$ b, ojds$inode$ n
where b.parent = p and b.id = i and
n.node = b.child for update;
update ojds$inode$ set refcount = refcount - 1 where node = c;
update ojds$bindings$ set child = nc, binding_type = nt where parent = p and id = i;
update ojds$inode$ set refcount = refcount + 1 where node = nc;
delete from ojds$inode$ where refcount = 0 and node = c;
if sql%rowcount > 0 then -- true if the node was deleted in $inode
delete from ojds$permissions$ where node = c;
delete from ojds$attributes$ where node = c;
delete from ojds$refaddr$ where node = c;
insert into ojds$permissions$ (node, type, schema) values (i, t, s);
delete from ojds$permissions$ where schema=the_dropped;
delete from ojds$permissions$ where schema=the_dropped;
delete from ojds$inode$ where node = inode_number;
delete from ojds$permissions$ where node = inode_number;
delete from ojds$attributes$ where node = inode_number;
delete from ojds$refaddr$ where node = inode_number;
delete from ojds$bindings$ where child = inode_number;
select is_context into tmp1 from ojds$inode$ where node = inode_number;
cursor drop_inode_cur is select node from ojds$inode$ where owner=the_dropped;
delete from ojds$bindings$ where parent=inode_number and ((id = '.') or (id = '..'));
cursor all_children_cur is select child from ojds$bindings$ where parent = inode_number and id <> '.' and id <> '..';
update ojds$inode$ set refcount = refcount - 1 where node = children_rec.child;
delete from ojds$bindings$ where parent=inode_number and id <> '.' and id <> '..';