-->
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.  [ 1 post ] 
Author Message
 Post subject: bug nhibernate decimal
PostPosted: Fri Nov 06, 2009 9:09 am 
Newbie

Joined: Tue Mar 31, 2009 5:55 am
Posts: 4
bonjour,
j'envoi via nhibernate la requete suivante :

String request = "
SELECT o.OutletId, o.Name, (SELECT DISTINCT c.Dv From CoeficientProd c WHERE c.OutletId = o.OutletId AND c.DayId=20091105),
(SELECT DISTINCT c.Dn From CoeficientProd c WHERE c.OutletId = o.OutletId AND c.DayId=20091105) From Outlet o, OutletSubChannel osc
WHERE o.OutletId=osc.OutletId AND osc.SubChannelId IN (9,236,5,233,6,234,2,1,10,8,237,7,4,238,239,0,235,3,11)
ORDER BY o.OutletId
"


IQuery q = m_session.CreateSQLQuery(request);
result = q.SetTimeout(3600).List();



Dans ma table, j'ai des lignes comme ceci:
outletId Name dv dn
11305 supermagasin 12.154 168.145

les dv et dn sont de type decimal(18,3)

En sql, la requete retourne les bonnes valeures 12,154 et 168,145.

Par contre, en nhibernate, ça me renvoit : 12.154 et 12.154.
c'est à dire 2 fois la meme valeur.

La version de nhibernate.dll est 2.1.0.4000.

Quelqu'un a t'il une idée ?


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

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.