Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $pattern = "/'([^'])*'/";
- $sql = "INSERT IGNORE INTO `error_log` SET `text` ='
- 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
- 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
- '";
- preg_replace($pattern, '', $sql);
- echo "no segfault";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement