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).

CommentFileSizeAuthor
#1 pdoexeception_error-2451221-1.patch931 bytesjaffaralia

Comments

jaffaralia’s picture

StatusFileSize
new931 bytes

Here is the patch

jaffaralia’s picture

Status: Active » Needs review

  • MiSc committed a9d44d3 on 7.x-1.x authored by jaffaralia
    Issue #2451221 by jaffaralia: PDOException error message occured
    
misc’s picture

Status: Needs review » Fixed

Looks fine for me.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.