[HACKERS] strange tuple from ExecutorRun

2007-11-16 Thread Pavel Stehule
Hello I cannot find my bug. I would to get tuple via ExecutorRun. But it works only with one field in target. With more fields I got last fileld on first position and others fields are null. Can somebody help me? Pavel Stehule postgres=# call print(10,20,30); NOTICE: nargs 3 NOTICE: 30 0

Re: [HACKERS] strange tuple from ExecutorRun

2007-11-16 Thread Tom Lane
[ not directly related to your bug, but... ] Pavel Stehule [EMAIL PROTECTED] writes: result = ExecutorRun(qdesc, ForwardScanDirection, 1L); tuple = ExecMaterializeSlot(result); values = (Datum *) palloc(nargs * sizeof(Datum));