ChangeLog 37 KB

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