Commit eb2bd26
committed
Address PR review feedback: errmsg NULL guards, bind/2 error handling, deserialize database_name, interrupt_mutex ordering
- errmsg conn branch: add conn->db NULL guard, return {:error, :connection_closed}
- errmsg stmt branch: return nil instead of {:error, :connection_closed}
- bind/2: handle {:error, reason} from bind_parameter_count after release
- deserialize: use database_name parameter instead of hardcoded "main"
- close: hold interrupt_mutex across sqlite3_close_v2 + NULL assignment1 parent f2603a8 commit eb2bd26
2 files changed
Lines changed: 36 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
397 | 402 | | |
398 | 403 | | |
399 | 404 | | |
400 | 405 | | |
401 | 406 | | |
| 407 | + | |
402 | 408 | | |
403 | 409 | | |
| 410 | + | |
404 | 411 | | |
405 | 412 | | |
406 | 413 | | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | 414 | | |
412 | 415 | | |
413 | 416 | | |
| |||
1123 | 1126 | | |
1124 | 1127 | | |
1125 | 1128 | | |
1126 | | - | |
| 1129 | + | |
1127 | 1130 | | |
1128 | 1131 | | |
1129 | 1132 | | |
| |||
1525 | 1528 | | |
1526 | 1529 | | |
1527 | 1530 | | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
1528 | 1535 | | |
1529 | 1536 | | |
1530 | 1537 | | |
1531 | 1538 | | |
1532 | 1539 | | |
1533 | 1540 | | |
1534 | | - | |
| 1541 | + | |
1535 | 1542 | | |
1536 | 1543 | | |
1537 | 1544 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
191 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
192 | 193 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
197 | 202 | | |
198 | 203 | | |
199 | 204 | | |
200 | 205 | | |
201 | | - | |
202 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
203 | 209 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
209 | 219 | | |
210 | 220 | | |
211 | 221 | | |
| |||
0 commit comments