ChangeLog 37 KB

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