Derby
  1. Derby
  2. DERBY-5011

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 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
    • Fix Version/s: 10.8.1.2
    • Component/s: Network Client
    • Labels:
      None
    • Urgency:
      Normal
    • Bug behavior facts:
      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

      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

          Dave Brosius created issue -
          Dave Brosius made changes -
          Field Original Value New Value
          Attachment fix_bad_increment.diff [ 12470546 ]
          Dave Brosius made changes -
          Attachment fix_bad_increment.diff [ 12470550 ]
          Dave Brosius made changes -
          Attachment fix_bad_increment.diff [ 12470546 ]
          Knut Anders Hatlen made changes -
          Link This issue relates to DERBY-4338 [ DERBY-4338 ]
          Dag H. Wanvik made changes -
          Attachment fix_bad_increment_dhw.diff [ 12470595 ]
          Dag H. Wanvik made changes -
          Summary [patch] fix bad attempt at incrementing a variable [patch] Client driver lexer to determine statement type: fix bad attempt at incrementing a variable
          Description code does

          idx = idx++;

          but this does absolutely nothing
          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
          Dag H. Wanvik made changes -
          Affects Version/s 10.6.2.1 [ 12315343 ]
          Affects Version/s 10.6.1.0 [ 12313727 ]
          Affects Version/s 10.5.3.0 [ 12314117 ]
          Affects Version/s 10.5.2.0 [ 12314116 ]
          Affects Version/s 10.5.1.1 [ 12313771 ]
          Affects Version/s 10.4.2.0 [ 12313345 ]
          Dag H. Wanvik made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Issue & fix info [Patch Available]
          Resolution Fixed [ 1 ]
          Dag H. Wanvik made changes -
          Assignee Dave Brosius [ dbrosius ]
          Dave Brosius made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Bug behavior facts [Deviation from standard]
          Rick Hillegas made changes -
          Fix Version/s 10.8.1.1 [ 12316356 ]
          Fix Version/s 10.8.1.0 [ 12315561 ]
          Rick Hillegas made changes -
          Fix Version/s 10.8.1.2 [ 12316362 ]
          Fix Version/s 10.8.1.1 [ 12316356 ]
          Gavin made changes -
          Workflow jira [ 12544855 ] Default workflow, editable Closed status [ 12797764 ]

            People

            • Assignee:
              Dave Brosius
              Reporter:
              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

                  Development