We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seems like the number regex for explicit_layer should be converted from:
1: E'^-?[[:digit:]]+(\.[[:digit:]]+)?$'
E'^-?[[:digit:]]+(\.[[:digit:]]+)?$'
to
2: E'^-?[[:digit:]]+(\\.[[:digit:]]+)?$'.
E'^-?[[:digit:]]+(\\.[[:digit:]]+)?$'
(unless the views are somehow executed in a context that does not require escaped backslashes?)
To test:
``select (CASE WHEN f ~ E'^-?[[:digit:]]+(.[[:digit:]]+)?$' THEN CAST (f AS FLOAT) else 0 END) as ff from (select '1;3'::text as f) as foo`
and
select (CASE WHEN f ~ E'^-?[[:digit:]]+(\\.[[:digit:]]+)?$' THEN CAST (f AS FLOAT) else 0 END) as ff from (select '1;3'::text as f) as foo;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Seems like the number regex for explicit_layer should be converted from:
1:
E'^-?[[:digit:]]+(\.[[:digit:]]+)?$'
to
2:
E'^-?[[:digit:]]+(\\.[[:digit:]]+)?$'
.(unless the views are somehow executed in a context that does not require escaped backslashes?)
To test:
``select (CASE WHEN f ~ E'^-?[[:digit:]]+(.[[:digit:]]+)?$' THEN CAST (f AS FLOAT) else 0 END) as ff from (select '1;3'::text as f) as foo`
and
select (CASE WHEN f ~ E'^-?[[:digit:]]+(\\.[[:digit:]]+)?$' THEN CAST (f AS FLOAT) else 0 END) as ff from (select '1;3'::text as f) as foo;
The text was updated successfully, but these errors were encountered: