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

     1  # JSONB with no version number.
     2  send
     3  Parse {"Query": "SELECT $1::JSONB"}
     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  # JSONB version 2 followed by two double quotes (ASCII 34). This is a
    17  # valid JSON string, but the version is invalid and thus should produce
    18  # an error.
    19  send
    20  Bind {"ParameterFormatCodes": [1], "Parameters": [[2, 34, 34]]}
    21  Sync
    22  ----
    23  
    24  until mapError=(XX000, 08P01)
    25  ErrorResponse
    26  ReadyForQuery
    27  ----
    28  {"Type":"ErrorResponse","Code":"08P01"}
    29  {"Type":"ReadyForQuery","TxStatus":"I"}