We'll allow {{DEFAULT}} as a dynamic SQL parameter:
{code:sql}
EXECUTE IMMEDIATE 'INSERT INTO t1 VALUES(?)' USING DEFAULT;
EXECUTE IMMEDIATE 'UPDATE t1 SET a=?' USING DEFAULT;
{code}
{code:sql}
PREPARE stmt FROM 'INSERT INTO t1 VALUES(?)';
EXECUTE stmt USING DEFAULT;
PREPARE stmt FROM 'UPDATE t1 SET a=?';
EXECUTE stmt USING DEFAULT;
{code}
This is for symmetry with the {{STMT_INDICATOR_DEFAULT}} indicator in the client-server bind protocol.
We'll allow {{DEFAULT}} as a dynamic SQL parameter:
{code:sql}
EXECUTE IMMEDIATE 'INSERT INTO t1 VALUES(?)' USING DEFAULT;
EXECUTE IMMEDIATE 'UPDATE t1 SET a=?' USING DEFAULT;
{code}
{code:sql}
PREPARE stmt FROM 'INSERT INTO t1 VALUES(?)';
EXECUTE stmt USING DEFAULT;
PREPARE stmt FROM 'UPDATE t1 SET a=?';
EXECUTE stmt USING DEFAULT;
{code}
This is for symmetry with the {{STMT_INDICATOR_DEFAULT}} indicator in the client-server bind protocol.
MDEV-11359 will also use this MDEV to add INGORE as another possible bind parameter, equal to {{STMT_INDICATOR_INGORE}}.
We'll allow {{DEFAULT}} as a dynamic SQL parameter:
{code:sql}
EXECUTE IMMEDIATE 'INSERT INTO t1 VALUES(?)' USING DEFAULT;
EXECUTE IMMEDIATE 'UPDATE t1 SET a=?' USING DEFAULT;
{code}
{code:sql}
PREPARE stmt FROM 'INSERT INTO t1 VALUES(?)';
EXECUTE stmt USING DEFAULT;
PREPARE stmt FROM 'UPDATE t1 SET a=?';
EXECUTE stmt USING DEFAULT;
{code}
This is for symmetry with the {{STMT_INDICATOR_DEFAULT}} indicator in the client-server bind protocol.
MDEV-11359 will also use this MDEV to add INGORE as another possible bind parameter, equal to {{STMT_INDICATOR_INGORE}}.
In addition to expressions, we'll allow {{DEFAULT}} as a dynamic SQL parameter:
{code:sql}
EXECUTE IMMEDIATE 'INSERT INTO t1 VALUES(?)' USING DEFAULT;
EXECUTE IMMEDIATE 'UPDATE t1 SET a=?' USING DEFAULT;
{code}
{code:sql}
PREPARE stmt FROM 'INSERT INTO t1 VALUES(?)';
EXECUTE stmt USING DEFAULT;
PREPARE stmt FROM 'UPDATE t1 SET a=?';
EXECUTE stmt USING DEFAULT;
{code}
This is for symmetry with the {{STMT_INDICATOR_DEFAULT}} indicator in the client-server bind protocol.
MDEV-11359 will also use this MDEV to add INGORE as another possible bind parameter, equal to {{STMT_INDICATOR_INGORE}}.
In addition to expressions, we'll allow {{DEFAULT}} as a dynamic SQL parameter:
{code:sql}
EXECUTE IMMEDIATE 'INSERT INTO t1 VALUES(?)' USING DEFAULT;
EXECUTE IMMEDIATE 'UPDATE t1 SET a=?' USING DEFAULT;
{code}
{code:sql}
PREPARE stmt FROM 'INSERT INTO t1 VALUES(?)';
EXECUTE stmt USING DEFAULT;
PREPARE stmt FROM 'UPDATE t1 SET a=?';
EXECUTE stmt USING DEFAULT;
{code}
This is for symmetry with the {{STMT_INDICATOR_DEFAULT}} indicator in the client-server bind protocol.
MDEV-11359 will also use this MDEV to add INGORE as another possible bind parameter, equal to {{STMT_INDICATOR_INGORE}}.
In addition to expressions, we'll allow {{DEFAULT}} as a dynamic SQL parameter:
h2. EXECUTE IMMEDIATE examples
{code:sql}
EXECUTE IMMEDIATE 'INSERT INTO t1 VALUES(?)' USING DEFAULT;
EXECUTE IMMEDIATE 'UPDATE t1 SET a=?' USING DEFAULT;
{code}
h3. PREPARE..EXECUTE examples
{code:sql}
PREPARE stmt FROM 'INSERT INTO t1 VALUES(?)';
EXECUTE stmt USING DEFAULT;
PREPARE stmt FROM 'UPDATE t1 SET a=?';
EXECUTE stmt USING DEFAULT;
{code}
This is for symmetry with the {{STMT_INDICATOR_DEFAULT}} indicator in the client-server bind protocol.
MDEV-11359 will also use this MDEV to add INGORE as another possible bind parameter, equal to {{STMT_INDICATOR_INGORE}}.
In addition to expressions, we'll allow {{DEFAULT}} as a dynamic SQL parameter:
h2. EXECUTE IMMEDIATE examples
{code:sql}
EXECUTE IMMEDIATE 'INSERT INTO t1 VALUES(?)' USING DEFAULT;
EXECUTE IMMEDIATE 'UPDATE t1 SET a=?' USING DEFAULT;
{code}
h3. PREPARE..EXECUTE examples
{code:sql}
PREPARE stmt FROM 'INSERT INTO t1 VALUES(?)';
EXECUTE stmt USING DEFAULT;
PREPARE stmt FROM 'UPDATE t1 SET a=?';
EXECUTE stmt USING DEFAULT;
{code}
This is for symmetry with the {{STMT_INDICATOR_DEFAULT}} indicator in the client-server bind protocol.
MDEV-11359 will also use this MDEV to add INGORE as another possible bind parameter, equal to {{STMT_INDICATOR_INGORE}}.
In addition to expressions, we'll allow {{DEFAULT}} as a dynamic SQL parameter:
h3. EXECUTE IMMEDIATE examples
{code:sql}
EXECUTE IMMEDIATE 'INSERT INTO t1 VALUES(?)' USING DEFAULT;
EXECUTE IMMEDIATE 'UPDATE t1 SET a=?' USING DEFAULT;
{code}
h3. PREPARE..EXECUTE examples
{code:sql}
PREPARE stmt FROM 'INSERT INTO t1 VALUES(?)';
EXECUTE stmt USING DEFAULT;
PREPARE stmt FROM 'UPDATE t1 SET a=?';
EXECUTE stmt USING DEFAULT;
{code}
This is for symmetry with the {{STMT_INDICATOR_DEFAULT}} indicator in the client-server bind protocol.
MDEV-11359 will also use this MDEV to add INGORE as another possible bind parameter, equal to {{STMT_INDICATOR_INGORE}}.
OK to push after adding DBUG_ASSERT as we agreed.