Skip to content
New issue

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

explicit_layer regex #12

Open
sttawm opened this issue Dec 4, 2013 · 0 comments
Open

explicit_layer regex #12

sttawm opened this issue Dec 4, 2013 · 0 comments

Comments

@sttawm
Copy link

sttawm commented Dec 4, 2013

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant