|
Ошибка при работе Perl c MS SQL
|
|||
---|---|---|---|
#18+
Подскажите пожалуйста, подключаюсь к базе и спрашиваю у неё вот таким образом: foreach $slovo (@word){ print $slovo; print "<br>"; $dbh->{LongTruncOk}=1; $dbh->{LongReadLen} = 100000; $dbh = DBI->connect('dbi:ODBC:news', '****', '*****')or die "$DBI::errstr\n"; $query = "SELECT content FROM news WHERE publication = 1 and content like '%$slovo%'"; $out=$dbh->prepare($query); $out->execute; $out->bind_col(1,\$day, undef); while ($data_hash=$out->fetchrow_hashref){ %hash=%$data_hash; push @items,{%hash}; } $out->finish; print @items; } А в ответ получаю: DBD::ODBC::st fetchrow_hashref failed: [Microsoft][ODBC SQL Server Driver]Усечение данных строки справа (SQL-01004)(DBD: st_fetch/SQLFetch (long truncated DBI attribute LongTruncOk not set and/or LongReadLen too small) err=-1) DBD::ODBC::st fetchrow_hashref failed: [Microsoft][ODBC SQL Server Driver]Усечение данных строки справа (SQL-01004)(DBD: st_fetch/SQLFetch (long truncated DBI attribute LongTruncOk not set and/or LongReadLen too small) err=-1) подскажите где и чего копать? ... |
|||
:
Нравится:
Не нравится:
|
|||
14.04.2004, 13:31 |
|
|
start [/forum/topic.php?fid=23&fpage=513&tid=1479851]: |
0ms |
get settings: |
10ms |
get forum list: |
12ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
49ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
34ms |
get tp. blocked users: |
2ms |
others: | 16ms |
total: | 145ms |
0 / 0 |