Bug #11081 | Using a CONVERT_TZ function in a stored function or trigger fails | ||
---|---|---|---|
Submitted: | 3 Jun 2005 18:34 | Modified: | 9 May 2006 19:00 |
Reporter: | Mark Smith | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Stored Routines | Severity: | S3 (Non-critical) |
Version: | 5.0.21-BK, 5.0.6 | OS: | Windows (Win 2K3 Server) |
Assigned to: | Dmitry Lenev | CPU Architecture: | Any |
[3 Jun 2005 18:34]
Mark Smith
[3 Jun 2005 20:03]
MySQL Verification Team
Verified on Linux and Windows with server 5.0.7 BK. Indeed the version 5.0.4 on Windows not presents this behavior.
[31 Oct 2005 19:24]
Justin Plock
DELIMITER // DROP TABLE IF EXISTS tz_test; // CREATE TABLE tz_test (normal_time INT(11) UNSIGNED, gmt_time VARCHAR(100)); // DROP TRIGGER BI_tztest_fer; // CREATE TRIGGER BI_tztest_fer BEFORE INSERT ON tz_test FOR EACH ROW BEGIN SET NEW.gmt_time = CONVERT_TZ(FROM_UNIXTIME(NEW.normal_time), 'America/Rainy_River', 'GMT'); END; // INSERT INTO tz_test (normal_time) VALUES (UNIX_TIMESTAMP()); // ERROR 1146 (42S02): Table '.' doesn't exist This also does not work on Win2K in 5.0.15
[22 Dec 2005 2:38]
Justin Plock
Still broken on Win32 5.0.17
[11 Apr 2006 15:39]
Valeriy Kravchuk
The last test case (posted at [31 Oct 2005 20:24] by Justin Plock) is still repeatable on 5.0.21-BK (ChangeSet@1.2148.1.1, 2006-04-10) on Linux.
[19 Apr 2006 20:00]
Dmitry Lenev
Note that with 5.0.21 problem with stored procedures is not repeatable. It exists though for stored functions and triggers (or stored procedures which are called from them.
[19 Apr 2006 21:16]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/5175
[20 Apr 2006 18:08]
Konstantin Osipov
Approved by email with minor comments.
[24 Apr 2006 14:58]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/5410
[2 May 2006 22:51]
Dmitry Lenev
Fixed in 5.0.22 and 5.1.10
[9 May 2006 19:00]
Paul DuBois
Noted in 5.0.22, 5.1.10 changelogs. Use of <literal>CONVERT_TZ()</literal> in a stored function or trigger (or in a stored procedure called from a stored function or trigger) caused an error. (Bug #11081)