[MDEV-3125] LP:608641 - Virtual column expressions in Maria are either more relaxed or more restrictive compared to other db products Created: 2010-07-22 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 | ||
| Reporter: | Philip Stoev (Inactive) | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
Computed/Virtual columns in Microsoft SQL Server are subject to numerous constraints that are treated at length in the documentation http://msdn.microsoft.com/en-us/library/ms189292.aspx#BKMK_persisted The virtual column implementation in Maria does not enforce the following restrictions that are present in MS SQL Server:
Microsoft SQL Server enforces the restrictions by refusing to create virtual columns, refusing to allow updates to a table containing them, and, finally, refusing to use an index over such a column if it can not be guaranteed that the virtual expression is fully deterministic. What Maria can do is store the SQL mode, language, etc. that was in effect during the CREATE TABLE so that the virtual column expression is always be evaluated under that original SQL mode regardless of future changes to the mode. |
| Comments |
| Comment by Philip Stoev (Inactive) [ 2010-10-22 ] |
|
Re: Virtual column expressions in Maria are relaxed compared to other db products |
| Comment by Rasmus Johansson (Inactive) [ 2012-03-10 ] |
|
Launchpad bug id: 608641 |