If SELECT_JSON returns more than one row of NULL values, SELECT_JSON should return an error.
This commit is contained in:
parent
a1d7684fc1
commit
159cd95599
3 changed files with 16 additions and 8 deletions
|
|
@ -80,7 +80,7 @@ func GenerateDB(db *sql.DB, schema, destDir string, templates ...template.Templa
|
|||
|
||||
err = template.ProcessSchema(destDir, schemaMetadata, generatorTemplate)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to generate schema %s: %d", schemaMetadata.Name, err)
|
||||
return fmt.Errorf("failed to generate schema %s: %w", schemaMetadata.Name, err)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue