Merged
Conversation
Member
2025/07/21 18:01:38 /home/jinzhu/Projects/gorm/gorm/tests/tests_test.go:75
[error] failed to initialize database, got error failed to connect to `user=gaussdb database=gorm`: 127.0.0.1:9950 (localhost): server error: FATAL: database "gorm" does not exist (SQLSTATE 3D000)
2025/07/21 18:01:38 failed to connect database, got error failed to connect to `user=gaussdb database=gorm`: 127.0.0.1:9950 (localhost): server error: FATAL: database "gorm" does not exist (SQLSTATE 3D000) |
Member
|
Need to create database |
Contributor
Author
Yes, it seems that the test failed because GaussDB is missing a database named 'gorm'. We need to add the steps to create the database in the Docker compose file. Let me modify the compose file. |
Member
|
still got error |
Contributor
Author
I have also discovered this issue and am currently debugging it. |
…t resulted in "unexpected EOF" errors during initialization in tests.
phroggyy
pushed a commit
to incident-io/gorm
that referenced
this pull request
Jan 23, 2026
* Update the docker compose file to make /Tests/tests_all.sh can run successfully. * Create database gorm in the compose file. * Fix connection failure to local GaussDB instance (127.0.0.1:9950) that resulted in "unexpected EOF" errors during initialization in tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ccessfully.
What did this pull request do?
Update the docker compose file to make /Tests/tests_all.sh can run successfully.