Skip to content

Commit

Permalink
Update to pg_query_go v2.0.4 (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
lfittl authored Jun 30, 2021
1 parent 2595f8a commit 805036a
Show file tree
Hide file tree
Showing 32 changed files with 3,219 additions and 2,494 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ require (
github.com/lib/pq v1.3.0
github.com/ogier/pflag v0.0.0-20160129220114-45c278ab3607
github.com/papertrail/go-tail v0.0.0-20180509224916-973c153b0431
github.com/pganalyze/pg_query_go/v2 v2.0.2
github.com/pganalyze/pg_query_go/v2 v2.0.4
github.com/pkg/errors v0.9.1
github.com/satori/go.uuid v0.0.0-20160713180306-0aa62d5ddceb
github.com/shirou/gopsutil v0.0.0-20170222144203-d371ba1293cb
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ github.com/ogier/pflag v0.0.0-20160129220114-45c278ab3607/go.mod h1:zkFki7tvTa0t
github.com/openzipkin/zipkin-go v0.1.1/go.mod h1:NtoC/o8u3JlF1lSlyPNswIbeQH9bJTmOf0Erfk+hxe8=
github.com/papertrail/go-tail v0.0.0-20180509224916-973c153b0431 h1:i1egM7gz4bPxLCIwBJOkpk6TqHpjTnL4dE1xdN/4dcs=
github.com/papertrail/go-tail v0.0.0-20180509224916-973c153b0431/go.mod h1:dMID0RaS2a5rhpOjC4RsAKitU6WGgkFBZnPVffL69b8=
github.com/pganalyze/pg_query_go/v2 v2.0.2 h1:mDtHaD9YEqADrW17tYcE5blGAWbqqKSPDdnYxQw6XSc=
github.com/pganalyze/pg_query_go/v2 v2.0.2/go.mod h1:XAxmVqz1tEGqizcQ3YSdN90vCOHBWjJi8URL1er5+cA=
github.com/pganalyze/pg_query_go/v2 v2.0.4 h1:mXYjegcYvKI1vOz+CGNb+E/Tjphi2SKzcNHNCHgDyKw=
github.com/pganalyze/pg_query_go/v2 v2.0.4/go.mod h1:XAxmVqz1tEGqizcQ3YSdN90vCOHBWjJi8URL1er5+cA=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
Expand Down
2 changes: 1 addition & 1 deletion integration_test/pg13.expected
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"INSERT INTO pgbench_history (tid, bid, aid, delta, mtime) VALUES ($1, $2, $3, $4, CURRENT_TIMESTAMP)"
"SELECT abalance FROM pgbench_accounts WHERE aid = $1"
"select count(*) from pgbench_branches"
"select o.n, p.partstrat, pg_catalog.count(i.inhparent) from pg_catalog.pg_class as c join pg_catalog.pg_namespace as n on (n.oid = c.relnamespace) cross join lateral (select pg_catalog.array_position(pg_catalog.current_schemas($1), n.nspname)) as o(n) left join pg_catalog.pg_partitioned_table as p on (p.partrelid = c.oid) left join pg_catalog.pg_inherits as i on (c.oid = i.inhparent) where c.relname = $2 and o.n is not null group by $4, $5 order by $6 asc limit $3"
"select o.n, p.partstrat, pg_catalog.count(i.inhparent) from pg_catalog.pg_class as c join pg_catalog.pg_namespace as n on (n.oid = c.relnamespace) cross join lateral (select pg_catalog.array_position(pg_catalog.current_schemas($1), n.nspname)) as o(n) left join pg_catalog.pg_partitioned_table as p on (p.partrelid = c.oid) left join pg_catalog.pg_inherits as i on (c.oid = i.inhparent) where c.relname = $2 and o.n is not null group by 1, 2 order by 1 asc limit $3"
"UPDATE pgbench_accounts SET abalance = abalance + $1 WHERE aid = $2"
"UPDATE pgbench_branches SET bbalance = bbalance + $1 WHERE bid = $2"
"UPDATE pgbench_tellers SET tbalance = tbalance + $1 WHERE tid = $2"
Expand Down
17 changes: 17 additions & 0 deletions vendor/github.com/pganalyze/pg_query_go/v2/CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/pganalyze/pg_query_go/v2/Makefile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions vendor/github.com/pganalyze/pg_query_go/v2/parser/include/c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 805036a

Please sign in to comment.