alzalabany / sql-buddy

Automatically exported from code.google.com/p/sql-buddy
MIT License
0 stars 0 forks source link

A query SELECT COUNT(*) AS `RowCount` FROM <table> is automatically generated. #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Fresh installation with a remote database
2. Create a database with two tables table1 and table2
3. Click on table1 in the left collumn
4. Click on query
5. You see the query SELECT COUNT(*) AS `RowCount` FROM `table1` with an error 
message "No database selected". 
6. Click on table2 in the left collumn
7. Click on query
8. You see the query SELECT COUNT(*) AS `RowCount` FROM `table2` with an error 
message "No database selected". 

What is the expected output? 
I expect no query or a default query with no error message when I click to 
enter a new query.  

What do you see instead?
Mysteriously, we see a query that count the rows in the table that we just 
visited. 

What version of the product are you using? The latest. It is a fresh 
installation. 

On what operating system? On a shared server. Debian. 

Please provide any additional information below: 

It is not that way on a fresh installation of the same code, same version, on a 
different platform with a local database.

Original issue reported on code.google.com by dominic_...@yahoo.com on 25 Nov 2013 at 12:32

GoogleCodeExporter commented 9 years ago
Well, I tried to reproduce this on a different platform and I could not. It did 
not happen on a different linux platform. It did not happen on a Windows Vista 
platform. I guess it is specific to the shared server where I first tested the 
code.  

Original comment by dominic_...@yahoo.com on 25 Nov 2013 at 10:15