forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7c4d3fe
committed
ecpg: Refactor ecpg_log() to skip unnecessary calls to ECPGget_sqlca().
Previously, ecpg_log() always called ECPGget_sqlca() to retrieve sqlca,even though it was only needed for debug logging. This commit updatesecpg_log() to call ECPGget_sqlca() only when debug logging is enabled.Author: Yuto SasakiReviewed-by: Alvaro Herrera, Tom Lane, Fujii MasaoDiscussion:https://postgr.es/m/TY2PR01MB3628A85689649BABC9A1C6C3C1782@TY2PR01MB3628.jpnprd01.prod.outlook.com1 parent53af949 commit7c4d3fe
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
232 | 232 |
| |
233 | 233 |
| |
234 | 234 |
| |
235 |
| - | |
236 | 235 |
| |
237 | 236 |
| |
238 | 237 |
| |
| 238 | + | |
239 | 239 |
| |
240 | 240 |
| |
241 | 241 |
| |
| |||
262 | 262 |
| |
263 | 263 |
| |
264 | 264 |
| |
| 265 | + | |
| 266 | + | |
265 | 267 |
| |
266 | 268 |
| |
267 | 269 |
| |
|
0 commit comments
Comments
(0)