English 中文(简体)
NHibernate和Sybase案
原标题:NHibernate and Sybase Case Statement null check
  • 时间:2009-10-19 15:39:19
  •  标签:

我的表格是“米凯”一栏价值无效。

I have application where NHibernate calls Sybase Stored procedure. In procedure,I have Case Statement where I check for null for a value.

Select Case myValue when null then 0 else 1 End as newValue from mytable

When I execute this procedure in database tool, I get output as 0. When I run my application, NHibernate executes this procedure and gives output of 1.

Now, when I change my Case Statement in stored procedure to Select Case when myValue is null then 0 else 1 End as newValue from mytable

Now, When I run my application, Nhibernate executes this procedure and gives output of 0. It looks like changing SQL in stored procedure does matter to NHibernate.

最佳回答

我们已经指出,它根本不是恩赫特。

我们(新人) 司机不支持“零件”、“@var !”或“@var = 无”,我们不得不使用“@var不是无效”、“......var为无效”或用SET ANSINUL OFF预先支付我们的 s”。

问题回答

暂无回答




相关问题
热门标签