Subject | Re: mystery with ParamByName |
---|---|
Author | Gediminas |
Post date | 2004-11-17T14:06:32Z |
--- In IBObjects@yahoogroups.com, Helen Borrie <helebor@t...> wrote:
argument value: SSP returns row if related ID is not found another
table. So, insert and delete operations are reversed - if wanted to
insert new record - I need to delete row from related table; if wanted
to delete - then to insert row to the related table.
Delete operation works ok, but then I want to insert new row, I need
to pass other SoID to EXECUTE DELETE statement than is returned from
the SSP. Such solution is efficent to store one table's row subset,
when difference is only 1-3 rows.
So I needed manually change argument value for EXECUTE DELETE
statement. And then problems started to appear :) If have any
suggestions, let me know
of song - thanks
> This DeleteSQL is an executable statement - it might be a DELETEstatement
> but, as it happens, it is an EXECUTE PROCEDURE statement:procedure.
>
> execute procedure del_blah (:TuID, SoID)
>
> Right, now you gave this statement "parameters", which (because it is a
> stored procedure call) are the input arguments for the stored
> The DeleteSQL is *bound* to the dataset. It has no params that you canthe
> access from code. Instead, IBO takes care of it. How it binds the
> DeleteSQL to the dataset is by way of the argument parameters that you
> supplied in your EXECUTE PROCEDURE statement.. This works as long as
> *names of the argument parameters* match field names in the dataset.SoID to
>
> When you call Delete(), IBO binds the values of the fields TuID and
> the DeleteSQL statement's argument parameters :TuID and and :SoID,Understood, how IBO works. Let me explain why I wanted to change
> respectively.
argument value: SSP returns row if related ID is not found another
table. So, insert and delete operations are reversed - if wanted to
insert new record - I need to delete row from related table; if wanted
to delete - then to insert row to the related table.
Delete operation works ok, but then I want to insert new row, I need
to pass other SoID to EXECUTE DELETE statement than is returned from
the SSP. Such solution is efficent to store one table's row subset,
when difference is only 1-3 rows.
So I needed manually change argument value for EXECUTE DELETE
statement. And then problems started to appear :) If have any
suggestions, let me know
> End of story, end of song. All is done. Repeat, do *not* try toassign
> these yourself.Aleluja, Helen, the light of truth is shown to me ;) end of story, end
of song - thanks