Skip to content

Commit

Permalink
Fixed small typos in query template
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Wihl committed Jan 12, 2024
1 parent 18b9061 commit 6120ed1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source-mysql-batch/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const tableQueryTemplateTemplate = `{{/*****************************************
***********************************************************/ -}}
{{if .CursorFields -}}
{{- if .IsFirstQuery -}}
SELECT * FROM %[1]s;
SELECT * FROM %[1]s
{{- else -}}
SELECT * FROM %[1]s
{{- range $i, $k := $.CursorFields -}}
Expand All @@ -137,7 +137,7 @@ const tableQueryTemplateTemplate = `{{/*****************************************
{{- end -}}
)
{{- end -}}
ORDER BY {{range $i, $k := $.CursorFields}}{{if gt $i 0}}, {{end}}{{$k}}{{end -}};
ORDER BY {{range $i, $k := $.CursorFields}}{{if gt $i 0}}, {{end}}{{$k}}{{end -}};
{{- else -}}
SELECT * FROM %[1]s;
{{- end}}`
Expand Down

0 comments on commit 6120ed1

Please sign in to comment.