-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] update gorm and related libraries #1637
base: main
Are you sure you want to change the base?
[WIP] update gorm and related libraries #1637
Commits on Apr 18, 2023
-
build(deps): bump gorm.io/driver/postgres from 1.0.8 to 1.3.10
Bumps [gorm.io/driver/postgres](https://github.com/go-gorm/postgres) from 1.0.8 to 1.3.10. - [Release notes](https://github.com/go-gorm/postgres/releases) - [Commits](go-gorm/postgres@v1.0.8...v1.3.10) --- updated-dependencies: - dependency-name: gorm.io/driver/postgres dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b0837e6 - Browse repository at this point
Copy the full SHA b0837e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for c246769 - Browse repository at this point
Copy the full SHA c246769View commit details -
Configuration menu - View commit details
-
Copy full SHA for 85d0f7e - Browse repository at this point
Copy the full SHA 85d0f7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c74176a - Browse repository at this point
Copy the full SHA c74176aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 401802d - Browse repository at this point
Copy the full SHA 401802dView commit details -
fix: fix prepared statement cache error
When updating gorm from 1.21.7 to 1.23.10 kafka migrations start to return an error: Could not migrate: ERROR: cached plan must not change result type (SQLSTATE 0A000) This error happens due to in the kafka migrations we perform database queries and schema table modifications in an interleaved way and prepared statements are cached. This leads scenarios where a specific table is queried and thus some prepared statements cached, then some table schemas are modified and then when queries are performed again against those queries are outdated cached prepared statements which causes the observed error. This behavior is likely a bug in gorm related to prepared statement caching due to only updating gorm minor version should not break changes. To workaround this for now this commit updates code to disable prepared statements during kafka migrations. This includes the kafka migrations when integration tests are run too. During serve command execution, for connectors migrations and for the integration tests (excluding the migrations part of them) the prepared statements are enabled being the behavior the same as before this change.
Configuration menu - View commit details
-
Copy full SHA for 7bad449 - Browse repository at this point
Copy the full SHA 7bad449View commit details -
Configuration menu - View commit details
-
Copy full SHA for 28d64fa - Browse repository at this point
Copy the full SHA 28d64faView commit details -
Configuration menu - View commit details
-
Copy full SHA for f663469 - Browse repository at this point
Copy the full SHA f663469View commit details -
feat: update gorm and gorm postgres drivers versions
gorm.io/gorm has been updated to v1.24.1 gorm.io/driver/postgres has been updated to v1.4.5
Configuration menu - View commit details
-
Copy full SHA for d13f771 - Browse repository at this point
Copy the full SHA d13f771View commit details -
feat: reenable db prepared statements for kafka migrations
the bug related to db prepared statements has been fixed on gorm.io/driver/postgres v1.4.5. We are now using that version so this reenables db prepared statements for kafka migrations
Configuration menu - View commit details
-
Copy full SHA for dc4ad88 - Browse repository at this point
Copy the full SHA dc4ad88View commit details -
Configuration menu - View commit details
-
Copy full SHA for 77366af - Browse repository at this point
Copy the full SHA 77366afView commit details -
feat: update gorm and gorm postgres drivers versions
gorm.io/gorm has been updated to v1.24.3 gorm.io/driver/postgres has been updated to v1.4.6
Configuration menu - View commit details
-
Copy full SHA for b4b65d4 - Browse repository at this point
Copy the full SHA b4b65d4View commit details -
feat: update gorm and gorm postgres drivers versions
gorm.io/gorm has been updated to v1.25.0 gorm.io/driver/postgres has been updated to v1.5.0
Configuration menu - View commit details
-
Copy full SHA for 5c608f2 - Browse repository at this point
Copy the full SHA 5c608f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a93bdd - Browse repository at this point
Copy the full SHA 3a93bddView commit details -
fix: change cluster database error test to not expect returned values
After gorm version update to 1.25.0 the Save method does not return values.
Configuration menu - View commit details
-
Copy full SHA for 7b0f8ed - Browse repository at this point
Copy the full SHA 7b0f8edView commit details -
Configuration menu - View commit details
-
Copy full SHA for 04641f3 - Browse repository at this point
Copy the full SHA 04641f3View commit details