Tech
Don't give your agent the production database
The second you hit Enter
Friday night. You ask Cursor for a query: join orders to users, sort by last login. Three seconds later, an answer arrives with DBA-level confidence:
SELECT o . id , o . amount , u . last_login_at
FROM biz_order o
JOIN sys_user u ON u . id = o . user_id
ORDER BY u . last_login_at DESC ;
Paste it into your client. Enter:
ERROR: column "last_login_at" does not exist
LINE 2: SELECT o.id, o.amou...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to