(checks []parser.IColumn_constraintContext)
| 21 | } |
| 22 | |
| 23 | func hasNotNullConstraint(checks []parser.IColumn_constraintContext) bool { |
| 24 | for i := range checks { |
| 25 | constraint, ok := checks[i].(*parser.Column_constraintContext) |
| 26 | if !ok { |
| 27 | continue |
| 28 | } |
| 29 | if constraint.PRIMARY_() != nil && constraint.KEY_() != nil { |
| 30 | return true |
| 31 | } |
| 32 | if constraint.NOT_() != nil && constraint.NULL_() != nil { |
| 33 | return true |
| 34 | } |
| 35 | } |
| 36 | return false |
| 37 | } |
no test coverage detected