Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MySQL++ - Programming with the C++ API to MySQL
MaxDB - Everything about MaxDB, formerly known as SAP DB
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
Temp table created in dbproc outside not visibel with 7.6.00.32

Temp table created in dbproc outside not visibel with 7.6.00.32

2007-04-03       - By Elke Schmidtke

 Back
Hi,
with MaxDB 7.6.00.32 I have the problem that a temporary table created
inside a dbproc is not accessible outside the dbproc.
With 7.5.0.24 it was possible.

I'm working e.g. with SQL studio:
call PROC_BERICHTE_ERNENNUNG (2, '2005-1-1','2005-12-31')

The job of the procedure is to fill a temporary table.
If there are no data in the temporary table an error message is
produced.
With both versions 7.6.xx and 7.5.xx the call provides as expected:
Statement successfully executed. No Result

But
select * from TEMP.PERS_AND_DBV
with 7.5.xx shows content of the temporary table
with 7.6.xx I get the following error
Base table not found;-4004 POS(15) Unknown table name:PERS_AND_DBV

The shortened procedure:

CREATE DBPROC PROC_BERICHTE_ERNENNUNG (IN SANR INT, IN BBEGINN DATE, IN
BENDE DATE) AS
VAR
DBV INT; BEGINN1 DATE;
TRY
  DELETE FROM TEMP.PERS_AND_DBV;
CATCH
BEGIN
  CREATE TABLE TEMP.PERS_AND_DBV AS
  SELECT * FROM DBA.VT_PERS_AND_DBV_ZR_XX;
  DELETE FROM TEMP.PERS_AND_DBV;
END;
... stuff to fill temporary table ...
TRY
  SELECT PERS_NR FROM TEMP.PERS_AND_DBV;
CATCH
  STOP (30334, 'Keine Daten f?r die Selektion !');
---> end of procedure

The problem also exists if using JDBC.
What can I do ?

Elke



--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe:    http://lists.mysql.com/maxdb?unsub=mysql@(protected)