From 503cdec992e78bf4180fa720800b9d3a3bc551e2 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sun, 3 Dec 2006 22:26:04 +0000 Subject: Allow TDbConnection and TDbCommand to be serialized. --- framework/Data/ActiveRecord/Vendor/TDbMetaData.php | 3 +++ framework/Data/ActiveRecord/Vendor/TDbMetaDataCommon.php | 3 +++ framework/Data/ActiveRecord/Vendor/TDbMetaDataInspector.php | 3 +++ framework/Data/ActiveRecord/Vendor/TMysqlColumnMetaData.php | 3 +++ framework/Data/ActiveRecord/Vendor/TMysqlMetaData.php | 3 +++ framework/Data/ActiveRecord/Vendor/TMysqlMetaDataInspector.php | 3 +++ framework/Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php | 3 +++ framework/Data/ActiveRecord/Vendor/TPgsqlMetaData.php | 3 +++ framework/Data/ActiveRecord/Vendor/TPgsqlMetaDataInspector.php | 3 +++ framework/Data/ActiveRecord/Vendor/TSqliteColumnMetaData.php | 3 +++ framework/Data/ActiveRecord/Vendor/TSqliteMetaData.php | 8 ++++++-- framework/Data/ActiveRecord/Vendor/TSqliteMetaDataInspector.php | 3 +++ 12 files changed, 39 insertions(+), 2 deletions(-) (limited to 'framework/Data/ActiveRecord/Vendor') diff --git a/framework/Data/ActiveRecord/Vendor/TDbMetaData.php b/framework/Data/ActiveRecord/Vendor/TDbMetaData.php index 490515f6..4bbc62ee 100644 --- a/framework/Data/ActiveRecord/Vendor/TDbMetaData.php +++ b/framework/Data/ActiveRecord/Vendor/TDbMetaData.php @@ -3,6 +3,9 @@ * TDbMetaData class file. * * @author Wei Zhuo + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005-2007 PradoSoft + * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Data.ActiveRecord.Vendor */ diff --git a/framework/Data/ActiveRecord/Vendor/TDbMetaDataCommon.php b/framework/Data/ActiveRecord/Vendor/TDbMetaDataCommon.php index 69f49dc1..44b33ab1 100644 --- a/framework/Data/ActiveRecord/Vendor/TDbMetaDataCommon.php +++ b/framework/Data/ActiveRecord/Vendor/TDbMetaDataCommon.php @@ -3,6 +3,9 @@ * TDbMetaDataCommon class file. * * @author Wei Zhuo + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005-2007 PradoSoft + * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Data.ActiveRecord.Vendor */ diff --git a/framework/Data/ActiveRecord/Vendor/TDbMetaDataInspector.php b/framework/Data/ActiveRecord/Vendor/TDbMetaDataInspector.php index ee7f339e..6c23ccb2 100644 --- a/framework/Data/ActiveRecord/Vendor/TDbMetaDataInspector.php +++ b/framework/Data/ActiveRecord/Vendor/TDbMetaDataInspector.php @@ -3,6 +3,9 @@ * TDbMetaDataInspector class file. * * @author Wei Zhuo + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005-2007 PradoSoft + * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Data.ActiveRecord.Vendor */ diff --git a/framework/Data/ActiveRecord/Vendor/TMysqlColumnMetaData.php b/framework/Data/ActiveRecord/Vendor/TMysqlColumnMetaData.php index 8f4abf99..b5bd4050 100644 --- a/framework/Data/ActiveRecord/Vendor/TMysqlColumnMetaData.php +++ b/framework/Data/ActiveRecord/Vendor/TMysqlColumnMetaData.php @@ -3,6 +3,9 @@ * TMysqlColumnMetaData class file. * * @author Wei Zhuo + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005-2007 PradoSoft + * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Data.ActiveRecord.Vendor */ diff --git a/framework/Data/ActiveRecord/Vendor/TMysqlMetaData.php b/framework/Data/ActiveRecord/Vendor/TMysqlMetaData.php index 7902146d..1289afa5 100644 --- a/framework/Data/ActiveRecord/Vendor/TMysqlMetaData.php +++ b/framework/Data/ActiveRecord/Vendor/TMysqlMetaData.php @@ -3,6 +3,9 @@ * TMysqlMetaData class file. * * @author Wei Zhuo + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005-2007 PradoSoft + * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Data.ActiveRecord.Vendor */ diff --git a/framework/Data/ActiveRecord/Vendor/TMysqlMetaDataInspector.php b/framework/Data/ActiveRecord/Vendor/TMysqlMetaDataInspector.php index 6075d2bc..1c63eec1 100644 --- a/framework/Data/ActiveRecord/Vendor/TMysqlMetaDataInspector.php +++ b/framework/Data/ActiveRecord/Vendor/TMysqlMetaDataInspector.php @@ -3,6 +3,9 @@ * TMysqlMetaDataInspector class file. * * @author Wei Zhuo + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005-2007 PradoSoft + * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Data.ActiveRecord.Vendor */ diff --git a/framework/Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php b/framework/Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php index 2b801b09..d6ea8ca7 100644 --- a/framework/Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php +++ b/framework/Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php @@ -3,6 +3,9 @@ * TPgsqlColumnMetaData class file. * * @author Wei Zhuo + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005-2007 PradoSoft + * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Data.ActiveRecord.Vendor */ diff --git a/framework/Data/ActiveRecord/Vendor/TPgsqlMetaData.php b/framework/Data/ActiveRecord/Vendor/TPgsqlMetaData.php index 7f4f1f82..5fc0fcaf 100644 --- a/framework/Data/ActiveRecord/Vendor/TPgsqlMetaData.php +++ b/framework/Data/ActiveRecord/Vendor/TPgsqlMetaData.php @@ -3,6 +3,9 @@ * TPgsqlMetaData class file. * * @author Wei Zhuo + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005-2007 PradoSoft + * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Data.ActiveRecord.Vendor */ diff --git a/framework/Data/ActiveRecord/Vendor/TPgsqlMetaDataInspector.php b/framework/Data/ActiveRecord/Vendor/TPgsqlMetaDataInspector.php index df31b9c0..bcdfefe3 100644 --- a/framework/Data/ActiveRecord/Vendor/TPgsqlMetaDataInspector.php +++ b/framework/Data/ActiveRecord/Vendor/TPgsqlMetaDataInspector.php @@ -3,6 +3,9 @@ * TPgsqlMetaDataInspector class file. * * @author Wei Zhuo + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005-2007 PradoSoft + * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Data.ActiveRecord.Vendor */ diff --git a/framework/Data/ActiveRecord/Vendor/TSqliteColumnMetaData.php b/framework/Data/ActiveRecord/Vendor/TSqliteColumnMetaData.php index 94029cfa..366bfce2 100644 --- a/framework/Data/ActiveRecord/Vendor/TSqliteColumnMetaData.php +++ b/framework/Data/ActiveRecord/Vendor/TSqliteColumnMetaData.php @@ -3,6 +3,9 @@ * TSqliteColumnMetaData class file. * * @author Wei Zhuo + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005-2007 PradoSoft + * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Data.ActiveRecord.Vendor */ diff --git a/framework/Data/ActiveRecord/Vendor/TSqliteMetaData.php b/framework/Data/ActiveRecord/Vendor/TSqliteMetaData.php index a5f45090..75c30c93 100644 --- a/framework/Data/ActiveRecord/Vendor/TSqliteMetaData.php +++ b/framework/Data/ActiveRecord/Vendor/TSqliteMetaData.php @@ -3,6 +3,9 @@ * TSqliteMetaData class file. * * @author Wei Zhuo + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005-2007 PradoSoft + * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Data.ActiveRecord.Vendor */ @@ -64,9 +67,10 @@ class TSqliteMetaData extends TDbMetaDataCommon */ public function postQuery($rows) { + $data = array(); foreach($rows as $k=>$v) - $rows[$k] = $this->postQueryRow($v); - return $rows; + $data[$k] = $this->postQueryRow($v); + return $data; } } diff --git a/framework/Data/ActiveRecord/Vendor/TSqliteMetaDataInspector.php b/framework/Data/ActiveRecord/Vendor/TSqliteMetaDataInspector.php index 07fa3187..29bc3b8a 100644 --- a/framework/Data/ActiveRecord/Vendor/TSqliteMetaDataInspector.php +++ b/framework/Data/ActiveRecord/Vendor/TSqliteMetaDataInspector.php @@ -3,6 +3,9 @@ * TSqliteMetaDataInspector class file. * * @author Wei Zhuo + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005-2007 PradoSoft + * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Data.ActiveRecord.Vendor */ -- cgit v1.2.3