Subject | Re: [Firebird-Architect] REPLACE, again |
---|---|
Author | Dmitry Yemanov |
Post date | 2006-08-25T06:43:26Z |
"Adriano dos Santos Fernandes" <adrianosf@...> wrote:
singleton (and thus throwing a runtime error for multiple rows), it just was
never implemented (mostly because we have problems with UPDATE/DELETE
RETURNING and because our major intention was to address the mostly used
pattern first and extend the feature later). So, although I also see some
sense in Alex's position, I have no objections to REPLACE behaving the same
way as we wanted INSERT to behave.
Dmitry
>I like it.
> Last time we discussed REPLACE if fb-devel, one user suggested another
> syntax that's looking better for me:
> REPLACE INTO <table> [(<field_list>)] VALUES (<value_list>) MATCHING
> (<field_list>) [RETURNING <value_list>]
> As we don't support RETURNING more than one row yet, the generated RSEThe decision re. INSERT SELECT RETURNING was to force the RSE being
> of the update will be a singleton (only when RETURNING is used?).
singleton (and thus throwing a runtime error for multiple rows), it just was
never implemented (mostly because we have problems with UPDATE/DELETE
RETURNING and because our major intention was to address the mostly used
pattern first and extend the feature later). So, although I also see some
sense in Alex's position, I have no objections to REPLACE behaving the same
way as we wanted INSERT to behave.
Dmitry