pgsql-ast-parser
Advanced tools
Comparing version 9.1.1 to 9.1.2
{ | ||
"name": "pgsql-ast-parser", | ||
"version": "9.1.1", | ||
"version": "9.1.2", | ||
"description": "Yet another simple Postgres SQL parser/modifier", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -580,5 +580,3 @@ import * as a from './syntax/ast'; | ||
set(st: a.SetStatement): a.SetStatement | nil { | ||
const value = st.value === 'default' | ||
? st.value | ||
: this.expr(st.value); | ||
const value = this.expr(st.value); | ||
if (!value) { | ||
@@ -585,0 +583,0 @@ return null; |
@@ -593,3 +593,3 @@ // import { IType } from '../../interfaces'; | ||
column: Name; | ||
value: Expr | 'default'; | ||
value: Expr; | ||
} | ||
@@ -596,0 +596,0 @@ |
@@ -1300,7 +1300,3 @@ import { IAstPartialMapper, AstDefaultMapper } from './ast-mapper'; | ||
ret.push(name(s.column), ' = '); | ||
if (s.value === 'default') { | ||
ret.push('default'); | ||
} else { | ||
m.expr(s.value); | ||
} | ||
m.expr(s.value); | ||
ret.push(' '); | ||
@@ -1307,0 +1303,0 @@ }, |
@@ -429,3 +429,3 @@ import { nil } from '../utils'; | ||
column: Name; | ||
value: Expr | 'default'; | ||
value: Expr; | ||
} | ||
@@ -432,0 +432,0 @@ export interface SelectedColumn extends PGNode { |
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
1485995
16394