#154 Breakage on attribute after parenthesis

GNADE 1.X
closed
7
2007-10-04
2007-09-17
Björn Persson
No

When GESQL 1.5.3b encounters an attribute following a parenthesis it deletes the attribute and the rest of the line. Then it deletes all the line breaks from that point to the next apostrophe.

Discussion

<< < 1 2 (Page 2 of 2)
  • Björn Persson
    Björn Persson
    2007-09-17

    test case 2

     
    Attachments
  • Björn Persson
    Björn Persson
    2007-09-17

    Logged In: YES
    user_id=1037163
    Originator: YES

    With a subtle change inside a string literal I get very different behavior:

    $ gesql short2.adq

    GNADE Embedded SQL (GESQL) Ada 95 Translator Version 1.5.3b
    Copyright (C) 2000-2003 Michael Erdmann

    short2.adq:18:19: error : end of file in string starting at 15
    short2.adq:18:19: warning : Exception SCANNER.LEXICAL_ERROR occured
    short2.adq:18:19: warning : scanner.adb:527
    short2.adq:18:19:Fatal error, uncatched exception SCANNER.LEXICAL_ERROR occured
    short2.adq:18:19:*** Processing of file aborted ***

    Processed 1 of 1 file(s) not successfully, 0 error(s)

    File Added: short2.adq

     
  • Logged In: YES
    user_id=146097
    Originator: NO

    Your bug has been fixed, please retest with the next release.

     
  • Logged In: YES
    user_id=146097
    Originator: NO

    Corrected on the 1.5.3b branch

     
    • assigned_to: nobody --> merdmann
    • status: open --> pending
     
  • Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending --> closed
     
  • I've the same problem with the 1.5.3b release.

    The apostrope within the constant string with the same problem as sample program short2.gpq

     
  • Same problems with the attribute following parenthesis.
    Release of gnade compiled from source tarball 1.5.3b

    from source:

    .....
    RETURN codice(1..ind_ultimo_carattere) &
    (1..integer(codice'LENGTH) - ind_ultimo_carattere -
    (integer'IMAGE(codice_corrente)'LENGTH-integer(1)) => '0') &
    integer'IMAGE(codice_corrente)
    (2..(integer'IMAGE(codice_corrente))'LENGTH);
    ......

    after the gesql

    ......
    RETURN codice(1..ind_ultimo_carattere) &
    (1..integer(codice'LENGTH) - ind_ultimo_carattere -
    (integer'IMAGE(codice_corrente)'LENGTH-integer(1)) => '0') &
    integer'IMAGE(codice_corrente)
    (2..(integer'IMAGE(codice_corrente))
    end next_codice;
    .........

     
<< < 1 2 (Page 2 of 2)