🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Simple Stored Procedure Problem

#257
From: Ryan Born
Date: Sat, 16 Mar 2002 22:52
34 lines
1914 bytes
After an accidental post on my last one, here is my real problem!

I have this Attempt to create a SP, but it won't work.
------------------------------------------------------------
SET TERM !!;

CREATE PROCEDURE my_procedure
RETURNS (a_value INTEGER)
AS
BEGIN

SELECT count(*) FROM Banners;

END !!

SET TERM ;!!
------------------------------------------------------------
And I get this error:
------------------------------------------------------------
Dynamic SQL Error
SQL error code = -104
Token unknown - line 5, char 27
;
Statement: CREATE PROCEDURE my_procedure
RETURNS (a_value INTEGER)
AS
BEGIN
SELECT count(*) FROM Banners;
END
------------------------------------------------------------
What is my problem here?  This is the most simple of all stored Procs.
I am in client Dialect 1.

-Ryan
Technical Details
Message-ID: <3c93cc5f$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.gamma.ru!Gamma.RU!nntp.abs.net!priapus.visi.com!news-out.visi.com!hermes.visi.com!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fd38c,3f0dbf6d00b0f337,start
X-Google-Attributes: gidfd38c,public
X-Google-Thread: 114a0e,3f0dbf6d00b0f337,start
X-Google-Attributes: gid114a0e,public
X-Google-ArrivalTime: 2002-03-16 14:52:58 PST
Reply-To: "Ryan Born" <ryanborn@uiuc.edu>
From: "Ryan Born" <ryanborn@uiuc.edu>
Newsgroups: borland.public.interbase.sql,borland.public.interbase.general
Subject: Simple Stored Procedure Problem
Date: Sat, 16 Mar 2002 16:52:30 -0600
Lines: 36
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 64.91.20.251
Message-ID: <3c93cc5f$1_2@dnews>
X-Trace: dnews 1016319071 64.91.20.251 (16 Mar 2002 14:51:11 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.gamma.ru!Gamma.RU!nntp.abs.net!priapus.visi.com!news-out.visi.com!hermes.visi.com!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews