public void FunctionCaseSensitiveNameDeriveParameters()
{
using (var conn = OpenConnection())
{
conn.ExecuteNonQuery(
@"CREATE OR REPLACE FUNCTION pg_temp.""FunctionCaseSensitive""(int4, text) returns int4 as
$BODY$
begin
return 0;
end
$BODY$
language 'plpgsql';");
var command = new NpgsqlCommand("pg_temp.\"FunctionCaseSensitive\"", conn);
NpgsqlCommandBuilder.DeriveParameters(command);
Assert.AreEqual(NpgsqlDbType.Integer, command.Parameters[0].NpgsqlDbType);
Assert.AreEqual(NpgsqlDbType.Text, command.Parameters[1].NpgsqlDbType);
}
}