Exemplo n.º 1
0
//		[Test]
        public void Driver([IncludeDataSources(CurrentProvider)] string context)
        {
//			InformixTools.ResolveInformix(typeof(IBM.Data.Informix.IfxConnection).Assembly);
//
//			var dr = null as IfxDataReader;
//
//			var _ = dr.GetBigInt(0);

            var tm = new IfxTimeSpan(0);
            var _  = IfxTimeSpan.Null;
        }
Exemplo n.º 2
0
        public override void SetParameter(IDbDataParameter parameter, string name, DataType dataType, object value)
        {
            if (value is TimeSpan)
            {
                value = new IfxTimeSpan((TimeSpan)value);
            }
            else if (value is Guid)
            {
                value    = value.ToString();
                dataType = DataType.Char;
            }
            else if (value is bool)
            {
                value    = (bool)value ? 't' : 'f';
                dataType = DataType.Char;
            }

            base.SetParameter(parameter, name, dataType, value);
        }