Hi,

I just checked in a fix for that. Thomas will release a new version
soon. Please check if it is fixed for you, too.

Regards

Christian

On Mar 4, 7:03 am, kensystem <[email protected]> wrote:
> Using h2-1.2.130,
>
> CREATE TABLE IF NOT EXISTS test (rowid INTEGER PRIMARY KEY
> AUTO_INCREMENT,txt VARCHAR(64000));
> (load data)
> DELETE FROM test;
>
> throws:
> org.h2.jdbc.JdbcSQLException: General error:
> "java.lang.IndexOutOfBoundsException"; SQL statement:
> DELETE FROM test [50000-130]
>     at org.h2.message.DbException.getJdbcSQLException(DbException.java:
> 317)
>     at org.h2.message.DbException.get(DbException.java:157)
>     at org.h2.message.DbException.convert(DbException.java:285)
>     at org.h2.command.Command.executeUpdate(Command.java:218)
>     at org.h2.server.TcpServerThread.process(TcpServerThread.java:294)
>     at org.h2.server.TcpServerThread.run(TcpServerThread.java:131)
>     at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.IndexOutOfBoundsException
>     at java.io.RandomAccessFile.writeBytes(Native Method)
>     at java.io.RandomAccessFile.write(RandomAccessFile.java:466)
>     at org.h2.store.FileStore.write(FileStore.java:333)
>     at org.h2.result.RowList.flushBuffer(RowList.java:122)
>     at org.h2.result.RowList.writeAllRows(RowList.java:100)
>     at org.h2.result.RowList.add(RowList.java:134)
>     at org.h2.command.dml.Delete.update(Delete.java:63)
>     at org.h2.command.CommandContainer.update(CommandContainer.java:
> 70)
>     at org.h2.command.Command.executeUpdate(Command.java:198)
>     ... 3 more

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to