Custom Query (13 matches)
Results (13 of 13)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#58 | duplicate | Start using "RETURNING" for DB IDs of things just added | ||
Description |
Currently several bits do "INSERT blah blah blah", then "SELECT currval(sequence)" to retrieve the ID of the thing just inserted for further work. These constructs should be switched to "INSERT blah blah blah RETURNING idfield" instead, where supported by DBI. |
Note:
See TracQuery
for help on using queries.