github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/sql/pgwire/testdata/pgtest/varbit (about)

     1  # Empty VARBIT param.
     2  send
     3  Parse {"Query": "SELECT $1::VARBIT"}
     4  Bind {"ParameterFormatCodes": [1], "Parameters": [[]]}
     5  Sync
     6  ----
     7  
     8  until
     9  ErrorResponse
    10  ReadyForQuery
    11  ----
    12  {"Type":"ParseComplete"}
    13  {"Type":"ErrorResponse","Code":"08P01"}
    14  {"Type":"ReadyForQuery","TxStatus":"I"}
    15  
    16  # bitlen = 82 (4 bytes), with 17 0-bytes following.
    17  send
    18  Bind {"ParameterFormatCodes": [1], "Parameters": [[0, 0, 0, 82, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]}
    19  Sync
    20  ----
    21  
    22  until
    23  ErrorResponse
    24  ReadyForQuery
    25  ----
    26  {"Type":"ErrorResponse","Code":"22P03"}
    27  {"Type":"ReadyForQuery","TxStatus":"I"}