Hi Fredt et al.

fredt wrote:
Thanks Sebastian,

Changes to this file had not been committed to CVS for some reason. A change
similar to what you suggest is now there. As this file is JDK 1.4 specific
due to the use of a new JDBC interface, it won't compile under 1.3.

Also, the Sourceforge listserver seems to be erratic. I received your post
less than an hour ago, although you sent it over 20 hours ago.

The current CVS head contains updates to ON DELETE CASCADE to work with
chained same-table references.


Seems to work on standard table, but still crashes on CACHED tables.


Cheers S.

 <snip>
 java.lang.NullPointerException
        at org.hsqldb.CachedRow.getUpdatedRow(CachedRow.java:254)
        at org.hsqldb.Table.checkCascadeDelete(Table.java:2083)
        at org.hsqldb.Table.delete(Table.java:2373)
        at org.hsqldb.Table.delete(Table.java:2356)
        at 
org.hsqldb.CompiledStatementExecutor.executeDeleteStatement(CompiledStatementExecutor.java:216)
        at 
org.hsqldb.CompiledStatementExecutor.executeImpl(CompiledStatementExecutor.java:131)
        at 
org.hsqldb.CompiledStatementExecutor.execute(CompiledStatementExecutor.java:88)
        at org.hsqldb.Session.sqlExecuteCompiledNoPreChecks(Session.java:890)
        at 
org.hsqldb.DatabaseCommandInterpreter.executePart(DatabaseCommandInterpreter.java:234)
        at 
org.hsqldb.DatabaseCommandInterpreter.execute(DatabaseCommandInterpreter.java:166)
        at org.hsqldb.Session.sqlExecuteDirectNoPreChecks(Session.java:859)
        at org.hsqldb.Session.execute(Session.java:789)
        at org.hsqldb.jdbcStatement.fetchResult(jdbcStatement.java:1779)
        at org.hsqldb.jdbcStatement.execute(jdbcStatement.java:727)
        at org.hsqldb.util.DatabaseManagerSwing.execute(DatabaseManagerSwing.java:673)
        at 
org.hsqldb.util.DatabaseManagerSwing.access$100(DatabaseManagerSwing.java:99)
        at 
org.hsqldb.util.DatabaseManagerSwing$2.actionPerformed(DatabaseManagerSwing.java:1179)
        .....
  </snip>

Fred

----- Original Message -----
From: "Sebastian Kloska" <[EMAIL PROTECTED]>
To: "HSQLDB Developers" <[EMAIL PROTECTED]>
Sent: 25 August 2003 12:07
Subject: [Hsqldb-developers] Build failes under SDK 1.4.X


Hi


  Tried to build a freshly fetched hsqldb-dev
  with JDK 1.4.2 but it failes with

<snip>
  Rebuilding EchoProperty.class...
  Building for target '1.4'
     (Resultant jar can only be used with Java JREs >= 1.4)
  Running CodeSwitcher...
  Rebuilding CodeSwitcher.class...
  Invoking CodeSwitcher...
  ......
  Generating source file list...
  Compiling 195 source file(s) ...
  org/hsqldb/jdbcParameterMetaData.java:99: cannot resolve symbol
  symbol  : variable colType
  location: class org.hsqldb.Result
         types          = r.colType;
                           ^
  org/hsqldb/jdbcParameterMetaData.java:101: cannot resolve symbol
  symbol  : variable nullability
  location: class org.hsqldb.Result
         nullability    = r.nullability;
                           ^
  org/hsqldb/jdbcParameterMetaData.java:102: cannot resolve symbol
  symbol  : variable isIdentity
  location: class org.hsqldb.Result
         isIdentity     = r.isIdentity;
                           ^
  org/hsqldb/jdbcParameterMetaData.java:103: cannot resolve symbol
  symbol  : variable sClassName
  location: class org.hsqldb.Result
         classNames     = r.sClassName;
                           ^
  org/hsqldb/jdbcParameterMetaData.java:104: cannot resolve symbol
  symbol  : variable paramMode
  location: class org.hsqldb.Result
         modes          = r.paramMode;
                           ^
  org/hsqldb/jdbcCallableStatement.java:248:
org.hsqldb.jdbcCallableStatement should be declared abstract; it does not
   define registerOutParameter(java.lang.String,int) in
org.hsqldb.jdbcCallableStatement
public class jdbcCallableStatement extends jdbcPreparedStatement
        ^
6 errors
</snip>

It actually seems that these variables are not a member of
org.hsqldb.Result but of the inner class ResultMetaData.
If I change 'r.' tp 'r.metaData' it works fine. Although
this kind of external access to a internal class member
seems to be ugly ....


What does JAVA 1.3 do ? Silently resolve the name r.isIdentity to r.metaData.isIdentity ? (Uuuuhh that's even more spooky..)

Cheers

S.

--
**********************************
Dr. Sebastian Kloska
Head of Bioinformatics
Scienion AG
Volmerstr. 7a
12489 Berlin
phone: +49-(30)-6392-1708
fax:   +49-(30)-6392-1701
http://www.scienion.de
**********************************



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
hsqldb-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hsqldb-developers



--
**********************************
Dr. Sebastian Kloska
Head of Bioinformatics
Scienion AG
Volmerstr. 7a
12489 Berlin
phone: +49-(30)-6392-1708
fax:   +49-(30)-6392-1701
http://www.scienion.de
**********************************



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
hsqldb-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hsqldb-developers

Reply via email to