Bug #6824 | Lack of column's default value type info confuses clients | ||
---|---|---|---|
Submitted: | 25 Nov 2004 12:27 | Modified: | 12 Feb 2006 12:34 |
Reporter: | Serdar S. Kacar | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Server | Severity: | S4 (Feature request) |
Version: | next | OS: | Any (all) |
Assigned to: | CPU Architecture: | Any |
[25 Nov 2004 12:27]
Serdar S. Kacar
[25 Nov 2004 14:05]
Serdar S. Kacar
Note that default value functions operating on rows (kind of calculated columns)are whole another story. Clients should be warned about those ones and they should not interfere with this default value mechanism unless they know what they are doing. May be the new SHOW COLUMNS' column could be enumurated one like: DefaultKind: 1 - Ordinary Value 2 - General Function 3 - Row Function
[12 Feb 2006 12:34]
Valeriy Kravchuk
Thank you for the feature request. Sorry, but there is no need to fix anything, at least, until MySQL will start to support arbitrary expressions as default value for column. CURRENT_TIMESTAMP is the only special case, and it simply shooud be taken into account by client applications. Read http://dev.mysql.com/doc/refman/5.0/en/create-table.html for the details.