Skip to content

NH-3094: Support unary minus and plus operators in LINQ #563

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

Merged
merged 1 commit into from
Mar 15, 2017

Conversation

PleasantD
Copy link
Contributor

Fixes NH-3094

@PleasantD PleasantD changed the title NH-3049: Support unary minus and plus operators in LINQ NH-3094: Support unary minus and plus operators in LINQ Mar 3, 2017
@hazzik hazzik self-requested a review March 3, 2017 23:10
@fredericDelaporte
Copy link
Member

The UnaryPlus test failed with Firebird, relevant error message seems to me:

  Name:p1 - Value:2  Name:p2 - Value:9
[SQL: select cast(count(*) as INTEGER) as col_0_0_ from TimesheetEntries timesheete0_ where timesheete0_.NumberOfHours+@p0=@p1]
  ----> FirebirdSql.Data.FirebirdClient.FbException : Dynamic SQL Error
SQL error code = -804
Data type unknown

@PleasantD
Copy link
Contributor Author

I removed the unneeded Add expression from the UnaryPlus test. Firebird should run fine now.

@hazzik
Copy link
Member

hazzik commented Mar 6, 2017

👍

@hazzik hazzik merged commit 607657c into nhibernate:master Mar 15, 2017
@hazzik hazzik modified the milestone: 5.0.0 Mar 24, 2017
@hazzik hazzik added the r: Fixed label Aug 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants