summaryrefslogtreecommitdiff
path: root/storage/connect/table.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage/connect/table.cpp')
-rw-r--r--storage/connect/table.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/storage/connect/table.cpp b/storage/connect/table.cpp
index 5db50d44787..b093e2102c2 100644
--- a/storage/connect/table.cpp
+++ b/storage/connect/table.cpp
@@ -28,8 +28,6 @@
int TDB::Tnum = 0;
-extern "C" int trace; // The general trace value
-
/***********************************************************************/
/* Utility routines. */
/***********************************************************************/
@@ -193,6 +191,18 @@ PSZ TDBASE::GetPath(void)
} // end of GetPath
/***********************************************************************/
+/* Return true if name is a special column of this table. */
+/***********************************************************************/
+bool TDBASE::IsSpecial(PSZ name)
+ {
+ for (PCOLDEF cdp = To_Def->GetCols(); cdp; cdp = cdp->GetNext())
+ if (!stricmp(cdp->GetName(), name) && (cdp->Flags & U_SPECIAL))
+ return true; // Special column to ignore while inserting
+
+ return false; // Not found or not special or not inserting
+ } // end of IsSpecial
+
+/***********************************************************************/
/* Initialize TDBASE based column description block construction. */
/* name is used to call columns by name. */
/* num is used by TBL to construct columns by index number. */