×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

altering procedure problem,please help.

altering procedure problem,please help.

altering procedure problem,please help.

(OP)
i'am working with IB6 and delphi.I have no problems with updating/altering procedure via IbConsole but if i try to update procedure via TIBQuery component i receive this error:
invalid request BLR at offset 384
Bad parameter number.
thanks in advance.

RE: altering procedure problem,please help.

Are you altering a stored procedure or a table?

S. van Els
SAvanEls@cq-link.sr

RE: altering procedure problem,please help.

(OP)
I'am altering a stored procedure.Here is code:
ALTER PROCEDURE "UPDATE_STREAM"
(
  "STREAMID" INTEGER,
  "INSTANCEID" INTEGER,
  "AUDIO_LEVEL" FLOAT,
  "FILE_NAME" VARCHAR(260),
  "STREAM_NAME" VARCHAR(40),
  "STREAM_TYPE" INTEGER,
  "VIDEO_INFOID" INTEGER,
  "AUDIO_INFOID" INTEGER,
  "IN_P" INTEGER,
  "OUT_P" INTEGER,
  "MAIN" VARCHAR(1),
  "LANGUAGEID" INTEGER,
  "STATUS" INTEGER
)
RETURNS
(
  "OUTSTREAMID" INTEGER
)
AS
begin
if (streamid=0) then
       begin
       insert into stream(instanceid,audio_level,file_name,stream_name,stream_type,video_infoid,
       audio_infoid,in_p,out_p,MAIN,LANGUAGEID,status) values (:instanceid,:audio_level,:file_name,:stream_name,:stream_type,
       :video_infoid,:audio_infoid,:in_p,:out_p,:MAIN,:LANGUAGEID,:status);
       outstreamid=gen_id(streamid_no,0);
       end
       else
       begin
       update stream set instanceid=:instanceid,audio_level=:audio_level,file_name=:file_name,
       stream_name=:stream_name,stream_type=:stream_type,video_infoid=:video_infoid,audio_infoid=:audio_infoid,
       in_p=:in_p,out_p=:out_p,MAIN=:MAIN,LANGUAGEID=:LANGUAGEID,status=:status  where streamid=:streamid;
       end
POST_EVENT 'STREAM_CHANGE';
end

the strange is that TIBQuery accept this sql string but if i try to commit changes i receive error.if i delete some code and make him smaller query work.Perhaps this is a bug in TIBQuery,i guess....

RE: altering procedure problem,please help.

(OP)
i found where is the obstacle:TIBQuery has a parameter named 'ParamCheck'.if he is true(default),query can't calculate right count of parameters or something.However ,now everyting work properly.
Thanks  for interesting


P.S
Excuse my english ,i haven't much time to practice speaking him

RE: altering procedure problem,please help.

(OP)
i found where is the obstacle:TIBQuery has a parameter named 'ParamCheck'.if he is true(default),query can't calculate right count of parameters or something.However ,now everyting work properly.
Thanks  for interesting


P.S
Excuse my english ,i haven't much time to practice speaking him

RE: altering procedure problem,please help.

Your welcome, so when I come across, I will remember this

S. van Els
SAvanEls@cq-link.sr

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close