forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit137b131
committed
Doc: fix out-of-date example of SPI usage.
The "count" argument of SPI_exec() only limits execution whenthe query is actually returning rows. This was not the casebefore PG 9.0, so this example was correct when written; butwe missed updating it in commit2ddc600. Extend the exampleto show the behavior both with and without RETURNING.While here, improve the commentary and markup for the restof the example.David G. Johnston and Tom Lane, per report from Curt Kolovson.Back-patch to all supported branches.Discussion:https://postgr.es/m/CANhYJV6HWtgz_qjx_APfK0PAgLUzY-2vjLuj7i_o=TZF1LAQew@mail.gmail.com1 parent4e465aa commit137b131
1 file changed
+33
-15
lines changedLines changed: 33 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5314 | 5314 |
| |
5315 | 5315 |
| |
5316 | 5316 |
| |
5317 |
| - | |
5318 |
| - | |
| 5317 | + | |
| 5318 | + | |
5319 | 5319 |
| |
5320 | 5320 |
| |
5321 | 5321 |
| |
5322 | 5322 |
| |
5323 | 5323 |
| |
5324 | 5324 |
| |
5325 |
| - | |
| 5325 | + | |
| 5326 | + | |
5326 | 5327 |
| |
5327 | 5328 |
| |
5328 | 5329 |
| |
| |||
5331 | 5332 |
| |
5332 | 5333 |
| |
5333 | 5334 |
| |
5334 |
| - | |
| 5335 | + | |
| 5336 | + | |
| 5337 | + | |
| 5338 | + | |
| 5339 | + | |
| 5340 | + | |
5335 | 5341 |
| |
| 5342 | + | |
5336 | 5343 |
| |
5337 | 5344 |
| |
5338 |
| - | |
| 5345 | + | |
5339 | 5346 |
| |
5340 | 5347 |
| |
| 5348 | + | |
| 5349 | + | |
| 5350 | + | |
| 5351 | + | |
| 5352 | + | |
| 5353 | + | |
| 5354 | + | |
| 5355 | + | |
| 5356 | + | |
| 5357 | + | |
| 5358 | + | |
5341 | 5359 |
| |
5342 |
| - | |
| 5360 | + | |
5343 | 5361 |
| |
5344 | 5362 |
| |
5345 | 5363 |
| |
5346 | 5364 |
| |
5347 | 5365 |
| |
5348 |
| - | |
| 5366 | + | |
5349 | 5367 |
| |
5350 | 5368 |
| |
5351 | 5369 |
| |
| |||
5355 | 5373 |
| |
5356 | 5374 |
| |
5357 | 5375 |
| |
5358 |
| - | |
| 5376 | + | |
5359 | 5377 |
| |
5360 | 5378 |
| |
5361 |
| - | |
| 5379 | + | |
| 5380 | + | |
5362 | 5381 |
| |
5363 | 5382 |
| |
5364 |
| - | |
| 5383 | + | |
5365 | 5384 |
| |
5366 |
| - | |
| 5385 | + | |
5367 | 5386 |
| |
5368 | 5387 |
| |
5369 | 5388 |
| |
| |||
5372 | 5391 |
| |
5373 | 5392 |
| |
5374 | 5393 |
| |
5375 |
| - | |
5376 |
| - | |
5377 |
| - | |
5378 |
| - | |
| 5394 | + | |
| 5395 | + | |
| 5396 | + | |
5379 | 5397 |
| |
5380 | 5398 |
| |
5381 | 5399 |
| |
|
0 commit comments
Comments
(0)