What is the definition of the
sctemp table?
Also, run your script with the DBI->trace(3) flag, to see what DBD::Sybase thinks it's getting. For example, when I ran your script against a Sybase 12.0 server, I got:
-> fetchrow_hashref in DBD::_::st for DBD::Sybase::st (DBI::st=HAS
+H(0x81c6114)~0x8106cb0)
2 -> fetch for DBD::Sybase::st (DBI::st=HASH(0x8106cb0)~INNER)
dbih_setup_fbav for 1 fields => 0x8106d64
2 <- fetch= [ '26' ] row1 at scratch.pl line 22
2 -> FETCH for DBD::Sybase::st (DBI::st=HASH(0x8106cb0)~INNER 'NAME'
+)
2 <- FETCH= [ 'foo' ] at scratch.pl line 22
<- fetchrow_hashref= HASH(0x8106db8)1keys row1 at scratch.pl line
+22
Michael
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.