Feature - initial version of SQLite cell caching
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83558 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
parent
07e56b5a60
commit
11c87c19ad
|
@ -199,7 +199,6 @@ class PHPExcel_CachedObjectStorage_SQLite3 extends PHPExcel_CachedObjectStorage_
|
|||
if (is_null($this->_DBHandle)) {
|
||||
$this->_TableName = str_replace('.','_',$this->_getUniqueID());
|
||||
$_DBName = ':memory:';
|
||||
// $_DBName = PHPExcel_Shared_File::sys_get_temp_dir().'/PHPExcel.sqlite3';
|
||||
|
||||
$this->_DBHandle = new SQLite3($_DBName);
|
||||
$this->_DBHandle->exec('CREATE TABLE kvp_'.$this->_TableName.' (id VARCHAR(12) PRIMARY KEY, value BLOB)');
|
||||
|
@ -209,8 +208,6 @@ class PHPExcel_CachedObjectStorage_SQLite3 extends PHPExcel_CachedObjectStorage_
|
|||
|
||||
public function __destruct() {
|
||||
if (!is_null($this->_DBHandle)) {
|
||||
// $this->_DBHandle->exec('DROP TABLE kvp_'.$this->_TableName);
|
||||
|
||||
$this->_DBHandle->close();
|
||||
}
|
||||
$this->_DBHandle = null;
|
||||
|
|
|
@ -230,6 +230,7 @@ class PHPExcel_IOFactory
|
|||
$reader = self::createReader('Excel2007');
|
||||
break;
|
||||
case 'xls':
|
||||
case 'xlsm':
|
||||
$reader = self::createReader('Excel5');
|
||||
break;
|
||||
case 'ods':
|
||||
|
|
Loading…
Reference in New Issue