Bug #38916 | Select from I_S.ROUTINES results in "No database selected" error | ||
---|---|---|---|
Submitted: | 20 Aug 2008 13:43 | Modified: | 29 Jan 2009 21:07 |
Reporter: | Alexander Nozdrin | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Information schema | Severity: | S3 (Non-critical) |
Version: | 6.0-TRUNK | OS: | Any |
Assigned to: | Sergei Glukhov | CPU Architecture: | Any |
[20 Aug 2008 13:43]
Alexander Nozdrin
[20 Aug 2008 14:22]
MySQL Verification Team
Thank you for the bug report. Verified with mysql-6.0-backup: Server version: 6.0.7-alpha-debug Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> select routine_name, routine_type from information_schema.routines where -> routine_schema = 'db1'; ERROR 1046 (3D000): No database selected mysql>
[16 Dec 2008 13:08]
Jørgen Løland
This bug causes BACKUP to fail. See bug#38294
[19 Dec 2008 12:18]
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/62084 2814 Sergey Glukhov 2008-12-19 Bug#38916 Select from I_S.ROUTINES results in "No database selected" error The problem is that db name name is not added when we create compilable string for the routine. The fix is to add db name to this string.
[24 Dec 2008 12:48]
Alexander Nozdrin
The patch is approved with minor comments discussed on IRC.
[24 Dec 2008 15:37]
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/62305 2827 Sergey Glukhov 2008-12-24 Bug#38916 Select from I_S.ROUTINES results in "No database selected" error The problem is that db name name is not added when we create compilable string for the routine. The fix is to add db name to this string.
[20 Jan 2009 18:58]
Bugs System
Pushed into 6.0.10-alpha (revid:joro@sun.com-20090119171328-2hemf2ndc1dxl0et) (version source revid:azundris@mysql.com-20081230114916-c290n83z25wkt6e4) (merge vers: 6.0.9-alpha) (pib:6)
[29 Jan 2009 21:07]
Paul DuBois
Noted in 6.0.10 changelog. SELECT * FROM INFORMATION_SCHEMA.ROUTINES could fail if there was no default database.