Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.0(EOL), 10.1(EOL)
-
None
-
10.0.28
Description
This script crashes the server:
CREATE TABLE IF NOT EXISTS t1 (i INT); |
DROP FUNCTION IF EXISTS f1; |
DELIMITER $$
|
CREATE FUNCTION f1() RETURNS VARCHAR(16383) |
BEGIN
|
RETURN 'test'; |
END; |
$$
|
DELIMITER ;
|
CREATE OR REPLACE TABLE t1 AS SELECT f1(); |
Note, if I replace CREATE OR REPLACE to a DROP followed by CREATE, it works fine:
CREATE TABLE IF NOT EXISTS t1 (i INT); |
DROP FUNCTION IF EXISTS f1; |
DELIMITER $$
|
CREATE FUNCTION f1() RETURNS VARCHAR(16383) |
BEGIN
|
RETURN 'test'; |
END; |
$$
|
DELIMITER ;
|
DROP TABLE IF EXISTS t1; |
CREATE TABLE t1 AS SELECT f1(); |
Attachments
Issue Links
- relates to
-
MDEV-11129 CREATE OR REPLACE TABLE t1 AS SELECT spfunc() crashes if spfunc() references t1
- Closed
-
MDEV-9496 Crash in CREATE OR REPLACE TABLE t1 AS SELECT stored_function()
- Closed