I want debug return sql #189

Open
xbl opened this Issue Jun 17, 2014 · 0 comments

Comments

Projects
None yet
1 participant

xbl commented Jun 17, 2014

When my sql particularly complex, I hope to be able to output sql, and replaces the placeholder

like that:

var query = oracle.execute('select * from task where userId = :1 and taskId = :2', [1, 2], function() {
// ...
});

console.log('debug sql: %s', query.sql);
// debug sq: select * from task where userId = 1 and taskId = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment