(comment string, buf *bytes.Buffer)
| 994 | } |
| 995 | |
| 996 | func writeComment(comment string, buf *bytes.Buffer) error { |
| 997 | if comment != "" { |
| 998 | _, _ = buf.WriteString("/* ") |
| 999 | if !isValidComment(comment) { |
| 1000 | return errors.Newf("Invalid comment: %s", comment) |
| 1001 | } |
| 1002 | _, _ = buf.WriteString(comment) |
| 1003 | _, _ = buf.WriteString(" */") |
| 1004 | } |
| 1005 | return nil |
| 1006 | } |
| 1007 | |
| 1008 | func newOrderByListClause(clauses ...OrderByClause) *listClause { |
| 1009 | ret := &listClause{ |