rockdai / sql-bricks

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

expandAlias() triggers subquery stringification #45

Closed Suor closed 10 years ago

Suor commented 10 years ago

This means while select().from(sql.select().from('link')).toString() works, inner query is stringified twice. Inefficient and could lead to strange behavior.

prust commented 10 years ago

Thanks for reporting this, @Suor! Unfortunately I don't have time to look into it right now; if you get to it before me, I would gladly accept a pull request (I'm assuming this is a different issue than #46?)

Suor commented 10 years ago

Yeah, that's different. Though I discovered them simultaneously.