Quantcast
Viewing all articles
Browse latest Browse all 207

PostgreSQL skips WITH query

Consider this CTE:

WITH division_by_zero AS (  SELECT 1/0)SELECT 42

It returns 42 instead of raising an error. How can I force PostgreSQL to evaluate the SELECT 1/0?


Viewing all articles
Browse latest Browse all 207

Trending Articles