Added feature #13508: Use exec_TRUNCATEquery() instead of DELETE FROM throughout...
authorXavier Perseguers <typo3@perseguers.ch>
Mon, 12 Apr 2010 20:10:28 +0000 (20:10 +0000)
committerXavier Perseguers <typo3@perseguers.ch>
Mon, 12 Apr 2010 20:10:28 +0000 (20:10 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/dbal/trunk@32150 735d13b6-9817-0410-8766-e36946ffe9aa

typo3/sysext/dbal/ChangeLog
typo3/sysext/dbal/mod1/index.php

index 098f693..ad07939 100644 (file)
@@ -1,3 +1,7 @@
+2010-04-12  Xavier Perseguers  <typo3@perseguers.ch>
+
+       * Added feature #13508: Use exec_TRUNCATEquery() instead of DELETE FROM throughout the core
+
 2010-03-07  Xavier Perseguers  <typo3@perseguers.ch>
 
        * Fixed bug #4640: Backend login impossible with MSSQL via ODBC (thanks to Felix Eckhofer)
index fdfedae..8b32363 100644 (file)
@@ -387,8 +387,8 @@ updateQryForm(\'' . $input['QUERY'] . '\');
                $cmd = (string)t3lib_div::_GP('cmd');
                switch ($cmd) {
                        case 'flush':
-                               $res = $GLOBALS['TYPO3_DB']->exec_DELETEquery('tx_dbal_debuglog', '');
-                               $res = $GLOBALS['TYPO3_DB']->exec_DELETEquery('tx_dbal_debuglog_where', '');
+                               $res = $GLOBALS['TYPO3_DB']->exec_TRUNCATEquery('tx_dbal_debuglog');
+                               $res = $GLOBALS['TYPO3_DB']->exec_TRUNCATEquery('tx_dbal_debuglog_where');
                                $outStr = 'Log FLUSHED!';
                                break;
                        case 'joins':