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/Mssql/TMssqlMetaData.php | |
parent | 84863ce89a1a712aa00df5c33227cecafded881a (diff) |
Fixed sqlmap query with limit and offsets.
Diffstat (limited to 'framework/Data/Common/Mssql/TMssqlMetaData.php')
-rw-r--r-- | framework/Data/Common/Mssql/TMssqlMetaData.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/framework/Data/Common/Mssql/TMssqlMetaData.php b/framework/Data/Common/Mssql/TMssqlMetaData.php index 72d297f7..37ce124f 100644 --- a/framework/Data/Common/Mssql/TMssqlMetaData.php +++ b/framework/Data/Common/Mssql/TMssqlMetaData.php @@ -27,6 +27,14 @@ Prado::using('System.Data.Common.Mssql.TMssqlTableInfo'); class TMssqlMetaData extends TDbMetaData
{
/**
+ * @return string TDbTableInfo class name.
+ */
+ protected function getTableInfoClass()
+ {
+ return 'TMssqlTableInfo';
+ }
+
+ /**
* Get the column definitions for given table.
* @param string table name.
* @return TMssqlTableInfo table information.
@@ -130,7 +138,8 @@ EOD; if($col['TABLE_TYPE']==='VIEW')
$info['IsView'] = true;
list($primary, $foreign) = $this->getConstraintKeys($col);
- return new TMssqlTableInfo($info,$primary,$foreign);
+ $class = $this->getTableInfoClass();
+ return new $class($info,$primary,$foreign);
}
/**
|