Bug 3499 - ipacsum не работает с хранилищем postgre
Summary: ipacsum не работает с хранилищем postgre
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: ipac-ng (show other bugs)
Version: unstable
Hardware: all Linux
: P2 blocker
Assignee: Grigory Milev
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-16 18:08 MSK by Nicholas Tretyachenko
Modified: 2005-08-30 14:20 MSD (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas Tretyachenko 2004-01-16 18:08:26 MSK
Если в конфигурационном файле указано storage = postgre, ipacsum выдает ошибку
bad line from fetchipac: quering ...
Проблема связана с тем, что вместе с нужными строками от fetchipac приходит  
диагностический вывод. 
Проблема решается следующим патчем:
--- ipac-ng-1.27/storage/postgre/postgre.c.orig 2004-01-16 17:43:51 +0300
+++ ipac-ng-1.27/storage/postgre/postgre.c      2004-01-16 17:44:08 +0300
@@ -227,7 +227,7 @@
        if (filter)
                sprintf(wh_exec+strlen(wh_exec), " and rule_name like '%%%s%
%'", filter);
        sprintf(wh_exec+strlen(wh_exec), " order by that_time");
-       printf("quering: %s\n", wh_exec);
+/*     printf("quering: %s\n", wh_exec);*/
 #ifdef DEBUG_POST
        fprintf(logs, "%lu : postgre_stor_get_record\n", time(NULL));
        fprintf(logs, "%s\n", wh_exec);
Comment 1 Nicholas Tretyachenko 2004-12-24 13:46:12 MSK
Исправлен в версии 1.27-alt5, спасибо