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

DBExists throws an exception on non-existing DB #47

Open
raymondjplante opened this issue Jan 25, 2015 · 0 comments
Open

DBExists throws an exception on non-existing DB #47

raymondjplante opened this issue Jan 25, 2015 · 0 comments

Comments

@raymondjplante
Copy link

Facts

  • Running orientdb community 2.0
  • php 5.4
  • Composer installed orientdb-php/orientdb-php (dev-master) on 1/25/2015
  • Have one DB, GratefulDeadConcerts loaded on server

This works fine when the db being checked exists:

$db_name = "GratefulDeadConcerts";
$db = new OrientDB('localhost');
try {
   $db->connect('root', '<rootpassword>');
}catch (OrientDBException $e) {
    die('Failed to connect(): ' . $e->getMessage());
}
try {
    $exists = $db->DBExists($db_name);
} catch (OrientDBException $e) {
    die('Failed to execute DBExists(): ' . $e->getMessage());
}

 var_dump($exists);  // shows bool(true)

However, if I change $db_name to something non-existing, I get the following exception:

 Failed to execute DBExists(): java.lang.IllegalArgumentException: Cannot create database: storage mode 'local' is not supported.

Not sure if the issue is within the orientdb community server or your SDK .

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