[pgjdbc/pgjdbc] 770b6d: fix: send type void parameters as null value (#1922)

Поиск
Список
Период
Сортировка
Искать

[pgjdbc/pgjdbc] 770b6d: fix: send type void parameters as null value (#1922)

От:
Peter Eisentraut <noreply@github.com>
Дата:
  Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: 770b6d3ebd8ac78dd24e4628740652aae2bb3efd
      https://github.com/pgjdbc/pgjdbc/commit/770b6d3ebd8ac78dd24e4628740652aae2bb3efd
  Author: Peter Eisentraut 
  Date:   2020-10-13 (Tue, 13 Oct 2020)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/core/v3/SimpleParameterList.java

  Log Message:
  -----------
  fix: send type void parameters as null value (#1922)

The previous code sent parameters of type void (used for OUT
parameters of functions) with a text value of "null".  While this
doesn't affect anything, since the value is ignored anyway, it's
somewhat confusing, especially if it shows up in debug traces and
error messages, and it's also a bit wasteful to send 4 bytes for
nothing.  So instead, send those parameters as a null value, which
seems semantically saner.




FAQ