ejc-sql icon indicating copy to clipboard operation
ejc-sql copied to clipboard

ejc-prev-result doesn't show previous result

Open codygman opened this issue 4 years ago • 0 comments

Using ejc as of commit 6eecf51e4c5e6f7d24ab90e8def34f6cea4eda52 if I do:

M-x get-ejc-temp-buffer

enter:

select 1;
/
select 2;

Call C-c C-c on each one then press M-, and the results for the first query show up.

I expected the results for the last run query. This is either a bug or I don't understand how it's meant to work.

I also don't see how to disambiguate between query results that are very close, for example:

select * from users where signup_date between '2020-01-01' and '2020-01-02';
/
select * from users where signup_date between '2020-01-02' and '2020-01-03';

If the behavior is not a bug, I'd like to know how others solve this issue.

codygman avatar Feb 04 '21 20:02 codygman