Bug #9221 | Can't add a comment to a closed bug | ||
---|---|---|---|
Submitted: | 16 Mar 2005 13:51 | Modified: | 28 May 2005 15:11 |
Reporter: | Sergei Kulakov (Candidate Quality Contributor) | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Websites: bugs.mysql.com | Severity: | S3 (Non-critical) |
Version: | -- | OS: | -- |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[16 Mar 2005 13:51]
Sergei Kulakov
[22 Mar 2005 16:24]
Sergei Kulakov
Can I have the following added to the bug 9201 as a comment in this case? ------------------------------------------------------------------------ I'm sorry, perhaps I didn't put much emphasis onto it, but the wrong column was Status which normally returns Suspended but becomes Pending when I insert the query into the table, not Price. It was not about using a column's default value in case a NULL value is inserted into it. The column Status belongs to the first table - Hotels - and returns "Suspended" for the 2nd row, not a NULL value. The first column - HotelId - belongs to the same table and is not NULL either (65). As I use Left Join all rows from the first table must be found and they are. Only the second column - Price - returns NULL in the 2nd row, and it is converted into 0 when I insert the query result into the table tmpHotData - this is absolutely alright. Another sign of it is that the behavior changes back to normal if the column AreaId is removed from the querty/table, which shouldn't be the case if the behavior were expected. Note that MySql 4.1 only gives a warning about the Price column, not the Status column. I also checked this thing with MySql 4.1.9 and it produced correct results. ------------------------------------------------------------------------
[28 May 2005 15:11]
Indrek Siitan
This is a duplicate of #9349 and has been fixed.