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 query does not work correctly [moved] #98

Closed
lvca opened this issue Dec 10, 2012 · 0 comments
Closed

Delete query does not work correctly [moved] #98

lvca opened this issue Dec 10, 2012 · 0 comments

Comments

@lvca
Copy link
Member

lvca commented Dec 10, 2012

This is Issue 98 moved from a Google Code project.
Added by 2010-08-13T07:33:09.000Z by emailmat...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Closed (Invalid).

Original labels: Type-Defect, Priority-Medium

Original description

<b>What steps will reproduce the problem?</b>
I used the SQLDelete example (http://code.google.com/p/orient/wiki/SQLDelete), but got an exception.

<code>db.query(new OSQLSynchQuery<ODocument>(&quot;delete Address where type = 'Residence'&quot;));</code>

<b>What is the expected output? What do you see instead?</b>
That all the records with type Residence are removed from the database. But instead I see the following exception:
<code>Exception in thread &quot;main&quot; com.orientechnologies.orient.core.exception.OCommandExecutionException: Error on execution of command: OSQLQuery [text=delete Address where type = 'Residence']
-> com.orientechnologies.orient.core.exception.OQueryParsingException: Error on parsing query at position #6: Missed FROM
Query: select  Address where type = 'Residence'</code>

<b>Please use labels and text to provide additional information.</b>
SQL, DELETE, query
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant