Hi,

I don´t speak english very well.
Somebody help me?

I try connect in h2 database using parameters RECOVER=1 in url,but i
gain the error bellow. Someone could help me solve this error?

Exception in thread "main" org.h2.jdbc.JdbcSQLException: Unique index
or primary key violation: PRIMARY_KEY_0  ON ST.VERTICE(ID_FATOR_RISCO,
DATA) [23001-46]
        at org.h2.message.Message.getSQLException(Message.java:65)
        at org.h2.message.Message.getSQLException(Message.java:47)
        at org.h2.index.Index.getDuplicateKeyException(Index.java:61)
        at org.h2.index.BtreeLeaf.add(BtreeLeaf.java:61)
        at org.h2.index.BtreeNode.add(BtreeNode.java:94)
        at org.h2.index.BtreeIndex.add(BtreeIndex.java:150)
        at org.h2.table.TableData.addRowsToIndex(TableData.java:228)
        at org.h2.table.TableData.addIndex(TableData.java:171)
        at org.h2.command.ddl.CreateIndex.update(CreateIndex.java:91)
        at org.h2.engine.MetaRecord.execute(MetaRecord.java:66)
        at org.h2.engine.Database.open(Database.java:510)
        at org.h2.engine.Database.<init>(Database.java:378)
        at org.h2.engine.Engine.openSession(Engine.java:49)
        at org.h2.engine.Engine.getSession(Engine.java:92)
        at org.h2.engine.Session.createSession(Session.java:140)
        at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:923)
        at org.h2.Driver.connect(Driver.java:52)
        at java.sql.DriverManager.getConnection(DriverManager.java:525)
        at java.sql.DriverManager.getConnection(DriverManager.java:171)
        at TesteExec.main(TesteExec.java:37)

I can´t recovery my database because this error. My recovery never
finished.

Thanks a lot!!

--~--~---------~--~----~------------~-------~--~----~
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