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.  [ 3 posts ] 
Author Message
 Post subject: Search is not working with Hebrew?
PostPosted: Sun Aug 27, 2006 1:17 am 
Newbie

Joined: Tue Jul 18, 2006 9:06 am
Posts: 15
Location: .NET
I have a very simple line in my project:
Code:
IList list = session.Find("from Sample as s where s.ClientName like '%" + clientName + "%'");

When I am trying to get results and clientName consist of English letters, the search is working beautiful but I get no results with Hebrew letters at all.
How can I solve the issue?
Thank you,
Igor

_________________
"A successful person is one who can lay a firm foundation with the bricks that others throw at him."
http://www.russiangeek.com


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 27, 2006 4:50 pm 
Senior
Senior

Joined: Wed Jun 15, 2005 4:17 am
Posts: 156
Check the generated SQL by enabling logging. If you use SQL Server you can use the Profiler as well. If the generated query looks good then is a database issue. Also it is considered good practice to use parameters in your query instead of building it by string concatenation.

HTH,
radu


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 28, 2006 1:26 am 
Newbie

Joined: Tue Jul 18, 2006 9:06 am
Posts: 15
Location: .NET
radu wrote:
Check the generated SQL by enabling logging. If you use SQL Server you can use the Profiler as well. If the generated query looks good then is a database issue. Also it is considered good practice to use parameters in your query instead of building it by string concatenation.

HTH,
radu

Thank you, but it was my fault (DB Collation).

_________________
"A successful person is one who can lay a firm foundation with the bricks that others throw at him."
http://www.russiangeek.com


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