Skip to content

Error: unable to generate test output: failed to format template #89

Closed
@gshilin

Description

@gshilin

When running

sqlboiler -o gmodels_old -p gmodels --no-hooks postgres

I'm getting the following error. I'm unable to find this code in any of generated files, so I have no idea where to look...

Error: unable to generate test output: failed to format template

 339 		t.Fatal(err)
 340 	}
 341 
 342 	randomize.Struct(seed, &b, catalogDescriptionDBTypes, false, catalogDescriptionColumnsWithDefault...)
 343 	randomize.Struct(seed, &c, catalogDescriptionDBTypes, false, catalogDescriptionColumnsWithDefault...)
>>>> 	a.Code3.Valid = trueb.LangID.Valid = true
 345 	c.LangID.Valid = true
 346 	b.LangID.String = a.Code3.String
 347 	c.LangID.String = a.Code3.String
 348 	if err = b.Insert(tx); err != nil {
 349 		t.Fatal(err)

: 344:37: expected '==', found '=' (and 2 more errors)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions