Commit Graph

2338 Commits

Author SHA1 Message Date
Jinzhu 1e241aa645 Reduce GC alloc 2020-11-10 21:23:20 +08:00
LeoZhan 832abda7a4
refactor: simplify the writing instead of using struct literal (#3728) 2020-11-08 09:41:43 +08:00
Jinzhu 85e9f66d26 Fix create index for other database/schema, close #3698 2020-11-05 11:43:21 +08:00
Jinzhu fcf2ab6c0e Add deleted_at check when soft deleting, fix #3720 2020-11-05 11:20:08 +08:00
Jinzhu 560d303e71 Fix Scan with soft delete, close #3712 2020-11-04 11:03:22 +08:00
Jinzhu c915471169 Support Expression for OrderBy clause 2020-11-03 10:30:05 +08:00
Amit Basuri 57b033e2dd
Marshalling zero valued Deleted at to nullhttps://github.com/go-gorm/gorm/issues/3693 (#3695) 2020-11-02 10:03:39 +08:00
Jinzhu 3ebdcbdb18 Marshal invalid DeletedAt as null, fix #3693 2020-10-30 19:08:20 +08:00
Jinzhu a8141b6cc9 Fix DeletedAt marshal and unmarshal, close #3693 2020-10-30 18:15:07 +08:00
Jinzhu 4009ec5816 Fix call hook methods when updating with struct 2020-10-27 18:14:36 +08:00
Jinzhu d011ebe7af Fix clone statement for Unscoped, UpdatingColumn, close #3681 2020-10-26 10:17:25 +08:00
Jinzhu cb591a7129 Fix panic when using FirstOrCreate with soft delete, close #3671 2020-10-23 18:40:05 +08:00
Jinzhu dd92f8bdc0 Allow create table for other database/schema #3640 2020-10-23 11:01:45 +08:00
Jinzhu db2630cb3a Fix data race problem when using Scan, close #3662 2020-10-22 17:32:39 +08:00
Jinzhu 0aef8acc11 Add smart auto migrate tests 2020-10-22 16:36:27 +08:00
qifengzhang007 6d90d09cb8
Recorder追踪函数trace在finish_api文件358行scan函数所在的371行被调用时,BeginAt 没有赋值,默认值0001-0:0:0导致追踪日志显示的sql耗时无限大. (#3657)
Co-authored-by: 张奇峰 <10515935zwj>
2020-10-22 14:09:09 +08:00
Jinzhu 231aba53c5 Fix count with order by 2020-10-22 11:28:43 +08:00
Jinzhu 5fee5b1b24 Add option tag support for index 2020-10-21 20:18:21 +08:00
Michelle 635dcc9ad4
add gorm ColumnType interface, remove sql one (#3647) 2020-10-21 18:35:33 +08:00
Jinzhu bdb30da0a7 Fix copy lock for prepared statement, close #3642, #3607 2020-10-21 15:47:46 +08:00
Jinzhu 33a11767ea Upgrade test go.mod dependencies 2020-10-20 19:13:31 +08:00
Jinzhu 9b2181199d Fix soft delete with OrCondition, close #3627 2020-10-19 14:50:11 +08:00
Jinzhu 9dbef26feb Fix feature request label 2020-10-19 11:49:03 +08:00
Jinzhu 5731e632db Merge branch 'tebrizetayi-null-in-logger' 2020-10-19 11:04:35 +08:00
Jinzhu a1ea1713b0 Fix log Stringer 2020-10-19 11:04:18 +08:00
TABRIZ ATAYI d825554307 nil point transfer '<nil>' not transfer NULL #3604 2020-10-18 00:05:43 +02:00
Jinzhu 08ecef8e0b Fix NamedArguments with nested struct, close #3596 2020-10-13 15:32:29 +08:00
Jinzhu 689d6e2331 Fix DeletedAt marshalling, close #3598 2020-10-13 14:12:03 +08:00
Jinzhu 063b1ca0c4 Refactor SlowSQL log 2020-10-10 10:56:00 +08:00
Jinzhu 3d846957cd Compatible with tag notNull 2020-10-09 17:42:28 +08:00
Jinzhu 7faf1ca80f Fix Select with AS, close #3581, #3567 2020-10-09 11:52:12 +08:00
Jinzhu dbc6b34dce Add detailed error information when missing table name 2020-09-29 15:43:31 +08:00
Jinzhu a2faa41cbe Refactor NamingStrategy, close #3540 2020-09-28 10:55:27 +08:00
Jinzhu 9eec6ae066 Fix affected rows for Scan, change affected rows count for row/rows to '-', close #3532 2020-09-27 12:25:38 +08:00
Jinzhu ba253982bf Fix Pluck with Time and Scanner 2020-09-24 20:08:24 +08:00
Jinzhu c0de3c5051 Support FullSaveAssociations Mode, close #3487, #3506 2020-09-24 19:29:15 +08:00
Jinzhu 5228735915 Don't build IN condition if value implemented Valuer interface, #3517 2020-09-24 15:00:13 +08:00
Jinzhu 1a526e6802 Fix NamingStrategy with embedded struct, close #3513 2020-09-24 11:32:38 +08:00
caelansar 68920449f9
Fix format sql log (#3492) 2020-09-19 13:48:34 +08:00
Jinzhu 089939c767 AutoMigrate should auto create indexes, close #3486 2020-09-18 21:50:11 +08:00
Jinzhu c9165fe3ca Don't panic when using unmatched vars in query, close #3488 2020-09-18 21:42:27 +08:00
Jinzhu 072f1de83a Add DryRunModeUnsupported Error for Row/Rows 2020-09-18 21:35:46 +08:00
Jinzhu d002c70cf6 Support named argument for struct 2020-09-17 21:52:41 +08:00
Jinzhu a932175ccf Refactor cascade delete associations 2020-09-15 14:28:26 +08:00
Jinzhu 06d534d6ea Cascade delete associations, close #3473 2020-09-15 12:41:45 +08:00
Jinzhu 1d5f910b6e Update workflows template 2020-09-14 15:30:55 +08:00
Jinzhu 0ec10d4907 Fix format SQL log, close #3465 2020-09-14 12:37:16 +08:00
Jinzhu ed1b134e1c Fix use uint to for autoCreateTime, autoUpdateTime 2020-09-11 17:33:31 +08:00
Jinzhu 02fb382ec0 Support scan into int, string data types 2020-09-11 15:01:02 +08:00
Jinzhu e583dfa196 Allow negative number for limit 2020-09-11 11:54:21 +08:00