jokedst / CsvQuery

Plugin for Notepad++ that treats CSV files as (read only) SQL tables
152 stars 28 forks source link

Columns in table is sometimes out of order #19

Closed jokedst closed 5 years ago

jokedst commented 5 years ago

When you first view a query results with columns in one order, then do a query where you want them in another order, the previous order is remembered.

E.g. run SELECT Col1,Col2 FROM THIS Then run SELECT Col2,Col1 FROM THIS Expected result: Col2 should be first, then Col1 Actual result: Col1 is first, then Col2

Workaround: Run "SELECT 1 FROM THIS", then the new query. Now they are in correct order.

Possible cause: I don't tear down the grid properly between queries.