kostafey / ejc-sql

Emacs SQL client uses Clojure JDBC.
278 stars 29 forks source link

ejc-prev-result doesn't show previous result #147

Open codygman opened 3 years ago

codygman commented 3 years ago

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.