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

Array indirection problem fixed. #162

Merged
merged 3 commits into from
Dec 27, 2020

Conversation

emin100
Copy link
Contributor

@emin100 emin100 commented Feb 25, 2020

SQL: SELECT "proname", (SELECT regexp_split_to_array( "proargtypes"::text, ' ') )[ "idx"] AS argtype, "proargnames "[ "idx"] AS argname FROM "pg_proc"

Expected: SELECT "proname", (SELECT regexp_split_to_array( "proargtypes"::text, ' ') )[ "idx"] AS argtype, "proargnames "[ "idx"] AS argname FROM "pg_proc"

Got: SELECT "proname", (SELECT regexp_split_to_array( "proargtypes"::text, ' ') ).[ "idx"] AS argtype, "proargnames "[ "idx"] AS argname FROM "pg_proc"

SQL: SELECT  "proname", (SELECT regexp_split_to_array( "proargtypes"::text, ' ') )[ "idx"] AS argtype,  "proargnames "[ "idx"] AS argname FROM  "pg_proc"

Expected: SELECT  "proname", (SELECT regexp_split_to_array( "proargtypes"::text, ' ') )[ "idx"] AS argtype,  "proargnames "[ "idx"] AS argname FROM  "pg_proc"

Got: SELECT  "proname", (SELECT regexp_split_to_array( "proargtypes"::text, ' ') ).[ "idx"] AS argtype,  "proargnames "[ "idx"] AS argname FROM  "pg_proc"
…est" k

Expected: SELECT ("k" #= hstore(\'{id}\'::text[], ARRAY[1::text])).* FROM "test" k

Got: SELECT "k" #= hstore(\'{id}\'::text[], ARRAY[1::text])* FROM "test" k
@lfittl lfittl merged commit 5d49e21 into pganalyze:master Dec 27, 2020
@emin100 emin100 deleted the array_sublink_problem branch December 28, 2020 06:09
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

Successfully merging this pull request may close these issues.

2 participants