mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-09-29 16:18:22 +00:00
Correctly compare numeric field values
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
-- Create a function to cast to a numeric, if an error occurs return null
|
||||
-- Could not get it working with decimal type, so using double
|
||||
create or replace function CAST_TO_NUMERIC (s char(255))
|
||||
returns double deterministic
|
||||
return cast(s as double);
|
Reference in New Issue
Block a user