Skip to content

Commit

Permalink
Removing SHOW FUNCTION CODE from compat/oracle.sp,
Browse files Browse the repository at this point in the history
as this type of SHOW is only available in debug builds.
A bug in b7af3e7.
All SHOW FUNCTION CODE queries should be in compat/oracle.sp-code.
  • Loading branch information
Alexander Barkov committed Apr 5, 2017
1 parent 5721ea6 commit 7e7ba7c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
18 changes: 0 additions & 18 deletions mysql-test/suite/compat/oracle/r/sp.result
Expand Up @@ -924,24 +924,6 @@ END LOOP la;
RETURN total;
END;
/
SHOW FUNCTION CODE f1;
Pos Instruction
0 set total@3 0
1 set ia@4 1
2 set [upper_bound]@5 a@0
3 jump_if_not 15(15) (ia@4 <= [upper_bound]@5)
4 set total@3 (total@3 + 1000)
5 set ib@6 1
6 jump_if_not 13(13) (ib@6 <= b@1)
7 jump_if_not 10(10) (ib@6 > blim@2)
8 set ia@4 (ia@4 + 1)
9 jump 3
10 set ib@6 (ib@6 + 1)
11 set total@3 (total@3 + 1)
12 jump 6
13 set ia@4 (ia@4 + 1)
14 jump 3
15 freturn 3 total@3
SELECT f1(3,3,0), f1(3,3,1), f1(3,3,2), f1(3,3,3), f1(3,3,4) FROM DUAL;
f1(3,3,0) f1(3,3,1) f1(3,3,2) f1(3,3,3) f1(3,3,4)
3000 3003 3006 3009 3009
Expand Down
1 change: 0 additions & 1 deletion mysql-test/suite/compat/oracle/t/sp.test
Expand Up @@ -993,7 +993,6 @@ BEGIN
END;
/
DELIMITER ;/
SHOW FUNCTION CODE f1;
SELECT f1(3,3,0), f1(3,3,1), f1(3,3,2), f1(3,3,3), f1(3,3,4) FROM DUAL;
DROP FUNCTION f1;

Expand Down

0 comments on commit 7e7ba7c

Please sign in to comment.