Hello. No, it doesn't look like a bug. Your subquery contains a non-deterministic expression, so it cannot be materialized and may be evaluated multiple times during execution of this query depending on execution plan, so the result of the whole query is undefined. You need to rewrite it somehow.
-- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/h2-database/24776947-8bf5-4340-b786-d4a37653d1dcn%40googlegroups.com.
