On 2/9/2014 5:47 AM, Sönke Ludwig wrote:
On Sun, 19 Jan 2014 16:58:40 GMT, Anton Alexeev wrote:
On Sun, 19 Jan 2014 14:09:44 +0100, Sönke Ludwig wrote:
If nobody else can answer this quickly in the mean time, I'll have a
look at the source later to see what goes wrong.OK, thank you for your reply. I will wait.
Sorry that this is taking so long, I still didn't manage to install a MySQL server for testing.
A blind guess is that TEXT columns are stored internally as a
ubyte[]
instead of asstring
. In this case usingcast(string)rs[0][2].get!(ubyte[])
instead ofrs[0][2].toString()
should do the trick.
Sönke is correct. TEXT is stored using 'ubyte[]', and you can fix the
issue like he says:
cast(string)rs[0][2].get!(ubyte[])
[1] There's some internal reason it's ubyte[] instead of string, but I
don't recall ATM. IIRC, I think it's something to do with how MySQL
considers TEXT to merely be a slight variation on BLOB. FWIW, VARCHAR is
stored as string instead of ubyte[].