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
The changes in #232 only assume the naming strategy to be an instance of schema.NamingStrategy, a reference to a schema.NamingStrategy or nil. Therefore it does not encounter any matching case in the switch statement leaving the variable namingStartegy initialized to nil and trying to access the IdentifierMaxLength property on it causes a panic.
The text was updated successfully, but these errors were encountered:
Description
Providing a custom naming strategy when opening a new GORM connection encounters a panic.
Example naming strategy:
Example using it to open a new GORM connection:
The changes in #232 only assume the naming strategy to be an instance of
schema.NamingStrategy
, a reference to aschema.NamingStrategy
ornil
. Therefore it does not encounter any matching case in theswitch
statement leaving the variablenamingStartegy
initialized tonil
and trying to access theIdentifierMaxLength
property on it causes a panic.The text was updated successfully, but these errors were encountered: