summaryrefslogtreecommitdiff
path: root/framework/Data/Common/Pgsql/TPgsqlMetaData.php
diff options
context:
space:
mode:
authorwei <>2007-05-08 07:49:50 +0000
committerwei <>2007-05-08 07:49:50 +0000
commit3392e51b4edf84682b66ce9e32d00c1adb3205bb (patch)
treec8263f0d8e6d7b4d28cf69ce48d6beea37b96ed9 /framework/Data/Common/Pgsql/TPgsqlMetaData.php
parent84863ce89a1a712aa00df5c33227cecafded881a (diff)
Fixed sqlmap query with limit and offsets.
Diffstat (limited to 'framework/Data/Common/Pgsql/TPgsqlMetaData.php')
-rw-r--r--framework/Data/Common/Pgsql/TPgsqlMetaData.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/framework/Data/Common/Pgsql/TPgsqlMetaData.php b/framework/Data/Common/Pgsql/TPgsqlMetaData.php
index c68bbaa0..0b647445 100644
--- a/framework/Data/Common/Pgsql/TPgsqlMetaData.php
+++ b/framework/Data/Common/Pgsql/TPgsqlMetaData.php
@@ -29,6 +29,14 @@ class TPgsqlMetaData extends TDbMetaData
private $_defaultSchema = 'public';
/**
+ * @return string TDbTableInfo class name.
+ */
+ protected function getTableInfoClass()
+ {
+ return 'TPgsqlTableInfo';
+ }
+
+ /**
* @param string default schema.
*/
public function setDefaultSchema($schema)
@@ -126,7 +134,8 @@ EOD;
if($this->getIsView($schemaName,$tableName))
$info['IsView'] = true;
list($primary, $foreign) = $this->getConstraintKeys($schemaName, $tableName);
- return new TPgsqlTableInfo($info,$primary,$foreign);
+ $class = $this->getTableInfoClass();
+ return new $class($info,$primary,$foreign);
}
/**