Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2(EOL)
-
10.2.4-1, 10.2.4-2
Description
I'm testing the MDEV-10134 feature tree, branch bb-10.2-default.
This script:
DROP TABLE IF EXISTS t1; |
CREATE TABLE t1 (a INT DEFAULT b, b INT DEFAULT 4); |
INSERT INTO t1 VALUES (DEFAULT,5); |
SELECT * FROM t1; |
returns
+-------------+------+
|
| a | b |
|
+-------------+------+
|
| -1886417009 | 5 |
|
+-------------+------+
|
Looks wrong, most likely some non-initialized data gets written into the column "a".
Attachments
Issue Links
- blocks
-
MDEV-10134 Add full support for DEFAULT
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue blocks |
Description |
I'm testing the This script: {code:sql} DROP TABLE IF EXISTS t1; CREATE TABLE t1 (a INT DEFAULT b, b INT DEFAULT 4); INSERT INTO t1 VALUES (DEFAULT,5); SELECT * FROM t1; {code} returns {noformat} +-------------+------+ | a | b | +-------------+------+ | -1886417009 | 5 | +-------------+------+ {noformat} Looks wrong, most likely some non-initialized data gets written into the column "a". |
I'm testing the This script: {code:sql} DROP TABLE IF EXISTS t1; CREATE TABLE t1 (a INT DEFAULT b, b INT DEFAULT 4); INSERT INTO t1 VALUES (DEFAULT,5); SELECT * FROM t1; {code} returns {noformat} +-------------+------+ | a | b | +-------------+------+ | -1886417009 | 5 | +-------------+------+ {noformat} Looks wrong, most likely some non-initialized data gets written into the column "a". |
Assignee | Michael Widenius [ monty ] | Sergei Golubchik [ serg ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Sprint | 10.2.4-1 [ 132 ] |
Rank | Ranked lower |
Status | In Progress [ 3 ] | Stalled [ 10000 ] |
Labels | 10.2-ga |
Sprint | 10.2.4-1 [ 132 ] | 10.2.4-1, 10.2.4-2 [ 132, 134 ] |
Fix Version/s | 10.2.4 [ 22116 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 75935 ] | MariaDB v4 [ 150500 ] |
MDEV-10134has been finished now, but this issue still exists.