Exemplo n.º 1
0
 private int SatisfyPrecision(IColumnMetadata cInfo, cfg.db2hbmconfSqltype candidate)
 {
     if (null == candidate.precision)
     {
         return(0);
     }
     else
     {
         int hi, lo;
         GetHiLo(candidate.length, out hi, out lo);
         if (cInfo.NumericalPrecision >= lo && cInfo.NumericalPrecision <= hi)
         {
             return(1);
         }
         else
         {
             return(0);
         }
     }
 }
Exemplo n.º 2
0
 private int SatisfyLen(IColumnMetadata cInfo, cfg.db2hbmconfSqltype candidate)
 {
     if (null == candidate.length)
     {
         return(0);
     }
     else
     {
         int hi, lo;
         GetHiLo(candidate.length, out hi, out lo);
         if (cInfo.ColumnSize >= lo && cInfo.ColumnSize <= hi)
         {
             return(1);
         }
         else
         {
             return(0);
         }
     }
 }
Exemplo n.º 3
0
 private int SatisfyScale(IColumnMetadata cInfo, cfg.db2hbmconfSqltype candidate)
 {
     return(0);
 }