Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-4061

errors in sql queries when trying to save a deleted regular expression

XMLWordPrintable

      Open a regular expression for editing in one tab, then delete it in another. In the first tab, attempt to save. Observe a whole bunch of SQL errors:

      Error in query [INSERT INTO expressions (expressionid,regexpid,expression,expression_type,case_sensitive,exp_delimiter) VALUES (88,6,'??3',0,0,',')] [Cannot add or update a child row: a foreign key constraint fails (`issue_zbxnext_889`.`expressions`, CONSTRAINT `c_expressions_1` FOREIGN KEY (`regexpid`) REFERENCES `regexps` (`regexpid`) ON DELETE CASCADE)]
      Error in query [INSERT INTO expressions (expressionid,regexpid,expression,expression_type,case_sensitive,exp_delimiter) VALUES (89,6,'??',0,0,',')] [Cannot add or update a child row: a foreign key constraint fails (`issue_zbxnext_889`.`expressions`, CONSTRAINT `c_expressions_1` FOREIGN KEY (`regexpid`) REFERENCES `regexps` (`regexpid`) ON DELETE CASCADE)]
      Error in query [INSERT INTO expressions (expressionid,regexpid,expression,expression_type,case_sensitive,exp_delimiter) VALUES (90,6,'??',0,1,',')] [Cannot add or update a child row: a foreign key constraint fails (`issue_zbxnext_889`.`expressions`, CONSTRAINT `c_expressions_1` FOREIGN KEY (`regexpid`) REFERENCES `regexps` (`regexpid`) ON DELETE CASCADE)]

            Unassigned Unassigned
            asaveljevs Aleksandrs Saveljevs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: