-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
Description
I'm using the postgres client in 0.6.22 and am finding a weird quirk with the query builder.
knex(table).where(criteria).del() does not seem to execute the query, but
knex(table).where(criteria).del().then(function(){ }) works as expected.
Likewise, knex(table).where(criteria).del().exec() works too.
Does the presence of a callback imply a query is done being built and ready to be executed?
If this behavior is intentional, then an update to the documentation would be very helpful. I can see how it makes sense, but an explicit callout to this behavior would certainly make the intent more clear.