Hi Tariq,
1) getClob and getCharacterStream aren't implemented; use
getBinaryStream instead.
2) Even if you set autocommit=false, the data will be committed when you
close the connection.
Thom
Tariq Hasnain wrote:
>
> Hello there,
>
> here is brief discription of my problems........
>
> 1. actually i have created a table with details here.....
>
> CREATE TABLE PERSONAL (
> name varchar2(50) PRIMARY KEY,
> age short,
> xmlData longvarbinary
> );
>
> in xmldata column i like to store an xml document.....document is getting
> stored in database, but when i try to retrieve the document using
>
> Clob clob = rst.getClob(3);
> Reader reader = clob.getCharacterStream();
>
> or
>
> Reader reader = rst.getCharacterStream(3);
>
> i get an exception ---> Exception in thread "main" java.sql.SQLException:
> Method not implemented
> at
> org.enhydra.instantdb.jdbc.idbResultsSet.getClob(idbResultsSet.java:9
> 98)
> at IdbConnection.main(IdbConnection.java:29)
>
> altough if i write an sql file(tempsql.txt) and try to retrieve the same
> document, things go well......
>
> i have written this in tempsql.txt
>
> q SELECT name,age,xmlData FROM PERSONAL;
>
> java org.enhydra.instantdb.ScriptTool tempsql.txt
>
> it shows me complete document on dos prompt
>
> please suggest something.
>
> 2. when i opened a database connection and execute a statement with autoCommit
> set to false, database still commits the changes......
> i have used the same properties file sample.prp.
>
> please help........
>
> Tariq
>
> ____________________________________________________________________
> Get free email and a permanent address at http://www.netaddress.com/?N=1
> -----------------------------------------------------------------------------
> To unsubscribe from this mailing list, send email to majordomo@enhydra.org
> with the text "unsubscribe instantdb" in the body of the email.
> If you have other questions regarding this mailing list, send email to
> the list admin at owner-instantdb@enhydra.org.
-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.
|