Github user DaveBirdsall commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/590#discussion_r70331296
--- Diff: core/sql/common/MiscType.cpp ---
@@ -40,41 +40,107 @@
// ***********************************************************************
//
-// SQLBoolean : The boolean data type
+// SQLBooleanBase : The boolean data type
//
// ***********************************************************************
-NAType * SQLBoolean::newCopy(CollHeap* h) const
-{
- return new(h) SQLBoolean(unknownFlag_,h);
+SQLBooleanBase::SQLBooleanBase(NABoolean allowSQLnull,
+ NABoolean isRelat,
+ NAMemory * heap) :
+ NAType(LiteralBoolean,
+ NA_BOOLEAN_TYPE,
+ (isRelat ? 4 : 1), // dataStorageSize
+ allowSQLnull,
+ (allowSQLnull ? SQL_NULL_HDR_SIZE : 0),
+ FALSE, // variableLength
+ 0, // lengthHeaderSize
+ (isRelat ? 4 : 1), // dataAlignment
+ heap
+ )
+{
}
-short SQLBoolean::getFSDatatype() const
+// ---------------------------------------------------------------------
+// A method which tells if a conversion error can occur when converting
+// a value of this type to the target type.
+// This method is a stub and so just returns true for now.
--- End diff --
It's not a stub anymore, it seems.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---