Thread: re: BEGIN/END DECLARE problems

re: BEGIN/END DECLARE problems

From
bayard kohlhepp
Date:
sorry - i'm using pg 6.4.2, mandrake (RedHat) linux 6.0, pentium

code example that works:

    EXEC SQL BEGIN DECLARE SECTION;

    struct mouse_s
        {
        char x[10];
        long y;
        } mou;

    EXEC SQL END DECLARE SECTION;

ecpg is unhappy -"parse error" - if i remove the "mou" declaration, or,
later in my code, try to do:

    EXEC SQL BEGIN DECLARE SECTION;
    struct mouse_s *mptr;
    EXEC SQL END DECLARE SECTION;