File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1478,22 +1478,22 @@ is
1478
1478
l_next_i int;
1479
1479
l_next_pos int;
1480
1480
begin
1481
-
1482
- -- insert token containing beginning of statement
1481
+ -- insert "conn" token containing beginning of statement
1483
1482
if p_tokens.first > 1 then
1484
- p_tokens(1) := substr (p_stmt, 1, l_i -1);
1483
+ p_tokens(1) := substr (p_stmt, 1, p_tokens.first -1);
1485
1484
p_tokens_type(1) := 'conn';
1486
1485
end if;
1487
1486
-- insert fake token at the end
1488
1487
p_tokens (length(p_stmt)+1) := 'fake';
1489
1488
l_i := p_tokens.first;
1490
1489
loop
1491
1490
exit when p_tokens (l_i) = 'fake';
1491
+ --log('l_id='||l_i||': <'||p_tokens (l_i)||'> '||p_tokens_type(l_i));
1492
1492
-- next token must start here:
1493
1493
l_next_pos := l_i + length(p_tokens(l_i));
1494
1494
-- next current token starts here:
1495
1495
l_next_i := p_tokens.next (l_i);
1496
- -- insert new token if tokens are not adjacent
1496
+ -- insert new "conn" token if tokens are not adjacent
1497
1497
if l_next_pos != l_next_i then
1498
1498
p_tokens (l_next_pos) := substr (p_stmt, l_next_pos, l_next_i - l_next_pos);
1499
1499
p_tokens_type (l_next_pos) := 'conn';
You can’t perform that action at this time.
0 commit comments