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: Bug NHibernate and BD Access (Jet problem)
PostPosted: Sat Dec 16, 2006 12:53 am 
Newbie

Joined: Wed Dec 13, 2006 7:12 pm
Posts: 1
Bug NHibernate and BD Access (Jet problem)

Hibernate version: NHibernate 1.0.3

When you use the field name 'Password' in a phisical table!

    this is an example, here you have a SQL sentence
    could not insert: [NH01.User#ID_13/12/2006 18:00:40]
    [SQL: INSERT INTO TB_Usuarios (Nombre, Password, EmailAddress,
    LastLogon, UsuariosId) VALUES (?, ?, ?, ?, ?)]

    Change de name of the flied Password and
    the problem will be solved.-

    the problem is in the class JetDbCommand in the method ExecuteNonQuery
[/b]


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 16, 2006 7:25 am 
Expert
Expert

Joined: Tue Aug 23, 2005 5:52 am
Posts: 335
This is a mapping issue, not a bug. In your mapping file surround your field name in back ticks (`) and it will be escaped in the resulting SQL. You can find more details in the documentation.

Symon.


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.