Subject | Re: [IBO] Re: Null in Stored Procedure parameter. |
---|---|
Author | Jason Wharton |
Post date | 2001-01-11T20:17:03Z |
Have the stored proc check if the input parameter is null and respond
appropriately. This would be perfectly acceptable. That is how I would do
it. I don't like too many stored procedures. Especially if they are doing
almost an identical function.
HTH,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com
appropriately. This would be perfectly acceptable. That is how I would do
it. I don't like too many stored procedures. Especially if they are doing
almost an identical function.
HTH,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com
----- Original Message -----
From: "Dale Tabbert" <dale@...>
To: <IBObjects@egroups.com>
Sent: Thursday, January 11, 2001 12:45 PM
Subject: [IBO] Re: Null in Stored Procedure parameter.
> --- In IBObjects@egroups.com, Helen Borrie <helebor@w...> wrote:
> Helen,
>
> Thank you for responding
>
> > >
> > >with spAddObjKWValue do begin
> > > Prepare;
> > > parambyname('Object_ID').AsInteger := object_id;
> > > parambyname('Keyword_id').clear;
> > > parambyname('Keyword_Name').AsString := 'Some Name';
> > > parambyname('Keyword_Value').AsString := 'Some Value';
> > > ExecProc;
> > > Unprepare;
> > >end;{with spAddObjKWValue}
> >
> >
> > I'm just wondering why you need this parameter at all if you want
> to pass
> > Null every time.
>
> This code is from within an ASTA business Object. I have another
> that recieves the keyword_id each time. Should I have two stored
> procs on the DB that do the same thing or one SP that has an if/then
> statement that checks if one of the values is null?
>
> Dale
>
>
>
>