In a previous post I mentionned a couple of problems found
when I tried to switch to MySQL. The workaround was to
restart from a fresh new distrib. It seems that it not
possible to change the database once hsqldb has been set up.

1) A kind of target 'cleandb' should be present in the
   build.xml. There is a 'clean' but it looks very violent
   and is not documented.

2) Running prepare-testdb for MySQL produces a buggy
   create-db.sql :
        drop database if exists @DATABASE_DEFAULT@;
        create database @DATABASE_DEFAULT@;

   The token DATABASE_DEFAULT was not replaced but actually
   it was a chance : I can imagine that a test procedure
   drops temp tables but not a whole database ! I'm a bit
   scarred.

3) Junit fails for junit-no-compile-no-prepare :
    [junit] Running org.apache.ojb.broker.AllTests
    [junit] Tests run: 174, Failures: 24, Errors: 117, Time elapsed: 34.811 sec
    [junit] Exception in thread "main" java.lang.OutOfMemoryError

    The build never returns after the exception is thrown. Using option
    -v or -d does not output more information.
    Anyway I wonder if it makes sense to implement a complex junit procedure
    since elementary tasks fail : the tutorial, the database setup, ...

4) Nevertheless, these difficulties did not prevent the tutorial.sh
   from running correctly on MySQL.

-- 
______________________________________________

Jean-Paul Le F�vre - [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to