[MDEV-3053] LP:603186 - RQG: Virtual persistent columns not computed properly for default NULL values Created: 2010-07-08 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Philip Stoev (Inactive) | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
In the example below, the virtual persistent column does not agree that the result from INTERVAL ( NULL , NULL ) is -1 . If the computation is executed without the aid of a virtual column, or if the virtual column is not persisted, the result is correct. CREATE TABLE t1 ( f1 CHAR(32), f2 CHAR(32), v1 INT AS ( INTERVAL( f2 , NULL ) ) PERSISTENT ); SELECT INTERVAL(NULL , NULL), v1, ( INTERVAL( f2, NULL ) ) FROM t1; |
| Comments |
| Comment by Philip Stoev (Inactive) [ 2010-07-08 ] |
|
Re: Virtual persistent columns not computed properly for default NULL values --disable_abort_on_error CREATE TABLE t1 ( f1 CHAR(32) NOT NULL, v1 INT AS ( f1 ) PERSISTENT ); CREATE TABLE t2 ( f1 CHAR(32) NOT NULL, v1 INT AS ( f1 ) VIRTUAL ); SELECT f1, v1 FROM t1; |
| Comment by Philip Stoev (Inactive) [ 2010-07-09 ] |
|
Re: RQG: Virtual persistent columns not computed properly for default NULL values If you use an INSERT form where all fields are specified and thus no defaults kick in, virtual columns are computed correctly. |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 603186 |