コード例 #1
0
 public SqlChars(SqlString value)
 {
     if (value.IsNull)
     {
         this.notNull = false;
         this.buffer = null;
     }
     else
     {
         this.notNull = true;
         this.buffer = value.Value.ToCharArray();
         this.storage = StorageState.Buffer;
     }
 }
コード例 #2
0
 public int CompareTo(SqlString value)
 {
     return this.CompareSqlString(value);
 }
コード例 #3
0
 public static SqlBoolean NotEquals(SqlString x, SqlString y)
 {
     return (x != y);
 }
コード例 #4
0
 public static SqlString Add(SqlString x, SqlString y)
 {
     return (x + y);
 }
コード例 #5
0
 public static SqlBoolean LessThan(SqlString x, SqlString y)
 {
     return (x < y);
 }
コード例 #6
0
 public static SqlBoolean LessThanOrEqual(SqlString x, SqlString y)
 {
     return (x <= y);
 }
コード例 #7
0
 public static SqlBoolean GreaterThanOrEqual(SqlString x, SqlString y)
 {
     return (x >= y);
 }
コード例 #8
0
 public static SqlBoolean GreaterThan(SqlString x, SqlString y)
 {
     return (x > y);
 }
コード例 #9
0
 public static SqlBoolean Equals(SqlString x, SqlString y)
 {
     return (x == y);
 }
コード例 #10
0
 public static SqlString Concat(SqlString x, SqlString y)
 {
     return (x + y);
 }
コード例 #11
0
 private int CompareSqlString(SqlString value)
 {
     if (value.IsNull)
     {
         return 1;
     }
     else if (value.CompareOptions != this.CompareOptions)
     {
         throw new SqlTypeException(Locale.GetText("Two strings to be compared have different collation"));
     }
     //			else
     //				return String.Compare (this.value, ((SqlString)value).Value, (this.SqlCompareOptions & SqlCompareOptions.IgnoreCase) != 0, this.CultureInfo);
     return this.CultureInfo.CompareInfo.Compare(this.value, value.Value, this.CompareOptions);
 }