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

Delete syntax #1

Open
seesharper opened this issue Nov 22, 2011 · 0 comments
Open

Delete syntax #1

seesharper opened this issue Nov 22, 2011 · 0 comments
Assignees

Comments

@seesharper
Copy link
Owner

Need to add more delete syntax tests as we are moving towards support for Oracle.

It turns out that Oracle can not handle joins as part of the delete statement unless they are wrapped in a sub query.

This means that something like:

delete from orderdetails od inner join orders o on o.Order  = od.orderid and o.order  = -1;

would need to be (re)written to something like:

delete from (SELECT  od.* FROM orderdetails od inner join orders o on o.Orderid  = od.orderid and o.orderid  = -1)

The question is should we rewrite the expression tree or should we handle this in VisitDeleteExpression ?

http://www.dbforums.com/oracle/1006077-delete-join-query.html

@ghost ghost assigned seesharper Nov 22, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant