Truong Nguyen ed474152b1
Fix: Composite primary key with auto-increment value returns 0 after insert (#6127)
* Fix #4930 workaround for databases that support auto-increment in composite primary key.

* Add test for composite key with auto-increment.

* schema.go: use field.AutoIncrement instead of field.TagSettings["AUTOINCREMENT"], add test to check autoincrement:false

create_test.go: remove unused code: drop table CompositeKeyProduct

---------

Co-authored-by: Jinzhu <wosmvp@gmail.com>
2023-03-10 16:50:03 +08:00
..
2020-07-28 14:46:48 +08:00
2022-11-21 11:10:56 +08:00
2021-10-26 22:40:14 +08:00
2022-12-24 12:27:38 +08:00
2022-03-24 09:31:58 +08:00
2023-02-27 15:43:10 +08:00
2023-02-27 15:44:35 +08:00
2020-02-23 09:38:51 +08:00
2022-07-14 14:55:54 +08:00
2022-07-14 14:55:54 +08:00
2022-07-14 14:55:54 +08:00
2022-09-05 15:39:19 +08:00

Test Guide

cd tests
# prepare test databases
docker-compose up

# run all tests
./tests_all.sh