Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-5011

[patch] Client driver lexer to determine statement type: fix bad attempt at incrementing a variable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 10.4.2.0, 10.5.1.1, 10.5.2.0, 10.5.3.0, 10.6.1.0, 10.6.2.1, 10.7.1.1
    • 10.8.1.2
    • Network Client
    • None
    • Normal
    • Deviation from standard

    Description

      In the client driver lexer to determine statement type, we look for token "select", "update", "values" etc. The lexer used to has a bug in its
      handling of end-of-line comments "--".

      code does

      idx = idx++;

      but this does absolutely nothing

      Attachments

        1. fix_bad_increment_dhw.diff
          0.8 kB
          Dag H. Wanvik
        2. fix_bad_increment.diff
          0.6 kB
          Dave Brosius

        Issue Links

          Activity

            People

              dbrosius David Brosius
              dbrosius@apache.org Dave Brosius
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified