Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

«SQLSTATE[42000]: Syntax error or access violation: 1139 Got error 'repetition-operator operand invalid' from regexp <…>» at vendor/magento/framework/Webapi/ErrorProcessor.php:208 #40

Open
dmitrii-fediuk opened this issue May 8, 2020 · 1 comment

Comments

@dmitrii-fediuk
Copy link
Contributor

dmitrii-fediuk commented May 8, 2020

query was:

SELECT `main_table`.*
FROM `shippingrate` AS `main_table`
WHERE
	(((`country` LIKE 'CH') OR (`country` = '0') OR (`country` = '')))
	AND (((`state` LIKE '') OR (`state` = '0') OR (`state` = '')))
	AND (((`city` LIKE '') OR (`city` = '')))
	AND (`num_zip_from` <= 8247 OR `zip_from` = "")
	AND (`num_zip_to` >= 8247 OR `zip_to` = "")
	AND (((((`zip_from` REGEXP '^*[0-9]+') OR (`zip_from` = '')))))
	AND (`price_from` <= 24.95)
	AND (`price_to` >= 24.95)
	AND (`weight_from` <= 0.27)
	AND (`weight_to` >= 0.27)
	AND (`qty_from` <= 6)
	AND (`qty_to` >= 6)
	AND (((`shipping_type` = '139') OR (`shipping_type` = '') OR (`shipping_type` = '0')))
	AND (`method_id` IN(1))
ORDER BY num_zip_from DESC, num_zip_to DESC
@dmitrii-fediuk dmitrii-fediuk changed the title «SQLSTATE[42000]: Syntax error or access violation: 1139 Got error 'repetition-operator operand invalid' from regexp» «SQLSTATE[42000]: Syntax error or access violation: 1139 Got error 'repetition-operator operand invalid' from regexp <…>» at vendor/magento/framework/Webapi/ErrorProcessor.php:208 May 8, 2020
@dmitrii-fediuk
Copy link
Contributor Author

I have implemented a logging in vendor/magento/framework/Webapi/ErrorProcessor.php.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant