Skip to content
Snippets Groups Projects
Commit 5a0a45c8 authored by Nicola Jordan's avatar Nicola Jordan
Browse files

hotfix for too long int substring

parent c5de21e2
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ returns integer as $$ ...@@ -6,7 +6,7 @@ returns integer as $$
declare declare
pos_int integer; pos_int integer;
begin begin
pos_int := coalesce(substring(txt, '([-]?[0-9]{1,19})')::int, 0); pos_int := coalesce(substring(txt, '([-]?[0-9]{1,10})')::int, 0);
if pos_int <= 0 then if pos_int <= 0 then
pos_int := null; pos_int := null;
end if; end if;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment