Thank you for your help. I don't understand what the exatctly issue is but this work.
SELECT COUNT(*)
FROM document_folders f
WHERE
f.parentid IS NOT DISTINCT FROM :parentId::INTEGER
AND f.name = :name
Thank you for your help. I don't understand what the exatctly issue is but this work.
SELECT COUNT(*)
FROM document_folders f
WHERE
f.parentid IS NOT DISTINCT FROM :parentId::INTEGER
AND f.name = :name