Fixed bug related to incorrectly error raised when setting a owner table
in the same schema as the sequece. (issue #317)
Merging fix for issue 317