/[pgswish]/trunk/pgswish.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/pgswish.c

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

revision 17 by dpavlin, Sun Feb 20 21:54:39 2005 UTC revision 18 by dpavlin, Sun Feb 20 22:58:25 2005 UTC
# Line 217  Datum pgswish(PG_FUNCTION_ARGS) { Line 217  Datum pgswish(PG_FUNCTION_ARGS) {
217  PG_FUNCTION_INFO_V1(pgswish2);  PG_FUNCTION_INFO_V1(pgswish2);
218  Datum pgswish2(PG_FUNCTION_ARGS)  Datum pgswish2(PG_FUNCTION_ARGS)
219  {  {
         int             ncols = 2;  
220          int             nrows = 3;          int             nrows = 3;
221          int16           typlen;          int16           typlen;
222          bool            typbyval;          bool            typbyval;
# Line 231  Datum pgswish2(PG_FUNCTION_ARGS) Line 230  Datum pgswish2(PG_FUNCTION_ARGS)
230          MemoryContext   oldcontext;          MemoryContext   oldcontext;
231          Datum           dvalue;          Datum           dvalue;
232          char            **values;          char            **values;
233          int             rsinfo_ncols;          int             ncols;
234          int             i, j;          int             i, j;
235    
236          /* check to see if caller supports us returning a tuplestore */          /* check to see if caller supports us returning a tuplestore */
# Line 243  Datum pgswish2(PG_FUNCTION_ARGS) Line 242  Datum pgswish2(PG_FUNCTION_ARGS)
242    
243          /* get the requested return tuple description */          /* get the requested return tuple description */
244          tupdesc = rsinfo->expectedDesc;          tupdesc = rsinfo->expectedDesc;
245          rsinfo_ncols = tupdesc->natts;          ncols = tupdesc->natts;
246    
247          /*          /*
248           * The requested tuple description better match up with the array           * The requested tuple description better match up with the array
249           * we were given.           * we were given.
250           */           */
         elog(INFO, "rsinfo_ncols = %d, ncols = %d", rsinfo_ncols, ncols);  
   
251          /* OK, use it */          /* OK, use it */
252          attinmeta = TupleDescGetAttInMetadata(tupdesc);          attinmeta = TupleDescGetAttInMetadata(tupdesc);
253    

Legend:
Removed from v.17  
changed lines
  Added in v.18

  ViewVC Help
Powered by ViewVC 1.1.26