Commit Graph

  • c27b80ab28 feat: avoid using the same name field and if..else optimization adjustment daheige 2021-05-27 22:26:19 +08:00
  • 10338441ba strings trim daheige 2021-05-27 21:49:09 +08:00
  • bcf2b385a4
    Fix typo in associations_test.go (#4407) Ikko Ashimine 2021-05-27 18:40:28 +09:00
  • 52d2d75685 fmt.Errorf adjust and Optimize for-break daheige 2021-05-26 23:09:34 +08:00
  • 942a65f5e4 optimize gormSourceDir replace daheige 2021-05-26 22:18:32 +08:00
  • f83a59837a Test default value with primary key and type integer Zhibin Dong 2021-05-26 10:09:07 +08:00
  • b5c30fd18c Tag default is in conflict with tag autoincrement Zhibin Dong 2021-05-26 09:41:58 +08:00
  • 715392f0eb
    Fix typo in associations_test.go Ikko Ashimine 2021-05-24 14:49:51 +09:00
  • ac722c16f9
    Small grammar fix in error message (#4406) Brenda Wallace 2021-05-24 14:23:34 +12:00
  • 4d0a78afff
    Small grammar fix in error message Brenda Wallace 2021-05-24 09:10:51 +12:00
  • ea1bce3771 Only check struct value can address or not Jinzhu 2021-05-23 11:21:56 +08:00
  • 003708f020 FindInBatches using Offset instead of PrimaryKey iterations Jeff Pillou 2021-05-21 16:50:31 +02:00
  • fae7229d9e FindInBatches using Offset instead of PrimaryKey iterations Jeff Pillou 2021-05-21 16:47:16 +02:00
  • 79f427d862
    fixed has_many stopped working if field names are identical (#4387) Paras Waykole 2021-05-19 13:35:29 +05:30
  • ecdec1d40c hasmany same foreign key bug fixed and test added Paras 2021-05-17 23:57:17 +05:30
  • ad1c581de7 Merge branch 'go-gorm:master' into master Paras Waykole 2021-05-17 23:55:06 +05:30
  • cf93b16730
    Fix ErrInvalidTransaction error message (#4380) Atreya 2021-05-17 16:53:48 +09:00
  • 92c3ba9dcc Fix create new db sessions in scopes v1.21.10 Jinzhu 2021-05-17 15:34:24 +08:00
  • cba02c544c
    Fix ErrInvalidTransaction error message Atreya 2021-05-15 13:26:52 +09:00
  • 48791ed171 Set default autoUpdateTime and autoCreatedTime -1 wk30 2021-05-14 18:48:25 +08:00
  • 585e63625d Add DefaultTime type for autoUpdateTime and autoCreateTime wk30 2021-05-13 22:01:53 +08:00
  • ab51216097 Fix autoUpdateTime or autoCreateTime type wk30 2021-05-13 20:56:42 +08:00
  • 12fab57a74 Improve preload speed maddie 2018-09-10 06:45:55 +08:00
  • a480bd8545
    Update Optimize schema (#4364) Chen Quan 2021-05-10 09:51:50 +08:00
  • 2db0ed2330 Update Optimize schema Chen Quan 2021-05-09 23:03:11 +08:00
  • 6b7abc54a2 Fix tests Jinzhu 2021-05-06 13:06:31 +08:00
  • 2aca96d147 test ignore migration, close #4314, #4315 Jinzhu 2021-05-05 08:26:15 +08:00
  • 3f359eab9b
    slim trace if depth (#4346) 我的我的 2021-05-05 08:14:40 +08:00
  • 8f7f3ad315
    fixed belongs_to & has_one reversed if field same (#4343) Paras Waykole 2021-05-05 05:27:54 +05:30
  • 5920c33a1c slim trace if depth gogs 2021-05-02 17:27:20 +08:00
  • a222c758bb fixed belongs_to & has_one reversed if field same Paras 2021-05-01 18:28:07 +05:30
  • 70e93e73d8 Check data type if copyable before change reference field's type Jinzhu 2021-04-30 16:25:56 +08:00
  • cd42f9571b Merge remote-tracking branch 'gorm/master' Jason Chavannes 2021-04-29 15:16:21 -07:00
  • f0d0bbbc10
    Added missing white space (#4330) Karolos Lykos 2021-04-29 02:15:37 +03:00
  • 499c7506fe Added missing white space karolos lykos 2021-04-28 13:31:00 +03:00
  • 6431681b26 Added missing white space karolos lykos 2021-04-28 12:42:13 +03:00
  • 6951be0284 Allow customize clauses v1.21.9 Jinzhu 2021-04-28 17:19:30 +08:00
  • 1afd134237 Added missing white space karolos lykos 2021-04-27 13:13:42 +03:00
  • d3a70e91eb add json tags to schema.Field bukowa 2021-04-25 23:44:54 +02:00
  • 370ddcbdf1 add test failing to marshal json schema bukowa 2021-04-25 23:41:23 +02:00
  • 69ebf1f4b9 Add placeholder field tags feature Abdelaziz Elrashed 2021-04-22 14:11:45 +03:00
  • 82cb4ebfe2 Fix overwrite Statement in scopes Jinzhu 2021-04-22 13:12:15 +08:00
  • a855fe6402
    Fixed naming longer than 64 characters (#4310) Sky34gl3 2021-04-22 07:11:19 +02:00
  • 15328f49b9 Fixed naming longer than 64 characters Mickael MAUGER 2021-04-21 14:52:38 +02:00
  • e246b39d89 refactor: support map[string]interface{} alias Harman 2021-04-21 16:55:07 +07:00
  • a981e528c6 change float64 in sql logger to full number noMoon 2021-04-19 14:26:38 -04:00
  • d327926425 Check ReflectValue.CanAddr before set field value Jinzhu 2021-04-19 21:32:32 +08:00
  • 15a46bc042
    Fix some typos (#4294) Chris Faulkner 2021-04-19 06:03:39 -07:00
  • 386d981a98 CanZero specifies fields that you can be set to zero value when creating and updating. yiranzai 2021-04-18 16:18:05 +08:00
  • 75a80111f3 update at change unit tests yiranzai 2021-04-18 14:26:10 +08:00
  • 01dd7167a9 https://github.com/go-gorm/gorm/issues/4296 yiranzai 2021-04-17 21:57:45 +08:00
  • a14179257a Fix some typos Chris Faulkner 2021-04-16 15:57:37 -07:00
  • 7701c88507 Assign transaction error to db v1.21.8 Jinzhu 2021-04-16 19:27:23 +08:00
  • d483ffa45c Fix Preload with nil pointer Jinzhu 2021-04-15 10:37:05 +08:00
  • 74e7a9ca07
    Optimize reflect value length and method (#4280) heige 2021-04-14 13:00:54 +08:00
  • ad88cd9a30 feat: optimize ConvertSliceOfMapToValuesForCreate method daheige 2021-04-13 22:35:43 +08:00
  • c0b910e7d3 feat: optimize relect value length and value daheige 2021-04-13 22:34:34 +08:00
  • 125d6b0f24 feat: Optimal value type acquisition for v (#4278) heige 2021-04-13 09:41:30 +08:00
  • ca1a62d57f Respect ignore migration when add column (#4276) yrong1997 2021-04-13 09:39:43 +08:00
  • 5555b010dc
    feat: Optimal value type acquisition for v (#4278) heige 2021-04-13 09:41:30 +08:00
  • d7911300f8
    Respect ignore migration when add column (#4276) yrong1997 2021-04-13 09:39:43 +08:00
  • 290f2fb120 feat: Optimal value type acquisition for v daheige 2021-04-12 21:02:50 +08:00
  • 3d91e9367d Respect ignore migration when add column yrong 2021-04-11 22:40:39 +08:00
  • d4a1313643 record not found back to the previous mode daheige 2021-04-10 22:28:02 +08:00
  • b5c340f85e Fix postgress data type issue Leonid Bugaev 2021-04-09 20:11:39 +03:00
  • d278ca49ef sort GORM options before apply Jinzhu 2021-04-09 11:43:24 +08:00
  • ad53074f1d Pass db error to new instance v1.21.7 Jinzhu 2021-04-09 11:07:14 +08:00
  • f3bdfa8261 Add IgnoreRecordNotFoundError option for logger Jinzhu 2021-04-09 10:20:36 +08:00
  • 673053f56a Fix context cancel error, close #4259, close #4260 Jinzhu 2021-04-09 09:35:41 +08:00
  • c98a6e1847 add RollbackUnlessCommitted labulaka521 2021-04-08 00:00:47 +08:00
  • 8cfa9d98f0
    Update field.go (#4228) gavwu 2021-04-02 09:56:38 +08:00
  • 33601dc72f Support Having w/o Group Jinzhu 2021-03-30 18:28:09 +08:00
  • 73c6d3e64e Add AfterInitialize error Jinzhu 2021-03-29 18:36:01 +08:00
  • f0a17ddf9a
    Update field.go gavwu 2021-03-27 22:28:57 +08:00
  • 0eba7a9ed1 Fix apply option v1.21.6 Jinzhu 2021-03-26 14:20:42 +08:00
  • 2ce058e0fe Ignore associations in UpdateFields Gerhard Gruber 2021-03-10 14:33:53 +01:00
  • b55b8aef36
    added group concat expression (#10) FFuchsi 2021-03-25 14:03:56 +01:00
  • 90f505626f added group concat expression ff0077 2021-03-25 11:58:52 +01:00
  • a8b72546c1 Fix get database connection for prepared stmt, close #4214 Jinzhu 2021-03-25 10:17:57 +08:00
  • 01c84fa8e0 refactor AndConditions&OrConditions Build method 0x2d3c 2021-03-24 21:24:59 +08:00
  • 2a7d8477c8 Fix for ErrInvaildDB on PreparedStmtDB Josef Citrine 2021-03-24 12:27:18 +00:00
  • 26e0c6fb69 skip test sqlserver due to it will raise data race for invalid sql Jinzhu 2021-03-24 17:12:30 +08:00
  • 88078e48d0 Remove sqlite_windows test case Jinzhu 2021-03-24 16:56:41 +08:00
  • 8204d0ada2 Update tests script v1.21.5 Jinzhu 2021-03-24 16:44:51 +08:00
  • 704e53a774 Call scopes before parse model value, close #4209 Jinzhu 2021-03-24 16:17:49 +08:00
  • 4d5cec8bdd Add golang 1.16 Jinzhu 2021-03-24 14:22:36 +08:00
  • 26dd4c980a
    Fix: FindInBatches ignores errors (#4203) Genta Kamitani 2021-03-22 15:11:07 +09:00
  • be990cba54 Fix: FindInBatches ignores errors Genta Kamitani 2021-03-21 15:47:01 +09:00
  • 8c92d9694a Fix to call Scopes with using Migrator Jinzhu 2021-03-19 16:34:51 +08:00
  • a9fe025ef5 Add GetDBConnector interface Jinzhu 2021-03-19 15:54:32 +08:00
  • 220349ccf2 Fix omit associations, close #4161 v1.21.4 Jinzhu 2021-03-19 15:15:26 +08:00
  • e85b73e5a5 Fix nested Scopes, close #4196 Jinzhu 2021-03-19 13:44:25 +08:00
  • a3d9bbfc36 build *clause.Expr Jinzhu 2021-03-19 13:21:43 +08:00
  • 27bb9137d3 Refactor OnConflict.UpdateALl Jinzhu 2021-03-18 11:44:04 +08:00
  • 968a09b86f Added funcs QuoteExpr and Min to expression extension Daniel Hammerschmid 2021-03-17 11:26:21 +01:00
  • 07f3795f93
    optimize MigrateColumn method for regexp (#4188) heige 2021-03-17 11:32:17 +08:00
  • a741113f4f fix: LIMIT clause not valid in DELETE or UPDATE SQL hujinbiao 2021-03-16 19:28:51 +08:00
  • c8c9af7476 for FieldSchema.LookUpField or column Alias Delimiter daheige 2021-03-14 21:02:55 +08:00
  • c1a317f369 optimize MigrateColumn method for regexp daheige 2021-03-14 20:59:20 +08:00
  • 2055e29eb8 Refactor nested preload all associations Jinzhu 2021-03-14 10:18:43 +08:00