You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Why debug info always appears twice for only one sql. #258
Using option { protocol: 'pg', ..., query: { debug: true }} when connect to "postgres" database, and execute any involved query operation, the debug info always appears twice with [SQL/postgres] and [SQL/mysql], like this:
[SQL/postgres] SELECT "guid", "guid", "type", "name", "node_id", "user_id" FROM "device" WHERE "user_id" = '9f08007f-9ed9-462c-8076-f13942beec2d'
[SQL/mysql] SELECT "guid", "guid", "type", "name", "node_id", "user_id" FROM "device" WHERE "user_id" = '9f08007f-9ed9-462c-8076-f13942beec2d'
and the primary key appears twice in SELECT clause also.
I've also seen callbacks [and the save itself] fired twice on models with an association and autoFetch: true. Haven't got around to writing a test case yet.
I don't think it's the same issue. Can you please check if the debugs now appear only with "sql/postgres" prefix? If you have more information or an example of a duplicated .save()callback call please post.
@MrSwitch do you have an open issue about it? (I can't remember) If not please post a quick example so we can fix it if it still happens. This one about debug lines is done
Activity
MrSwitch commentedon Jul 31, 2013
It could be the same issue, but i get the callback fired twice on save.
dxg commentedon Aug 1, 2013
I've also seen callbacks [and the save itself] fired twice on models with an association and
autoFetch: true. Haven't got around to writing a test case yet.Changes mysql DDL to use execQuery instead of checking for pool (#258)
Fixes duplicated debug lines for postgres (#258)
Removes duplicated postgres debug calls (#258)
dresende commentedon Aug 2, 2013
I don't think it's the same issue. Can you please check if the debugs now appear only with "sql/postgres" prefix? If you have more information or an example of a duplicated
.save()callback call please post.taoyuan commentedon Aug 3, 2013
.save()callback call twice did not happen in my environment. Maybe should contact @MrSwitch to check this.dresende commentedon Aug 3, 2013
@MrSwitch do you have an open issue about it? (I can't remember) If not please post a quick example so we can fix it if it still happens. This one about debug lines is done