| Bug #48802 | missing documentation for create table if not exists select (too many columns) | ||
|---|---|---|---|
| Submitted: | 16 Nov 2009 11:30 | Modified: | 23 Nov 2009 19:18 |
| Reporter: | Sven Sandberg | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
| Version: | 5.1 | OS: | Any |
| Assigned to: | Paul DuBois | CPU Architecture: | Any |
[16 Nov 2009 11:30]
Sven Sandberg
[16 Nov 2009 11:59]
MySQL Verification Team
Thank you for the bug report.
[17 Nov 2009 14:54]
Paul DuBois
That sounds like the error you get when a subquery must be a scalar subsquery but produces more than a single column. I find I can get a different error. This, for a table with two columns: mysql> create table if not exists t select 1,2,3,4,5; ERROR 1136 (21S01): Column count doesn't match value count at row 1 Perhaps better to say only that if the SELECT produces more columns than are in the table, an error occurs? (Without trying to be specific about the particular error.)
[18 Nov 2009 8:24]
Sven Sandberg
Paul, I agree, it's enough to say that there is an error without spelling out the error message.
[23 Nov 2009 19:18]
Paul DuBois
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant products.
