Dear Rami,

It is not possible to declare a cursor outside a C function. Since every
EXEC SQL DECLARE call is mapped to a C Precompiler library function call
that is surrounded with { }, you will always get a syntax error if you
use that call outside a function. In general global embedded sql
statements are not allowed.

I did not get the error message concerning uuid if I try to compile the
HelloUnicodeDB program. Did you try the cpc without the -c option? What
type and version of C compiler do you use?

Regards,

Thomas Simenec
SAP Labs Berlin

-----Original Message-----
From: Rami AL-SAHHAR [mailto:[EMAIL PROTECTED] 
Sent: Mittwoch, 8. Februar 2006 17:19
To: maxdb@lists.mysql.com
Subject: MAXDB cpc precompiler
Importance: High

Dear Sir,

 

Can I declare cursor as global ( outside the main() )? I tried to do it
,
but it gives an error when I compile the generated C code.

 

If I can do it , tell me how ? and what's the general rules to declare
global embedded sql statement?

 

Thanks

Rami


--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to