-->
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.  [ 2 posts ] 
Author Message
 Post subject: Firebird Database Synchronization Error
PostPosted: Wed Jun 22, 2005 8:46 am 
Newbie

Joined: Wed Jun 22, 2005 8:43 am
Posts: 2
I am attempting to run the Quick Start sample and I am attempting to create a user in the database. When I commit the transaction I get the following error.

Unhandled Exception: NHibernate.ADOException: could not synchronize database state with session ---> FirebirdSql.Data.Fi
rebird.FbException: Dynamic SQL Error
SQL error code = -104
Token unknown - line 1, char 40
Password

at FirebirdSql.Data.Firebird.FbCommand.Prepare()
at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand command)
at NHibernate.Impl.NonBatchingBatcher.AddToBatch(Int32 expectedRowCount)
at NHibernate.Persister.EntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, SqlString sql, Object o
bj, ISessionImplementor session)
at NHibernate.Persister.EntityPersister.Insert(Object id, Object[] fields, Object obj, ISessionImplementor session)
at NHibernate.Impl.ScheduledInsertion.Execute()
at NHibernate.Impl.SessionImpl.ExecuteAll(IList list)
at NHibernate.Impl.SessionImpl.Execute()
--- End of inner exception stack trace ---
at NHibernate.Impl.SessionImpl.Execute()
at NHibernate.Impl.SessionImpl.Flush()
at NHibernate.Transaction.AdoTransaction.Commit()
at Chap08_ORApplication.Program.SampleDB() in c:\cygwin\home\cgross\desktop\projects\oop-using-net-patterns\src\Chap0
8.ORApplication\Program.cs:line 35
at Chap08_ORApplication.Program.Main(String[] args) in c:\cygwin\home\cgross\desktop\projects\oop-using-net-patterns\
src\Chap08.ORApplication\Program.cs:line 39

I have tried to figure this error out and I am stuck. Could somebody please help me? Thanks

Christian Gross


Top
 Profile  
 
 Post subject: Figured it out
PostPosted: Wed Jun 22, 2005 9:31 am 
Newbie

Joined: Wed Jun 22, 2005 8:43 am
Posts: 2
I figured out the error. It seems in Firebird when you use a keyword in a SQL command then you will get a similar error. The problem is the field PASSWORD, which is reserved. There is a knowledge base article http://www.ibphoenix.com/main.nfs?a=ibp ... E;ID='283'

Christian


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.