File tree Expand file tree Collapse file tree 4 files changed +211
-228
lines changed Expand file tree Collapse file tree 4 files changed +211
-228
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " libpg-query" ,
3
- "version" : " 13.3 .0" ,
3
+ "version" : " 16.0 .0" ,
4
4
"description" : " The real PostgreSQL query parser" ,
5
5
"homepage" : " https://github.com/launchql/libpg-query-node" ,
6
6
"main" : " index.js" ,
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- commit=1097b2c33e54a37c0d2c0f2d498c7d1cf967eae9
3
+ commit=1ec38940e5c6f09a4c1d17a46d839a881c4f2db7
4
4
5
5
rDIR=$( pwd)
6
6
tmpDir=$( mktemp -d 2> /dev/null || mktemp -d -t ' tmpdir.XXXX' )
7
7
makeTarget=build
8
8
9
9
cd " $tmpDir "
10
10
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
12
12
cd libpg_query
13
13
14
14
git checkout $commit
Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ describe("Queries", () => {
18
18
( it ) => it . stmts [ 0 ] . stmt . SelectStmt . targetList
19
19
) ;
20
20
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 (
22
22
1
23
23
) ;
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
26
26
) ;
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 (
28
28
""
29
29
) ;
30
30
expect ( selectedDatas [ 3 ] ) . to . have . lengthOf ( 2 ) ;
You can’t perform that action at this time.
0 commit comments