MySQL Forums
Forum List  »  Oracle

Re: Cannot insert value in the Temporary Table when accessed from a function via a procedure.
Posted by: Bob Field
Date: August 27, 2006 07:18PM

I boiled your script down to this:
delimiter //
drop database if exists test1//
create database test1//
use test1//
CREATE PROCEDURE tp () BEGIN
	DROP TABLE IF EXISTS tt; # works without this line
	CREATE TABLE tt (id int); 
	DROP TABLE tt; 
END//
CREATE FUNCTION tf () returns VARCHAR(32) BEGIN 
	call tp(); 
	return null; 
END//
call tp()//	# works
select tf ()//	# doesn't
Basically the DROP TABLE line seems to be causing undesirable behavior. I'm not sure if this is a bug or what. Another odd thing is if the CREATE TABLE statement is commented out, the error changes to "Unknown table".

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Cannot insert value in the Temporary Table when accessed from a function via a procedure.
2741
August 27, 2006 07:18PM
8021
September 12, 2007 09:23PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.