mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Changed LOAD por SOURCE in UMC - MR loader
This commit is contained in:
parent
60de51cfdb
commit
3c78bfc89e
@ -941,7 +941,7 @@ class Client
|
|||||||
$queries = preg_split("/(;\n)|(;\n\r)/", $sql);
|
$queries = preg_split("/(;\n)|(;\n\r)/", $sql);
|
||||||
foreach ($queries as $query) {
|
foreach ($queries as $query) {
|
||||||
if (empty($query) !== true) {
|
if (empty($query) !== true) {
|
||||||
if (preg_match('/^\s*LOAD\s+(.*)$/i', $query, $matches) > 0) {
|
if (preg_match('/^\s*SOURCE\s+(.*)$/i', $query, $matches) > 0) {
|
||||||
$filepath = dirname($mr_file).'/'.$matches[1];
|
$filepath = dirname($mr_file).'/'.$matches[1];
|
||||||
if (file_exists($filepath) === true) {
|
if (file_exists($filepath) === true) {
|
||||||
$query = file_get_contents($filepath);
|
$query = file_get_contents($filepath);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user