PDOException error message occured when I un check setting from content type then I recieve error message.
Steps to reproduced
step1: Enable the search api exclude module
step2: Go to URL: admin/structure/types/manage/article
Step3: check "Search API Exclude support" under "Search API Exclude" fieldset
step4: Click save content type
Step5: Again Go to URL: admin/structure/types/manage/article
Step6: un check "Search API Exclude support" under "Search API Exclude" fieldset
step7: Click save content type
Then you recieve this error message
PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '))' at line 1: DELETE FROM {search_api_exclude} WHERE (nid IN ()) ; Array ( ) in search_api_exclude_form_node_type_form_submit() (line 143 of C:\xampp\htdocs\drupal\sites\all\modules\search_api_exclude\search_api_exclude.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | pdoexeception_error-2451221-1.patch | 931 bytes | jaffaralia |
Comments
Comment #1
jaffaralia commentedHere is the patch
Comment #2
jaffaralia commentedComment #4
misc commentedLooks fine for me.