Bug #27727 | Generate a warning during implicit casts | ||
---|---|---|---|
Submitted: | 10 Apr 2007 6:22 | Modified: | 29 Mar 2011 19:05 |
Reporter: | Roberto Spadim (Basic Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Data Types | Severity: | S4 (Feature request) |
Version: | 5.1.x | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | partition tables, qc |
[10 Apr 2007 6:22]
Roberto Spadim
[29 Apr 2007 12:11]
Valeriy Kravchuk
Please, check if range partitioning over something like CAST(substring(field,1,4) as unsigned) will help you. Read http://dev.mysql.com/doc/refman/5.1/en/partitioning-range.html for the details.
[4 Jun 2007 20:05]
Valeriy Kravchuk
Please, specify exact feature/documentation request, if any, based on your last private comment.
[5 Jun 2007 16:34]
Roberto Spadim
i don't remember but the problem was if you don't work with only allowed functions on partition the parser return an error telling that the function used is not supported since substr isn't supported in partition by range, just numeric functions could work, but casting the string you can use it as a number casted, if mysql cast without user know, and generate a warning could be more intelligent for begginners
[5 Jun 2007 19:18]
Valeriy Kravchuk
Thank you for a reasonable feature request (implicit cast to number with warning for the expression used to partition by range).
[26 Jan 2011 22:28]
Mattias Jonsson
Partitioning by a 'string' field can be done either by KEY partitioning in 5.1+, or by RANGE/LIST COLUMNS partitioning in 5.5. Closing as 'Not a bug'.
[29 Mar 2011 18:52]
Roberto Spadim
nice closed should i close it or leave as not a bug?
[29 Mar 2011 19:05]
Roberto Spadim
nice closed should i close it or leave as not a bug?