Fix previous edit mistake

This commit is contained in:
Aaron L 2016-08-07 23:37:05 -07:00
parent 44cf647d05
commit 1c7ad18ab1

View file

@ -7,7 +7,7 @@ func {{$tableNameSingular}}Exists(exec boil.Executor, {{$pkArgs}}) (bool, error)
var exists bool
row := exec.QueryRow(
`select exists(select 1 from "{{.Table.Name}}" where {{whereClause .Table.PKey.Columns (len $pkNames)}} limit 1)`,
`select exists(select 1 from "{{.Table.Name}}" where {{whereClause .Table.PKey.Columns 1}} limit 1)`,
{{$pkNames | join ", "}},
)