<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>3499</bug_id>
          
          <creation_ts>2004-01-16 18:08:25 +0300</creation_ts>
          <short_desc>ipacsum не работает с хранилищем postgre</short_desc>
          <delta_ts>2005-08-30 14:20:51 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>ipac-ng</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nicholas Tretyachenko">tklaus</reporter>
          <assigned_to name="Grigory Milev">week</assigned_to>
          
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>11271</commentid>
    <comment_count>0</comment_count>
    <who name="Nicholas Tretyachenko">tklaus</who>
    <bug_when>2004-01-16 18:08:26 +0300</bug_when>
    <thetext>Если в конфигурационном файле указано 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), &quot; and rule_name like &apos;%%%s%
%&apos;&quot;, filter);
        sprintf(wh_exec+strlen(wh_exec), &quot; order by that_time&quot;);
-       printf(&quot;quering: %s\n&quot;, wh_exec);
+/*     printf(&quot;quering: %s\n&quot;, wh_exec);*/
 #ifdef DEBUG_POST
        fprintf(logs, &quot;%lu : postgre_stor_get_record\n&quot;, time(NULL));
        fprintf(logs, &quot;%s\n&quot;, wh_exec);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20699</commentid>
    <comment_count>1</comment_count>
    <who name="Nicholas Tretyachenko">tklaus</who>
    <bug_when>2004-12-24 13:46:12 +0300</bug_when>
    <thetext>Исправлен в версии 1.27-alt5, спасибо</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>