예제 #1
0
        public void FloatColumn(int prec)
        {
            var type = "float";

            if (prec > 0)
            {
                type += $"({prec})";
            }
            CreateTable(type, TestTableCreator.GetBinaryFloatSqlValue());
        }
예제 #2
0
 public void FloatColumn(int length)
 {
     if (length <= 0)
     {
         CreateTable("float", TestTableCreator.GetBinaryDoubleSqlValue());
     }
     else if (length > 24)
     {
         CreateTable($"float({length})", TestTableCreator.GetBinaryDoubleSqlValue());
     }
     else
     {
         CreateTable($"float({length})", TestTableCreator.GetBinaryFloatSqlValue());
     }
 }
예제 #3
0
 public void Real()
 {
     CreateTable("real", TestTableCreator.GetBinaryFloatSqlValue());
 }
예제 #4
0
 public void BinaryFloatColumn()
 {
     CreateTable("binary_float", TestTableCreator.GetBinaryFloatSqlValue());
 }