ChangeLog 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118
  1. 2008-04-22 Veerapuram Varadhan <[email protected]>
  2. ** Fixes Bug#381151
  3. * SqlCommand.cs: Handle exceptions sanely and do not close
  4. connection on TdsTimeoutException.
  5. 2008-04-21 Gert Driesen <[email protected]>
  6. * SqlBulkCopyColumnMappingCollection.cs: Changed argument names to
  7. match MS. Code formatting.
  8. * SqlCommand.cs: Changed argument names to match MS. Code formatting.
  9. Do not include explicit IDbCommand implementation on 2.0 profile.
  10. * SqlCommandBuilder.cs: Changed argument names to match MS. Code
  11. formatting.
  12. * SqlDataReader.cs: Changed argument names to match MS. Code
  13. formatting.
  14. * SqlParameterCollection.cs: Do not include IList, ICollection and
  15. IDataParameterCollection explicit interface implementation on 2.0
  16. profile. Code formatting.
  17. * SqlConnection.cs: Changed argument names to match MS.
  18. * SqlDataAdapter.cs: Changed argument names to match MS.
  19. * SqlTransaction.cs: Do not include explicit interface implementation
  20. of IDbTransaction.Connection on 2.0 profile. Code formatting.
  21. 2008-04-19 Robert Jordan <[email protected]>
  22. * SqlParameterCollection.cs (AddRange(SqlParameter[])):
  23. Fix endless recursion.
  24. 2008-04-08 Marek Habersack <[email protected]>
  25. * SqlConnection.cs: TCP port discovery via UDP port 1434 should
  26. honor the timeout specified in the connection string (or the
  27. default one). In some environments 100 microseconds might not be
  28. enough to discover the port.
  29. 2008-04-01 Marek Habersack <[email protected]>
  30. * SqlParameter.cs: ConvertToFrameworkType must handle empty
  31. strings gracefully - a DBNull.Value must be returned in this
  32. case.
  33. * SqlCommand.cs: DeriveParameters should split the stored
  34. procedure name into the schema name and procedure name before
  35. querying its parameters.
  36. 2008-03-03 Ankit Jain <[email protected]>
  37. * SqlClientMetaDataCollectionNames.cs: Set the field values.
  38. 2007-10-21 Gert Driesen <[email protected]>
  39. * SqlCommand.cs: Use ExceptionHelper.CheckEnumValue for enum checks.
  40. 2007-10-20 Gert Driesen <[email protected]>
  41. * SqlCommand.cs: Added constant for default CommandTimeout, instead
  42. of using a magic number. Avoid unnecessary initialization. Fixed
  43. default value for DesignTimeVisible. Return zero-length string if
  44. CommandText is null. Use ExceptionHelper.InvalidEnumValueException
  45. to avoid code duplication. Spaces to tabs and code formatting.
  46. * SqlConnection.cs: Use different default package size on 2.0 profile.
  47. Added constants for default values, instead of using magic numbers.
  48. Avoid unnecessary initialization. In PacketSize, return default or
  49. configured packet size when connection is not open. Use
  50. ExceptionHelper.ConnectionClosed instead of local method. Removed
  51. use of some hardcoded values in SetDefaultConnectionParameters, and
  52. use Environment.MachineName as default WorkstationId instead of
  53. DNS host name. Code formatting.
  54. * SqlDataAdapter.cs: In default ctor, set SelectCommand to null.
  55. Avoid unnecessary initializations. Use direct assignment in
  56. IDbDataAdapter implementation. Fixed exception message for negative
  57. UpdateBatchSize. In Dispose override, make sure to invoke base
  58. method.
  59. 2007-10-19 Gert Driesen <[email protected]>
  60. * SqlTransaction.cs: Clear connection in commit. In IsolationLevel,
  61. throw IOE if transaction is no longer open.
  62. 2007-10-19 Gert Driesen <[email protected]>
  63. * SqlTransaction.cs: Avoid unnecessary initialization. Remove
  64. isRolledBack since its essentially the same as isOpen. Use
  65. ExceptionHelper.TransactionNotUsable instead of duplicating code.
  66. On 2.0 profile, ignore call to Rollback when transaction was already
  67. disposed.
  68. 2007-10-18 Gert Driesen <[email protected]>
  69. * SqlConnection.cs: Avoid unnecessary initialization. Use string.Empty
  70. for assigning zero-length string, and use String.Length to check for
  71. zero-length string. Added support for IsolationLevel.Snapshot.
  72. Added StructuredTypeMembers schema collection and restrictions. Fixed
  73. table name for MetaDataCollections collection. Implemented
  74. DataSourceInformation collection. Added missing data types (probably
  75. introduced in 2.0 SP1). In GetSchema, throw InvalidOperationException
  76. if connection is closed and throw NotImplementedException for
  77. StructuredTypeMembers collection.
  78. 2007-10-18 Gert Driesen <[email protected]>
  79. * SqlConnection.cs: On 1.0 profile, IsolationLevel.Unspecified is
  80. not valid. On 2.0 profile, when IsolationLevel.Unspecified is passed
  81. make sure to also set SqlTransaction.IsolationLevel to
  82. ReadCommitted. Modified exceptions to match MS.
  83. 2007-10-17 Nagappan <[email protected]>
  84. * SqlParameter.cs (ConvertToFrameworkType): Added SqlDbType.Image.
  85. 2007-10-17 Nagappan <[email protected]>
  86. * SqlConnection.cs: BeginTransaction does not handle
  87. IsolationLevel.Unspecified, so the default is set as ReadCommited.
  88. Thanks to Jerome Haltom <[email protected]> for this patch. Fixes
  89. bug # 333082.
  90. * SqlTransaction.cs: If transaction count is greater then 0 then roll back.
  91. Thanks to Jerome Haltom <[email protected]> for this patch. Fixes
  92. bug # 331953.
  93. 2007-10-15 Gert Driesen <[email protected]>
  94. * SqlException.cs: Do not hide Message on 2.0 profile. Fixes bug
  95. #333901.
  96. 2007-10-08 Marek Safar <[email protected]>
  97. * SqlParameterCollection.cs (SetParameter): Fixed missing cast.
  98. 2007-09-27 Nagappan A <[email protected]>
  99. * SqlConnection.cs: Added MonoTODO appropriately.
  100. 2007-09-26 Nagappan A <[email protected]>
  101. * SqlCommandBuilder.cs: Code alignment.
  102. 2007-09-25 Nagappan A <[email protected]>
  103. * SqlInitialCatalogConverter.cs, SqlDataSourceConverter.cs:
  104. NetworkLibraryConverter.cs: Added new files.
  105. * SqlParameter.cs: 2.0 attribute changes.
  106. * SqlDataAdapter.cs: 2.0 attribute changes.
  107. * SqlConnectionStringBuilder.cs: 2.0 attribute changes.
  108. * SqlConnection.cs (ClearAllPools, ClearPool): Implemented 2.0
  109. APIs, other 2.0 attribute changes.
  110. * SqlCommandBuilder.cs (GetSchemaTable, InitializeCommand):
  111. Implemented 2.0 APIs, other 2.0 attribute changes.
  112. * SqlBulkCopyColumnMappingCollection.cs: Added constructor, 2.0
  113. API compatibility changes.
  114. * SqlException.cs: 2.0 attribute changes.
  115. 2007-08-13 Nagappan A <[email protected]>
  116. * SqlConnection.cs (ConnectionString): 2.0 compatibility changes.
  117. * SqlDataReader.cs (IsCommandBehavior): Fixed spelling mistake of
  118. the method name.
  119. (Dispose): 2.0 compatibility changes.
  120. * SqlBulkCopy.cs (SqlRowsCopied): Fixed spelling mistake of the
  121. event name.
  122. (RowsCopied): Generates event when NotifyAfter is set.
  123. * SqlCommandBuilder.cs (Dispose, RefreshSchema): 2.0 compatibility
  124. changes.
  125. * SqlClientFactory.cs (CreateDataSourceEnumerator): Removed bogus
  126. TODO.
  127. * SqlException.cs (Message): 2.0 compatibility changes.
  128. 2007-08-06 Nagappan A <[email protected]>
  129. * SqlCommand.cs, SqlDataReader.cs, SqlConnection.cs: When the
  130. server resets the connection, now the client code also disconnects
  131. the session and remove the instance from pool. Fixes bug # 81933.
  132. 2007-07-31 Nagappan A <[email protected]>
  133. * SqlCommand.cs (Transaction, Connection): IDbCommand Transaction
  134. and Connection can be set to null. Fixes bug 82189.
  135. 2007-07-23 Nagappan A <[email protected]>
  136. * SqlCommandBuilder.cs (ApplyParameterInfo, GetParameterName):
  137. (GetParameterPlaceholder): Implemented 2.0 missing APIs.
  138. 2007-07-22 Nagappan A <[email protected]>
  139. * SqlBulkCopy.cs (NotifyAfter): Implemented 2.0 property.
  140. (GetColumnMetaData, GenerateColumnMetaData):
  141. (ValidateColumnMapping): Implemented private method's to generate
  142. and validate SqlBulkCopy headers.
  143. (BulkCopyToServer): Private method to actually do the bulk copy
  144. processing.
  145. (WriteToServer): Implemented 2.0 missing overloaded methods.
  146. (IDisposable.Dispose): Implemented 2.0 missing method.
  147. * SqlBulkCopyColumnMappingCollection.cs (Add, CopyTo): Implemented
  148. missing API.
  149. (Item): Implemented missing property.
  150. * SqlBulkCopyColumnMapping.cs: Modified the implementation of
  151. Constructors to use property.
  152. * SqlDataReader.cs (GetSqlXml, IsCommandBehaviour): Added 2.0
  153. missing method.
  154. (Connection): Added missing property.
  155. * SqlParameter.cs (SetSqlDbType, ConvertToFrameworkType): Modified
  156. method as internal from private.
  157. * SqlConnection.cs: Fixed 2.0 missing feature.
  158. * SqlException.cs: Fixed 2.0 missing feature.
  159. * SqlClientPermission.cs: Fixed 2.0 missing feature.
  160. 2007-07-01 Gert Driesen <[email protected]>
  161. * ISqlNotificationReceiver.cs: Removed.
  162. * SqlClientFactory.cs: Use SqlDataSourceEnumerator from S.D.Sql and
  163. marked method todo. Avoid unnessary casts. Code formatting.
  164. * SqlCommand.cs: Explicit interface implementation of IDbCommand not
  165. necessary on 2.0 profile. Fixes API mismatches. Avoid unnecessary
  166. casts. Code formatting.
  167. * SqlConnection.cs: Also use RecommendAsConfigurable instead of
  168. SettingBindableAttribute on 2.0. Use StateChange event from base class
  169. on 2.0. Only explicitly implement IDbConnection methods on 1.0, since
  170. these are implemented by base class on 2.0 profile. Removed extra
  171. explicit implementation of IDisposable since the base class implements
  172. this. Code formatting.
  173. * SqlDataAdapter.cs: Dispose (bool) override not necessary on 2.0
  174. profile. Stubbed ICloneable.Clone. Fixes API mismatches.
  175. * SqlDataReader.cs: On 2.0, IDisposable.Dispose is implemented by
  176. DbDataReader. Only 1.0 profile, explicitly implemented IEnumerable
  177. GetEnumerator. Code formatting.
  178. * SqlDataSourceEnumerator.cs: Removed.
  179. * SQLDebugging.cs: Marked sealed on 2.0. Code formatting.
  180. * SqlNotificationAuthType.cs: Removed.
  181. * SqlNotificationInfo.cs: Added missing fields. Code formatting.
  182. * SqlNotificationSource.cs: Added missing fields. Code formatting.
  183. * SqlNotificationTransports.cs: Removed.
  184. * SqlNotificationType.cs: Added missing Unknown field. Code formatting.
  185. * SqlParameter.cs: Removed Browsable and EditorBrowsable attributes
  186. from Precision and Scale. Fixes API mismatches. Code formatting fixes.
  187. * SqlTransaction.cs: On 2.0 profile, Dispose method is exposed by
  188. base class. Fixes API mismatches. Code formatting fixes.
  189. 2007-06-21 Nagappan A <[email protected]>
  190. * SqlConnection.cs: Fixed compiler warning.
  191. 2007-06-11 Nagappan A <[email protected]>
  192. * SqlConnection.cs (ParseDataSource): Adds tcp support in
  193. connection string. Fixes bug # 80975.
  194. * SqlCommand.cs (Dispose): On disposing the command object, don't
  195. dispose connection and transaction.
  196. 2007-06-06 Nagappan A <[email protected]>
  197. * SqlCommand.cs, SqlConnectionStringBuilder.cs, SqlConnection.cs:
  198. Fixed 1.0 and 2.0 extras, errors as stated in class status page.
  199. * SqlDataAdapter.cs, SqlParameter.cs:Fixed 1.0 and 2.0 extras,
  200. errors as stated in class status page.
  201. * SqlBulkCopyColumnMappingCollection.cs: Fixed 1.0 and 2.0 extras,
  202. errors as stated in class status page.
  203. 2007-05-30 Nagappan A <[email protected]>
  204. * SqlParameter.cs (SqlParameter): Updated constructor to use the
  205. new TDS RPC implementation.
  206. Fixed missing attributes.
  207. (SetDbType): Added new case for sql_variant type.
  208. (ConvertToFrameworkType): Implemented new private method to
  209. convert the data type to framework type.
  210. * SqlParameterCollection.cs: Fixed missing attributes and
  211. implemented missing methods.
  212. * SqlConnection.cs: Fixed missing attributes.
  213. * SqlConnectionStringBuilder.cs: Certain attributes are missing or
  214. its value or they are not appropriate. Fixed them.
  215. * SqlDataReader.cs (GetData): Method is available only under 1.0
  216. profile.
  217. * SqlCommandBuilder.cs: Certain attributes are available only
  218. under 2.0 profile, so moved them inside ifdef.
  219. * SqlCommand.cs: Certain attributes are available only under 2.0
  220. profile, so moved them inside ifdef.
  221. * SqlBulkCopy.cs: Added new stubs.
  222. * SqlBulkCopyColumnMappingCollection.cs: Added new stubs.
  223. 2007-05-29 Nagappan A <[email protected]>
  224. * SqlCommand.cs (Dispose): Command.Dispose closing
  225. connection. Fixes bug # 81710. Thanks to AMC <[email protected]>
  226. for the fix.
  227. 2007-05-10 Nagappan A <[email protected]>
  228. * SqlClientMetaDataCollectionNames.cs: Fixed incorrect constructor
  229. type.
  230. * SqlConnectionStringBuilder.cs: Fixed missing attributes.
  231. 2007-05-09 Igor Zelmanovich <[email protected]>
  232. * SqlConnectionStringBuilder.cs: added MonoNotSupported attribute.
  233. 2007-04-03 Amit Biswas <[email protected]>
  234. * SqlDataReader.cs (GetSqlBytes, GetProviderSpecificFieldType)
  235. (GetProviderSpecificValue, GetProviderSpecificValues): Implemented
  236. missing API.
  237. * SqlParameter.cs (XmlSchemaCollectionDatabase): Implemented missing property
  238. (XmlSchemaCollectionName): Implemented missing property
  239. (XmlSchemaCollectionOwningSchema): Implemented missing property
  240. (SourceColumnNullMapping): Existing implementation was not correct, Replaced the implementation
  241. (.ctor): Implemented mising constructor new in .net 2.0
  242. * SqlErrorCollection.cs (CopyTo): Implemented missing API
  243. * SqlParameter.cs (InferSqlType): Corrected bug related to default values of
  244. SqlDbType and DbType
  245. (ResetSqlDbType): Implemented missing API
  246. (ResetDbType): Implemented missing API
  247. 2007-03-09 Amit Biswas <[email protected]>
  248. * SqlParameterCollection.cs (CopyTo): Implemented missing API
  249. 2007-04-02 Nagappan A <[email protected]>
  250. * SqlParameter.cs: Variable name fix.
  251. 2007-03-20 Nidhi Rawal <[email protected]>
  252. * SqlClientFactory.cs: Added two using directives.
  253. (CreateConnectionStringBuilder): Implemented the method.
  254. (CreatePermission): Implemented the property.
  255. * SqlCommand.cs: Added one using directive.
  256. (Clone): Implemented the method.
  257. (Dispose): Implemented the method.
  258. (BeginExecuteXmlReader): Implemented the method.
  259. * SqlCommandBuilder.cs (QuoteIdentifier): Implemented the method.
  260. (UnquoteIdentifier): Implemented the method.
  261. * SqlConnection.cs (ChangePassword): Implemented the method.
  262. 2007-03-19 Nidhi Rawal <[email protected]>
  263. * SqlClientFactory.cs (CanCreateDataSourceEnumerator): Implemented
  264. the property.
  265. * SqlCommand.cs (Notification): Implemented the property.
  266. (NotificationAutoEnlist): Implemented the property.
  267. * SqlDataReader.cs (VisibleFieldCount): Implemented the property.
  268. * SqlConnectionStringBuilder.cs (TrustServerCertificate): Implemented
  269. the property.
  270. (TypeSystemVersion): Implemented the property.
  271. (UserInstance): Implemented the property.
  272. (ContextConnection): Implemented the property.
  273. * SqlConnection.cs (FireInfoMessageEventOnUserErrors): Implemented
  274. the property.
  275. (StatisticsEnabled): Implemented the property.
  276. * SqlDataAdapter.cs (UpdateBatchSize): Implemented the property.
  277. * SqlParameter.cs: Implemented one attribute.
  278. 2007-03-16 Andreia Gaita <[email protected]>
  279. * SqlParameter.cs: Move isVariableSizeType flag to TdsMetaParameter
  280. so that the TdsMetaParameter can validate itself for valid size / values.
  281. * SqlCommand.cs (Execute): Call Validate on TdsMetaParameter.
  282. 2007-03-14 Nagappan A <[email protected]>
  283. * SqlCommand.cs (CommandType): Exception type thrown in 2.0
  284. profile is different than 1.0, ArgumentOutOfRangeException.
  285. (Connection): Exception type thrown in 2.0 profile is different
  286. than 1.0, ArgumentOutOfRangeException.
  287. (Execute): If Size property is 0 for String and Binary type, then
  288. throw InvalidOperationException.
  289. (ValidateCommand): Exception type thrown in 2.0 profile is
  290. different than 1.0, NullReferenceException.
  291. 2007-03-09 Nagappan A <[email protected]>
  292. * SqlDataReader.cs: Fixed syntax erros reported in class status
  293. page.
  294. 2007-03-09 Andreia Gaita <[email protected]>
  295. * SqlCommand.cs (ExecuteScalar): Fix returned value for
  296. stored procedure calls to return the first column of the
  297. first row produced by the proc.
  298. 2007-03-08 Nagappan A <[email protected]>
  299. * SqlCommand.cs (CloseDataReader): Checks whether the SQL
  300. connection is created or not.
  301. 2007-03-07 Andreia Gaita <[email protected]>
  302. * SqlCommand.cs (ExecuteScalar): when calling stored procedures,
  303. implement support for return of output values in the parameter
  304. collection.
  305. 2007-02-16 Nidhi Rawal <[email protected]>
  306. * SqlParameter.cs (CompareInfo): Implemented the property
  307. CompareInfo.
  308. (LocaleId): Written the property LocaleId.
  309. (SqlValue): Written the propert SqlValue.
  310. 2007-02-15 Nidhi Rawal <[email protected]>
  311. * SqlCommand.cs: Added some attributes which were not implemented
  312. for .NET 2.0 and removed extra attribute which are not there in
  313. .NET 2.0.
  314. * SqlCommandBuilder.cs: Added some attributes that were not
  315. implemented for .NET 2.0.
  316. * SqlParameterCollection.cs: Added some attributes that were
  317. not implemented for .NET 2.0.
  318. * SqlConnectionStringBuilder.cs: Added some attributes that
  319. were not implemented for .NET 2.0.
  320. * SqlConnection.cs: Added attribute that was not implemented
  321. for .NET 2.0.
  322. * SqlParameter.cs: Added some attributes which were not
  323. implemented for .NET 2.0 and removed some extra attributes which
  324. are not there in .NET 2.0
  325. 2007-02-09 Nagappan A <[email protected]>
  326. * SqlConnection.cs (SetConnectionString): Fixes bug # 80712. A
  327. small typo.
  328. 2007-01-08 Nagappan A <[email protected]>
  329. * SqlTransaction.cs (Dispose): Fixed compliation warning.
  330. * SqlDataReader.cs (GetValues): Length of elements to be copied was
  331. decided based on the argument array passed, which caused a bug, if
  332. the length of given array is more than actual column values.
  333. * SqlCommandBuilder.cs (CatalogSeparator, SchemaSeparator)
  334. (CatalogLocation): Implemented missing properties.
  335. (CreateDeleteCommand, CreateInsertCommand, CreateUpdateCommand):
  336. Modified private methods to take bool flag. If true, add actual
  337. parameter name instead of p1, p2 etc.
  338. (CreateParameter): Added overloaded private method to create
  339. parameter with the actual column name.
  340. (GetUpdateCommand, GetDeleteCommand, GetInsertCommand):
  341. Implemented missing overloaded methods.
  342. (SetRowUpdatingHandler): Implemented missing protected method.
  343. * SqlCommand.cs: Fixed compilation warning. Removed bogus
  344. MonoTODO's.
  345. 2006-12-05 Nagappan A <[email protected]>
  346. * SqlCommand.cs (Execute): If sql2 length is greater than 0, then
  347. add ';' and the respective sql2 string and then execute the
  348. string. Fixes bug # 79880.
  349. 2006-08-30 Nagappan A <[email protected]>
  350. * SqlConnection.cs: Implemented SqlConnection.GetSchema ().
  351. 2006-09-08 Konstantin Triger <[email protected]>
  352. * SqlClientFactory.cs: implemented SqlClientFactory.CreateConnection ().
  353. 2006-07-13 Senganal T <[email protected]>
  354. * SqlClientFactory.cs SqlCommand.cs SqlConnectionFactory.cs
  355. SqlClientPermission.cs SqlParameterCollection.cs SqlDataReader.cs
  356. SqlConnection.cs SqlParameter.cs SqlTransaction.cs :
  357. 2.0 Api fixes
  358. 2006-05-31 Gert Driesen <[email protected]>
  359. * SqlConnection.cs: Removed extra destructor, as destructor on
  360. System.ComponentModel.Component already calls Dispose.
  361. * SqlParameter.cs: Removed explicit interface implementation of
  362. IDataParameter.ParameterName.
  363. 2006-05-26 Senganal T <[email protected]>
  364. * SqlParameter.cs :
  365. - InferSqlType : if value is null or DBNull.Value, retain the
  366. current parameter type.
  367. 2006-04-18 Senganal T <[email protected]>
  368. * SqlConnection.cs :
  369. - SetConnectionString : set the pareameter to default values
  370. if connection string is empty or null
  371. - Open : Raise InvalidOperationException if Connection String
  372. is empty or null
  373. - Dispose : Test exception not raised if dispose called on a
  374. connection with empty connection string
  375. slight modification of the patch by Jonel Rienton
  376. 2006-04-07 Senganal T <[email protected]>
  377. * SqlCommandBuilder.cs :
  378. * CreateDeleteCommand ()
  379. * CreateUpdateCommand ()
  380. * CreateInsertCommand ()
  381. - Changed the signature. Do not need DataRow parameter
  382. as the Query generated is parametric.
  383. - Correct the null-check term in the WhereClause, set the
  384. correct properties for null-check parameter
  385. fixes #78027
  386. - Modified the generated query to match the query as
  387. generated by 2.0. We now ignore null-check in the
  388. whereclause if the Column does not allow nulls.
  389. * ctor () : Set QuotePrefix and QuoteSuffix for 2.0 profile
  390. * GetUpdateCommand ()
  391. * GetInsertCommand ()
  392. * GetDeleteCommand ()
  393. - Do not create new command everytime. Create only if
  394. not already created.
  395. * RefreshSchema : Reset the commands.
  396. 2006-02-17 Chris Toshok <[email protected]>
  397. * SqlCommand.cs, SqlCommandBuilder.cs, SqlConnection.cs,
  398. SqlDataAdapter.cs: remove DataSysDescription attributes for >= 2.0
  399. 2006-02-17 Chris Toshok <[email protected]>
  400. * SqlDataReader.cs: remove VisibleFieldCount property.
  401. 2006-02-10 Senganal T <[email protected]>
  402. * SqlDataReader.cs :
  403. - GetBytes : Read binary/blob/clob data sequentially when
  404. CommandBehavior is set to SequentialAcccess
  405. - GetChars : Read String/clob data sequentially when CommandBehavior
  406. is set to SequentialAccess
  407. * SqlCommand.cs :
  408. - ExecuteReader : set SequentialAccess property on TDS
  409. - CloseDataReader : Reset the command behavior
  410. 2006-01-27 Senganal T <[email protected]>
  411. * SqlCommandBuilder.cs :
  412. - Modified CreateUpdateCommand,CreateDeleteCommand , to not include
  413. column name in the query if its a expression col.
  414. Also, modified the queries to match the generated queries in ms.net
  415. * SqlCommand.cs :
  416. - Modifed Prepare, to check if Parameter is explicitly initialized
  417. * SqlParameter.cs :
  418. - Added CheckIfInitialized : Checks if datatype is explicitly set and
  419. non-zero size is set for variable datatypes.
  420. * SqlDataReader.cs :
  421. - Added code for GetSqlBinary ()
  422. - Fixed GetFieldCount ()
  423. - Added more checks and exceptions.
  424. 2006-01-17 Senganal T <[email protected]>
  425. * SqlCommandBuilder.cs
  426. - Modified CreateNewCommand () : Clean up any existing parameter list
  427. before reusing the command.Fixes #77225
  428. 2005-11-24 Senganal T <[email protected]>
  429. * SqlConnection.cs
  430. - Modifications to get the correct Packet Size
  431. 2005-11-21 Senganal T <[email protected]>
  432. * SqlClientFactory.cs
  433. * SqlCommandBuilder.cs
  434. * SqlParameterCollection.cs
  435. * SqlDataReader.cs
  436. * SqlDataAdapter.cs
  437. * SqlParameter.cs
  438. * SqlTransaction.cs
  439. Added stubs and other changes for ADO.NET 2.0 compatibility
  440. 2005-11-12 Gonzalo Paniagua Javier <[email protected]>
  441. * SqlConnection.cs: don't throw NotImplementedException when using
  442. 'PERSIST SECUTIRY INFO'. Just do nothing.
  443. 2005-10-27 Senganal T <[email protected]>
  444. * SqlCommand.cs
  445. * SqlDataReader.cs
  446. Made changes so that the number of rows affected can be got directly from
  447. Tds regardsless of the type of query.Fixes bug #75698
  448. 2005-10-19 Senganal T <[email protected]>
  449. * SqlConnection.cs (SetProperties) :
  450. - Added support for AttachDBFileName
  451. 2005-10-19 Senganal T <[email protected]>
  452. * SqlException.cs (Constructor)
  453. - Modified the constructor, so that the message parameter
  454. of base class is not the same as that of the Exception message.
  455. fixes bug #76468
  456. 2005-09-24 Sureshkumar T <[email protected]>
  457. * SqlParameterCollection.cs (AddWithValue): added method. patch
  458. from [email protected] (Andy Waddell).
  459. 2005-09-21 Senganal T <[email protected]>
  460. * SqlConnection.cs :
  461. - Set the correct Default Values for Parameters.
  462. - Added Argument Checks (where missing) for the Properties and
  463. throw the correct exception on error.
  464. - Modified SetDefaultParameters() to make sure that the parameters
  465. are all reset to default values everytime it is called.
  466. - Modified SetProperties() to take into account the order of the
  467. keywords in the ConnectionString.
  468. SqlConnection Fixes for the failing sqlserver connected-mode testcases
  469. in ProviderTest/System.Data.SqlClient/SqlConnectionTest.cs
  470. 2005-09-21 Senganal T <[email protected]>
  471. * SqlTransaction.cs : Modifed the Rollback() method, so that
  472. connection can be used for another transaction after the previous
  473. transaction is rolled back. fixes bug 75904
  474. 2005-09-02 Umadevi S <[email protected]>
  475. * Removed SqlResultSet.cs file
  476. 2005-08-26 Sureshkumar T <[email protected]>
  477. * SqlConnection.cs (Open): enable sp_reset_connection.
  478. 2005-08-25 Sureshkumar T <[email protected]>
  479. * SqlCommandBuilder.cs: BuildInformation (): continue on columns
  480. who don't have basetablename.
  481. 2005-08-12 Daniel Morgan <[email protected]>
  482. * SqlCommandBuilder.cs: update command builder based on
  483. OdbcCommandBuilder latest changes to fix regression
  484. of bug 75552
  485. 2005-08-05 Sureshkumar T <[email protected]>
  486. * SqlCommandBuilder.cs: Set SourceVersion property to the created
  487. parameters as it is used by the Adapter's Update method.
  488. 2005-07-22 Sureshkumar T <[email protected]>
  489. * SqlCommandBuilder.cs, SqlParameterCollection.cs,
  490. SqlConnection.cs, SqlParameter.cs:
  491. - updated attributes & attribute descriptions to match with
  492. masterinfos.
  493. 2005-07-16 Daniel Morgan <[email protected]>
  494. * SqlCommandBuilder.cs: CreateUpdateCommand should get the current value, not
  495. the orginal value when setting one of the SET variables
  496. 2005-07-15 Sureshkumar T <[email protected]>
  497. * SqlCommandBuilder.cs:
  498. - set_DataAdapter: unsubscribe event if DataAdapter is reset.
  499. - CreateInsertCommand, CreateUpdateCommand, CreateDeleteCommand:
  500. if column mapping is missing, use the source column name. use
  501. proper version to get the data.
  502. - RowUpdatingHandler: set status to continue to actually process
  503. the query.
  504. 2005-07-04 Ben Maurer <[email protected]>
  505. * SqlError.cs: Patch from [email protected] to fix serialization.
  506. 2005-06-29 Sureshkumar T <[email protected]>
  507. * SqlConnection.cs: Open (): catch TdsInternalException and throw
  508. SqlException.
  509. * SqlException.cs: code re-organised to pass message as well with
  510. the exception.
  511. 2005-06-23 Sureshkumar T <[email protected]>
  512. * SqlConnectionStringBuilder.cs: simplified multiple keyword
  513. mappings and allowed-key checking. fixed Item, Remove,
  514. ContainsKey, ShoudSerialize, TryGetValue implementations.
  515. 2005-06-21 Sureshkumar T <[email protected]>
  516. * SqlConnectionStringBuilder.cs: Connection String Builder class
  517. for SqlClient Data Provider.
  518. 2005-06-01 Gonzalo Paniagua Javier <[email protected]>
  519. * SqlParameter.cs: moved the 'using S.D.SqlTypes' out of NET_2_0. Fixes
  520. the build.
  521. 2005-06-01 Sureshkumar T <[email protected]>
  522. * SqlParameter.cs: Parameter's value can be SqlTypes. Convert to
  523. framework type to pass to TDS layer. Fixes bug #75044.
  524. 2005-05-24 Umadevi S <[email protected]>
  525. * fixed some 2.0 and 1.0 specific fields/attributes for various classes.
  526. * Added SqlClientMetaDataCollectionNames.cs, Implemented some 2.0
  527. properties for SqlParameterCollection for the bulkcopy feature.
  528. 2005-05-20 Kornél Pál <http://www.kornelpal.hu/>
  529. * Fixed Bug #53169 - SqlDataReader incorrectly returns bigint as decimal
  530. Note: The fix works around the limitations of TDS 7.0 to avoid this
  531. difference between Mono and .NET Framework TDS 8.0 should be used instead.
  532. 2005-05-20 Umadevi S <[email protected]>
  533. * Fixed Bug 74948 - SqlParameter also takes DBNull Value.
  534. Correct some attributes stuff of 1.1 and 2.0 for SqlParameter.cs
  535. 2005-05-20 Umadevi S <[email protected]>
  536. * Continuing on implementation for bulkcopy and notification
  537. Added files SqlNotificationEventArgs.cs, OnChangeEventHandler.cs
  538. Modified SqlRowUpdatingEventArgs.cs
  539. 2005-05-19 Umadevi S <[email protected]>
  540. * For implementation of bulkcopy and notifications added files
  541. SqlBulkCopyOptions.cs,SqlBulkCopyColumnMapping.cs,SqlNotificationAuthType.cs
  542. SqlNotificationTransports.cs,SqlRowsCopiedEventArgs.cs, SqlRowsCopiedEventHandler.cs
  543. 2005-05-19 Umadevi S <[email protected]>
  544. * Corrected types,enum values of SqlNotificationType,SqlNotificationSource,
  545. SqlNotificationInfo and added new method in SqlRowUpdatingEventArgs.cs
  546. (For implementation of bulkcopy/notifications)
  547. 2005-04-19 Sureshkumar T <[email protected]>
  548. * SqlDataReader.cs: NextResult (): Re-create schema table for each
  549. result set. don't re-use, as it may be referenced from somewhere.
  550. 2005-04-07 Sureshkumar T <[email protected]>
  551. Ankit Jain <[email protected]>
  552. * SqlConnection.cs: Implemented additional connection string
  553. property "Asynchronous Processing".
  554. * SqlCommand.cs: Implemented Asynchronous command execution API.
  555. * SqlAsyncState.cs: A internal state object for asynchronous
  556. operations.
  557. * SqlAsyncResult.cs: Added. Class to hold result for asynchronous
  558. queries.
  559. 2005-03-28 Sureshkumar T <[email protected]>
  560. * SqlCommand.cs: Execute: Add a semicolon at the end of
  561. CommandText. Multiple semicolon's are not being complained.
  562. fixes bug #74134.
  563. 2005-03-11 Gonzalo Paniagua Javier <[email protected]>
  564. * SqlConnection.cs: added a finalizer for correct implementation of the
  565. IDisposable pattern.
  566. 2005-03-11 Gonzalo Paniagua Javier <[email protected]>
  567. * SqlException.cs: make it serialization-compatible with MS. Patch by
  568. Aleksandar Dezelin. Closes bug #73596.
  569. 2005-03-08 Sureshkumar T <[email protected]>
  570. * SqlDataReader.cs: Call base constructor with CommandBehavior
  571. parameter instead of passing DbCommand object. The internal base
  572. class with DbCommand Parameter is removed.
  573. 2005-03-07 Sureshkumar T <[email protected]>
  574. * SqlCommand.cs : Set CommandBehavior on
  575. ExecuteReader,ExecuteScalar,ExecuteNonQuery. This is used in
  576. CloseDataReader.
  577. This fixes bug #73252.
  578. 2005-03-03 Sureshkumar T <[email protected]>
  579. * SqlClientFactory.cs: While creating command, create using
  580. DbConnectionFactory as DbConnectionBase.CreateDbCommand needs to
  581. have a connection factory.
  582. * SqlConnection.cs: Added an internal constructor which takes
  583. DbConnectionFactory.
  584. * SqlConnectionFactory.cs: Added. Concrete class for abstract
  585. factory DbConnectionFactory.
  586. 2005-02-22 Sureshkumar T <[email protected]>
  587. * SqlDataReader.cs: GetBytes: return the length of the data if
  588. output buffer is null. if not, copy the values to buffer and
  589. return the bytes actually read.
  590. 2005-02-02 Sureshkumar T <[email protected]>
  591. * SqlConnection.cs:
  592. - Database: return db name from database if connection open,
  593. otherwise take from connection string.
  594. - Set default values for parameters in the constructor itself.
  595. - Dangling else problem with Close method.
  596. - reset values of parms (TdsConnectionParameters) rather setting
  597. to null.
  598. - set disposed to false in Open method
  599. - finally call base.Dispose in Dispose (bool)
  600. Fixes nunit regressions SqlConnectionTest:DefaultConnectionValues
  601. and SqlConnectionTest:DatabaseSynonyms.
  602. 2005-01-27 Sureshkumar T <[email protected]>
  603. * SqlCommand.cs (DeriveParameters): Change parameter name to
  604. "procedure_name".
  605. * SqlParameter.cs (SqlParameter (object [])) : call default
  606. constructor to create Tds.Metaparameter.
  607. fixes bug #63122.
  608. 2005-01-03 Sureshkumar T <[email protected]>
  609. * SqlCommand.cs: Fixed bug #68973. Reset Tds.RecordsAffected to 0
  610. for each execute statement.
  611. 2004-11-25 Sureshkumar T <[email protected]>
  612. These changes are for 2.0 profile only. These changes implement
  613. the generic data base access technique using Provider Factory
  614. Implementation. These classes need to be dervided from abstract
  615. base classes so that the corresponding factory classes are
  616. created when calling CreateCommand, CreateParameter, etc.
  617. * SqlClientFactory.cs: Provider Factory class Implementaion for SqlServer
  618. * SqlParameter.cs: Change base classes and override methods.
  619. * SqlParameterCollection.cs: Change base classes and override methods.
  620. * SqlTransaction.cs: Change base classes and override methods.
  621. * SqlDataSourceEnumerator.cs: DataSource Enumerator stubs.
  622. * SqlDataReader.cs: Change base classes and override methods.
  623. * SqlConnection.cs: Change base classes and override methods.
  624. * SqlCommandBuilder.cs: Change base classes and override methods.
  625. * SqlCommand.cs: Change base classes and override necessary methods.
  626. 2004-10-14 Umadevi S <[email protected]>
  627. * SqlCommand.cs - Implemented the clone method correctly.
  628. (fixed bug 67301)
  629. 2004-10-06 Umadevi S <[email protected]>
  630. * ISqlNoticationReceiver.cs - changed namespace
  631. * Added files SqlNotificationType.cs, SqlNotificationInfo.cs, SqlNotificationSource.cs
  632. 2004-09-24 Umadevi S <[email protected]>
  633. * SqlTransaction.cs - Dispose will not call rollback incase the transaction is not open.
  634. 2004-09-14 Sebastien Pouliot <[email protected]>
  635. * SqlClientPermission.cs: Added internal constructor accepting an Sql
  636. ClientPermissionAttribute parameter (using base class protected ctor).
  637. * SqlClientPermissionAttribute.cs: Copy now use the new SqlClient
  638. Permission constructor.
  639. 2004-09-13 Sebastien Pouliot <[email protected]>
  640. * SqlClientPermission.cs: Mostly completed (needs tests).
  641. * SqlClientPermissionAttribute.cs: Completed.
  642. 2004-09-02 Umadevi S <[email protected]>
  643. * SqlCommand.cs - ExecuteNonQuery to return -1 incase of executing a storedprocedure
  644. 2004-08-16 Gert Driesen <[email protected]>
  645. * SqlConnection.cs: added TODO on ConnectionString for keywords
  646. that are not yet implemented. check value of Integrated Security
  647. keyword, check value of bool keywords, improve error reporting
  648. for int keywords, added support for the following keyword
  649. synonyms : APP, TIMEOUT, NETWORK, PERSISTSECURITYINFO, WSID,
  650. LANGUAGE, USER. Throw NotImplementedException when encrypt keyword
  651. is set to true, enlist keyword is set to false or attachdbfilename
  652. keyword (or one of its synonyms) is set. Added FIXME for PERSIST
  653. SECURITY INFO keyword, throwing a NotImplementedException here
  654. would break lots of apps
  655. 2004-08-16 Gert Driesen <[email protected]>
  656. * SqlConnection.cs - spaces to tabs
  657. 2004-08-12 Sureshkumar T <[email protected]>
  658. * SqlDataReader.cs - In Close method, the remaining resultsets are drained
  659. out, to read output parameters & to avoid stream overlap
  660. 2004-06-30 Umadevi S <[email protected]>
  661. * SqlCommand.cs : In the Execute Method the commandbehavior parameters were ignored correct
  662. these
  663. 2004-06-22 Atsushi Enomoto <[email protected]>
  664. * SqlCommandBuilder.cs : Avoid cast exception caused by DbNull.
  665. 2004-06-18 Umadevi S <[email protected]>
  666. * SqlCommand.cs - ExecuteNonQuery returns -1 in all cases except
  667. insert,update or delete.
  668. 2004-06-18 Umadevi S <[email protected]>
  669. * SqlConnection.cs - handled null being passed as a connectionstring
  670. - checked for minimal set of parameters in connectionstring.
  671. - handled unrecogonized keywords similar to MS.NET
  672. 2004-06-17 Umadevi S <[email protected]>
  673. * SqlTransaction.cs - fixed multiple rollbacks being called causes invalidoperationexception
  674. 2004-06-04 Gert Driesen <[email protected]>
  675. * SqlClientPermission.cs: removed extra CreateInstance
  676. method
  677. 2004-06-02 Gert Driesen <[email protected]>
  678. * SQLDebugging.cs: added missing attributes, marked ctor
  679. public to match MS.NET
  680. 2004-05-22 Atsushi Enomoto <[email protected]>
  681. * SqlClientPermission.cs : don't use chained obsolete .ctor.
  682. 2004-05-20 Gert Driesen ([email protected])
  683. * SqlClientPermissionAttribute.cs: change AllowMultiple and
  684. Inherited to match .NET
  685. 2004-05-20 Umadevi S <[email protected]>
  686. * Fixed bug 58406- implemented the hasrow method, test program used
  687. to test with the bug report
  688. 2004-05-13 Umadevi S <[email protected]>
  689. * SqlClientPermission.cs, SqlDataReader.cs - added missing methods with TODO tags
  690. * SqlCommand.cs, SqlDataAdapter.cs - implemented ToolboxItemAttribute
  691. * SQLDebugging.cs - Added new file with a TODO tag
  692. 2004-04-05 Lluis Sanchez Gual <[email protected]>
  693. * SqlConnection.cs: Use connection pool implemented in Mono.Data.Tds.
  694. 2004-04-01 Lluis Sanchez Gual <[email protected]>
  695. * SqlDataReader.cs: Null values are now represented with DBNull instances.
  696. Deal with this.
  697. 2004-03-14 Tim Coleman <[email protected]>
  698. * SqlCommand.cs SqlConnection.cs:
  699. Changes from two patches by Andres Taylor
  700. <[email protected]>
  701. 2004-03-12 Andreas Nahr <[email protected]>
  702. * SqlParameter.cs: DO NOT USE the consts scheme if types can be referenced directly!
  703. 2004-01-10 Atsushi Enomoto <[email protected]>
  704. * SqlClientPermission.cs : Fixed NET_2_0 build related to
  705. obsolete attribute problem (see DbDataPermission.cs)
  706. 2003-12-28 Tim Coleman <[email protected]>
  707. * SqlResultSet.cs:
  708. Stubbed out this class.
  709. 2003-12-23 Tim Coleman <[email protected]>
  710. * SqlConnection.cs:
  711. Improved connection string parsing. See
  712. System.Data.Common.DbConnectionString for source.
  713. 2003-12-21 Tim Coleman <[email protected]>
  714. * SqlConnection.cs:
  715. Enable Integrated Security
  716. 2003-12-19 Tim Coleman <[email protected]>
  717. * ISqlNotificationReceiver.cs SqlResultSet.cs:
  718. New stubs added
  719. * SqlClientPermission.cs:
  720. Fix constructor for 1.2
  721. 2003-12-04 John Luke <[email protected]>
  722. * SqlXmlTextReader.cs: applied patch from Chris Masters <[email protected]>
  723. fix peek so it checks if it is at the end and also to make sure that if Read()
  724. advances the position past the end of the localBuffer array, it makes
  725. a call to GetNextBuffer(). fixes bug #40253 System.IndexOutOfRangeException when
  726. using SqlCommand.ExecuteXmlReader()
  727. 2003-11-20 Joerg Rosenkranz <[email protected]>
  728. * SqlConnection (SetDefaultConnectionParameters):
  729. Changed default value of WORKSTATION ID to reflect real
  730. host name instead of "localhost".
  731. 2003-11-16 Ben Maurer <[email protected]>
  732. * SqlParameterCollection.cs (Clear): Clear needs to take
  733. the parameter out of the collection so that it can be used
  734. again.
  735. (Remove):
  736. (RemoveAt): Ditto.
  737. 2003-10-03 Diego Caravana <[email protected]>
  738. * SqlCommand.cs: no change.
  739. * SqlConnection.cs (Close): Added checks for null instance
  740. variables.
  741. * SqlParameter.cs (Direction): Now handles parameters of type
  742. ReturnValue and InputOutput.
  743. * SqlParameterCollection.cs (IndexOf(string)): Search for
  744. SqlParameter object in list is done by obtaining ParameterName
  745. attribute, not directly through list.IndexOf().
  746. 2003-08-22 Duncan Mak <[email protected]>
  747. * SqlCommand.cs (ExecuteNonQuery): Return
  748. Connection.Tds.RecordsAffected if it is successful. Patch from
  749. Jörg Rosenkranz <[email protected]>.
  750. This is part of a fix to bug #40315.
  751. 2003-08-20 Duncan Mak <[email protected]>
  752. * SqlConnectionPool.cs (ReleaseConnection): A patch from Joerg
  753. Rosenkranz <[email protected]>. Currently, if a connection is
  754. closed by an external event (network problem, etc.) it is pushed
  755. back into the connection pool. The next Open call retrieves this
  756. invalid connection which leads to exceptions when executing
  757. statements.
  758. This patch fixes this problem. This closes bug #47429.
  759. 2003-07-04 Miguel de Icaza <[email protected]>
  760. * SqlDataReader.cs: Added extra information to the exceptions
  761. thrown by all the GetXXXX methods.
  762. 2003-03-15 Daniel Morgan <[email protected]>
  763. * SqlConnection.cs: if Server in the ConnectionString
  764. is set to "(local", use "localhost" as the hostname
  765. to connect
  766. 2003-03-04 Gonzalo Paniagua Javier <[email protected]>
  767. * SqlException.cs: implemented GetObjectData ().
  768. 2003-02-16 Daniel Morgan <[email protected]>
  769. * ChangeLog: added this file
  770. * SqlConnection.cs: - parse data source for 3 possible uses:
  771. "Server=hostname",
  772. "Server=hostname\\instancename",
  773. "Server=hostname,port" and open the connection based on the
  774. resulting server name and port.
  775. - Added support for named instances
  776. by discovery of the sql server tcp port via the sql monitor (udp port 1434)
  777. thanks to Phillip Jerkins ([email protected]) contribution.
  778. Also, thanks to Gonzalo and Tim for their help with timeouts.