Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

Queries like

SELECT 1, 'constructor', 1


SELECT  id, tagname, count
FROM tags where id = 1531

See this query



Don't work in the results to grid mode, but do in "Text-Only Results"

The following however all work fine

SELECT 1, 'constructor'
SELECT 1, 'constructor' , 1 , 1
SELECT 1 , 1, 'constructor' 
SELECT 1, 'constructor' , 'A'
SELECT 'A', 'constructor' , 1

If it matters I'm using Chrome 18.0.1025.142

share|improve this question
Probably some JavaScript going wrong, the constructor property is special. – a cat Apr 5 '12 at 20:46
@lunboks no doubt. Interestingly its the combination number,'constructor', number that make it break. – Some Helpful Commenter Apr 5 '12 at 21:03
up vote 6 down vote accepted

lunboks was correct, the issue was related to the JavaScript attempting to access the constructor property because of the name of the value.

It only happened in some of your examples because the number, string, number result set was recognised by the graphing code as something it should attempt to unpivot and plot. When the unpivoted string value was a reserved property, that caused some problems in the graph code - the exception from which also prevented the SlickGrid rendering from occurring.

I checked in a fix to prefix the name used to avoid collisions like this in the future, pending a pull and deploy from waffles.

share|improve this answer
So it was two separate bugs? – Some Helpful Commenter Apr 5 '12 at 21:33
Nah, just that the table code never ran because the graphing code threw an exception before that could happen. As long as the graphing code no longer throws an exception, everything's fine. – Tim Stone Apr 5 '12 at 21:36
Then what do you mean by It only happened in some of your examples – Some Helpful Commenter Apr 5 '12 at 22:03
Ah, perhaps that was poor wording on my part. I was explaining that the difference between the first three queries in your question and the last five was that the first three all triggered the graphing code which was responsible for the bug. – Tim Stone Apr 5 '12 at 22:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .