line |
l |
!l&&r |
!l&&!r |
condition |
367
|
0 |
50 |
0 |
$prepared{$self}{'begin_change'} ||= $self->xprepare('select', ['p.uuid AS parent_uuid', 'c.mtime AS mtime', 'c.mtimetz AS mtimetz', 'c.author AS author', 'c.author_contact AS author_contact', 'c.author_contact_method AS author_contact_method', 'c.author_shortname AS author_shortname', 'c.lang AS lang'], 'from', 'changes c', 'left_join', 'changes p', 'on', 'p.id = c.parent_id', 'where', 'c.id = ?') |
387
|
0 |
50 |
0 |
$prepared{$self}{'deltas'} ||= $self->xprepare('select', ['d.id AS id', 'd.action AS action'], 'from', 'deltas d', 'where', 'd.change_id = ?', 'order_by', 'd.id') |
398
|
0 |
200 |
0 |
$prepared{$self}{$delta->{'action'}} ||= $self->xprepare(@{$statements{$delta->{'action'}};}) |
409
|
0 |
50 |
0 |
$prepared{$self}{'end_change'} ||= $self->xprepare('select', ['c.action_format AS action_format', 'n1.uuid AS action_node_uuid_1', 'n2.uuid AS action_node_uuid_2', 'i.uuid AS identity_uuid', 'c.message AS message', 'c.uuid AS uuid'], 'from', 'changes c', 'inner_join', 'nodes i', 'on', 'i.id = c.identity_id', 'left_join', 'nodes n1', 'on', 'n1.id = c.action_node_id_1', 'left_join', 'nodes n2', 'on', 'n2.id = c.action_node_id_2', 'where', 'c.id = ?') |
474
|
0 |
0 |
0 |
$prepared{$self}{'have_change'} ||= $self->xprepare('select', 'count(id)', 'from', 'changes c', 'where', {'c.uuid', $end->{'uuid'}}) |
511
|
0 |
0 |
0 |
$prepared{$self}{'is_valid'} ||= $self->xprepare('select', case('when', 'c.valid = 0', 'then', -1, 'else', 1), 'from', 'changes c', 'where', {'c.uuid', $end->{'uuid'}}) |