Commit ae1622c
Mike Eldridge
only supply the id attribute to knex.insert for drivers that support it
Knex 0.16.4 began warning when the returning attribute is supplied for
dialects that do not support it. These dialects currently include MySQL
and SQLite3. Supplying this attribute is a no-op for those dialects, so
excluding them is safe and eliminates the warning.
More information:
knex/knex#30391 parent 7a40af5 commit ae1622c
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
424 | 431 | | |
425 | 432 | | |
426 | 433 | | |
| |||
438 | 445 | | |
439 | 446 | | |
440 | 447 | | |
441 | | - | |
| 448 | + | |
442 | 449 | | |
443 | 450 | | |
444 | 451 | | |
| |||
0 commit comments