Don't deprecate toString, it's actually useful

This commit is contained in:
Tim Griesser 2014-04-22 12:47:27 -04:00
parent 84f0541efa
commit 3711de9be8

View File

@ -28,10 +28,7 @@ var nullOperators = ['is', 'is not'];
// Valid values for the `order by` clause generation.
var orderBys = ['asc', 'desc'];
// In the next minor release, this will become:
// return '[object Knex:QueryBuilder]';
QueryBuilder.prototype.toString = function() {
helpers.deprecate('The toString method is deprecated, please use `toQuery` instead.');
return this.toQuery();
};