sequelize/sequelize — pull request #536 by ricardograca (2013-04-11 16:18:11+00:00)
Title: Can't run raw UPDATE query with RETURNING statement  on postgresql

When running this:

`UPDATE stuff SET thing = 6 WHERE id = 10 RETURNING thing;`

The app crashes, returning a 500 error with message:

`"Cannot set property 'thing' of undefined"`

This happens because with a raw query `callee` is undefined in this line: https://github.com/sequelize/sequelize/blob/master/lib/dialects/postgres/query.js#L120

I'm trying to find a solution for this.