Problem with "create database"?

Tuesday, 14 February 2012 · 2 messages
IG
Isidre Guixà14 Feb 2012 10:12 #
Hello! I see the command "create database" creates a database although there is another with the same name, destroying the existing one. I think that this is not normal... I've tested using the option in the GUI and also using Java client (method create in BaseXClient.java) Thanks, Isidre
CG
Christian Grün14 Feb 2012 10:17 #
Isidre, if I got you right, you'd like to have the command aborted if the database already exists? That's indeed expected behavior. If you want to get sure that your database does not already exist, you can run "open DB" before calling the create command. Hope this helps, Christian ___________________________ 2012/2/14 Isidre Guixà <iguixa at xtec.cat>:
Quoted text · Isidre Guixà · 17 lines
> Hello! > > I see the command "create database" creates a database although there is > another with the same name, destroying the existing one. > I think that this is not normal... > > I've tested using the option in the GUI and also using Java client (method > create in BaseXClient.java) > > Thanks, > > Isidre > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

⚡Generated with XQuery