|
XOOPS 2.5.6
Final
|
Public Member Functions | |
| prefixQuery ($query, $prefix) | |
| splitMySqlFile (&$ret, $sql) | |
Definition at line 29 of file sqlutility.php.
| SqlUtility::prefixQuery | ( | $query, | |
| $prefix | |||
| ) |
add a prefix.'_' to all tablenames in a query
| string | $query | valid SQL query string |
| string | $prefix | prefix to add to all table names |
Definition at line 152 of file sqlutility.php.
References $query.
Referenced by db_manager\queryFromFile(), XoopsMySQLDatabase\queryFromFile(), and xoops_module_install().

| SqlUtility::splitMySqlFile | ( | & | $ret, |
| $sql | |||
| ) |
Function from phpMyAdmin (http://phpwizard.net/projects/phpMyAdmin/)
Removes comment and splits large sql files into individual queries
Last revision: September 23, 2001 - gandon
| array | $ the splitted sql commands |
| string | $ the sql commands |
Definition at line 42 of file sqlutility.php.
References $i, $j, $ret, and $sql.
Referenced by db_manager\queryFromFile(), XoopsMySQLDatabase\queryFromFile(), and xoops_module_install().
