# Intellisense sensitivity

**URL:** <https://forums.toadworld.com/t/intellisense-sensitivity/56673>\
**Category:** Toad for Oracle & DevOps Toolkit\
**Created:** [December 20, 2022, 6:00am UTC](https://forums.toadworld.com/t/intellisense-sensitivity/56673 "2022-12-20T06:00:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fisher\_53873](https://avatars.discourse-cdn.com/v4/letter/f/91b2a8/32.png) [@fisher\_53873](https://forums.toadworld.com/u/fisher_53873)\
**Post date:** [December 20, 2022, 6:00am UTC](https://forums.toadworld.com/t/intellisense-sensitivity/56673/1 "2022-12-20T06:00:19Z")

</div>

This one is bothering me for while, it's about sensitivity of IS (especially for list of columns) for closing brackets, case etc.  
Consider following sql :

select length(p.table\_owner), sum( case when p.tablespace\_name like 'BD%' then 1 end ) part\_bd  
from sys.all\_tab\_partitions p  
group by length(p.table\_owner)

when I start it with:  
select length(p.  
from sys.all\_tab\_partitions p

IS is working fine,

For :  
select length(p.table\_owner), sum( case when p.  
from sys.all\_tab\_partitions p

IS is not working, same with the following:

select length(p.table\_owner), sum( case when p. )  
from sys.all\_tab\_partitions p

select length(p.table\_owner), sum( case when p. end)  
from sys.all\_tab\_partitions p

By not working I mean empty list is shown. I actually expect it rely just on a list of tables/views not a completeness of the statement or it's part.  
Toad never was like all other Jave IDEs automatically closing brackets of all kinds, and I liked it, Why 'd you build such a dependency for IS.

I'd actually expect IS works in every one of those examples after "p." . not only when statement is ready.  
Regards

---

<div class="post-metadata">

**Author:** ![mstaszew](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/mstaszew/32/23_2.png) [@mstaszew](https://forums.toadworld.com/u/mstaszew)\
**Post date:** [December 20, 2022, 2:18pm UTC](https://forums.toadworld.com/t/intellisense-sensitivity/56673/2 "2022-12-20T14:18:41Z")

</div>

This has unfortunately been an issue for some time and it's been logged long ago.

> [@fisher\_53873](#):
>
> I actually expect it rely just on a list of tables/views not a completeness of the statement or it's part.

We use a parser to determine which table or view you're referring to and certain levels of incompleteness allow for parsing and others do not. In your case you're using an alias so we can't assume that the token prior to the period is a table or view.

I'll log a new issue here to look at some simple "parsing" in cases where we do not definitely know the reference. Maybe searching for whole word "p" in your example where it is not followed by a period and assuming that this is the alias of interest and that the word prior is the table will work in most cases. It will certainly not work in all cases.

---

<div class="post-metadata">

**Author:** ![fisher\_53873](https://avatars.discourse-cdn.com/v4/letter/f/91b2a8/32.png) [@fisher\_53873](https://forums.toadworld.com/u/fisher_53873)\
**Post date:** [December 20, 2022, 2:38pm UTC](https://forums.toadworld.com/t/intellisense-sensitivity/56673/3 "2022-12-20T14:38:23Z")

</div>

I get your point Michel, on the other hand when adding another column to result like in described examples I'd still expect you can either "exclude" current expression (might be an issue with correlated subqueries) or maybe try to add missing closing brackets in current expression  
for parsing to determine list of tables?

---

<div class="post-metadata">

**Author:** ![mstaszew](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/mstaszew/32/23_2.png) [@mstaszew](https://forums.toadworld.com/u/mstaszew)\
**Post date:** [January 4, 2023, 8:11pm UTC](https://forums.toadworld.com/t/intellisense-sensitivity/56673/4 "2023-01-04T20:11:03Z")

</div>

Try next week's beta. There are some improvements here that should allow your examples to work. I suspect it's not foolproof and that some incomplete SQL will still fail, but for the simple case where a closing parenthesis is missing it should be better.
