XOOPS
2.6.0
|
Static Public Member Functions | |
static | prefixQuery ($query, $prefix) |
static | splitMySqlFile (&$ret, $sql) |
Definition at line 28 of file sqlutility.php.
|
static |
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 126 of file sqlutility.php.
References $query.
Referenced by SystemModule\install(), XoopsDatabaseManager\queryFromFile(), Xoops\Core\Database\Connection\queryFromFile(), and XoopsMySQLDatabase\queryFromFile().
|
static |
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 | &$ret | the splitted sql commands |
string | $sql | the sql commands |
Definition at line 43 of file sqlutility.php.
Referenced by SystemModule\install(), XoopsDatabaseManager\queryFromFile(), Xoops\Core\Database\Connection\queryFromFile(), and XoopsMySQLDatabase\queryFromFile().