/** * Executes an unprepared SQL query on the DB. Recommended for DDL statements, e.g., CREATE/DROP/ALTER. * The return result is DBMS-specific. For MySQLI, it returns the number of rows affected. For PDO, it returns the Zend_Db_Statement object * If you want to fetch data from the DB you should use the function Piwik_FetchAll() * * @see Piwik_Sql::exec * * @param string $sqlQuery SQL Query * @return integer|Zend_Db_Statement */ function Piwik_Exec($sqlQuery) { return Piwik_Sql::exec($sqlQuery); }