/
dev-npgsql
/
npgsql
Обзор
Документация
Войти
/
dev-npgsql
/
npgsql
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
v4.1.14
src/Npgsql/BackendMessages/ParameterDescriptionMessage.cs
26 строк
725 B
Shay Rojansky
Make prepared statements with >32878 params work
24 янв 2020, 02:17
24 янв 2020, 02:17
59c41a0
Код
Авторство
О чём код?
using System.Collections.Generic; namespace Npgsql.BackendMessages { class ParameterDescriptionMessage : IBackendMessage { // ReSharper disable once InconsistentNaming internal List<uint> TypeOIDs { get; } internal ParameterDescriptionMessage() { TypeOIDs = new List<uint>(); } internal ParameterDescriptionMessage Load(NpgsqlReadBuffer buf) { var numParams = buf.ReadUInt16(); TypeOIDs.Clear(); for (var i = 0; i < numParams; i++) TypeOIDs.Add(buf.ReadUInt32()); return this; } public BackendMessageCode Code => BackendMessageCode.ParameterDescription; } }