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
Copy file name to clipboardExpand all lines: sql/errors.go
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -147,6 +147,9 @@ var (
147
147
// ErrInvalidColumnDefaultValue is returned when column default function value is not wrapped in parentheses for column types excluding datetime and timestamp
148
148
ErrInvalidColumnDefaultValue=errors.NewKind("Invalid default value for '%s'")
149
149
150
+
// ErrColumnDefaultUserVariable is returned when a column default expression contains user or system variables
151
+
ErrColumnDefaultUserVariable=errors.NewKind("Default value expression of column '%s' cannot refer user or system variables.")
152
+
150
153
// ErrInvalidDefaultValueOrder is returned when a default value references a column that comes after it and contains a default expression.
151
154
ErrInvalidDefaultValueOrder=errors.NewKind(`default value of column "%s" cannot refer to a column defined after it if those columns have an expression default value`)
0 commit comments