You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you try to initialize a template with a long hash, then integresql creates a database with a truncated name, but returns the database's name with the full hash
The actual created database's name is integresql_template_very_long_hash_012345679-0123456789-0123456 instead of the returned integresql_template_very_long_hash_012345679-0123456789-0123456789-0123456789-0123456789-0123456789
Posible solution 1
Get an actual database's name from Postgresql right after the database is created, store it in db.DatabaseConfig and return it in the response
Posible solution 2
Add to the integresql's configs an option "max_database_name_lenght" with a default value of 63, and truncate hashes so, that a resulting template database's name and a test's one don't exceed the specified length
If you try to initialize a template with a long hash, then integresql creates a database with a truncated name, but returns the database's name with the full hash
Example
Request:
Response:
The actual created database's name is
integresql_template_very_long_hash_012345679-0123456789-0123456
instead of the returnedintegresql_template_very_long_hash_012345679-0123456789-0123456789-0123456789-0123456789-0123456789
Posible solution 1
Get an actual database's name from Postgresql right after the database is created, store it in
db.DatabaseConfig
and return it in the responsePosible solution 2
Add to the integresql's configs an option "max_database_name_lenght" with a default value of 63, and truncate hashes so, that a resulting template database's name and a test's one don't exceed the specified length
PostgreSQL version: 17.2
IntegreSQL's docker image: latest 5401184633aa
The text was updated successfully, but these errors were encountered: