You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var q = from c in Orm.DB.Cards
from s in Orm.DB.Services
where c.Id == 1 && s.RowSerno == c.Id
select s;
Entities Cards and Services are unrelated, i.e. there is no Many-to-one or bag on either side. s.Rowserno is not a primary key of Services entity neither is part of it. c.Id is primary key.
Previously it worked without problems. After upgrade I have "undefined join type" error.
Stack trace attached: err1.txt
What does it mean "upgrade":
Previously I had .NET Core 3.1, NHibernate 5.2.5.0, database Informix, driver IBM.Data.DB2.Core 3.1.0.500
Now I have .NET 6.0, NH 5.4.1.0, same database, driver Net.IBM.Data.Db2 6.0.0.300
Similar problem is with JoinEntityAlias. I'll create separate issue as I'm not sure if this is the same problem or not.
The text was updated successfully, but these errors were encountered:
Good point, I haven't noticed that I have NHibernate.Dialect.InformixDialect . Of course it should be InformixDialect1000.
Tomorrow I'll check this. Thanks!
After changing dialect everything works as expected. It was just copied from older code and I forgot about this.
I know that original dialect implemented Informix-specific join syntax because ANSI joins were not supported (very long time ago). Possible that some changes broke that code.
I think that the issue can be closed. It is quite possible that very few people need fix in old dialect if any at all.
After simplification I have following LINQ query:
Entities Cards and Services are unrelated, i.e. there is no Many-to-one or bag on either side. s.Rowserno is not a primary key of Services entity neither is part of it. c.Id is primary key.
Previously it worked without problems. After upgrade I have "undefined join type" error.
Stack trace attached:
err1.txt
What does it mean "upgrade":
Previously I had .NET Core 3.1, NHibernate 5.2.5.0, database Informix, driver IBM.Data.DB2.Core 3.1.0.500
Now I have .NET 6.0, NH 5.4.1.0, same database, driver Net.IBM.Data.Db2 6.0.0.300
Similar problem is with JoinEntityAlias. I'll create separate issue as I'm not sure if this is the same problem or not.
The text was updated successfully, but these errors were encountered: