🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: debug stored procedures

#36
From: Wayne Niddery (TeamB)
Date: Thu, 22 May 2008 23:44
36 lines
2721 bytes
"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.

-- 
Wayne Niddery - TeamB (www.teamb.com)
Winwright, Inc. (www.winwright.ca)
Technical Details
Message-ID: <48360564$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed.freenet.de!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>

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
From: "Wayne Niddery \(TeamB\)" <wniddery@chaffaci.on.ca>
Newsgroups: borland.public.interbase.sql
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>
In-Reply-To: <483457ca@newsgroups.borland.com>
Subject: Re: debug stored procedures
Date: Thu, 22 May 2008 19:44:31 -0400
Lines: 36
MIME-Version: 1.0
Content-Type: text/plain;
 format=flowed;
 charset="iso-8859-1";
 reply-type=response
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18000
NNTP-Posting-Host: 24.137.214.213
Message-ID: <48360564$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1211499876 24.137.214.213 (22 May 2008 16:44:36 -0700)
X-Authenticated-User: wniddery
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail