-->
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: sql syntax error with Informix
PostPosted: Wed Dec 26, 2007 10:12 am 
Newbie

Joined: Wed Dec 26, 2007 7:55 am
Posts: 1
Hello
I'm using informix 9.4 database and I try to make a request with a where clause like this :
Code:
"lower(electeur.nomp) like concat(lower(#{electeurcapaList.electeur.nomp}),'%')"


This doesn't work with informix but works well when I use posgresql.
The generated code is the same with either informix or postgresql.

Does anyone has an idee ?
Thanks for your help !
Adrien

Hibernate version:
3.2.5


Name and version of the database you are using:
Informix 9.4

The generated SQL (show_sql=true):
Code:
    select
        first 26 electeurca0_.robid as robid0_,
        electeurca0_.version as version0_,
        electeurca0_.nome as nome0_,
        electeurca0_.nomp as nomp0_
    from
        electeurcapa electeurca0_
    where
        lower(electeurca0_.nomp) like (lower(?)||'%')
    order by
        electeurca0_.nomp asc


error
15:01:37,672 WARN [JDBCExceptionReporter] SQL Error: -201, SQLState: 42000
15:01:37,672 ERROR [JDBCExceptionReporter] A syntax error has occurred.


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.