I have a somewhat weird problem...
I'm connecting via FreeTDS/ODBC to a mssql-database; all works good, except:
select * from sometable where somerow=1234>
This ("anonymized") select gives me always "undef" for one specific row, despite its value:
$VAR1 = {
'row1' => 17,
'row2' => undef,
'row2' => '36688.00',
'row3' => '30328.50',
'row4' => 6762,
'row5' => 0,
'row6' => 12302
};
Doing exact the same select (copy & paste from log) in the sql-manager returns all values for row2.
I know I'll get undef for NULL-rows, but this row isn't NULL! it has integer values like row4.
Any hints?
DBI 1.631
DBD::ODBC 1.45
unixODBC-2.3.2
FreeTDS 0.91
Henning
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|