[TYPO3-dam-devel] RFC #9830: Not responing queries using category selections

Michiel Roos [netcreators] michiel at netcreators.com
Tue Dec 9 18:45:52 CET 2008


Peter Kuehn [wmdb] schreef:
> ola,
> 
> savely detect what DB exactly were running on might end up in a lot of
> struggling with $TYPO3_CONF_VARS['EXTCONF']['dbal']['etc']['pp']...
> 
> i guess noone would (hopefully) install dbal, if he doesnt want to use a
> different DB - so maybe a plain t3lib_extMgm::isLoaded('dbal') would do
> the job -
> 
> would it?

Uhm, no.

Maybe some person wants to use certain tables from one db and other
tables from another db.

If we choose to use mysql specific queries, we must provide clean SQL
alternatives.

We should check if dbal is loaded and if it is, check if what db is
running for the tables we want to do the query on and if that is mysql,
then run the optimized query, else the default one.

Warm regards,


Michiel Roos

-- 
Netcreators BV :: creation and innovation
www.netcreators.com

Interesse in werken bij Netcreators?
http://www.netcreators.com/bedrijf/vacatures/


More information about the TYPO3-team-dam mailing list