-
Notifications
You must be signed in to change notification settings - Fork 47
Commit f5a6b1f
committed
Skip closing cursor if connection held is no longer active
It avoids issues when a transaction fails, thus the statement to close the cursor will fail.
In addition this obscures the underlying error in the user code due to raising when closing the cursor.1 parent 6123a23 commit f5a6b1f
File tree
2 files changed
+22
-2
lines changed- lib/postgresql_cursor
- test
2 files changed
+22
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | - | ||
197 | + | ||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | - | ||
219 | + | ||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | + | ||
134 | + | ||
135 | + | ||
136 | + | ||
137 | + | ||
138 | + | ||
139 | + | ||
140 | + | ||
141 | + | ||
142 | + | ||
143 | + | ||
144 | + | ||
145 | + | ||
146 | + | ||
147 | + | ||
148 | + | ||
149 | + | ||
150 | + | ||
151 | + | ||
152 | + | ||
133 | 153 | | |
134 | 154 | | |
135 | 155 | | |
| |||
0 commit comments