Bug #43102 | The mysql Monitor dies on the command after inserting a trigger | ||
---|---|---|---|
Submitted: | 23 Feb 2009 8:38 | Modified: | 25 Feb 2009 10:56 |
Reporter: | Ketil Vestby | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
Version: | 5.1.31-community, 5.0.51a-24 and 5.0.67-0ubuntu6 | OS: | Linux (Debian Stable, Ubuntu Intrepid) |
Assigned to: | CPU Architecture: | Any | |
Tags: | trigger |
[23 Feb 2009 8:38]
Ketil Vestby
[23 Feb 2009 9:52]
Ketil Vestby
Have just found that what kille the console is the "not null" statement on the recieving tables. When sending data from a set of tables to another, the recieving set cannot have the same limitations as the sending set. Do still think this should send an error message, instead of just killing the monitor console. When using anything else than the MySQL Monitor console to insert triggers like the example, all things works perfectly.
[24 Feb 2009 8:15]
Sveta Smirnova
Thank you for the report. But what do you mean by "MySQL Monitor" here? Is it MySQL Enterprise Monitor or MySQL command line client or some other client?
[24 Feb 2009 15:36]
Ketil Vestby
The command line client.
[24 Feb 2009 16:37]
Sveta Smirnova
Thank you for the feedback. I can not repeat described behavior. How does mysql command line client die? Does it print something or just hangs? Please also provide your server error log file?
[24 Feb 2009 21:44]
Ketil Vestby
The client just hangs. Have made a small set of SQL commands that triggers the bug, will provide it when I come to work tomorrow morning - together with screenshots and logs.
[25 Feb 2009 9:11]
Ketil Vestby
The sql statements used to reproduce the bug today
Attachment: provisioning_bug.sql (text/x-sql), 912 bytes.
[25 Feb 2009 9:12]
Ketil Vestby
The result of the Linux console, when inserting todays SQL statements
Attachment: linux-console-snapshot.jpg (image/jpeg, text), 161.38 KiB.
[25 Feb 2009 9:13]
Ketil Vestby
Reproduced in Windows, using MySQL 5.1.31-community in XP
Attachment: windows-console-snapshot.jpg (image/jpeg, text), 138.40 KiB.
[25 Feb 2009 9:15]
Ketil Vestby
Second reproduction in Windows, with the same result as in Linux
Attachment: windows-console-snapshot_1.jpg (image/jpeg, text), 143.21 KiB.
[25 Feb 2009 9:24]
Ketil Vestby
Log messages from Windows
Attachment: windows-log-messages.jpg (image/jpeg, text), 203.98 KiB.
[25 Feb 2009 9:24]
Ketil Vestby
Log messages from Linux
Attachment: linux-logs.jpg (image/jpeg, text), 45.83 KiB.
[25 Feb 2009 9:33]
Ketil Vestby
Sorry about my falsely optimistic message at 23 Feb 10:52, as you see from the screenshots I've proved myself wrong. As todays screenshots tell, I've replicated it in Windows too this time just to prove that the problem dont relate to any operating system. In Windows, the console I use are located at Start | Programs | MySQL | MySQL Server 5.1 | MySQL Command Line Client
[25 Feb 2009 10:56]
Sveta Smirnova
Thank you for the screenshots. You just didn't reset delimiter. Please read about how command delimiter works at http://dev.mysql.com/doc/refman/5.1/en/mysql-commands.html