Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite87c14b

Browse files
committed
libpq: Trace all NegotiateProtocolVersion fields
Previously, the names of the unsupported protocol options were nottraced. Since NegotiateProtocolVersion has not really been used yet,that has not mattered much, but we hope to use it eventually, so let'sfix this.Author: Jelte Fennema-Nio <postgres@jeltef.nl>Discussion:https://postgr.es/m/CAGECzQTfc_O+HXqAo5_-xG4r3EFVsTefUeQzSvhEyyLDba-O9w@mail.gmail.com
1 parentc9d94ea commite87c14b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎src/interfaces/libpq/fe-trace.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,9 +578,15 @@ pqTraceOutput_RowDescription(FILE *f, const char *message, int *cursor, bool reg
578578
staticvoid
579579
pqTraceOutput_NegotiateProtocolVersion(FILE*f,constchar*message,int*cursor)
580580
{
581+
intnparams;
582+
581583
fprintf(f,"NegotiateProtocolVersion\t");
582584
pqTraceOutputInt32(f,message,cursor, false);
583-
pqTraceOutputInt32(f,message,cursor, false);
585+
nparams=pqTraceOutputInt32(f,message,cursor, false);
586+
for (inti=0;i<nparams;i++)
587+
{
588+
pqTraceOutputString(f,message,cursor, false);
589+
}
584590
}
585591

586592
staticvoid

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp