npgsql - Npgsql2: [#1010216] Array Handling.
От | fxjr@pgfoundry.org (User Fxjr) |
---|---|
Тема | npgsql - Npgsql2: [#1010216] Array Handling. |
Дата | |
Msg-id | 20080211041707.1D04417AD0D8@pgfoundry.org обсуждение исходный текст |
Список | pgsql-committers |
Log Message: ----------- [#1010216] Array Handling. Not fully tested by comments welcome Added support for array datatype. Anything that implements IEnumerable<T> where T is a type already supported by npgsql willbe treated the same as T[], anything that implements IEnumerable<U> where U implements IEnumerable<T> will be treatedthe same as T[,] (but cause an error if it's a "jagged" array, as postgres doesn't support them) and so on. In orderto use it, just use an array or IEnumerable<T> as parameter value. Also, you can specify the NpgsqlDbType as an or'edvalue to say it is an array: Binary or with other values. E.g. Array of Box is NpgsqlDbType.Array | NpgsqlDbType.Box.Thanks Jon Hanna (jon at hackcraft dot net) for patches. Also thanks Michael Parshin (parshim at gmail dotcom) for his help fixing bugs. Modified Files: -------------- Npgsql2/src/Npgsql: NpgsqlParameter.resx (r1.1 -> r1.2) (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/npgsql/Npgsql2/src/Npgsql/NpgsqlParameter.resx.diff?r1=1.1&r2=1.2)
В списке pgsql-committers по дате отправления: