janvi01 / sql-editor

A web-based application that provides a SQL editor to run queries and display results.
https://sql-editor-online.vercel.app/
MIT License
9 stars 17 forks source link

Bug: Executing same query multiple times should not be added to query History is previously same query is executed. #48

Closed aditya-armal closed 8 months ago

aditya-armal commented 8 months ago

Describe the bug Executing the same query results in it being added to the query history, even though it should not be added if the previous query executed was the same.

To Reproduce Steps to reproduce the behavior:

  1. Execute a query.
  2. Execute the same query again.

Expected behavior The same query should not be added to the query history if it was the previous query is executed.

Screenshots N.A.

Desktop (please complete the following information):

Additional context N.A.

aditya-armal commented 8 months ago

I have the Solution Ready.

janvi01 commented 8 months ago

Go ahead @aditya-armal

aditya-armal commented 8 months ago

@janvi01 can you please review this PR.