]> git.mxchange.org Git - mailer.git/blobdiff - inc/db/lib-mysql3.php
New naming convention applied to many functions, see #118 for details
[mailer.git] / inc / db / lib-mysql3.php
index 3ef8c2acc83bfeb22f05fdc34a28ed5759cf72bf..b0de8af3fce16d60a795825c28db6cd3e09cf18c 100644 (file)
@@ -217,7 +217,7 @@ function SQL_CLOSE ($F, $L) {
                incrementConfigEntry('db_hits', getConfig('db_hits_run'));
 
                // Update counter for db/cache
-               UPDATE_CONFIG(array('db_hits', 'cache_hits'), array(getConfig(('db_hits')), getConfig(('cache_hits'))));
+               updateConfiguration(array('db_hits', 'cache_hits'), array(getConfig(('db_hits')), getConfig(('cache_hits'))));
        } // END - if
 
        // Close database link and forget the link
@@ -371,7 +371,7 @@ function SQL_ALTER_TABLE ($sql, $F, $L) {
                // 123           4       4     3    3    4           432    23           4       4     3    3    4            4321
                if (((SQL_NUMROWS($result) == 0) && (ereg("ADD", $sql))) || ((SQL_NUMROWS($result) == 1) && (ereg("DROP", $sql)))) {
                        // Do the query
-                       //* DEBUG: */ print __LINE__.":".$sql."<br />\n";
+                       //* DEBUG: */ print __LINE__.':'.$sql."<br />\n";
                        $result = SQL_QUERY($sql, $F, $L, false);
                } // END - if
        } elseif ((constant('_TABLE_TYPE') == "InnoDB") && (ereg("FULLTEXT", $sql))) {
@@ -388,11 +388,11 @@ function SQL_ALTER_TABLE ($sql, $F, $L) {
                        while (strpos($columnName, ",") !== false) {
                                // Use last
                                $columnName = str_replace("`", '', $tableArray[count($tableArray) - $begin]);
-                               //* DEBUG: */ print __LINE__.":".$columnName."----------------".$begin."<br />\n";
+                               //* DEBUG: */ print __LINE__.':'.$columnName."----------------".$begin."<br />\n";
 
                                // Remove brackes
                                $columnName = str_replace("(", '', str_replace(")", '', $columnName));
-                               //* DEBUG: */ print __LINE__.":".$columnName."----------------".$begin."<br />\n";
+                               //* DEBUG: */ print __LINE__.':'.$columnName."----------------".$begin."<br />\n";
 
                                // Continue
                                $begin++;
@@ -422,12 +422,12 @@ function SQL_ALTER_TABLE ($sql, $F, $L) {
                // Shall we run it?
                if (!$skip) {
                        // Send it to the SQL_QUERY() function
-                       //* DEBUG: */ print __LINE__.":".$sql."<br />\n";
+                       //* DEBUG: */ print __LINE__.':'.$sql."<br />\n";
                        $result = SQL_QUERY($sql, $F, $L, false);
                } // END - if
        } else {
                // Other ALTER TABLE query
-               //* DEBUG: */ print __LINE__.":".$sql."<br />\n";
+               //* DEBUG: */ print __LINE__.':'.$sql."<br />\n";
                $result = SQL_QUERY($sql, $F, $L, false);
        }