Fix previous edit mistake
This commit is contained in:
parent
44cf647d05
commit
1c7ad18ab1
1 changed files with 1 additions and 1 deletions
|
@ -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 ", "}},
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue