‹ BackHN Continuity

Thread

Show HN: ClickBench Playground – a playground for 110 database systems

21 points · 5 comments · zX41ZdbW

  1. eterm · · focus · HN ↗
    That's actually neat, I can finally do a full sweep of something I found after the recent post about Lobsters migration, I came across a query that evaluates differently in MariaDB and SQLite.

        SELECT CASE WHEN 1 / 5 * 100.0 = 1 * 100.0 / 5 THEN 1 ELSE 0 END AS Huh
    
    In some engines that evaluates to 1 and in some it evaluates to 0.

    In some ( oracle ), it doesn't evaluate at all without a trick to bind it to a table.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.