api_index update errors when using table prefix #11

Description
Created by Bernard Bondos, 28th Nov 2010. (originally Lighthouse ticket #33):
When running api_index update
in a app that's using db table prefix, truncate errors shows up:
PHP Warning: SQL Error: 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 'ion_api_classes``' at line 1 in /home/dire.pl/www/api.dire.pl/htdocs/ion/cake/libs/model/datasources/dbo_source.php on line 684
Warning: SQL Error: 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 'ion_api_classes``' at line 1 in /home/dire.pl/www/api.dire.pl/htdocs/ion/cake/libs/model/datasources/dbo_source.php on line 684
Query: TRUNCATE TABLE `ion_`ion_api_classes``