Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NamedQuery ignores <query-param type="AnsiString"> and any other #3311

Closed
deryaza opened this issue Jun 9, 2023 · 1 comment · Fixed by #3404
Closed

NamedQuery ignores <query-param type="AnsiString"> and any other #3311

deryaza opened this issue Jun 9, 2023 · 1 comment · Fixed by #3404

Comments

@deryaza
Copy link

deryaza commented Jun 9, 2023

If you write a named query with a parameter like:

<sql-query name="x">
<query-param name="queryString" type="AnsiString" />
select * from something s where s.some_string_field = :queryString
</sql-query>

It will guess a type at this location and ignore parameter description written in .hbm.xml file.

@deryaza deryaza changed the title NamedQuery igonres <query-param type="AnsiString"> NamedQuery igonres <query-param type="AnsiString"> and any other Jun 9, 2023
@bahusoid
Copy link
Member

Yeah query-param elements seems completely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants