We prepend a comment ID'ing the request that caused the db query for easier tracking. I wanted to add name parameter to one query that has a long planning time and ran into an issue where this error is triggered every time
https://github.com/brianc/node-postgres/blob/master/packages/pg/lib/query.js#L149
if (this.text && previous && this.text !== previous) {
return new Error(`Prepared statements must be unique - '${this.name}' was used for a different statement`)
}
Can we add a way to bypass this check (or strip out leading comments in the check)?
We prepend a comment ID'ing the request that caused the db query for easier tracking. I wanted to add name parameter to one query that has a long planning time and ran into an issue where this error is triggered every time
https://github.com/brianc/node-postgres/blob/master/packages/pg/lib/query.js#L149
Can we add a way to bypass this check (or strip out leading comments in the check)?