Bugs item #2779437, was opened at 2009-04-23 14:10
Message generated for change (Comment added) made by vzzzbx
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2779437&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: SQL/Core
Group: MonetDB5 CVS Head
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Wouter Alink (vzzzbx)
Assigned to: Niels Nes (nielsnes)
Summary: SQL: Temporary table leftovers

Initial Comment:
It may be related to previous bug-reports. (using todays CVS head)

The following works fine (can be run many times):

start transaction;
CREATE TEMPORARY TABLE y (x int);
INSERT INTO y VALUES (13);
SELECT * FROM y;
DROP TABLE y;
rollback;

The following doesn't work multiple times (the only difference is that the drop 
table statement is omitted which shouldn't be necessary for temporary tables):

start transaction;
CREATE TEMPORARY TABLE y (x int);
INSERT INTO y VALUES (13);
SELECT * FROM y;
rollback;


----------------------------------------------------------------------

>Comment By: Wouter Alink (vzzzbx)
Date: 2009-04-23 14:19

Message:
Additional info:

Running the following query multiple times in separate sessions fails:

CREATE TEMPORARY TABLE y (x int);
INSERT INTO y VALUES (10);
SELECT * FROM y;

The table is already known. There are however no records in table y.
SELECT * FROM y; yields an empty table.

----------------------------------------------------------------------

Comment By: Wouter Alink (vzzzbx)
Date: 2009-04-23 14:16

Message:
Additional info:

The following works fine:

start transaction;
CREATE TABLE y (x int);
INSERT INTO y VALUES (10);
SELECT * FROM y;
rollback;
SELECT * FROM y;

While the code below doesn't: (it still knows about y after the rollback)

start transaction;
CREATE TEMPORARY TABLE y (x int);
INSERT INTO y VALUES (10);
SELECT * FROM y;
rollback;
SELECT * FROM y;


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2779437&group_id=56967

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to