Skip to content

v16 #40

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

Merged
merged 2 commits into from
Feb 20, 2024
Merged

v16 #40

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "libpg-query",
"version": "13.3.0",
"version": "16.0.0",
"description": "The real PostgreSQL query parser",
"homepage": "https://github.com/launchql/libpg-query-node",
"main": "index.js",
Expand Down
4 changes: 2 additions & 2 deletions script/buildAddon.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/usr/bin/env bash

commit=1097b2c33e54a37c0d2c0f2d498c7d1cf967eae9
commit=1ec38940e5c6f09a4c1d17a46d839a881c4f2db7

rDIR=$(pwd)
tmpDir=$(mktemp -d 2>/dev/null || mktemp -d -t 'tmpdir.XXXX')
makeTarget=build

cd "$tmpDir"

git clone -b 13-latest --single-branch https://github.com/pganalyze/libpg_query.git
git clone -b 16-latest --single-branch https://github.com/pganalyze/libpg_query.git
cd libpg_query

git checkout $commit
Expand Down
8 changes: 4 additions & 4 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ describe("Queries", () => {
(it) => it.stmts[0].stmt.SelectStmt.targetList
);

expect(selectedDatas[0][0].ResTarget.val.A_Const.val.Integer.ival).to.eq(
expect(selectedDatas[0][0].ResTarget.val.A_Const.ival.ival).to.eq(
1
);
expect(selectedDatas[1][0].ResTarget.val.A_Const.val).to.have.property(
"Null"
expect(selectedDatas[1][0].ResTarget.val.A_Const.isnull).to.eq(
true
);
expect(selectedDatas[2][0].ResTarget.val.A_Const.val.String.str).to.eq(
expect(selectedDatas[2][0].ResTarget.val.A_Const.sval.sval).to.eq(
""
);
expect(selectedDatas[3]).to.have.lengthOf(2);
Expand Down
Loading