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

db._drop doesn't work correctly #50

Closed
moonglum opened this issue Apr 18, 2012 · 2 comments
Closed

db._drop doesn't work correctly #50

moonglum opened this issue Apr 18, 2012 · 2 comments
Milestone

Comments

@moonglum
Copy link

Snippet from the Unit Test:

db._drop(vertex);
db._drop(edge);

graph = new Graph(vertex, edge);

First Run: Everything is ok, second run:

[AvocadoError 1108: cannot create/rename collection because directory ready exists: cannot create collection]
@moonglum
Copy link
Author

avocsh> var Graph = require("graph").Graph;
avocsh> graph = new Graph("UnitTestsCollectionVertex", "UnitTestsCollectionEdge");
JavaScript exception in file '/graph' at 726,29: TypeError: Expecting a function in instanceof check, but got false
!  if (! vertices instanceof AvocadoCollection) {
!                            ^
stacktrace: TypeError: Expecting a function in instanceof check, but got false
    at new Graph (/graph:726:29)
    at (shell):1:9

@fceller
Copy link
Contributor

fceller commented May 28, 2012

Fixed in 1.0.alpha1

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

2 participants