Class SybaseASEAggregateSupport

java.lang.Object
org.hibernate.dialect.aggregate.AggregateSupportImpl
org.hibernate.dialect.aggregate.SybaseASEAggregateSupport
All Implemented Interfaces:
AggregateSupport

public class SybaseASEAggregateSupport extends AggregateSupportImpl
Sybase ASE supports the xmlextract() function which is used to implement aggregate support. One notable quirk of Sybase ASE that causes a lot of ugly code is that a SQL NULL in string concatenation is treated as empty string and hence does not produce NULL. So in order to get correct results, it is necessary to wrap concatenation expressions with case expressions, that ensure NULL is produced if any of the concatenation expressions is NULL.