🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: debug stored procedures

#43
From: Isaac
Date: Fri, 23 May 2008 14:17
37 lines
2697 bytes
Wayne Niddery (TeamB) wrote:
> "Isaac" <no@no.com> wrote in message 
> news:483457ca@newsgroups.borland.com...
>>>>
>>>> it seems SUM can not be used with COALESCE which is very 
>>>> insufficiency situation , another bug ???
>>>
>>> It
>>> may be the database has to be version 12 and dialext 3.
>>
>> can you please send me your testing database
> 
> 
> My test database consists of this table:
> 
> CREATE TABLE "TEST_DATA" (
>  "ID" INTEGER NOT NULL,
>  "QTY" INTEGER,
>  "QTY2" INTEGER,
> CONSTRAINT "PK_TEST_DATA" PRIMARY KEY ("ID")
> );
> 
> These test records:
> 
> INSERT INTO "TEST_DATA" ("ID", "QTY", "QTY2") VALUES (1, NULL, 4);
> INSERT INTO "TEST_DATA" ("ID", "QTY", "QTY2") VALUES (2, 1, 2);
> INSERT INTO "TEST_DATA" ("ID", "QTY", "QTY2") VALUES (3, 1, NULL);
> 
> and this query statement:
> 
> select sum(coalesce(qty2)) from test_data
> 
> The database is one created with IB2007 and is dialect 3.
> 
when I tried to do your example with isql I got a "metadata update 
error" and in the detail message I got
"data type not supported for arithmetic"
Technical Details
Message-ID: <4836d206@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4831f162@newsgroups.borland.com> <4831f280@newsgroups.borland.com> <4831f42a@newsgroups.borland.com> <483201d3$1@newsgroups.borland.com> <48321ed5$1@newsgroups.borland.com> <4832c323@newsgroups.borland.com> <4832cc01@newsgroups.borland.com> <4832d6a0$1@newsgroups.borland.com> <4832e3e1@newsgroups.borland.com> <4832e64f$1@newsgroups.borland.com> <4832f208$1@newsgroups.borland.com> <4833237c@newsgroups.borland.com> <483328da$1@newsgroups.borland.com> <48332f73@newsgroups.borland.com> <483334b2$1@newsgroups.borland.com> <48333a8e@newsgroups.borland.com> <4833427b@newsgroups.borland.com> <48334f8a@newsgroups.borland.com> <48344401@newsgroups.borland.com> <483457ca@newsgroups.borland.com> <48360564$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,8feff649be448d0
X-Google-Attributes: gid114a0e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 23 May 2008 17:17:36 +0300
From: Isaac <no@no.com>
User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
MIME-Version: 1.0
Newsgroups: borland.public.interbase.sql
Subject: Re: debug stored procedures
References: <4831f162@newsgroups.borland.com> <4831f280@newsgroups.borland.com> <4831f42a@newsgroups.borland.com> <483201d3$1@newsgroups.borland.com> <48321ed5$1@newsgroups.borland.com> <4832c323@newsgroups.borland.com> <4832cc01@newsgroups.borland.com> <4832d6a0$1@newsgroups.borland.com> <4832e3e1@newsgroups.borland.com> <4832e64f$1@newsgroups.borland.com> <4832f208$1@newsgroups.borland.com> <4833237c@newsgroups.borland.com> <483328da$1@newsgroups.borland.com> <48332f73@newsgroups.borland.com> <483334b2$1@newsgroups.borland.com> <48333a8e@newsgroups.borland.com> <4833427b@newsgroups.borland.com> <48334f8a@newsgroups.borland.com> <48344401@newsgroups.borland.com> <483457ca@newsgroups.borland.com> <48360564$1@newsgroups.borland.com>
In-Reply-To: <48360564$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 41.234.200.242
Message-ID: <4836d206@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1211552262 41.234.200.242 (23 May 2008 07:17:42 -0700)
Lines: 37
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail