sasha-alias / sqltabs

Rich SQL client for Postgresql, MySQL, MS SQL, Amazon Redshift, Google Firebase (Firestore)
https://www.sqltabs.com
GNU General Public License v3.0
803 stars 57 forks source link

Missing charts when executing all blocks #48

Closed wynbennett closed 8 years ago

wynbennett commented 8 years ago

If I have more than one chart block in my SQLTabs script and then choose "Execute All Blocks" from the menu then the ensuing charts do not show up. Each chart shows perfectly well when executing individually using "Execute Block".

Here is my example code. Any chart after the "Number of Requests" chart does not show up.

--- chart donut
/**
## Number of Requests
**/
SELECT label,count FROM metrics;

--- chart donut
/**
## Median Request Time
**/
SELECT label,median FROM metrics;

--- chart pie
/**
## Average Request Time
**/
SELECT label,avg FROM metrics;

I have also seen that the data displayed in the initial chart is sometimes corrupted when using "Execute All Blocks"; however, it is hard to pinpoint which cases that happens in. This is occurring in 0.12.2 and was seen in 0.12.1 as well.

sasha-alias commented 8 years ago

ack, fixing

sasha-alias commented 8 years ago

@wynbennett Thank you for reporting the issue
fix commit: https://github.com/sasha-alias/sqldoc/commit/546fba5522c705ca0966cc36bc03bc700cb8f8cc v.0.12.3 released Closing

wynbennett commented 8 years ago

Thanks for the fast turnaround. It works great now!