Bug #46317 Statement completion only works after selecting database
Submitted: 21 Jul 2009 1:44 Modified: 21 Jul 2009 4:54
Reporter: Roel Van de Paar (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version:5.1.34, 5.4.4 OS:Any
Assigned to: CPU Architecture:Any
Triage: Triaged: D4 (Minor)

[21 Jul 2009 1:44] Roel Van de Paar
Description:
roel@roel-ubuntu-vm:/mysql/mysql-5.1.34-linux-i686-icc-glibc23$ mysql -uroot -h127.0.0.1 -P5134
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 11
Server version: 5.1.34 MySQL Community Server (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> use ro<tab> -> tab does nothing here 

mysql> use roelt;
Database changed

mysql> use ro<tab> -> shows: use roelt

How to repeat:
As per the above

Suggested fix:
Implement statement completion to work from statement #1, not #2.
[21 Jul 2009 4:54] Valeriy Kravchuk
Thank you for the problem report.