Hsqldb no escribe ni guarda datos en el disco

I'm using hsqldb-2.2.5. I've tried adding shutdown=true y write_delay=false to connection string. No success.

La cadena de conexión es 'jdbc:hsqldb:file:c:\\temp\\rvec;shutdown=true', 'sa', ''

Code executed:

DriverManager.registerDriver @rawDataFactory.getDriver
@con = DriverManager.getConnection dburl, user, pwd
@con.setAutoCommit false

statement = @con.prepareStatement "INSERT INTO NODES(NAME, DESCR, DATA_HOLDER, SUBSYSTEMS) values(?, ?, ?, ?)"
statement.setString 1, ntf.name.to_s
statement.setString 2, ntf.descr
statement.setBytes 3, write_dump(ntf.data_holder)
statement.setString 4, write_array(ntf.subsystems)
statement.execute
statement.close

No data appear in log file or other database files on disk. How to make it happen?

preguntado el 08 de noviembre de 11 a las 13:11

1 Respuestas

Me pregunto si @con.setAutoCommit false maybe you need a commit call.

Another idea: try sending a SHUTDOWN command to the DBMS.

respondido 08 nov., 11:19

Yes, without commit no data is written at all. - Fredt

after SHUTDOWN, can i start again DB if yes how?? - Ankur Loriya

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.