Opened 7 years ago
Last modified 14 months ago
#46287 new feature request
Add insert_ignore() method to wpdb to avoid unecessary boilerplate code
| Reported by: | lev0 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Database | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
It's a very useful query, and easy to add to the core. Its usage would be less error prone, and code a lot DRYer if it were officially supported.
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I see no one has replied to this in 6 years. I came here looking for the same thing. Obviously, this can be done with custom queries, but it seems like an easy thing to add to me as well.
Is there a reason to not add it?