-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: StringClob + FireBird 1.5 Problem!!!
PostPosted: Mon Oct 03, 2005 10:09 am 
Newbie

Joined: Wed May 25, 2005 8:11 am
Posts: 9
Hi Masters

Blob Text Questions... :roll:

I'm using NHibernate Version 0.99.2.0, Firebird .NET driver version: 1.7.1-RC1 and the code above:

.HBM.XML

<property name="Obs" column="Obs" type="StringClob" not-null="true" />


Code.CS
...
private string _Obs;
public string Obs
{
get{ return _Obs; }
set{ _Obs = value; }
}
...




At the Firebird DDL schema:


OBSGERAIS BLOB SUB_TYPE 1 SEGMENT SIZE 1024






I get the above Exception when I use Save on Inserting (or Updating) data:


{NHibernate.ADOException}
See the next post...






What I need to fix this exception?



Best Regards
Leandro
From Brazil!!


Last edited by lesegatti on Mon Oct 03, 2005 11:38 am, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 03, 2005 11:35 am 
Newbie

Joined: Wed May 25, 2005 8:11 am
Posts: 9
Sorry,

The correct exception is that:

2005-10-03 12:22:21,217 [3160] ERROR NHibernate.Impl.SessionImpl [(null)] &lt;(null)&gt; - could not synchronize database state with session
NHibernate.ADOException: could not update: [App.BO.PessoaFisica#691] ---> FirebirdSql.Data.Firebird.FbException:
No message for error code 335544569 found. (dynamic sql error)
No message for error code 335544436 found. (Sql Cod Error=)
No message for error code 335544378 found. (Feature Is Not Supported)
No message for error code 335544414 found. (BLOB and array data types are not
supported for <string> operation
)

at FirebirdSql.Data.Firebird.FbCommand.ExecuteNonQuery()
at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd)
at NHibernate.Persister.EntityPersister.Update(Object id, Object[] fields, Object[] oldFields, Boolean[] includeProperty, Object oldVersion, Object obj, SqlString sqlUpdateString, ISessionImplementor session)
--- Fim do rastreamento de pilha de exce


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 04, 2005 4:24 pm 
I think the problem is in your mapping

you said:

Quote:
<property name="Obs" column="Obs" type="StringClob" not-null="true" />


Reading docs from firebird dataprovider, i found:

FbDbType:
Text = Variable length character data. Maximum length is data source


Top
  
 
 Post subject:
PostPosted: Wed Oct 05, 2005 10:55 am 
Newbie

Joined: Wed May 25, 2005 8:11 am
Posts: 9
Quicoli wrote:
I think the problem is in your mapping

you said:

Quote:
<property name="Obs" column="Obs" type="StringClob" not-null="true" />


Reading docs from firebird dataprovider, i found:

FbDbType:
Text = Variable length character data. Maximum length is data source


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 06, 2005 9:12 am 
Newbie

Joined: Wed May 25, 2005 8:11 am
Posts: 9
Bingo!!!!!!


I fixed this problem changing the FirebirdSql.Data.Firebird.dll version (for back) to 1.7.0.22450 (or 1.7b3)...!!!! 8)

Other problem with FirebirdSql.Data.Firebird.dll.Net (1.7.1-RC1 ) is an arithmetic exception caused by use of Bidirectional <many-to-one> clauses.


But now, All right!!! Uffffff......... :roll:


Best Regards....
From Brazil


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.