-
Notifications
You must be signed in to change notification settings - Fork 934
NH-3426 - Wrong result when converting Guid to string #1151
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
Comments
Hi, I found how to fix this bug, We need change query to: select entity0_.Id as col_0_0_ from Entity entity0_ I'm thinking to create a new function "strguid": RegisterFunction("strguid", new SQLFunctionTemplate(NHibernateUtil.String, "?1")); What do you think? Is it a good solution? |
I do not currently understand what is exactly the trouble, so even less what could be a good solution. |
Fixes #1151 Co-authored-by: Alexander Zaytsev <[email protected]>
Actually, this SQL:
worked fine assuming that BinaryGuid=False was given in the connection string. The new SQL from NH 5.2:
while keeping BinaryGuid=False in the connection string, the new SQL generates something miserable: |
Oskar Berggren created an issue — 18th March 2013, 9:06:30:
The text was updated successfully, but these errors were encountered: