Bug #26544 | Wrong COLUMN_DEF value for NOT NULL field | ||
---|---|---|---|
Submitted: | 21 Feb 2007 20:45 | Modified: | 21 Feb 2013 21:55 |
Reporter: | Ask Hansen (Basic Quality Contributor) | Email Updates: | |
Status: | Unsupported | Impact on me: | |
Category: | Connectors: DBD::mysql ( Perl ) | Severity: | S2 (Serious) |
Version: | 4.001 | OS: | Any (any) |
Assigned to: | CPU Architecture: | Any | |
Tags: | qc |
[21 Feb 2007 20:45]
Ask Hansen
[22 Feb 2007 2:32]
MySQL Verification Team
Thank you for the bug report.
[27 Feb 2007 21:45]
Jim Winstead
The problem here is that we use 'DESCRIBE table' to figure out the column info, and it returns "" for the default value in this case. If column_info() were rewritten to use INFORMATION_SCHEMA, we could do the right thing, since that does return the correct value. Maybe it could be argued that the results from DESCRIBE are the real bug.
[2 Mar 2007 23:49]
Ask Hansen
Hi Jim, Using information_schema would be the Wave of the Future. Fixing describe to do the right thing would be good (too). I ran into something else where that was a problem, but I don't think I filed a bug report then. Should I make one? - ask
[5 Mar 2007 21:26]
Jim Winstead
yes, please go ahead and file the inconsistency between DESCRIBE and INFORMATION_SCHEMA as a bug. i'll also look at adding INFORMATION_SCHEMA based implementations of the catalog functions to DBD::mysql.
[5 Mar 2007 21:44]
Ask Hansen
done in http://bugs.mysql.com/26849
[28 May 2007 15:08]
Patrick Galbraith
The question I'm wondering is if in 5.0, describe is using info schema?
[21 Feb 2013 21:55]
Sveta Smirnova
Thank you for the report. We don't work on DBD::mysql bugs anymore. All its bugs should go to CPAN: https://rt.cpan.org/Public/Dist/Display.html?Name=DBD-mysql I re-submitted your report to https://rt.cpan.org/Public/Bug/Display.html?id=83517 Please subscribe to the new report on CPAN and work with DBD::mysql developers in case if they need additional details.