Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

AW: Strange problem with SAPDB 7.4.03.27: msg#00425

db.maxdb

Subject: AW: Strange problem with SAPDB 7.4.03.27

I have one addition:

My workaround works not correctly. Now Access interprets the last row of my
result as strings and I can't use them for my report.


-----Ursprüngliche Nachricht-----
Von: Hübschen, Peter
Gesendet: Dienstag, 28. Oktober 2003 11:17
An: Mailingliste MaxDB (E-Mail)
Betreff: Strange problem with SAPDB 7.4.03.27


Hello,

I've developed an Access-App 97 with an SAPDB-Backend. Some days ago I
updated vom 7.4.03.25 to 7.4.03.27 on a RH 9 Box. Now I'm having a strange
problem with the follwing stored procedure.

CREATE DBPROC SP_RPTAUSWERTUNG (IN ANFANG DATE, IN ENDE DATE, IN SPARTE3
CHAR(2), IN SPARTE1 CHAR(2))
RETURNS CURSOR AS
$CURSOR = 'rptAuswertung_Cursor';
DECLARE :$cursor CURSOR FOR

SELECT ANGEBOTE.GESAMT, 'Anzahl abgegebene Angebote' AS TITEL,
DECODE (ANGEBOTE.GESAMT, 0, 0, Fixed(1,5,4)) AS PROZENT
FROM
.....

UNION

SELECT ERHALTEN.ANZAHL, 'Anzahl erhaltene Aufträge' , DECODE
(ANGEBOTE.GESAMT, 0, 0, FIXED(ERHALTEN.ANZAHL / ANGEBOTE.GESAMT,10,4))
FROM
....
UNION
....

If I execute this proc in SQLStudio I get the values I want:
x Anzahl abgegebene Angebote 1
y Anzahl Projekte gestorben .xxxx
....

If I execute my proc from Access through a Pass-Through-Query, everything
worked fine with SAPDB version .25. After my upgrade to .27 I get the
following results:
x Anzahl abgegebene Angebote 1
y Anzahl Projekte gestorben 0
z Anzahl bla 0
....

At least I found a workaround by changing Fixed(1,5,4) to Fixed(1,5,4)/1,
but I think it's very strange.


Mit freundlichen Grüßen

P. Hübschen


--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe:
http://lists.mysql.com/maxdb?unsub=peter.huebschen@xxxxxxx




--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe: http://lists.mysql.com/maxdb?unsub=gcdm-maxdb@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation