[Buildbot-commits] [buildbot/buildbot] b92033: Fix the type of the 'masterid' case statement

GitHub noreply at github.com
Mon Oct 13 18:19:04 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/buildbot/buildbot
  Commit: b92033a83cb5efa81d4069ce49c3e6cbe9ac647a
      https://github.com/buildbot/buildbot/commit/b92033a83cb5efa81d4069ce49c3e6cbe9ac647a
  Author: Dustin J. Mitchell <dustin at buildbot.net>
  Date:   2014-10-12 (Sun, 12 Oct 2014)

  Changed paths:
    M master/buildbot/db/migrate/versions/025_add_master_table.py

  Log Message:
  -----------
  Fix the type of the 'masterid' case statement

It seems that newish versions of pg8000 complain (probably correctly)
that a case statement is of text type, but the masterid column should be
an integer.  This adds an explicit cast, which works fine across all
three database engines.


  Commit: a343b1fc5919d3943aeaaa021f59542ce19de70f
      https://github.com/buildbot/buildbot/commit/a343b1fc5919d3943aeaaa021f59542ce19de70f
  Author: Mikhail Sobolev <sa2ajj at users.noreply.github.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M master/buildbot/db/migrate/versions/025_add_master_table.py

  Log Message:
  -----------
  Merge pull request #1255 from djmitche/025-masterid-type-fix

Fix the type of the 'masterid' case statement

See ticket:2933


Compare: https://github.com/buildbot/buildbot/compare/2de3ca0b6b3e...a343b1fc5919


More information about the Commits mailing list