• mikyopii@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    I always run my queries in a script that will automatically rollback if the number of rows changed isn’t one. If I have to change multiple rows I should probably ask myself what am I doing.

    • takeda@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      8 months ago

      I always start a session with disabling auto commit (note, I could add it to my settings, but then it would backfire that one time my settings don’t execute, so I’m making it a habit to type it out every time, first thing I connect)

      BTW: what kind of genius decides that auto commit should be enabled by default?

    • assembly@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      Damn that’s a good idea. Going to write that down, put it in the to do list, and regret not dosing it.