On Tue, 2010-01-05 at 12:40 +0200, Andrus wrote:
> > it
> > shouldn't matter what ADO.NET provider is used, as long as we can find
> > it,
>
> PsqlVendor.cs contains unconditional statement:
>
> SetParameterType(parameter, parameter.GetType().GetProperty("NpgsqlDbType"),
> literal);
>
> This works with npgsql data provider only.
True in this case, but the other important thing is that it's restricted
to PsqlVendor, and thus that will only be invoked if someone is using a
PostgreSQL "vendor"/SQL dialect. Is there another database that
supports the same SQL dialect as PostgreSQL that isn't PostgreSQL?
(Though the only dialects which have more than one actual implementation
are SQLite (System.Data.SQLite and Mono.Data.Sqlite) and Oracle (ODP.NET
and .NET's provider)...)
That said, we should fix the code to remove this use of NpgsqlDbType.
- Jon
--
You received this message because you are subscribed to the Google Groups
"DbLinq" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/dblinq?hl=en.