Commit 6ac18d82 authored by Matija Obreza's avatar Matija Obreza
Browse files

Stddev function for HSQL

parent 9b43f462
......@@ -18,6 +18,8 @@ package org.genesys.blocks.util;
import java.sql.Types;
import org.hibernate.dialect.HSQLDialect;
import org.hibernate.dialect.function.StandardSQLFunction;
import org.hibernate.type.DoubleType;
* Hibernate's HSQL dialect uses clob(255) when length is not specified.
......@@ -37,5 +39,7 @@ public class BetterHSQLDialect extends HSQLDialect {
registerColumnType(Types.CLOB, "clob");
registerColumnType(Types.BLOB, "blob");
registerFunction("stddev", new StandardSQLFunction("stddev_pop", DoubleType.INSTANCE));
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment