Comment 1 for bug 1364288

Revision history for this message
Nilnandan Joshi (nilnandan-joshi) wrote :

Able to reproduce the same. There is no table like "tablename" in test database. Still its trying to run DROP TABLE and giving syntax error.

nilnandan@Dell-XPS:~$ pt-find --version
pt-find 2.2.10
nilnandan@Dell-XPS:~$ pt-find --user=root --ask-pass --ctime +10 --tbllike 'tablename%' test --exec-plus 'DROP TABLE %s'
Enter password:
DBD::mysql::db do failed: 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 [for Statement "DROP TABLE "] at /usr/bin/pt-find line 4119.
nilnandan@Dell-XPS:~$