🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #665

Re: Error creating Stored Procedure in Interbase 2007

#665
From: Quinn Wildman (CodeGear Develope...
Date: Thu, 25 Oct 2007 19:44
53 lines
2461 bytes
It appears to me you have two variables of the same name. Here is a 
simple way to get almost exactly the same error:

create procedure foo (x int, x int) as
begin
x=1;
end;

RDB$INDEX_18 is an index on parameter names to a stored procedures. It 
is a unique index on parameters name and procedure name.


Bob wrote:
> I get the following Error, The Stored Procedure is not preexistant :
> 
> ISC ERROR CODE:335544351
> 
> ISC ERROR MESSAGE:
> unsuccessful metadata update
> STORE RDB$PROCEDURE_PARAMETERS failed
> lock conflict on no wait transaction
> attempt to store duplicate value (visible to active transactions) in unique 
> index "RDB$INDEX_18"
> 
> The procedure is as follows
> 
> CREATE PROCEDURE PROC_EXT_MYTABLE
> ( ROWS_PROCESSED_SO_FAR INTEGER, ROWS_PERCYCLE INTEGER )
> RETURNS
> ( BATCH_ROWS_PROCESSED INTEGER )
> AS
> DECLARE VARIABLE THESTOREID VARCHAR(10);
> DECLARE VARIABLE THESALESDATE TIMESTAMP;
> DECLARE VARIABLE THEPLU VARCHAR(14);
> DECLARE VARIABLE THEQUANTITYSOLD FLOAT;
> DECLARE VARIABLE THESALESEXGST FLOAT;
> DECLARE VARIABLE THECOSTEXGST FLOAT;
> DECLARE VARIABLE THESALESINCGST FLOAT;
> DECLARE VARIABLE THECOSTINCGST FLOAT;
> DECLARE VARIABLE THECOUNT INTEGER;
> BEGIN
>   DO SUMETHING;
>   BATCH_ROWS_PROCESSED = THECOUNT;
>   SUSPEND;
> END;
> 
> How can this possibly happen?
> 
> Kind Regards,
> 
> Robert.
> 
> 
Technical Details
Message-ID: <4720f2c0$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <471fe3e2$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,1c87e8aa4480bde1
X-Google-Attributes: gid114a0e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 25 Oct 2007 12:44:37 -0700
From: "Quinn Wildman (CodeGear Developer Support)" <qwildman@nospam.codegear.com>
User-Agent: Thunderbird 1.5.0.13 (Windows/20070809)
MIME-Version: 1.0
Newsgroups: borland.public.interbase.sql
Subject: Re: Error creating Stored Procedure in Interbase 2007
References: <471fe3e2$1@newsgroups.borland.com>
In-Reply-To: <471fe3e2$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 10.143.100.209
Message-ID: <4720f2c0$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1193341632 10.143.100.209 (25 Oct 2007 12:47:12 -0700)
Lines: 53
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail