Describe the bug
Replacing a view by a query on the view itself crashes the server.
To Reproduce
CREATE TABLE IF NOT EXISTS t7240 (val INTEGER);
INSERT INTO t7240(val) VALUES (1), (2), (3);
SELECT * FROM t7240;
CREATE OR REPLACE VIEW v7240 AS (SELECT * FROM t7240);
SELECT * FROM v7240;
-- replace the view now with a query on itself
CREATE OR REPLACE VIEW v7240 AS (SELECT * FROM v7240);
-- now the server is killed
SELECT * FROM v7240;
DROP VIEW v7240;
DROP TABLE t7240;
Expected behavior
No crash of the server.
Expected SQL parser Error msg instead (e.g. cannot replace view t7240 with a query including the view itself)
Software versions
MonetDB 5 server v11.43.5 (Jan2022)
OS and version: Compiled for amd64-pc-windows-msvc/32bit
self-installed
The text was updated successfully, but these errors were encountered:
Describe the bug
Replacing a view by a query on the view itself crashes the server.
To Reproduce
CREATE TABLE IF NOT EXISTS t7240 (val INTEGER);
INSERT INTO t7240(val) VALUES (1), (2), (3);
SELECT * FROM t7240;
CREATE OR REPLACE VIEW v7240 AS (SELECT * FROM t7240);
SELECT * FROM v7240;
-- replace the view now with a query on itself
CREATE OR REPLACE VIEW v7240 AS (SELECT * FROM v7240);
-- now the server is killed
SELECT * FROM v7240;
DROP VIEW v7240;
DROP TABLE t7240;
Expected behavior
No crash of the server.
Expected SQL parser Error msg instead (e.g. cannot replace view t7240 with a query including the view itself)
Software versions
The text was updated successfully, but these errors were encountered: