<?xml version="1.0" encoding="windows-1252"?>
<node id="860224" title="Re: length() returns wrong result - suspicious magic" created="2010-09-15 10:41:10" updated="2010-09-15 10:41:10">
<type id="11">
note</type>
<author id="381608">
ikegami</author>
<data>
<field name="doctext">
Looks like a there's a call to &lt;c&gt;SvSETMAGIC&lt;/c&gt; missing in DBI or DBD::ODBC. Just to confirm, does the following cause &lt;c&gt;length&lt;/c&gt; to return the correct length?

&lt;c&gt;
$txt=$txt;
&lt;/c&gt;

&lt;p&gt;By the way, using constant &lt;c&gt;SQL_WCHAR&lt;/c&gt; would be clearer than using &lt;c&gt;-8&lt;/c&gt;.</field>
<field name="root_node">
860211</field>
<field name="parent_node">
860211</field>
</data>
</node>
