2010-07-06 Veerapuram Varadhan * TdsMetaParameter.cs (Prepare): Use the count of characters in nvarchar param as the size, to match .NET implementation. 2010-07-03 Veerapuram Varadhan ** Fixes #609935 * TdsMetaParameter.cs (Prepare): Use GetActualSize() instead of Size property to calculate the length of a nvarchar param. 2009-05-26 Veerapuram Varadhan * TdsComm.cs (Append): When appending strings of length bigger than output buffer, calculate and iterate over the strings according to the output buffer length. Fixes ArgumentOutOfRangeException. 2009-05-26 Veerapuram Varadhan * TdsBulkCopy.cs (WriteParameterInfo): Update default precision from 28 to 29. 2009-05-26 Veerapuram Varadhan * TdsComm.cs (Append): When appending smalldatetime values, cast value of days to short instead of ushort. Fixes Tds error in RPC packet. * Tds70.cs (WriteParameterInfo): Instead of IsLargetType, compare only the types that can take 0xFFFF as size if value is null. 2009-05-26 Veerapuram Varadhan * TdsMetaParameter.cs (GetMetaType): If param is Nullable, use IntN instead of BigInt for column type. 2009-05-16 Veerapuram Varadhan * TdsMetaParameter.cs (Prepare): Default precision is 29 and not 28. 2009-05-12 Veerapuram Varadhan ** Fixes rest of #497715 - Patch by Jonas Larsson * TdsMetaParameter.cs: Add support for XML type. For now, handle XML type as just NVarchar. 2009-03-23 Veerapuram Varadhan * TdsMetaParameter.cs (GetMetaType): Return TdsColumnType.BigInt instead of TdsColumnType.IntN. 2009-03-14 Veerapuram Varadhan * TdsMetaParameter.cs (ResizeValue): Return unmodified value in case of size < 0. 2009-01-17 Gert Driesen * TdsMetaParameter.cs: Modified signature of delegate to also allow conversion to be triggered by changes in TdsMetaParameter. 2009-01-14 Gonzalo Paniagua Javier * TdsMetaParameter.cs: set_RawValue now calls set_Value so that 'isUpdated' is set. 2009-01-04 Gert Driesen * TdsMetaParameter.cs: Define delegate for performing conversion for retrieving value as framework type from SqlParameter. Store both raw value as converted/resized value to allow us to perform lazy conversion. Only resize value if value or size were updated. Avoid double casting in ResizeValue. 2008-05-29 Veerapuram Varadhan * TdsMetaParameter.cs (set_Value): Truncate the value to the specified size. Fixes bug #382635. 2007-07-24 Nagappan A * TdsMetaParameter.cs (Prepare): Fixes Large strings truncated with SqlClient - Bug # 82170. 2007-05-30 Nagappan A * TdsMetaParameter.cs (GetActualSize): Multiply length by 2, if the data type is nvarchar, nchar or ntext. (GetSize): Added new case for decimal, uniqueidentifier, smallmoney, bit, nchar, ntext. (GetBytes): Implemented new internal method to encode the data. (GetMetaType): Modified the return values appropriately. 2007-03-21 Nagappan A * TdsMetaParameter.cs (Prepare): Include @ before parameter name, if doesnot exist. 2007-03-16 Andreia Gaita * TdsMetaParameter.cs: Add Validate() method. For now, validate size/value. Add isVariableSizeType. 2006-01-05 Senganal T * TdsMetaParameter.cs: Test for DbNull when updating the scale of decimal or numeric value. Fixes #77410 Patch By Sebastien Robitaille 2005-10-20 Senganal T * TdsMetaParameter.cs: Set default values of Precision and Scale for Decimal Parameters when not explicitly set. Fixes #76467 2005-08-02 Joerg Rosenkranz * TdsMetaParameter.cs: Send binary parameters with size > 8000 as image instead of varbinary. This fixes #75684. 2005-05-27 Sureshkumar T * TdsMetaParameter.cs: Prepare: in SQL, a variable declaration with size 0 is not allowed. fixes #62978.