pgsql-ast-parser
Advanced tools
Comparing version 7.0.1 to 7.0.2
{ | ||
"name": "pgsql-ast-parser", | ||
"version": "7.0.1", | ||
"version": "7.0.2", | ||
"description": "Yet another simple Postgres SQL parser/modifier", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -932,4 +932,3 @@ import * as a from './syntax/ast'; | ||
const on = join.on && this.expr(join.on); | ||
const using = join.using && arrayNilMap(join.using, u => this.expr(u)); | ||
if (!on && !using) { | ||
if (!on && !join.using) { | ||
return null; | ||
@@ -939,3 +938,2 @@ } | ||
on, | ||
using, | ||
}); | ||
@@ -942,0 +940,0 @@ } |
@@ -594,3 +594,3 @@ // import { IType } from '../../interfaces'; | ||
on?: Expr | nil; | ||
using?: Expr[] | nil; | ||
using?: Name[] | nil; | ||
} | ||
@@ -597,0 +597,0 @@ |
@@ -329,3 +329,3 @@ import 'mocha'; | ||
type: 'LEFT JOIN', | ||
using: [ref('studentId')], | ||
using: [{ name: 'studentId' }], | ||
} | ||
@@ -332,0 +332,0 @@ } |
@@ -212,3 +212,3 @@ import { IAstPartialMapper, AstDefaultMapper } from './ast-mapper'; | ||
ret.push('USING ('); | ||
list(j.using, x => m.expr(x), false); | ||
list(j.using, x => ret.push(name(x)), false); | ||
ret.push(') '); | ||
@@ -215,0 +215,0 @@ } |
@@ -435,3 +435,3 @@ import { nil } from '../utils'; | ||
on?: Expr | nil; | ||
using?: Expr[] | nil; | ||
using?: Name[] | nil; | ||
} | ||
@@ -438,0 +438,0 @@ export declare type JoinType = 'INNER JOIN' | 'LEFT JOIN' | 'RIGHT JOIN' | 'FULL JOIN'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1384380
15156