(n *pcast.ColumnDef)
| 29 | } |
| 30 | |
| 31 | func isNotNull(n *pcast.ColumnDef) bool { |
| 32 | for i := range n.Options { |
| 33 | if n.Options[i].Tp == pcast.ColumnOptionNotNull { |
| 34 | return true |
| 35 | } |
| 36 | if n.Options[i].Tp == pcast.ColumnOptionPrimaryKey { |
| 37 | return true |
| 38 | } |
| 39 | } |
| 40 | return false |
| 41 | } |
| 42 | |
| 43 | func convertToRangeVarList(list *ast.List, result *ast.List) { |
| 44 | if len(list.Items) == 0 { |