Modify

Opened 11 years ago

Closed 7 years ago

#11288 closed enhancement (fixed)

Convert to .executemany() where appropriate

Reported by: Chris Nelson Owned by: Chris Nelson
Priority: low Component: TeamCalendarPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description (last modified by Ryan J Ollos)

As noted in comment:3:ticket:11131 and pep:0249, .executemany() is preferred over passing a list of tuples. This can clean up a number of database accesses, potentially making them more portable and readable.

Attachments (0)

Change History (3)

comment:1 Changed 11 years ago by Ryan J Ollos

Sorry, it's not a duplicate, I just noticed #11287 is different! I had figured it was the mysterious submit once, get two tickets issue that we see from time to time.

Last edited 11 years ago by Ryan J Ollos (previous) (diff)

comment:2 Changed 7 years ago by Ryan J Ollos

Description: modified (diff)

comment:3 Changed 7 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

In 16051:

1.0.0dev: Use Trac 1.0 database API

  • Create tables on Environment upgrade (fixes #4115)
  • Store dates as UTC timestamps (fixes #9925)
  • Use executemany (fixes #11288)

This change is not compatible with the previous version.
Please open a ticket if you need help on an upgrade path.

Fixes #9908.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Chris Nelson.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.