[Mono-list] ODBC & Mono 2.0? Mine broke.
Adam Tauno Williams
adam at morrison-ind.com
Tue Oct 21 16:58:09 EDT 2008
> we also found several problems with Mono 2.0 and ODBC.
> I am a bit surprised that the release notes of 2.0 don't mention anything
> about the work that has obviously been done in System.Data between April
> 2008 (release of Mono 1.9.1) and October 2008 (Mono 2.0). The subversion log
> shows a lot of changes.
> Can the Mono team please let us know if they expect any problems with it?
> I have a problem e.g. with the constructor
> public OdbcParameter(string name,Object value)
> with a string parameter.
> It worked before like this, and still does in Microsoft .net 2.0:
> parameters[0] = new OdbcParameter("partnershortname",
> (System.Object)"Pok%");
> But now with mono 2.0 we get this exception:
> System.Data.Odbc.OdbcException: ERROR [22001] [DataDirect][ODBC PROGRESS
> driver]String data, right truncated. Error in parameter 1.
> The workaround is:
> parameters[0] = new OdbcParameter("partnershortname",
> OdbcType.VarChar, 20);
> parameters[0].Value = (System.Object)"Pok%";
> My colleague will file a bug report in Bugzilla for this, and there are
> other bugs as well that I have not fully analysed yet.
I filed a bug for my isssue.
<https://bugzilla.novell.com/show_bug.cgi?id=434772>
More information about the Mono-list
mailing list