tora icon indicating copy to clipboard operation
tora copied to clipboard

Ignore Blank Lines Feature?

Open Aetylus opened this issue 5 years ago • 5 comments

In Toad for Oracle, there's an option to "Treat blank line as statement terminator" that, when disabled, will ignore blank lines in statements. With that option disabled, the following will execute as a single SQL query:

select *

from employee

where id = 1;

However, in Tora, it appears to function as if the setting is enabled, and I was unable to locate an option to change this in the Preferences menu. This results in an error when attempting to execute the query:

last SQL statement:
select *

ORA-00923: FROM keyword not found where expected

Is there an option that exists for this?

Aetylus avatar Apr 06 '20 15:04 Aetylus

Click in bottom right corner and switch into Oracle fuzzy parser. I should be able to split statements by semicolons.

ibre5041 avatar Apr 10 '20 09:04 ibre5041

Thanks, that appears to work!

Aetylus avatar Apr 13 '20 12:04 Aetylus

Actually, is there a way to make the option set by default for the SQL Editor?

Aetylus avatar Apr 13 '20 12:04 Aetylus

Click in bottom right corner and switch into Oracle fuzzy parser. I should be able to split statements by semicolons.

@ibre5041,

I just installed TOra 3.2.186-gc5cb5fe8 for windows. I don't see any option for "Oracle fuzzy parser" anywhere. Are you referring to the control on the right side of the statusbar that switches between "Oracle", "QsciSql" and "None"? If so, which option selects the Oracle fuzzy parser?

Thanks.

dglasser avatar Apr 16 '20 18:04 dglasser

@dglasser That's correct, the Oracle option is the fuzzy parser and will allow for blank lines to not be read as statement ends.

Aetylus avatar Apr 17 '20 12:04 Aetylus