Subject | Re: effect of CREATE VIEW not visible to transaction? |
---|---|
Author | mikcaau |
Post date | 2005-06-07T03:41:13Z |
--- In firebird-support@yahoogroups.com, "unordained"
<unordained_00@c...> wrote:
Selecting data is a Data Manipulation task.
They cannot be mixed in the same transaction.
Changing db Meta data whilst other users are connected is fraught with
danger, there are two ways to learn this either listen to me or do as
I did.
A view is at heart a select without a where clause (also no triggers...).
You can make a select in your client that acts like a view with the
added advantage that you can constrain (add a where clause) your
result set.
I doubt that anything else is needed.
Mick
<unordained_00@c...> wrote:
> I'm not going nuts, right?it, either)? But if it commits,
>
> If a transaction creates a view, it can't see the view (can't drop
> then that view is visible to new transactions, and if it rolls back,the view (that it can't see)
> is dropped?the fly that need to be visible
>
> I have a use for temporary views (creating uniquely-named views on
> within the transaction, but will ultimately be dropped by the end ofthe transaction) ... I wasn't
> planning on having to commit after every CREATE VIEW to make thiswork. (I -can-, but it feels
> rather unsafe.)Creating a View is a Data Definition task.
>
> -Philip
Selecting data is a Data Manipulation task.
They cannot be mixed in the same transaction.
Changing db Meta data whilst other users are connected is fraught with
danger, there are two ways to learn this either listen to me or do as
I did.
A view is at heart a select without a where clause (also no triggers...).
You can make a select in your client that acts like a view with the
added advantage that you can constrain (add a where clause) your
result set.
I doubt that anything else is needed.
Mick