Replacement for queryBatch()

80 views
Skip to first unread message

Tom Fuller

unread,
Feb 7, 2012, 6:15:26 PM2/7/12
to joomla-de...@googlegroups.com
I see that queryBatch() has been depreciated. Is there a replacement for this vital function?

Niels Braczek

unread,
Feb 7, 2012, 6:23:50 PM2/7/12
to joomla-de...@googlegroups.com
Am 08.02.2012 00:15, schrieb Tom Fuller:

> I see that queryBatch() has been depreciated. Is there a replacement for
> this vital function?

Unlikely. One should use transactions instead, which are/might be
handled differently with different database engines.

Regards,
Niels

--
| http://barcamp-wk.de · 1. Barcamp Westküste 30./31. März 2012 |
| http://www.bsds.de · BSDS Braczek Software- und DatenSysteme |
| Webdesign · Webhosting · e-Commerce · Joomla! Content Management |
------------------------------------------------------------------

Tom Fuller

unread,
Feb 7, 2012, 7:28:45 PM2/7/12
to joomla-de...@googlegroups.com
Thanks - any quick links to where transactions occur in the platform or Joomla CMS for direction on how to code for an extension?

Tom

Niels Braczek

unread,
Feb 7, 2012, 8:36:06 PM2/7/12
to joomla-de...@googlegroups.com
Am 08.02.2012 01:28, schrieb Tom Fuller:

> Thanks - any quick links to where transactions occur in the platform or
> Joomla CMS for direction on how to code for an extension?

See

JDatabase::transactionStart();
JDatabase::transactionCommit();
JDatabase::transactionRollback();

and

JDatabase::splitSql($sql)

Regards,
Niels

--
| http://barcamp-wk.de · 1. Barcamp Westküste 2./3. März 2012 |

Tom Fuller

unread,
Feb 7, 2012, 10:24:00 PM2/7/12
to joomla-de...@googlegroups.com
That's exactly what I needed. We'll start using splitSql right away.

I'll also look into the transactions too.

Tom
Reply all
Reply to author
Forward
0 new messages