From 4a2ebb333d239b58c19d09ee88646fa0e32e71ed Mon Sep 17 00:00:00 2001 From: wei <> Date: Mon, 16 Apr 2007 02:02:27 +0000 Subject: Updates to db stuff, removed js build from build.xml (no longer necessary) --- framework/Data/Common/Mssql/TMssqlMetaData.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'framework/Data/Common/Mssql/TMssqlMetaData.php') diff --git a/framework/Data/Common/Mssql/TMssqlMetaData.php b/framework/Data/Common/Mssql/TMssqlMetaData.php index c70bc349..5d14aac1 100644 --- a/framework/Data/Common/Mssql/TMssqlMetaData.php +++ b/framework/Data/Common/Mssql/TMssqlMetaData.php @@ -1,4 +1,14 @@ + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005-2007 PradoSoft + * @license http://www.pradosoft.com/license/ + * @version $Id: TPgsqlMetaData.php 1866 2007-04-14 05:02:29Z wei $ + * @package System.Data.Common.Pgsql + */ /** * Load the base TDbMetaData class. @@ -6,6 +16,14 @@ Prado::using('System.Data.Common.TDbMetaData'); Prado::using('System.Data.Common.Mssql.TMssqlTableInfo'); +/** + * TMssqlMetaData loads MSSQL database table and column information. + * + * @author Wei Zhuo + * @version $Id: TPgsqlMetaData.php 1866 2007-04-14 05:02:29Z wei $ + * @package System.Data.Commom.Pgsql + * @since 3.1 + */ class TMssqlMetaData extends TDbMetaData { /** @@ -45,9 +63,15 @@ EOD; $tableInfo = $this->createNewTableInfo($col); $this->processColumn($tableInfo,$col); } + if($tableInfo===null) + throw new TDbException('dbmetadata_invalid_table_view', $table); return $tableInfo; } + /** + * @param string table name + * @return array tuple($catalogName,$schemaName,$tableName) + */ protected function getCatalogSchemaTableName($table) { //remove possible delimiters -- cgit v1.2.3