Opened 5 years ago

Closed 5 years ago

#31403 closed New feature (fixed)

Add support for INSERT..RETURNING on MariaDB 10.5+.

Reported by: Adam Johnson Owned by: Adam Johnson
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

One of MariaDB 10.5's headline features is INSERT..RETURNING support: https://mariadb.com/kb/en/changes-improvements-in-mariadb-105/

We should reflect this in the MySQL/MariaDB backend to allow bulk_create(), that uses this, to work.

Change History (7)

comment:1 by Adam Johnson, 5 years ago

Owner: changed from nobody to Adam Johnson
Status: newassigned

comment:2 by Mariusz Felisiak, 5 years ago

Has patch: set
Summary: MariaDB 10.5+ supports INSERT..RETURNINGAdd support for INSERT..RETURNING on MariaDB 10.5+.
Triage Stage: UnreviewedAccepted

comment:3 by Mariusz Felisiak, 5 years ago

Needs documentation: set

comment:4 by Adam Johnson, 5 years ago

Needs documentation: unset

comment:5 by Mariusz Felisiak, 5 years ago

Triage Stage: AcceptedReady for checkin

comment:6 by Mariusz Felisiak <felisiak.mariusz@…>, 5 years ago

In c06d7c92:

Refs #31403 -- Made SQLInsertCompiler.execute_sql() always return an iterable of rows.

List of tuples.

comment:7 by Mariusz Felisiak <felisiak.mariusz@…>, 5 years ago

Resolution: fixed
Status: assignedclosed

In 93ed71e0:

Fixed #31403 -- Added support for returning fields from INSERT statements on MariaDB 10.5+.

Note: See TracTickets for help on using tickets.
Back to Top