Skip to content
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

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Commits on Apr 18, 2023

  1. 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]>
    dependabot[bot] authored and miguelsorianod committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    b0837e6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c246769 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    85d0f7e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c74176a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    401802d View commit details
    Browse the repository at this point in the history
  6. 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.
    miguelsorianod committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    7bad449 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    28d64fa View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f663469 View commit details
    Browse the repository at this point in the history
  9. 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
    miguelsorianod committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    d13f771 View commit details
    Browse the repository at this point in the history
  10. 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
    miguelsorianod committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    dc4ad88 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    77366af View commit details
    Browse the repository at this point in the history
  12. 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
    miguelsorianod committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    b4b65d4 View commit details
    Browse the repository at this point in the history
  13. 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
    miguelsorianod committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    5c608f2 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    3a93bdd View commit details
    Browse the repository at this point in the history
  15. 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.
    miguelsorianod committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    7b0f8ed View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    04641f3 View commit details
    Browse the repository at this point in the history