X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Ftable.lisp;h=dd5ccb95726549bb1c60adc8faf27e7e6fbdde2c;hb=3ec4277531c7c19b1cffade823d3e2e3f928ceb3;hp=52b5c1a155143c3b96a51228b9bfe4d504f2bc31;hpb=db9892632e6eb7869aea7a94c16b523a82de1501;p=clsql.git diff --git a/sql/table.lisp b/sql/table.lisp index 52b5c1a..dd5ccb9 100644 --- a/sql/table.lisp +++ b/sql/table.lisp @@ -173,6 +173,8 @@ specification of a table to drop the index from." (unless (index-exists-p index-name :database database) (return-from drop-index))) (:error t)) + (unless (db-use-column-on-drop-index? (database-underlying-type database)) + (setq on nil)) (execute-command (format nil "DROP INDEX ~A~A" index-name (if (null on) "" (concatenate 'string " ON "