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/TMssqlTableColumn.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'framework/Data/Common/Mssql/TMssqlTableColumn.php') diff --git a/framework/Data/Common/Mssql/TMssqlTableColumn.php b/framework/Data/Common/Mssql/TMssqlTableColumn.php index 77c115e5..f108248d 100644 --- a/framework/Data/Common/Mssql/TMssqlTableColumn.php +++ b/framework/Data/Common/Mssql/TMssqlTableColumn.php @@ -37,16 +37,25 @@ class TMssqlTableColumn extends TDbTableColumn return 'string'; } + /** + * @return boolean true if the column has identity (auto-increment) + */ public function getAutoIncrement() { return $this->getInfo('AutoIncrement',false); } + /** + * @return boolean true if auto increments. + */ public function hasSequence() { return $this->getAutoIncrement(); } + /** + * @return boolean true if db type is 'timestamp'. + */ public function getIsExcluded() { return strtolower($this->getDbType())==='timestamp'; -- cgit v1.2.3