Re: .NET & fields of type text (Solution)
An even shorter solution is the following:
string strText = MyReader.GetString(MyReader.GetOrdinal("MyTextField"));
If you take a look in the source code for the MySQLDriverCS, you can find the GetString() function which does the conversion for you, but unfortunately, it requires an index value instead of a field name. So just use GetOrdinal() to get that. I don't know why the developers accidentally killed the ToString() function on a text field in mysql. So just the above line until they fix it. Have fun!
Subject
Written By
Posted
February 02, 2005 08:56AM
February 02, 2005 10:10AM
February 02, 2005 10:13AM
Re: .NET & fields of type text (Solution)
February 23, 2006 12:08AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.