forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita3aef88
committed
Fix incorrect error reporting for duplicate data in \crosstabview.
\crosstabview's complaint about multiple entries for the same crosstabcell quoted the wrong row and/or column values. It would accidentallyappear to work if the data had been in strcmp() order to start with,which probably explains how we missed noticing this during development.This could be fixed in more than one way, but the way I chose was tohang onto both result pointers from bsearch() and use those to get atthe value names.In passing, avoid casting away const in the bsearch comparison functions.No bug there, just poor style.Per bug #14476 from Tomonari Katsumata. Back-patch to 9.6 where\crosstabview was introduced.Report:https://postgr.es/m/20161225021519.10139.45460@wrigleys.postgresql.org1 parent86d216c commita3aef88
File tree
3 files changed
+48
-24
lines changed- src
- bin/psql
- test/regress
- expected
- sql
3 files changed
+48
-24
lines changedLines changed: 24 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
352 | 352 |
| |
353 | 353 |
| |
354 | 354 |
| |
355 |
| - | |
| 355 | + | |
| 356 | + | |
356 | 357 |
| |
357 | 358 |
| |
358 | 359 |
| |
359 | 360 |
| |
360 | 361 |
| |
361 | 362 |
| |
362 | 363 |
| |
363 |
| - | |
364 |
| - | |
365 |
| - | |
366 |
| - | |
367 |
| - | |
368 |
| - | |
369 |
| - | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
370 | 371 |
| |
371 | 372 |
| |
372 | 373 |
| |
373 | 374 |
| |
374 | 375 |
| |
375 | 376 |
| |
376 | 377 |
| |
377 |
| - | |
378 |
| - | |
379 |
| - | |
380 |
| - | |
381 |
| - | |
382 |
| - | |
383 |
| - | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
384 | 385 |
| |
385 | 386 |
| |
386 | 387 |
| |
| |||
396 | 397 |
| |
397 | 398 |
| |
398 | 399 |
| |
399 |
| - | |
400 |
| - | |
401 |
| - | |
402 |
| - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
403 | 404 |
| |
404 | 405 |
| |
405 | 406 |
| |
| |||
694 | 695 |
| |
695 | 696 |
| |
696 | 697 |
| |
697 |
| - | |
698 |
| - | |
| 698 | + | |
| 699 | + | |
699 | 700 |
| |
700 | 701 |
| |
701 | 702 |
| |
| |||
704 | 705 |
| |
705 | 706 |
| |
706 | 707 |
| |
707 |
| - | |
708 |
| - | |
| 708 | + | |
709 | 709 |
| |
710 | 710 |
| |
711 | 711 |
| |
712 | 712 |
| |
713 | 713 |
| |
714 |
| - | |
| 714 | + | |
715 | 715 |
|
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
201 | 201 |
| |
202 | 202 |
| |
203 | 203 |
| |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + |
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + |
0 commit comments
Comments
(0)