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

typo in autogenerated keys documentation. Should be Statement.RETURN_GENERATED_KEYS not Statement.RETURN_GENERATED_KEY

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.3.1.4
    • 10.3.1.4
    • Documentation
    • None

    Description

      In the autogenerated keys examples there is a typo:
      http://db.apache.org/derby/docs/dev/ref/crefjavstateautogen.html

      The example for Code fragment 1 has
      stmt.execute(
      "INSERT INTO TABLE1 (C11) VALUES (1)",
      Statement.RETURN_GENERATED_KEY);

      but it should be:
      stmt.execute(
      "INSERT INTO TABLE1 (C11) VALUES (1)",
      Statement.RETURN_GENERATED_KEYS);
      http://db.apache.org/derby/docs/dev/ref/crefjavstateautogen.html

      Attachments

        1. derby2850.diff
          6 kB
          Laura Stewart
        2. crefjavstateautogen.html
          6 kB
          Laura Stewart

        Activity

          People

            scotsmatrix Laura Stewart
            kmarsden Katherine Marsden
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: