Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Dangerous behaviour in EDBManager
Sat, Jun 11 2011 10:54 AMPermanent Link

Uli Becker

I mentioned that some time ago, but meanwhile I ran into big problems
with this issue and I would like to discuss it once more:

1. Right click a procedure in the tree and chose "Alter Function"
2. Edit the code in the sql-editor and click OK.
3. Supposed you have a mistake in your code: a message pops up and
offers to edit the wrong code.
4. Correct the wrong code and execute the statement.

Now the problem. The tree is *not* refreshed automatically. Thus: if you
forget to refresh it manually and edit the same procedure again in the
same session, you will edit the old code before your last changes.

I think the tree *must* be refreshed after a change by default. I know
that this can take some time with many entries, but it's just too
dangerous not to refresh it.

A simple workaround could be to refresh just the selected
procedure/function *before* opening the sql-window. How about that?

Regards Uli
Sat, Jun 11 2011 3:22 PMPermanent Link

Adam Brett

Orixa Systems

I agree, I have almost done the same thing with views and procedures, i.e.

Have version 1.
Make change (version 2).
Think "ah change wasn't quite right, need to change again"
Grab SQL from tree
Make change ... (version 3)

... but you have changed version 1 -> version 3, not version 2 -> version 3!!!

I have 200 line View where I did that ... (Frown

>>A simple workaround could be to refresh just the selected
>>procedure/function *before* opening the sql-window. How about that?

DEFINITELY: SQL opened by ALTER / EDIT form must be a live call .... not a canned result that may be old!
Tue, Jun 14 2011 5:59 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< A simple workaround could be to refresh just the selected
procedure/function *before* opening the sql-window. How about that? >>

That sounds workable.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image