npgsql - Npgsql2: [#1010787] Inserting an array does not work in a

Started by Nonameabout 16 years ago1 messagescomitters
Jump to latest
#1Noname
fxjr@pgfoundry.org

Log Message:
-----------

[#1010787] Inserting an array does not work in a prepared statement. Fixed. Changed delegator definition responsible to handle conversion from CLR type to server to take a ForExtendedQuery parameter so the function can handle correctly when to return a plain query representation or when return a representation used for extended query. Until now, the types were simple and representation was the same. This changes with array handling where the representation is different for each case. Added testcase too. More testcases needed.

Modified Files:
--------------
Npgsql2/src/NpgsqlTypes:
ArrayHandling.cs (r1.8 -> r1.9)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/npgsql/Npgsql2/src/NpgsqlTypes/ArrayHandling.cs?r1=1.8&r2=1.9)
NpgsqlTypeConverters.cs (r1.18 -> r1.19)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/npgsql/Npgsql2/src/NpgsqlTypes/NpgsqlTypeConverters.cs?r1=1.18&r2=1.19)
NpgsqlTypesHelper.cs (r1.31 -> r1.32)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/npgsql/Npgsql2/src/NpgsqlTypes/NpgsqlTypesHelper.cs?r1=1.31&r2=1.32)
Npgsql2/testsuite/noninteractive/NUnit20:
CommandTests.cs (r1.41 -> r1.42)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/npgsql/Npgsql2/testsuite/noninteractive/NUnit20/CommandTests.cs?r1=1.41&r2=1.42)