错误:op ANY / ALL(数组)需要右侧的数组

时间:2014-08-03 16:47:41

标签: postgresql

我们正在调用proc public.update_records (p_record_id integer, p_notification_list text) 并将p_notification_list值指定为

ct.new_notification_id::text = ANY(string_to_array(p_notification_list,',')) 

并且传递的p_notification_list的值为'<notification_id_1>','<notification_id_2>',依此类推

并将错误视为 op ANY / ALL(数组)需要右侧的数组

请建议

1 个答案:

答案 0 :(得分:3)

适合我:

regress=> SELECT 'a' = ANY (string_to_array('a,b,c', ','));
 ?column? 
----------
 t
(1 row)

所以我认为在这个问题中没有表现出任何错误。这就是为什么你需要显示整个语句,你的Pg版本,表定义等。