Re: depreciated queryBatch()

111 views
Skip to first unread message

WP4J

unread,
Apr 19, 2013, 10:47:37 AM4/19/13
to joomla-de...@googlegroups.com
I actually worked it out myself:

$jversion = new JVersion();
        if(version_compare($jversion->getShortVersion(), '3.0', 'ge')){
        $queries = $db->splitSql($install_sql);
        foreach($queries as $query){
        $db->setQuery($query);
        $db->query();
        }
        } else {
        $db->setQuery($install_sql);
        $db->queryBatch(false);
        }

On Thursday, April 18, 2013 11:47:22 PM UTC-3, WP4J wrote:

Here is a run down on what the problem is:


I would like to know how I can duplicate queryBatch() in J! 3.0 so it works something like this:

$jversion = new JVersion();

        if(version_compare($jversion->getShortVersion(), '3.0', 'ge')) {
        //batch the query in joomla 3
        } else {
        $db->queryBatch(false);
        }

Thanks.
Reply all
Reply to author
Forward
0 new messages