We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a135718 commit 5b77261Copy full SHA for 5b77261
sql/types/enum.go
@@ -221,9 +221,6 @@ func (t EnumType) isStrictMode(ctx context.Context) bool {
221
if sqlCtx, ok := ctx.(*sql.Context); ok {
222
// Try the direct context method first
223
sysVal, err := sqlCtx.GetSessionVariable(sqlCtx, "sql_mode")
224
- if err != nil {
225
- sysVal, err = sqlCtx.GetSessionVariable(sqlCtx, "SQL_MODE")
226
- }
227
if err == nil {
228
if sqlMode, ok := sysVal.(string); ok {
229
return strings.Contains(sqlMode, "STRICT_TRANS_TABLES") || strings.Contains(sqlMode, "STRICT_ALL_TABLES")
0 commit comments