irm5/include/DBI/DBI.php
/** Run an array of pre-specified queries
     * Churn through a pile of queries given in $querylist.
     *
     * Special feature: if an entry in $queryset is an array, it will be
     * considered to be an associative array of dbtype => query entries.
     * We will run the query corresponding to the dbtype of the database
     * if possible, or otherwise an entry with the special dbtype of
     * '_default', if available.
     *
     * Returns an array of failed queries, if such a thing is desired.
     * An empty array returned means "All good".
     */
Run an array of pre-specified queries
Churn through a pile of queries given in $querylist.

Special feature: if an entry in $queryset is an array, it will be
considered to be an associative array of dbtype => query entries.
We will run the query corresponding to the dbtype of the database
if possible, or otherwise an entry with the special dbtype of
'_default', if available.

Returns an array of failed queries, if such a thing is desired.
An empty array returned means "All good".
Run an array of pre - specified queries Churn through a pile of queries given in $querylist . Special feature : if an entry in $queryset is an array it will be considered to be an associative array of dbtype = > query entries . We will run the query corresponding to the dbtype of the database if possible or otherwise an entry with the special dbtype of ' _default ' if available . Returns an array of failed queries if such a thing is desired . An empty array returned means " All good " .
function BulkQueries($queryset)
    {
        $errorlist = array();
        foreach ($queryset as $q)
        {
            if (is_array($q))
            {
                foreach ($q as $dbtype => $qry)
                {
                    if (ereg("^$dbtype://", $this->dsn))
                    {
                        $q = $qry;
                        break;
                    }
                }
                $q = $q['_default'];
                if (!$q)
                {
                    continue;
                }
            }
            $err = $this->query($q);
            if (MDB::isError($err))
            {
                $errorlist[] = $err->getMessage().$err->getUserInfo();
            }
        }
        return $errorlist;
    }
function BulkQueries ( $ queryset ) { $ errorlist = array ( ) ; foreach ( $ queryset as $ q ) { if ( is_array ( $ q ) ) { foreach ( $ q as $ dbtype => $ qry ) { if ( ereg ( " ^ $ dbtype :// " , $ this -> dsn ) ) { $ q = $ qry ; break ; } } $ q = $ q [ '_default' ] ; if ( ! $ q ) { continue ; } } $ err = $ this -> query ( $ q ) ; if ( MDB :: isError ( $ err ) ) { $ errorlist [ ] = $ err -> getMessage ( ) . $ err -> getUserInfo ( ) ; } } return $ errorlist ; }
Run an array of pre-specified queries
 Churn through a pile of queries given in $querylist.
Run an array of pre - specified queries Churn through a pile of queries given in $querylist .