Bug #30309 | mysql_truncate() does not inform engine that the recreated table is temporary | ||
---|---|---|---|
Submitted: | 8 Aug 2007 14:39 | ||
Reporter: | Guilhem Bichot | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: DDL | Severity: | S3 (Non-critical) |
Version: | OS: | Linux | |
Assigned to: | CPU Architecture: | Any |
[8 Aug 2007 14:39]
Guilhem Bichot
[8 Aug 2007 14:49]
Guilhem Bichot
note that when this is fixed, mi_create() will have to be fixed too, as it does if (flags & HA_CREATE_TMP_TABLE) { options|= HA_OPTION_TMP_TABLE; create_mode|= O_EXCL | O_NOFOLLOW; } and thus assumes that TRUNCATE cannot pass HA_CREATE_TMP_TABLE. We might need a flag "this is TRUNCATE, not CREATE" in HA_CREATE_INFO to solve this cleanly
[12 Oct 2007 17:19]
Konstantin Osipov
Guilhem, what do you suggest is done for this bug report? I welcome you to submit the patch.
[15 Oct 2007 9:14]
Guilhem Bichot
Hi Konstantin. I don't think you need to work on this now, as no concrete issue with some engine has been identified. Maybe "to be fixed later"?
[27 Oct 2009 17:32]
Valeriy Kravchuk
I think Bug #48350 can be related.