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 'parentheses not balanced' from regexp, query was: SELECT main_table.* FROM shippingrate AS main_table <…>» #46

Open
dmitrii-fediuk opened this issue May 9, 2020 · 0 comments

Comments

@dmitrii-fediuk
Copy link
Contributor

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 'Zürich') OR (`city` = ''))) 
	AND (`num_zip_from` <= 46 OR `zip_from` = "") 
	AND (`num_zip_to` >= 46 OR `zip_to` = "") 
	AND (((((`zip_from` REGEXP '^([0-9]+') OR (`zip_from` = ''))))) 
	AND (`price_from` <= 8.1) 
	AND (`price_to` >= 8.1) 
	AND (`weight_from` <= 0.02)
	AND (`weight_to` >= 0.02) 
	AND (`qty_from` <= 2) 
	AND (`qty_to` >= 2) 
	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

It could be related to #40

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