rockdai / sql-bricks

Transparent, Schemaless SQL Generation
http://csnw.github.io/sql-bricks
MIT License
213 stars 25 forks source link

Parametric sql() doesn't work with .toString() #84

Closed Suor closed 8 years ago

Suor commented 8 years ago
node> sql.select().where(sql('field @> $', { key: 'value' })).toParams()
{ text: 'SELECT * WHERE field @> $1',
  values: [ { key: 'value' } ] }
node> sql.select().where(sql('field @> $', { key: 'value' })).toString()
'SELECT * WHERE field @> $'
prust commented 8 years ago

Fixed in #85.