diff --git a/distribution/lib/Standard/Microsoft/0.0.0-dev/src/Internal/SQLServer_Dialect.enso b/distribution/lib/Standard/Microsoft/0.0.0-dev/src/Internal/SQLServer_Dialect.enso index 358d1476786e..353d40e96dd4 100644 --- a/distribution/lib/Standard/Microsoft/0.0.0-dev/src/Internal/SQLServer_Dialect.enso +++ b/distribution/lib/Standard/Microsoft/0.0.0-dev/src/Internal/SQLServer_Dialect.enso @@ -311,7 +311,7 @@ make_dialect_operations = ## PRIVATE is_null = Base_Generator.lift_unary_op "IS_NULL" arg-> - SQL_Builder.code "(CASE WHEN " ++ arg.paren ++ " IS NULL THEN 1 ELSE 0 END) = 1" + arg.paren ++ " IS NULL" ## PRIVATE agg_count_is_null = Base_Generator.lift_unary_op "COUNT_IS_NULL" arg-> @@ -325,6 +325,7 @@ agg_count_empty = Base_Generator.lift_unary_op "COUNT_EMPTY" arg-> agg_count_not_empty = Base_Generator.lift_unary_op "COUNT_NOT_EMPTY" arg-> SQL_Builder.code "SUM(CASE WHEN (" ++ arg.paren ++ " IS NOT NULL) AND (" ++ arg.paren ++ " != '') THEN 1 ELSE 0 END)" + ## PRIVATE agg_median = Base_Generator.lift_unary_op "MEDIAN" arg-> median = SQL_Builder.code "MEDIAN(" ++ arg ++ ")"