- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Name: dalex
Subject: Re: Не ищет по категориям

Кстати, попробовал выполнить такую команду:
indexer -am -g 01

Я так понимаю что таким образом можно переиндексировать определенную категорию 
документов.

Вываливает ошибка:
======
{sql.c:2507} Query: SELECT url.rec_id FROM url, urlinfo ic, categories c WHERE 
(c.path LIKE '01%') AND url.rec_id=ic.url_id AND c.rec_id=CAST(ic.sval AS 
integer) AND ic.sname='Category' LIMIT 100000 OFFSET 0
        SQL-server message: MySQL driver: #1064: You have an error in your SQL 
syntax; check the manual that corresponds to your MySQL server version for the 
right syntax to use near 'integer) AND ic.sname='Category' LIMIT 100000 OFFSET 
0' at line 1
 
indexer[529]: {00} MySQL driver: #1064: You have an error in your SQL syntax; 
check the manual that corresponds to your MySQL server version for the right 
syntax to use near 'integer) AND ic.sname='Category' LIMIT 100000 OFFSET 0' at 
line 1
indexer[529]: {00} Error: 'DB err: MySQL driver: #1064: You have an error in 
your SQL syntax; check the manual that corresponds to your MySQL server version 
for the right syntax to use near 'integer) AND ic.sname='Category' LIMIT 100000 
OFFSET 0' at line 1 - No approp
======


что вобщем то понятно, по докам от mysql5.0 тип в параметре у CAST не может 
быть integer (в списке допустимых типов его нет)
- - - - - - - - - - - - - - - - - - - - - - - - - - - -

Read the full topic here:
http://www.dataparksearch.org/cgi-bin/simpleforum.cgi?fid=05;topic_id=1208238822

Ответить