Attaching another patch.
This patch tries to figure out if a singlelinecomment just read is actually part of a statement started earlier.
If it is, it prints the continuation prompt ('>'). If it is not part of a statement it prints the ij prompt ('ij>').
I had alternatively thought of not providing any prompt after a single line comment, but I found myself wondering what ij was up to (we now get a prompt in all other situations).
If someone could review this and indicate if this is acceptable?
My one concern is that normally, if you start a second named connection for example, 'as me', the prompt turns into: ij (me)> for a new statement, instead of ij>.
Before the first patch, the next line would not get a prompt.
Now, (as with the first patch) you will see a > prompt, or (this patch) if the statement was a single line comment, you will see an ij> prompt on the next line. That is, you will not see the named connection.
I've run a number of tests, but it seems our tests are not affected by this...So, only interactively do you see a difference. I can not imagine how that could break anyone's application.
The only incompatibility I can think of is that if before you used to try out a statement interactively and then cut-and-paste into a script, you may now have to remove some prompt characters...