Skip to content
Snippets Groups Projects
Commit db200fe4 authored by Satish's avatar Satish
Browse files

Fixes #588 - vt7.0.1 CSV Import no longer works

parent 29ca1703
No related branches found
No related tags found
No related merge requests found
......@@ -810,6 +810,16 @@ class PearDatabase{
if ($this->database->clientFlags == 0 && isset($dbconfigoption['clientFlags'])) {
$this->database->clientFlags = $dbconfigoption['clientFlags'];
}
if ($this->dbType == 'mysqli') {
$optionFlags = array();
if ($this->database->optionFlags) {
$optionFlags = $this->database->optionFlags;
}
$optionFlags = array_merge($optionFlags, array(array(MYSQLI_OPT_LOCAL_INFILE, true)));
$this->database->optionFlags = $optionFlags;
}
// End
$result = $this->database->PConnect($this->dbHostName, $this->userName, $this->userPassword, $this->dbName);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment