-
-
src/Lunr/Gravity/Database/DatabaseDMLQueryBuilder.php (Diff revision 1) Close, but not quite :)
This should work as part of the existing
get_insert_query()method.
Gravity: added support for INSERT...RETURNING
Review Request #731 — Created Feb. 10, 2021 and submitted
| Information | |
|---|---|
| m.vanberkum | |
| Lunr | |
| feature/insertReturning | |
| 65797b3... | |
| Reviewers | |
| lunr | |
Gravity: added support for INSERT...RETURNING
Made sure query works in MariaDB.
Wrote unit test.
Ran unit tests.
Change Summary:
Updated code after feedback
Commit: |
|
||||
|---|---|---|---|---|---|
Diff: |
Revision 2 (+27) |
-
-
src/Lunr/Gravity/Database/DatabaseDMLQueryBuilder.php (Diff revision 2) That's not how
$componentsworks.$this->returningcontains the RETURNING part of the query. That's more than just the RETURNING key word. It also already contains the columns.column_names_trimmed isn't needed at all.
Change Summary:
Updated returning
Commit: |
|
||||
|---|---|---|---|---|---|
Diff: |
Revision 3 (+23) |
