Comment by XCSme
Comment by XCSme 15 hours ago
I hope this doesn't work with DELETE queries.
Comment by XCSme 15 hours ago
I hope this doesn't work with DELETE queries.
Or, for extra fun, it auto completes to DROP TRIGGER and just drops a single random trigger from your database. It'll help counter automation fears by ensuring your DBAs get to have a wonderful weekend on payroll where, very much in the easter spirit, they can hunt through the DB looking for the one thing that should be there but isn't!
That's actually not a bad idea, to have LLM autocomplete when you write queries, especially if you first add a comment at the top saying what you want to achieve:
// Select all orders for users registered in last year, and compute average earnings per user
SELECT ...
DELETED 0 rows. Did you mean `where 1=1`? (click accept to re-run with new where clause)
Can't it just run inside a transaction that isn't committed?
Maybe in the next version they could also implement support for DROP, with autocorrect for the nearest (not yet dropped) table name.