~rbn/rom

c19ccfd10eab36fba5538912e9b7255a1e62ca35 — Ruben Schuller 1 year, 7 months ago 81c293b v0.0.14
fix broken INSERT code generation
1 files changed, 1 insertions(+), 1 deletions(-)

M output/templates/insert.tmpl
M output/templates/insert.tmpl => output/templates/insert.tmpl +1 -1
@@ 16,7 16,7 @@ along with this program.  If not, see <https://www.gnu.org/licenses/>.
*/ -}}
const (
	// SQL to insert a row in {{.QualifiedName}}
	sqlInsert{{ .GoName }} = "INSERT INTO {{ .QualifiedName }} ({{ range $i, $c := .Columns }}{{ if $i }}, {{ end }}{{ $c.QualifiedName }}{{ end }}) VALUES ({{ range $i, $c := .Columns }}{{ if $i }}, {{end}}?{{end}});"
	sqlInsert{{ .GoName }} = "INSERT INTO {{ .QualifiedName }} ({{ range $i, $c := .Columns }}{{ if $i }}, {{ end }}{{ $c.Name }}{{ end }}) VALUES ({{ range $i, $c := .Columns }}{{ if $i }}, {{end}}?{{end}});"

	)