[MDEV-6286] "Function or expression is not allowed for column 'fd2'" on VIRTUAL column Created: 2014-06-02 Updated: 2014-06-02 Resolved: 2014-06-02 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.10 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Seunguck Lee | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Darwin Mattui-MacBook-Pro.local 13.2.0 Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64 |
||
| Description |
|
MariaDB knowledge said "User-defined functions and stored functions cannot be used (built-in functions can be used)" on https://mariadb.com/kb/en/virtual-columns/ So I think we can use any built-in function on VIRTUAL column. Is it expected ?
|
| Comments |
| Comment by Sergei Golubchik [ 2014-06-02 ] |
|
The documentation says that only deterministic expressions are permitted. But NOW() is not deterministic — if you call it twice, you may get different results. |
| Comment by Seunguck Lee [ 2014-06-02 ] |
|
Thanks Sergei Golubchik. I didn't know that NOW() is not deterministic. And even if it's not deterministic, Anyway thanks. |