I am creating a sql query through hibernate. I have a select query like;
SELECT IFNULL(DATE_FORMAT(q.create_date, '%Y-%m-%d %H:%i'), ' ') as createDate ..
but hibernate converts that query to
SELECT IFNULL(DATE_FORMAT(q.create_date, '%Y-%m-%d %H?'), ' ') as createDate
So it thinks that i need to send a parameter for question mark.
Is there any idea why this is happening ?
Thanks