Skip to content

-ignore_errors flag for schema conversion as well #173

@shubham-yb

Description

@shubham-yb

Hi Team,
The current behaviour of the tool is that it errors out during schema conversion if it finds some unknown clause.
Example

Cannot determine the PostgreSQL's datatype corresponding to hierarchyid. This is a bug
 at ./sqlserver2pgsql.pl line 379, <$file> line 690.
	main::convert_type('hierarchyid', undef, 'OrganizationNode', 'Employee', undef, 'HumanResources') called at ./sqlserver2pgsql.pl line 1424
	main::add_column_to_table('HumanResources', 'Employee', 'OrganizationNode', undef, 'hierarchyid', undef, undef, 'NULL') called at ./sqlserver2pgsql.pl line 1546
	main::parse_dump() called at ./sqlserver2pgsql.pl line 3316

And then it stops here without providing anything in the output files. Is there a way to skip/ignore such statements and go ahead with converting the rest?

The -ignore_errors flag exists for the data side but a similar flag during schema conversion will be a huge help.

Thank You in advance!

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