Modify

Ticket #949 (new defect)

Opened 2 years ago

Oracle: not raising exceptions from DatabaseOperations.execute breaks Oracle backend

Reported by: Sam Hartsfield <samh.public@…> Owned by: andrew
Priority: major Milestone:
Component: migrations Version: mercurial
Keywords: Cc:

Description

The Oracle backend's DatabaseOperations?.alter_column depends on catching and checking exceptions thrown by DatabaseOperations?.execute, but changeset 0918d7a8e8395370529e9ace222e6f546d860d3f breaks this by printing the error and not re-raising.

Could these kinds of errors maybe be caught at a higher level, that is, print and exit only if the backend doesn't handle it? Maybe in Migrator.run_migration?

Attachments

View

Add a comment

Modify Ticket

Action
as new
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.