Skip to content

Commit 735c727

Browse files
authored
Merge pull request #40 from wale/wale/pg16
Support PostgreSQL 16
2 parents 0eefcc2 + 6740b73 commit 735c727

File tree

4 files changed

+211
-228
lines changed

4 files changed

+211
-228
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "libpg-query",
3-
"version": "13.3.0",
3+
"version": "16.0.0",
44
"description": "The real PostgreSQL query parser",
55
"homepage": "https://github.com/launchql/libpg-query-node",
66
"main": "index.js",

script/buildAddon.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/usr/bin/env bash
22

3-
commit=1097b2c33e54a37c0d2c0f2d498c7d1cf967eae9
3+
commit=1ec38940e5c6f09a4c1d17a46d839a881c4f2db7
44

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

99
cd "$tmpDir"
1010

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

1414
git checkout $commit

test/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ describe("Queries", () => {
1818
(it) => it.stmts[0].stmt.SelectStmt.targetList
1919
);
2020

21-
expect(selectedDatas[0][0].ResTarget.val.A_Const.val.Integer.ival).to.eq(
21+
expect(selectedDatas[0][0].ResTarget.val.A_Const.ival.ival).to.eq(
2222
1
2323
);
24-
expect(selectedDatas[1][0].ResTarget.val.A_Const.val).to.have.property(
25-
"Null"
24+
expect(selectedDatas[1][0].ResTarget.val.A_Const.isnull).to.eq(
25+
true
2626
);
27-
expect(selectedDatas[2][0].ResTarget.val.A_Const.val.String.str).to.eq(
27+
expect(selectedDatas[2][0].ResTarget.val.A_Const.sval.sval).to.eq(
2828
""
2929
);
3030
expect(selectedDatas[3]).to.have.lengthOf(2);

0 commit comments

Comments
 (0)