Details
-
Technical task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.3(EOL)
-
10.2.2-3, 10.2.2-1, 10.2.2-2, 10.2.2-4, 10.1.18
Description
Currently, PREPARE understands string literals or user variables:
PREPARE stmt1 FROM 'SELECT 1'; |
SET @s='SELECT 1'; |
PREPARE stmt2 FROM @s; |
We'll extend PREPARE and EXECUTE IMMEDIATE to understand (almost) any kind of expressions:
PREPARE stmt FROM CONCAT('SELECT * FROM ', table_name); |
Using stored functions and subselects as a prepare source is out of scope of this task.
Attachments
Issue Links
- relates to
-
MDEV-12055 binlog.binlog_stm_ctype_ucs test failing
- Closed
-
MDEV-12798 Item_param does not preserve exact field type in EXECUTE IMMEDIATE 'CREATE TABLE AS SELECT ?' USING POINT(1,1)
- Closed
-
MDEV-10585 EXECUTE IMMEDIATE statement
- Closed