represents a Mssql-specific column  
 More...
#include <MssqlSqlUtilBase.qm.dox.h>
 | 
| 
  | constructor (string n, string nt, *string qt, int sz, bool nul, *string dv, *string cm, softint bs, *int scale) | 
|   | creates the column from the supplied arguments 
  | 
|   | 
| softlist  | getAddColumnSql (AbstractTable t) | 
|   | returns a list of sql strings that can be used to add the column to an existing table  More...
  | 
|   | 
| string  | getDdlName (string name) | 
|   | returns the column name with quoting in case the column name is a reserved word  More...
  | 
|   | 
| list  | getModifySqlImpl (AbstractTable t, AbstractColumn col, *hash opt) | 
|   | returns a list of sql strings that can be used to modify the column to the new definition; if the column definitions are identical then an empty list is returned  More...
  | 
|   | 
| string  | getRenameSql (AbstractTable t, string new_name) | 
|   | returns a string that can be used to rename the column  More...
  | 
|   | 
 | 
| 
int  | byte_size | 
|   | byte size of the column 
  | 
|   | 
 | 
| 
  | constructor () | 
|   | empty constructor for subclasses 
  | 
|   | 
| 
bool  | equalImpl (AbstractColumn c) | 
|   | returns True if the argument is equal to the current object, False if not 
  | 
|   | 
represents a Mssql-specific column 
 
◆ getAddColumnSql()
      
        
          | softlist MssqlSqlUtilBase::MssqlColumn::getAddColumnSql  | 
          ( | 
          AbstractTable  | 
          t | ) | 
           | 
        
      
 
returns a list of sql strings that can be used to add the column to an existing table 
- Example:
 list l = col.getAddColumnSql(t);
- Parameters
 - 
  
  
 
 
 
◆ getDdlName()
  
  
      
        
          | string MssqlSqlUtilBase::MssqlColumn::getDdlName  | 
          ( | 
          string  | 
          name | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
returns the column name with quoting in case the column name is a reserved word 
the name returned here will be used when executing DDL 
Implements SqlUtil::AbstractDdlObject.
 
 
◆ getModifySqlImpl()
      
        
          | list MssqlSqlUtilBase::MssqlColumn::getModifySqlImpl  | 
          ( | 
          AbstractTable  | 
          t,  | 
        
        
           | 
           | 
          AbstractColumn  | 
          col,  | 
        
        
           | 
           | 
          *hash  | 
          opt  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
returns a list of sql strings that can be used to modify the column to the new definition; if the column definitions are identical then an empty list is returned 
- Example:
 list l = col.getModifySql(t, newcol);
The column names are assumed to be equal.
- Parameters
 - 
  
    | t | the SqlUtil::AbstractTable object to modify  | 
    | col | the new column definition  | 
    | opt | column modification options (none are supported in this class) | 
  
   
- Returns
 - a list of sql strings that can be used to modify the column to the new definition; if the column definitions are identical then an empty list is returned 
 
 
 
◆ getRenameSql()
      
        
          | string MssqlSqlUtilBase::MssqlColumn::getRenameSql  | 
          ( | 
          AbstractTable  | 
          t,  | 
        
        
           | 
           | 
          string  | 
          new_name  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
returns a string that can be used to rename the column 
- Example:
 string str = col.getRenameSql(t, "new_name");
- Parameters
 - 
  
  
 
- Returns
 - a string that can be used to rename the column