Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No exception with ExecuteReader() [DNET701] #652

Closed
firebird-automations opened this issue Sep 27, 2016 · 4 comments
Closed

No exception with ExecuteReader() [DNET701] #652

firebird-automations opened this issue Sep 27, 2016 · 4 comments

Comments

@firebird-automations
Copy link

Submitted by: fish (fishcodelib)

CREATE TABLE A (A integer)
CREATE VIEW V AS SELECT * FROM A
DROP TABLE A //with ExecuteReader() -> No exception
DROP TABLE A //with ExecuteNonQuery() -> throw the excaption: cannot delete COLUMN A.A there are 1 dependences.

If you use ExecuteNonQuery() then the exception will come up but if you use ExecuteReader() it will not come up.

Commits: fbf5789

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-automations
Copy link
Author

Commented by: @cincuranet

Isn't it weird to call DDL statement using ExecuteReader?

@firebird-automations
Copy link
Author

Commented by: fish (fishcodelib)

Sometime you may need to get a recordset without knowing the SQL command type.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: In Progress [ 3 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: vNext [ 10790 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants