tooManyParametersException function

PostgreSQLException tooManyParametersException(
  1. int count
)

Erro lançado antes de enviar uma consulta com parâmetros demais. Sem essa verificação, a contagem estoura os 16 bits do protocolo e o servidor responde com um erro de protocolo difícil de entender.

Implementation

PostgreSQLException tooManyParametersException(int count) =>
    PostgreSQLException(
        'The query has $count parameters, but the PostgreSQL protocol supports '
        'at most $pgMaxParameterCount. Split the operation into smaller '
        'batches (or use COPY).');