Advertisement
miholeus

Untitled

Jan 22nd, 2013
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.08 KB | None | 0 0
  1. <?php
  2. $pattern = "/'([^'])*'/";
  3. $sql = "INSERT IGNORE INTO `error_log` SET `text` ='
  4. 1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)    [priority] => 2    [priorityName] => CRIT)) called at /var/www/work/crm/trunk/library/Zend/Log.php:428\n[#2] Zend_Log::log(Error in [/var/www/work/crm/trunk/cron/products/syncNoveltyFromVds.php]: 1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)\n1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)\n1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)\n1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)\n1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)\n1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)\n1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)\n1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)\n1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)\n1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)\n1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)\n1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)\n1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)\n1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)\n1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)\n
  5. 1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)\n1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)\n1452:Cannot add or update a child row: a foreign key constraint fails (`default_crm`.`products_yandex_novelty`, CONSTRAINT `fk__products_yandex_novelty__category_id` FOREIGN KEY (`category_id`) REFERENCES `products_yandex_categories` (`id`) ON DELETE NO ACTION ON)\n
  6. '";
  7. preg_replace($pattern, '', $sql);
  8. echo "no segfault";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement