Project

General

Profile

Actions

Bug #21370

closed

Remove t3lib_sqlengine from Core and move it to DBAL

Added by Xavier Perseguers over 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2009-10-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

t3lib_sqlengine is not used at all in Core, it is only used within DBAL. It was thought as being a standard class when accessing other DBMS than MySQL (examples are available in DBAL/handlers with OpenOffice for instance).

There is a real issue keeping it in Core as it is defined as

class t3lib_sqlengine extends t3lib_sqlparser

and is XCLASSed in DBAL but as DBAL XCLASSes both t3lib_sqlparser and t3lib_sqlengine, modifications in ux_t3lib_sqlparser have to be copied to ux_t3lib_sqlengine too. This is a real pain.

I suggest to move it to DBAL and to let me and the DBAL team worry about what to do with it :-)

Just be pragmatic, using other DBMS than MySQL was a wish some years ago but DBAL is the only known extension having done this with some success we have to agree. Now, face the reality and accept nobody is willing to try to do it "better" and let DBAL have more chance to enhance on itself.

I do not provide a patch, instead following should be done:

- Move class.t3lib_sqlengine.php to DBAL-trunk/class.dbal_sqlengine.php with "svn mv" (you may let me do the DBAL stuff of renaming the class itself afterwards):

$ svn mv class.t3lib_sqlengine.php https://svn.typo3.org/TYPO3v4/Extensions/dbal/trunk/class.dbal_sqlengine.php

- Remove reference from it in t3lib/core_autoload.php
- Update comment of method dumpTableContent in typo3/mod/tools/em/class.em_index.php to reflect its new name "dbal_sqlengine"

This can be done in very short time (including updating DBAL), which would then allow Core not to be broken by anybody using Core-trunk but not DBAL-trunk (which I would not recommend anyway).
(issue imported from #M12354)


Files

12354.diff (607 Bytes) 12354.diff Administrator Admin, 2009-10-26 23:45
Actions #1

Updated by Xavier Perseguers over 14 years ago

It has been chosen to deprecate the class instead. Changes have been committed to DBAL trunk.

Actions #2

Updated by Steffen Kamper over 14 years ago

committed to trunk, rev 6281

Actions

Also available in: Atom PDF