Same SQL, Different Results: A Subtle Oracle vs. PostgreSQL Migration Bug

(databaserookies.wordpress.com)

17 points | by tanelpoder 2 months ago ago

7 comments

  • aerzen 2 months ago

    This is a really long article for saying "precedence between || and + is different between PostgreSQL and Oracle SQL".

    • mahtodeepak 2 months ago

      I am the author of the Blog. I wanted to share the journey as part of analysis. Blog is not on precedence between || and + but primarily highlight fact that implicit casting cause it to change in Oracle. Ideally precedence is same in both engines.

      • aerzen 2 months ago

        Sorry for being dismissive. I've written a post [1] that highlights the core discrepancy between the two dialects. I like criticizing SQL and having a documented case like this is nice.

        [1]: https://aljaz.murerzen.eu/sql-precedence/

  • harperlee 2 months ago

    Obviously written by AI.

    • mahtodeepak 2 months ago

      I draft most of my blog first without any AI and later refine it for flow and clarity. These time i had used it to influence the flow and agree it changed a lot. But i liked the flow so kept it like that.

    • smallerfish 2 months ago

      Yeah. There's nothing wrong with using AI to draft an article, but ffs have some taste and edit it significantly once the draft is written.

      • mahtodeepak 2 months ago

        Feedback taken. I have been blogging since long and have my own way for telling technical stuff.