Actually caused by undefined variable later in the code. Sample prog sent to Michael. Margit
---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match