Skip to content

Commit

Permalink
Fix column comment (#392)
Browse files Browse the repository at this point in the history
Support multi-line comments on columns.
  • Loading branch information
soroushj authored Mar 10, 2020
1 parent 3471669 commit 1fa689f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/dinosql/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ func (e *{{.Name}}) Scan(src interface{}) error {
{{if .Comment}}{{comment .Comment}}{{end}}
type {{.Name}} struct { {{- range .Fields}}
{{- if .Comment}}
// {{.Comment}}{{else}}
{{comment .Comment}}{{else}}
{{- end}}
{{.Name}} {{.Type}} {{if $.EmitJSONTags}}{{$.Q}}{{.Tag}}{{$.Q}}{{end}}
{{- end}}
Expand Down
2 changes: 1 addition & 1 deletion internal/dinosql/kotlin/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ enum class {{.Name}}(val value: String) {
data class {{.Name}} ( {{- range $i, $e := .Fields}}
{{- if $i }},{{end}}
{{- if .Comment}}
// {{.Comment}}{{else}}
{{comment .Comment}}{{else}}
{{- end}}
val {{.Name}}: {{.Type}}
{{- end}}
Expand Down

0 comments on commit 1fa689f

Please sign in to comment.