public function boundSql($sql, $bind, $errorCodesToIgnore = array())
    {
        if ($errorCodesToIgnore === false) {
            $errorCodesToIgnore = array();
        }

        return $this->container->make('Piwik\Updater\Migration\Db\BoundSql', array(
            'sql' => $sql, 'errorCodesToIgnore' => $errorCodesToIgnore, 'bind' => $bind
        ));
    }
public function boundSql($sql, $bind, $errorCodesToIgnore = array())
    {
        if ($errorCodesToIgnore === false) {
            $errorCodesToIgnore = array();
        }

        return $this->container->make('Piwik\Updater\Migration\Db\BoundSql', array(
            'sql' => $sql, 'errorCodesToIgnore' => $errorCodesToIgnore, 'bind' => $bind
        ));
    }
public function boundSql ( $ sql , $ bind , $ errorCodesToIgnore = array ( ) ) { if ( $ errorCodesToIgnore === false ) { $ errorCodesToIgnore = array ( ) ; } return $ this -> container -> make ( 'Piwik\Updater\Migration\Db\BoundSql' , array ( 'sql' => $ sql , 'errorCodesToIgnore' => $ errorCodesToIgnore , 'bind' => $ bind ) ) ; }
Performs a custom SQL query that uses bound parameters during the update.

You can replace values with a question mark and then pass the actual value via `$bind` for better security.

Example:
$factory->boundSql('DELETE * FROM table_name WHERE idsite = ?, array($idSite = 1));

@param string $sql  The SQL query that should be executed. Make sure to prefix a table name via
{@link Piwik\Commin::prefixTable()}.
@param array $bind  An array of values that need to be replaced with the question marks in the SQL query.
@param int|int[] $errorCodesToIgnore Any given MySQL server error code will be ignored. For a list of all
possible error codes have a look at {@link \Piwik\Updater\Migration\Db}.
If no error should be ignored use `false`.
@return BoundSql
Performs a custom SQL query that uses bound parameters during the update .