/[pgestraier]/trunk/pgest.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/pgest.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5 by dpavlin, Fri May 20 19:44:09 2005 UTC revision 9 by dpavlin, Sun May 22 21:18:11 2005 UTC
# Line 94  Datum pgest(PG_FUNCTION_ARGS) { Line 94  Datum pgest(PG_FUNCTION_ARGS) {
94                  }                  }
95                                    
96                  /* set the search phrase to the search condition object */                  /* set the search phrase to the search condition object */
97                  est_cond_set_phrase(cond, query);                  if (strlen(query) > 0)
98                            est_cond_set_phrase(cond, query);
99    
100                  /* minimum valid attribute length is 10: @a STREQ a */                  /* minimum valid attribute length is 10: @a STREQ a */
101                  if (attr != NULL && strlen(attr) >= 10) {                  if (attr != NULL && strlen(attr) >= 10) {
# Line 191  Datum pgest(PG_FUNCTION_ARGS) { Line 192  Datum pgest(PG_FUNCTION_ARGS) {
192                          est_doc_delete(doc);                          est_doc_delete(doc);
193                  } else {                  } else {
194                          elog(INFO, "no result from estraier");                          elog(INFO, "no result from estraier");
195                          values[0] = NULL;                          values[0] = DatumGetCString( "" );
196                          values[1] = NULL;                          values[1] = DatumGetCString( "" );
197                          values[2] = NULL;                          values[2] = DatumGetCString( "" );
198                          values[3] = NULL;                          values[3] = DatumGetCString( "" );
199                  }                  }
200    
201    

Legend:
Removed from v.5  
changed lines
  Added in v.9

  ViewVC Help
Powered by ViewVC 1.1.26