diff options
author | unknown <monty@mysql.com> | 2003-12-21 12:48:03 +0200 |
---|---|---|
committer | unknown <monty@mysql.com> | 2003-12-21 12:48:03 +0200 |
commit | c466a191d9eca3f08f72a197dab8600d834d21e8 (patch) | |
tree | 46587e1ec9574fce8a10979ad691d302509fde69 /mysql-test/r | |
parent | 292bb8cbbeb2d0577fd3f15ffe59b2ffb078689d (diff) | |
download | mariadb-git-c466a191d9eca3f08f72a197dab8600d834d21e8.tar.gz |
Fixed memory leaks in SP
Some code cleanup
mysql-test/r/sp.result:
Update results after adding quotes around function/procedure names
sql/sp.cc:
Moved DBUG_ENTER after all variable declarations
Eliminated some variables.
Added more DBUG_ENTER commands.
Added memory allocation checking in create_string()
Fixed memory leak in sp_show_create_function()
Removed usage of sprintf
sql/sql_parse.cc:
Simple cleanup
Fixed memory leaks for mailformed SP definitions
Diffstat (limited to 'mysql-test/r')
-rw-r--r-- | mysql-test/r/sp.result | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mysql-test/r/sp.result b/mysql-test/r/sp.result index 812939751b2..37839fdb650 100644 --- a/mysql-test/r/sp.result +++ b/mysql-test/r/sp.result @@ -732,7 +732,7 @@ delete from t1| alter procedure chistics sql security invoker name chistics2| show create procedure chistics2| Procedure Create Procedure -chistics2 CREATE PROCEDURE chistics2() +chistics2 CREATE PROCEDURE `chistics2`() SQL SECURITY INVOKER COMMENT 'Characteristics procedure test' insert into t1 values ("chistics", 1) @@ -749,7 +749,7 @@ chistics() alter function chistics name chistics2 comment 'Characteristics function test'| show create function chistics2| Function Create Function -chistics2 CREATE FUNCTION chistics2() RETURNS int +chistics2 CREATE FUNCTION `chistics2`() RETURNS int DETERMINISTIC SQL SECURITY INVOKER COMMENT 'Characteristics function test' @@ -999,7 +999,7 @@ end while; end| show create procedure opp| Procedure Create Procedure -opp CREATE PROCEDURE opp(n bigint unsigned, out pp bool) +opp CREATE PROCEDURE `opp`(n bigint unsigned, out pp bool) begin declare r double; declare b, s bigint unsigned default 0; @@ -1096,7 +1096,7 @@ alter procedure bar2 name bar comment "3333333333"| alter procedure bar| show create procedure bar| Procedure Create Procedure -bar CREATE PROCEDURE bar(x char(16), y int) +bar CREATE PROCEDURE `bar`(x char(16), y int) COMMENT '3333333333' insert into test.t1 values (x, y) show procedure status like 'bar'| |