mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-24 19:38:24 +00:00
Fix h2 migration
Using java source code obviously requires `javac` during migration.
This commit is contained in:
@ -1,12 +1,2 @@
|
||||
DROP ALIAS IF EXISTS CAST_TO_NUMERIC;
|
||||
CREATE ALIAS CAST_TO_NUMERIC AS '
|
||||
import java.text.*;
|
||||
import java.math.*;
|
||||
@CODE
|
||||
BigDecimal castToNumeric(String s) throws Exception {
|
||||
try { return new BigDecimal(s); }
|
||||
catch (Exception e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
'
|
||||
CREATE ALIAS CAST_TO_NUMERIC FOR "docspell.store.impl.h2.CastNumericFun.castToNumeric";
|
||||
|
Reference in New Issue
Block a user