Skip to Content
author's profile photo Former Member
Former Member

Create procedure with ucase select - bug?

Hi all,

this code

create table t1

(

field1_t1 varchar(10)

)

//

CREATE PROCEDURE xxx

RETURNS CURSOR AS

DECLARE :$CURSOR CURSOR FOR

SELECT UCASE(field1_t1) FROM YYYYXXXX.t1

;

It works well with MAXDB 7.6.00.34 (WinXP SP2 prof)

and with MAXDB 7.6.03.07 (WinXP SP2 prof) generates error:

Syntax error or access violation;-3008 POS(68) Invalid keyword or missing delimiter

Is it bug? Can anyone check this query on other system/database?

Best regards,

Lukasz

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Nov 22, 2007 at 12:44 PM

    Hi Lukasz,

    try this:

    CREATE PROCEDURE xxx

    RETURNS CURSOR AS

    DECLARE :$CURSOR CURSOR FOR

    SELECT <b><u>UPPER</u></b>(field1_t1) FROM YYYYXXXX.t1

    ;

    Check the documentation String" target="_blank">http://maxdb.sap.com/currentdoc/71/81736bb9b311d2a97100a0c9449261/content.htm">String functions

    KR Lars

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 01:31 PM

    Thanks for help. It solved the problem.

    Mislead me fact that this select works fine alone, into procedure not.

    Thanks and best regards.

    Lukasz.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.