github go-gorm/gorm v1.31.2
Release v1.31.2

4 hours ago

Changes

  • Fix potential rows leak on panic by deferring rows.Close() @omer-cengel (#7798)
  • perf: replace fmt.Sprintf with strconv in ExplainSQL numeric formatting @alpardfm (#7796)
  • Document NowFunc timezone behavior @morning-verlu (#7799)
  • correct typo and rename fileType to fieldType in AlterColumn @cragone (#7748)
  • fix: panic when using clause.Returning with CreateInBatches @Truongquangkhang (#7768)
  • fix(migrator): add nil guards to ColumnType methods to prevent panic @lihan3238 (#7767)
  • ci: switch tests Go matrix to stable/oldstable and update setup-go @smf-h (#7726)
  • chore(ci): bump actions/stale to v9 @Olexandr88 (#7696)
  • fix(migrator): don't clear alterColumn when defaults match @qqxhb (#7728)
  • Add package comments to fix ST1000 warnings @twocs (#7708)
  • generics: populate WithResult error @qqxhb (#7723)
  • fix(utils): restore FileWithLineNum caller depth and add regression test @smf-h (#7717)
  • tests: skip customized foreign key many2many on MySQL 8.4+ @smf-h (#7727)
  • fix tiny typo in error message @snelg (#7738)
  • Add unit test verifying chainable query methods mutate statement @miladev95 (#7684)
  • fix: Close connection after ping failure to prevent goroutine leak @liang09255 (#7689)
  • fix: Row() and Rows() functions should automaticaly apply the generic type as model @hakanakyurek (#7664)
  • internal/lru: improve concurrency with RWMutex @miladev95 (#7668)
  • Fix nil pointer panic in serializer for nil any-type fields @doraemonkeys (#7634)
  • staticcheck QF1001 @miladev95 (#7648)
  • Support array/slice expansion for named SQL parameters in parentheses @bafflingbug (#7614)

Don't miss a new gorm release

NewReleases is sending notifications on new releases.