Ad Widget

Collapse

Patch: Postgresql without OIDs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jdg
    Junior Member
    • Nov 2006
    • 2

    #1

    Patch: Postgresql without OIDs

    Hi,

    Since version 8.1, Postgresql defaults to creating tables without an OID column unless WITH OIDS is specified in CREATE TABLE. This results in an error in Zabbix when creating hosts, items... Error is in db.inc.php, function DBinsert_id.
    Attached patch retrieves the last value of the sequence, like it is done for Oracle.
    Attached Files
Working...