Menu

#193 Non-zero error code when querying multiple schemas

N/A
open
nobody
None
5
2016-12-12
2016-11-26
No

When inspecting multiple schemas (i.e. using the '-all' or '-schemas "schema1,schema2"' option), SchemaSpy's main program entry point will always return a non-zero error code of 1 even if the process succeeds.

This is due to a limitation of the SchemaAnalyzer.analyze return type.

I've attached a patch will fixes this issue while still ensuring that an error code of 1 will occur as originally intended.

1 Attachments

Discussion

  • Bijan Vakili

    Bijan Vakili - 2016-11-26

    I've successfully tested this on OS-X against a PostgreSQL v9.5 database with 7 schemas.

     
  • Bijan Vakili

    Bijan Vakili - 2016-12-03

    Corrected patch is schemaspy_bug193_patch.diff

     
  • Rafal Kasa

    Rafal Kasa - 2016-12-12

    Hi Bijan Vakili

    Please verify version https://github.com/schemaspy/schemaspy/releases,
    Could you create Pull Request on this new SchemaSpy version http://schemaspy.org/

    Best Regards
    Rafal

     

Log in to post a comment.