Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 5th, 2012, 02:47 AM
GeoffMarshall GeoffMarshall is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2012
Posts: 9 GeoffMarshall User rank is Sergeant (500 - 2000 Reputation Level)GeoffMarshall User rank is Sergeant (500 - 2000 Reputation Level)GeoffMarshall User rank is Sergeant (500 - 2000 Reputation Level)GeoffMarshall User rank is Sergeant (500 - 2000 Reputation Level)GeoffMarshall User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 h 26 m 59 sec
Reputation Power: 0
Missing error message

Can anybody assist with this code?
The second select statement causes
"Invalid request BLR at offset 243
undefined message number"

Note that if the parameter :N is replaced with a number eg 1 then all is fine. Why can't the parameter be used?

Geoff Marshall



alter procedure ValidateStock returns (stockref integer, Purchased integer, sold integer, stockheld numeric(15,2), correctedstock integer, Error char(1))
as
declare variable N integer;

begin
for select stockkey, sum(stockqty) from accounts where stockkey is not null
group by stockkey

into N, Purchased

do
begin

stockref = N;

select instock from stock where stockkey = :N into stockheld;
/* line above causes the problem*/
suspend;
end
end

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Missing error message

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap