diff options
author | wei <> | 2007-05-08 07:49:50 +0000 |
---|---|---|
committer | wei <> | 2007-05-08 07:49:50 +0000 |
commit | 3392e51b4edf84682b66ce9e32d00c1adb3205bb (patch) | |
tree | c8263f0d8e6d7b4d28cf69ce48d6beea37b96ed9 /framework/Data/Common/Sqlite | |
parent | 84863ce89a1a712aa00df5c33227cecafded881a (diff) |
Fixed sqlmap query with limit and offsets.
Diffstat (limited to 'framework/Data/Common/Sqlite')
-rw-r--r-- | framework/Data/Common/Sqlite/TSqliteMetaData.php | 11 |
1 files changed, 10 insertions, 1 deletions
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 @@ -27,6 +27,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.
* @return TPgsqlTableInfo table information.
@@ -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;
}
|