Uploaded image for project: 'SX Spring Python'
  1. SX Spring Python
  2. SESPRINGPYTHONPY-158

Add API to return rowid for insert statements

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 1.2.0.RC1
    • Fix Version/s: 1.2.0.FINAL
    • Component/s: Database
    • Labels:
      None

      Description

      DatabaseTemplate.execute() is used to perform inserts, and returns number of rows affected. Add insert_and_return_id to instead return lastrowid, which is the last row inserted. This is very useful when inserting lots of rows of data, and user wants handed back the new primary key values created.

        Attachments

          Activity

            People

            • Assignee:
              gregturn Greg Turnquist
              Reporter:
              gregturn Greg Turnquist
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: