some host retrieval operations can not be executed in read only database
queries like: GET_HOST_SUBID4, // Gets hosts by IPv4 SubnetID GET_HOST_SUBID6, // Gets hosts by IPv6 SubnetID GET_HOST_SUBID4_PAGE, // Gets hosts by IPv4 SubnetID beginning by HID GET_HOST_SUBID6_PAGE, // Gets hosts by IPv6 SubnetID beginning by HID have index in enum 'StatementIndex' after INSERT_HOST This will cause on both mysql and postgresql to not enable these queries in read only database:
easy code lookup: search for: WRITE_STMTS_BEGIN