# EDIT command misbehaving

**URL:** <https://forums.toadworld.com/t/edit-command-misbehaving/56868>\
**Category:** Toad for Oracle & DevOps Toolkit\
**Created:** [January 23, 2023, 10:59am UTC](https://forums.toadworld.com/t/edit-command-misbehaving/56868 "2023-01-23T10:59:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pieter.s](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@pieter.s](https://forums.toadworld.com/u/pieter.s)\
**Post date:** [January 23, 2023, 10:59am UTC](https://forums.toadworld.com/t/edit-command-misbehaving/56868/1 "2023-01-23T10:59:22Z")

</div>

This was quite a scary Monday morning...

> edit member where mbr\_id = 300457

→ no rows returned (incorrect)

> select rowid, member.\* from member where mbr\_id = 300457

→ 1 row returned (correct)

next attempt:

> edit member where mbr\_id \>= 300457

→ 500+ rows returned, among which... uhm... MBR\_ID 238495, 237283, ... ?!?

> select rowid, member.\* from member where mbr\_id \>= 300457

→ 12 rows returned (correct)

- MEMBER.MBR\_ID is a NUMBER (8)
- TOAD 16.2.98
- same behavior with both direct and Oracle 19 Client connections

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [January 23, 2023, 2:01pm UTC](https://forums.toadworld.com/t/edit-command-misbehaving/56868/2 "2023-01-23T14:01:20Z")

</div>

Thank you for reporting this.

As you probably know, EDIT is not a real SQL command, so Toad changes it to real SQL behind the scenes.

There was a change in 16.2 that allows EDIT command to be multi-line (so WHERE can be on the next line, etc). We rely on the parser to do this. But in your example, MEMBER is a reserved word, and the parser doesn't know what to do with it. If you run it with F9, you get a SQL error. If you run it with CTRL+Enter, the first digit of the literal at the end is getting cut off. You can see this with spool sql.

This was fixed for version 16.3.

---

<div class="post-metadata">

**Author:** ![pieter.s](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@pieter.s](https://forums.toadworld.com/u/pieter.s)\
**Post date:** [January 23, 2023, 2:27pm UTC](https://forums.toadworld.com/t/edit-command-misbehaving/56868/3 "2023-01-23T14:27:34Z")

</div>

Super, thx for the quick and most useful reply!

Now I not only understand what happened and know it will be fixed in the next release, but I also learned how I could have investigated myself with the spool sql feature (which I don't use enough) 👍
