-->
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: Positional Parameter with wrong formatting
PostPosted: Thu Dec 09, 2010 12:56 pm 
Newbie

Joined: Thu Dec 09, 2010 12:49 pm
Posts: 1
Hello,

I have a type where I mapped a DateTime using Ticks custom type. Most of the type the sql has the correct formatting as integer but on some queries I get the following:
Code:
NHibernate.ADOException: could not execute query
Positional parameters:  #0>06.12.2010 15:41:00 #1>06.12.2010 15:40:00


There the DateTimes are formatted using the ordinary ToString Method. Are there cases where Criteria Queries, or Linq Queries do not respect the custom type "Ticks"?

I am using NHibernate 2.1.2.4000 with NHibernate.Linq 1.1.0.1001 and Fluent.NHibernate 1.1.0.685

Thank you very much,
Tobias


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.