gorm/schema
mohammad ali 26663ab9bf
max identifier length changed to 63 (#6337)
* max identifier length changed to 63

* default maxIdentifierLength is 64

* renamed License to LICENSE (#6336)

* Added support of "Violates Foreign Key Constraint" (#6329)

* Added support of "Violates Foreign Key Constraint"

Updated the translator and added the support of "foreign key constraint violation". For this, this error type is needed here.

* changed the description of ErrForeignKeyViolated

* refactor: error translator test (#6350)

Co-authored-by: Saeid Saeidee <s.saeidee@sensysgatso.com>

* fix(nested transaction): SavePoint SQL Statement not support in Prepared Statements (#6220)

* test: add nested transaction and prepareStmt coexist test case

note: please test in the MySQL environment

Change-Id: I0db32adc5f74b0d443e98943d3b182236583b959
Signed-off-by: 王柳洋 <wangliuyang.520@bytedance.com>

* fix(nested transaction): SavePoint SQL Statement not support in Prepared Statements

1. SavetPoint SQL Statement not support in Prepared Statements
 e.g. see mysql8.0 doc: https://dev.mysql.com/doc/refman/8.0/en/sql-prepared-statements.html

Change-Id: I082012db9b140e8ec69764c633724665cc802692
Signed-off-by: 王柳洋 <wangliuyang.520@bytedance.com>

* revert(transaction_api): remove savepoint name pool,meaningless

Change-Id: I84aa9924fc54612005a81c83d66fdf8968ee56ad
Signed-off-by: 王柳洋 <wangliuyang.520@bytedance.com>

---------

Signed-off-by: 王柳洋 <wangliuyang.520@bytedance.com>
Co-authored-by: 王柳洋 <wangliuyang.520@bytedance.com>

* fix: save with hook (#6285) (#6294)

---------

Signed-off-by: 王柳洋 <wangliuyang.520@bytedance.com>
Co-authored-by: Avinaba Bhattacharjee <avinababhattacharjee2002@gmail.com>
Co-authored-by: Muhammad Amir Ejaz <37077032+codingamir@users.noreply.github.com>
Co-authored-by: Saeid <sk.saeidee@yahoo.com>
Co-authored-by: Saeid Saeidee <s.saeidee@sensysgatso.com>
Co-authored-by: wangliuyang <54885906+wangliuyang520@users.noreply.github.com>
Co-authored-by: 王柳洋 <wangliuyang.520@bytedance.com>
Co-authored-by: black-06 <hello.bug@foxmail.com>
2023-05-30 10:00:48 +08:00
..
callbacks_test.go ci: add gofumpt check in reviewdog (#4973) 2022-01-06 15:02:53 +08:00
check.go ci: add gofumpt check in reviewdog (#4973) 2022-01-06 15:02:53 +08:00
check_test.go Rename package name 2020-06-02 09:18:01 +08:00
field.go fix: 🐛 embedded struct test failed with custom datatypes (#6311) 2023-05-15 09:59:26 +08:00
field_test.go Add serializer support (#5078) 2022-02-19 17:02:53 +08:00
index.go fix(schema): field is only unique when there is one unique index (#5974) 2023-01-11 14:05:39 +08:00
index_test.go fix(schema): field is only unique when there is one unique index (#5974) 2023-01-11 14:05:39 +08:00
interfaces.go Add serializer support (#5078) 2022-02-19 17:02:53 +08:00
model_test.go ci: add gofumpt check in reviewdog (#4973) 2022-01-06 15:02:53 +08:00
naming.go max identifier length changed to 63 (#6337) 2023-05-30 10:00:48 +08:00
naming_test.go max identifier length changed to 63 (#6337) 2023-05-30 10:00:48 +08:00
pool.go Remove shared sync pool for Scanner compatibility 2022-04-11 21:37:44 +08:00
relationship.go feat: support embedded preload (#6137) 2023-04-11 13:10:38 +08:00
relationship_test.go max identifier length changed to 63 (#6337) 2023-05-30 10:00:48 +08:00
schema.go feat: support embedded preload (#6137) 2023-04-11 13:10:38 +08:00
schema_helper_test.go feat: support embedded preload (#6137) 2023-04-11 13:10:38 +08:00
schema_test.go Fix: Composite primary key with auto-increment value returns 0 after insert (#6127) 2023-03-10 16:50:03 +08:00
serializer.go Issue 6054: Unscoped not working with PreLoad on Joins (#6058) 2023-02-18 09:06:43 +08:00
utils.go fix: update panic if model is not ptr (#6037) 2023-02-18 09:20:29 +08:00
utils_test.go Remove autoincrement tag for join table, close #3217 2020-07-31 18:19:25 +08:00