Commit 0b493f8
committed
Keep username and datname empty if we cannot get real values
If transaction state is not 'in progress' than we cannot do database
access. For that case we should keep username and datname just empty
instad of filling them with error message.
Also we can improve collecting these fields by grabbing them early in
utillity hook, when transaction state wasn't yet changed by actual hook
processing.1 parent b6ffd37 commit 0b493f8
3 files changed
Lines changed: 13 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1018 | 1018 | | |
1019 | 1019 | | |
1020 | 1020 | | |
1021 | | - | |
1022 | 1021 | | |
1023 | 1022 | | |
1024 | 1023 | | |
| |||
1030 | 1029 | | |
1031 | 1030 | | |
1032 | 1031 | | |
| 1032 | + | |
1033 | 1033 | | |
1034 | 1034 | | |
1035 | 1035 | | |
| |||
1090 | 1090 | | |
1091 | 1091 | | |
1092 | 1092 | | |
1093 | | - | |
1094 | | - | |
1095 | | - | |
1096 | 1093 | | |
1097 | 1094 | | |
1098 | 1095 | | |
| |||
1743 | 1740 | | |
1744 | 1741 | | |
1745 | 1742 | | |
1746 | | - | |
1747 | 1743 | | |
1748 | | - | |
1749 | | - | |
| 1744 | + | |
| 1745 | + | |
1750 | 1746 | | |
1751 | | - | |
1752 | | - | |
| 1747 | + | |
| 1748 | + | |
1753 | 1749 | | |
1754 | | - | |
1755 | | - | |
1756 | | - | |
1757 | | - | |
1758 | | - | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
1759 | 1753 | | |
1760 | 1754 | | |
1761 | 1755 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments