/[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 61 by dpavlin, Mon Aug 7 11:14:52 2006 UTC revision 73 by dpavlin, Mon Aug 7 22:47:41 2006 UTC
# Line 634  Datum pgest_node(PG_FUNCTION_ARGS) Line 634  Datum pgest_node(PG_FUNCTION_ARGS)
634                                  /* skip HINTS. prefix */                                  /* skip HINTS. prefix */
635                                  hint += strlen(HINTS_PREFIX);                                  hint += strlen(HINTS_PREFIX);
636    
637                                  hint_val = cbmapget(hints, hint, -1, NULL);                                  hint_val = (char *)cbmapget(hints, hint, -1, NULL);
638                                  elog(DEBUG2, "hint %s = %s", hint, hint_val);                                  elog(DEBUG2, "hint %s = %s", hint, hint_val);
639    
640                                  if (hint_val != NULL) {                                  if (hint_val != NULL) {
# Line 724  void cond_add_attr(ESTCOND *cond, char * Line 724  void cond_add_attr(ESTCOND *cond, char *
724          char *next;          char *next;
725          char *curr_attr;          char *curr_attr;
726          while ( strlen(attr) > 0 ) {          while ( strlen(attr) > 0 ) {
727                  printf("len [%s] = %d\n", attr, strlen(attr));                  printf("len [%s] = %zd\n", attr, strlen(attr));
728                  if ((next = strstr(attr, ATTR_DELIMITER)) != NULL) {                  if ((next = strstr(attr, ATTR_DELIMITER)) != NULL) {
729                          curr_attr = palloc( next - attr + 1 );                          curr_attr = palloc( next - attr + 1 );
730                          memcpy(curr_attr, attr, next-attr);                          memcpy(curr_attr, attr, next-attr);

Legend:
Removed from v.61  
changed lines
  Added in v.73

  ViewVC Help
Powered by ViewVC 1.1.26