From 3392e51b4edf84682b66ce9e32d00c1adb3205bb Mon Sep 17 00:00:00 2001 From: wei <> Date: Tue, 8 May 2007 07:49:50 +0000 Subject: Fixed sqlmap query with limit and offsets. --- framework/Data/Common/Sqlite/TSqliteMetaData.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'framework/Data/Common/Sqlite') diff --git a/framework/Data/Common/Sqlite/TSqliteMetaData.php b/framework/Data/Common/Sqlite/TSqliteMetaData.php index 5e1c5f77..aa2ed724 100644 --- a/framework/Data/Common/Sqlite/TSqliteMetaData.php +++ b/framework/Data/Common/Sqlite/TSqliteMetaData.php @@ -26,6 +26,14 @@ Prado::using('System.Data.Common.Sqlite.TSqliteTableInfo'); */ class TSqliteMetaData extends TDbMetaData { + /** + * @return string TDbTableInfo class name. + */ + protected function getTableInfoClass() + { + return 'TSqliteTableInfo'; + } + /** * Get the column definitions for given table. * @param string table name. @@ -55,7 +63,8 @@ class TSqliteMetaData extends TDbMetaData $info['IsView'] = true; if(count($columns)===0) throw new TDbException('dbmetadata_invalid_table_view', $tableName); - $tableInfo = new TSqliteTableInfo($info,$primary,$foreign); + $class = $this->getTableInfoClass(); + $tableInfo = new $class($info,$primary,$foreign); $tableInfo->getColumns()->copyFrom($columns); return $tableInfo; } -- cgit v1.2.3