From 8f1136474f68fc818d0077112be658a950bb6f2c Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Sat, 24 Feb 2018 08:04:17 -0500 Subject: [PATCH] MCOL-1228 Allow alter table for TEXT/BLOB CHANGE COLUMN was blocked for TEXT and BLOB types. This fix applies to things like TINYTEXT as well as the only difference internally is the column width. --- dbcon/ddlpackageproc/altertableprocessor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dbcon/ddlpackageproc/altertableprocessor.cpp b/dbcon/ddlpackageproc/altertableprocessor.cpp index 7c2cdd249..ba8d7ad7b 100644 --- a/dbcon/ddlpackageproc/altertableprocessor.cpp +++ b/dbcon/ddlpackageproc/altertableprocessor.cpp @@ -174,7 +174,10 @@ bool typesAreSame(const CalpontSystemCatalog::ColType& colType, const ColumnType case (CalpontSystemCatalog::CLOB): break; case (CalpontSystemCatalog::BLOB): + if (newType.fType == DDL_BLOB && colType.colWidth == newType.fLength) return true; + break; case (CalpontSystemCatalog::TEXT): + if (newType.fType == DDL_TEXT && colType.colWidth == newType.fLength) return true; break; default: break;