Skip to content

Conversation

@nlewis84
Copy link
Collaborator

@nlewis84 nlewis84 commented Dec 23, 2025

🐛 Issue

UPDATE/INSERT/DELETE queries with RETURNING clauses don't show returned data - only row counts.

✏️ Solution

Added RETURNING clause detection to capture result rows:

  • Detect RETURNING keyword in SQL (UPDATE/INSERT/DELETE)
  • Capture and display returned rows like SELECT queries
  • Added 19 comprehensive test cases covering all scenarios

🔬 To Test

  1. Run UPDATE query with RETURNING - verify results table displays
  2. Run UPDATE without RETURNING - verify row count shows
  3. Run tests: yarn test - tests pass

📷 Screenshots

Before After Returning Results
before.png after.png Screenshot 2025-12-23 at 2.38.56 PM.png

Copy link
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@nlewis84 nlewis84 marked this pull request as ready for review December 23, 2025 20:39
@nlewis84 nlewis84 requested a review from vinnyjth December 23, 2025 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants