On Fri, 18 Jan 2008 17:14:59 +0100, Thomas Mortagne wrote > 2008/1/16, rssh <[EMAIL PROTECTED]>: > > On Wed, 16 Jan 2008 11:49:21 +0100, Thomas Mortagne wrote > > > 2008/1/16, rssh <[EMAIL PROTECTED]>: > > > > > > - hsqldb : > > > > > > - virtual : change main wiki database name and correctly apply > > > > > > prefix (could be usefull) > > > > > > - non-virtual : updateSchipt is done in toto and retrieve/save > > > > > > document in PUBLIC (not ok) > > > > > > > > > > > > Are you running hsql in file or server mode ? > > > > (I try to reproduce error). > > > > > > XWiki's default hsql mode which is file. > > > > > > > I've found the reason of failure: setDatabase was enabled only for virtual > > xwiki-s > > Yes and just enable it in non-virtual mode will create lots of > problems because if you do that you don't have non-virtual mode > anymore :) >
Ohh - let's I try to understand the situation without vicious circle in definitions. Virtual mode - across all code we determinate, that we in virtual mode by isVirtual() (which return us parameter xwiki.virtual). setDatabase() can't change value of parameter 'xwiki.virtual', so: we can't say that we have non-virtual mode. 1. Are exists any concrete problems, which we can describe without references to 'virtual/non-virtual' models ? 2. I see, the maximum problem, what we can have -- is loading/store of scheme without previous call of setDatabase(). Are this problem really exists and where ? > > > > patch is attached (tested with hsql in non-virtual mode in addition to > > oracle > > in virtual/unvirtual). I will attach one to jira thought few seconds. > > > > P.S. also note, that exitsts hibernate property 'default_schema' which > > (when > > we change name) must not conflict with xwiki.db > > > > > > > > _______________________________________________ > > > > devs mailing list > > > > [email protected] > > > > http://lists.xwiki.org/mailman/listinfo/devs > > > > > > > > > > -- > > > Thomas Mortagne > > > _______________________________________________ > > > devs mailing list > > > [email protected] > > > http://lists.xwiki.org/mailman/listinfo/devs > > > > > > > > -- > > Ruslan Shevchenko > > GradSoft. http://www.gradsoft.ua > > > > > > _______________________________________________ > > devs mailing list > > [email protected] > > http://lists.xwiki.org/mailman/listinfo/devs > > > > > > > > -- > Thomas Mortagne > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs -- Ruslan Shevchenko GradSoft. http://www.gradsoft.ua _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

