1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-04 07:47:34 +02:00

DB stuff, nothing cool at all unless you use Oracle.

git-svn-id: file:///svn/phpbb/trunk@6006 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M
2006-06-03 20:34:40 +00:00
parent d198979747
commit 9aa9cb4bb6
4 changed files with 170 additions and 169 deletions

View File

@@ -1792,7 +1792,8 @@ function remove_remarks(&$sql)
function split_sql_file($sql, $delimiter)
{
$sql = str_replace("\r" , '', $sql);
$data = preg_split('/' . $delimiter . '$/m', $sql);
$data = preg_split('/' . preg_quote($delimiter, '/') . '$/m', $sql);
foreach ($data as $key => $value)
{
$data[$key] = trim($value);