public VirtuosoParameter (string parameterName, VirtDbType vdbType, int size, string sourceColumn)
		{
			this.ParameterName = parameterName;
			this.VirtDbType = vdbType;
			this.Size = size;
			this.SourceColumn = sourceColumn;
		}
 public VirtuosoParameter(string parameterName, VirtDbType vdbType, int size, string sourceColumn)
 {
     this.ParameterName = parameterName;
     this.VirtDbType    = vdbType;
     this.Size          = size;
     this.SourceColumn  = sourceColumn;
 }
Exemple #3
0
 internal DataTypeInt16(
     string typeName,
     VirtDbType vdbType,
     System.Data.DbType dbType,
     CLI.SqlType sqlType)
     : base(typeName, vdbType, dbType, sqlType, BufferTypes.Short)
 {
 }
Exemple #4
0
 internal DataTypeSingle(
     string typeName,
     VirtDbType vdbType,
     System.Data.DbType dbType,
     CLI.SqlType sqlType)
     : base(typeName, vdbType, dbType, sqlType, BufferTypes.Float)
 {
 }
Exemple #5
0
 internal DataTypeNumeric(
     string typeName,
     VirtDbType vdbType,
     System.Data.DbType dbType,
     CLI.SqlType sqlType)
     : base(typeName, vdbType, dbType, sqlType, BufferTypes.Numeric)
 {
 }
Exemple #6
0
 internal DataTypeDateTime(
     string typeName,
     VirtDbType vdbType,
     System.Data.DbType dbType,
     CLI.SqlType sqlType)
     : base(typeName, vdbType, dbType, sqlType, BufferTypes.DateTime)
 {
 }
Exemple #7
0
 internal DataTypeXml(
     string typeName,
     VirtDbType vdbType,
     System.Data.DbType dbType,
     CLI.SqlType sqlType)
     : base(typeName, vdbType, dbType, sqlType, BufferTypes.Xml, true)
 {
 }
Exemple #8
0
 internal DataTypeTimestamp(
     string typeName,
     VirtDbType vdbType,
     System.Data.DbType dbType,
     CLI.SqlType sqlType)
     : base(typeName, vdbType, dbType, sqlType, BufferTypes.Binary)
 {
 }
		internal DataType (
			string typeName,
			VirtDbType vdbType,
			System.Data.DbType dbType,
			CLI.SqlType sqlType,
			BufferType bufferType)
			: this (typeName, vdbType, dbType, sqlType, bufferType, false)
		{
		}
Exemple #10
0
 internal DataType(
     string typeName,
     VirtDbType vdbType,
     System.Data.DbType dbType,
     CLI.SqlType sqlType,
     BufferType bufferType)
     : this(typeName, vdbType, dbType, sqlType, bufferType, false)
 {
 }
Exemple #11
0
 internal DataTypeBinary(
     string typeName,
     VirtDbType vdbType,
     System.Data.DbType dbType,
     CLI.SqlType sqlType,
     bool isLong)
     : base(typeName, vdbType, dbType, sqlType, BufferTypes.Binary, isLong)
 {
 }
Exemple #12
0
        internal DataTypeChar(
            string typeName,
            VirtDbType vdbType,
            System.Data.DbType dbType,
            CLI.SqlType sqlType,
            bool isLong)
#if false
            : base(typeName, vdbType, dbType, sqlType, BufferTypes.Char, isLong)
#else
            : base(typeName, vdbType, dbType, sqlType, BufferTypes.WChar, isLong)
Exemple #13
0
 internal DataType(
     string typeName,
     VirtDbType vdbType,
     System.Data.DbType dbType,
     CLI.SqlType sqlType,
     BufferType bufferType,
     bool isLong)
 {
     this.typeName   = typeName;
     this.vdbType    = vdbType;
     this.dbType     = dbType;
     this.sqlType    = sqlType;
     this.bufferType = bufferType;
     this.isLong     = isLong;
 }
 public VirtuosoParameter(string parameterName, VirtDbType vdbType, int size,
                          ParameterDirection direction, Boolean isNullable, Byte precision, Byte scale,
                          string sourceColumn, DataRowVersion sourceVersion, object value)
 {
     this.ParameterName = parameterName;
     this.VirtDbType    = vdbType;
     this.Size          = size;
     this.Direction     = direction;
     this.IsNullable    = isNullable;
     this.Precision     = precision;
     this.Scale         = scale;
     this.SourceColumn  = sourceColumn;
     this.SourceVersion = sourceVersion;
     this.Value         = value;
 }
		internal DataType (
			string typeName,
			VirtDbType vdbType,
			System.Data.DbType dbType,
			CLI.SqlType sqlType,
			BufferType bufferType,
			bool isLong)
		{
			this.typeName = typeName;
			this.vdbType = vdbType;
			this.dbType = dbType;
			this.sqlType = sqlType;
			this.bufferType = bufferType;
			this.isLong = isLong;
		}
Exemple #16
0
        internal static DataType MapVirtDbType(VirtDbType vdbType)
        {
            switch (vdbType)
            {
            case VirtDbType.Binary:                 return(Binary);

            case VirtDbType.Char:                   return(Char);

            case VirtDbType.Date:                   return(Date);

            case VirtDbType.DateTime:               return(DateTime);

            //case VirtDbType.Decimal:		return Decimal;
            case VirtDbType.Float:                  return(Float);

            case VirtDbType.BigInt:                 return(BigInt);

            case VirtDbType.Integer:                return(Integer);

            case VirtDbType.LongNVarChar:           return(NLongVarChar);

            case VirtDbType.LongVarBinary:          return(LongVarBinary);

            case VirtDbType.LongVarChar:            return(LongVarChar);

            case VirtDbType.NChar:                  return(NChar);

            case VirtDbType.Numeric:                return(Numeric);

            case VirtDbType.NVarChar:               return(NVarChar);

            case VirtDbType.Real:                   return(Real);

            case VirtDbType.SmallInt:               return(SmallInt);

            case VirtDbType.Time:                   return(Time);

            case VirtDbType.TimeStamp:              return(Timestamp);

            case VirtDbType.VarBinary:              return(VarBinary);

            case VirtDbType.VarChar:                return(VarChar);

            case VirtDbType.Xml:                    return(Xml);
            }
            return(null);
        }
		private void CheckParameter (
			TestCaseResult result,
			VirtuosoParameter parameter,
			string parameterName,
			ParameterDirection direction,
			VirtDbType vdbType,
			DbType dbType,
			int size,
			byte precision,
			byte scale)
		{
			result.FailIfNotEqual (this, "ParameterName", parameterName, parameter.ParameterName);
			result.FailIfNotEqual (this, parameterName + ".Direction", direction, parameter.Direction);
			result.FailIfNotEqual (this, parameterName + ".VirtDbType", vdbType, parameter.VirtDbType);
			result.FailIfNotEqual (this, parameterName + ".DbType", dbType, parameter.DbType);
			result.FailIfNotEqual (this, parameterName + ".Size", size, parameter.Size);
			result.FailIfNotEqual (this, parameterName + ".Precision", precision, parameter.Precision);
			result.FailIfNotEqual (this, parameterName + ".Scale", scale, parameter.Scale);
		}
Exemple #18
0
 private void CheckParameter(
     TestCaseResult result,
     VirtuosoParameter parameter,
     string parameterName,
     ParameterDirection direction,
     VirtDbType vdbType,
     DbType dbType,
     int size,
     byte precision,
     byte scale)
 {
     result.FailIfNotEqual(this, "ParameterName", parameterName, parameter.ParameterName);
     result.FailIfNotEqual(this, parameterName + ".Direction", direction, parameter.Direction);
     result.FailIfNotEqual(this, parameterName + ".VirtDbType", vdbType, parameter.VirtDbType);
     result.FailIfNotEqual(this, parameterName + ".DbType", dbType, parameter.DbType);
     result.FailIfNotEqual(this, parameterName + ".Size", size, parameter.Size);
     result.FailIfNotEqual(this, parameterName + ".Precision", precision, parameter.Precision);
     result.FailIfNotEqual(this, parameterName + ".Scale", scale, parameter.Scale);
 }
		public int Add (string parameterName, VirtDbType dbType, int size)
		{
			return Add (new VirtuosoParameter (parameterName, dbType, size));
		}
 public VirtuosoParameter(string parameterName, VirtDbType vdbType, int size)
 {
     this.ParameterName = parameterName;
     this.VirtDbType    = vdbType;
     this.Size          = size;
 }
		public VirtuosoParameter (string parameterName, VirtDbType vdbType, int size)
		{
			this.ParameterName = parameterName;
			this.VirtDbType = vdbType;
			this.Size = size;
		}
 public int Add(string parameterName, VirtDbType dbType, int size)
 {
     return(Add(new VirtuosoParameter(parameterName, dbType, size)));
 }
 public int Add(string parameterName, VirtDbType dbType, int size, string sourceColumn)
 {
     return(Add(new VirtuosoParameter(parameterName, dbType, size, sourceColumn)));
 }
		internal DataTypeChar (
			string typeName,
			VirtDbType vdbType,
			System.Data.DbType dbType,
			CLI.SqlType sqlType,
			bool isLong)
#if false
			: base (typeName, vdbType, dbType, sqlType, BufferTypes.Char, isLong)
#else
			: base (typeName, vdbType, dbType, sqlType, BufferTypes.WChar, isLong)
		public VirtuosoParameter (string parameterName, VirtDbType vdbType, int size,
			ParameterDirection direction, Boolean isNullable, Byte precision, Byte scale,
			string sourceColumn, DataRowVersion sourceVersion, object value)
		{
			this.ParameterName = parameterName;
			this.VirtDbType = vdbType;
			this.Size = size;
			this.Direction = direction;
			this.IsNullable = isNullable;
			this.Precision = precision;
			this.Scale = scale;
			this.SourceColumn = sourceColumn;
			this.SourceVersion = sourceVersion;
			this.Value = value;
		}
		internal DataTypeInt16 (
			string typeName,
			VirtDbType vdbType,
			System.Data.DbType dbType,
			CLI.SqlType sqlType)
			: base (typeName, vdbType, dbType, sqlType, BufferTypes.Short)
		{
		}
		internal DataTypeBinary (
			string typeName,
			VirtDbType vdbType,
			System.Data.DbType dbType,
			CLI.SqlType sqlType,
			bool isLong)
			: base (typeName, vdbType, dbType, sqlType, BufferTypes.Binary, isLong)
		{
		}
		internal DataTypeNumeric (
			string typeName,
			VirtDbType vdbType,
			System.Data.DbType dbType,
			CLI.SqlType sqlType)
			: base (typeName, vdbType, dbType, sqlType, BufferTypes.Numeric)
		{
		}
		internal DataTypeSingle (
			string typeName,
			VirtDbType vdbType,
			System.Data.DbType dbType,
			CLI.SqlType sqlType)
			: base (typeName, vdbType, dbType, sqlType, BufferTypes.Float)
		{
		}
		internal DataTypeDateTime (
			string typeName,
			VirtDbType vdbType,
			System.Data.DbType dbType,
			CLI.SqlType sqlType)
			: base (typeName, vdbType, dbType, sqlType, BufferTypes.DateTime)
		{
		}
		internal DataTypeTimestamp (
			string typeName,
			VirtDbType vdbType,
			System.Data.DbType dbType,
			CLI.SqlType sqlType)
			: base (typeName, vdbType, dbType, sqlType, BufferTypes.Binary)
		{
		}
		internal DataTypeXml (
			string typeName,
			VirtDbType vdbType,
			System.Data.DbType dbType,
			CLI.SqlType sqlType)
			: base (typeName, vdbType, dbType, sqlType, BufferTypes.Xml, true)
		{
		}
		internal static DataType MapVirtDbType (VirtDbType vdbType)
		{
			switch (vdbType)
			{
			case VirtDbType.Binary:			return Binary;
			case VirtDbType.Char:			return Char;
			case VirtDbType.Date:			return Date;
			case VirtDbType.DateTime:		return DateTime;
				//case VirtDbType.Decimal:		return Decimal;
			case VirtDbType.Float:			return Float;
			case VirtDbType.BigInt:			return BigInt;
			case VirtDbType.Integer:		return Integer;
			case VirtDbType.LongNVarChar:		return NLongVarChar;
			case VirtDbType.LongVarBinary:		return LongVarBinary;
			case VirtDbType.LongVarChar:		return LongVarChar;
			case VirtDbType.NChar:			return NChar;
			case VirtDbType.Numeric:		return Numeric;
			case VirtDbType.NVarChar:		return NVarChar;
			case VirtDbType.Real:			return Real;
			case VirtDbType.SmallInt:		return SmallInt;
			case VirtDbType.Time:			return Time;
			case VirtDbType.TimeStamp:		return Timestamp;
			case VirtDbType.VarBinary:		return VarBinary;
			case VirtDbType.VarChar:		return VarChar;
			case VirtDbType.Xml:			return Xml;
			}
			return null;
		}
		public int Add (string parameterName, VirtDbType dbType, int size, string sourceColumn)
		{
			return Add (new VirtuosoParameter (parameterName, dbType, size, sourceColumn));
		}