ChangeLog 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  1. 2006-01-27 Senganal T <[email protected]>
  2. * SqlCommandBuilder.cs :
  3. - Modified CreateUpdateCommand,CreateDeleteCommand , to not include
  4. column name in the query if its a expression col.
  5. Also, modified the queries to match the generated queries in ms.net
  6. * SqlCommand.cs :
  7. - Modifed Prepare, to check if Parameter is explicitly initialized
  8. * SqlParameter.cs :
  9. - Added CheckIfInitialized : Checks if datatype is explicitly set and
  10. non-zero size is set for variable datatypes.
  11. * SqlDataReader.cs :
  12. - Added code for GetSqlBinary ()
  13. - Fixed GetFieldCount ()
  14. - Added more checks and exceptions.
  15. 2006-01-17 Senganal T <[email protected]>
  16. * SqlCommandBuilder.cs
  17. - Modified CreateNewCommand () : Clean up any existing parameter list
  18. before reusing the command.Fixes #77225
  19. 2005-11-24 Senganal T <[email protected]>
  20. * SqlConnection.cs
  21. - Modifications to get the correct Packet Size
  22. 2005-11-21 Senganal T <[email protected]>
  23. * SqlClientFactory.cs
  24. * SqlCommandBuilder.cs
  25. * SqlParameterCollection.cs
  26. * SqlDataReader.cs
  27. * SqlDataAdapter.cs
  28. * SqlParameter.cs
  29. * SqlTransaction.cs
  30. Added stubs and other changes for ADO.NET 2.0 compatibility
  31. 2005-11-12 Gonzalo Paniagua Javier <[email protected]>
  32. * SqlConnection.cs: don't throw NotImplementedException when using
  33. 'PERSIST SECUTIRY INFO'. Just do nothing.
  34. 2005-10-27 Senganal T <[email protected]>
  35. * SqlCommand.cs
  36. * SqlDataReader.cs
  37. Made changes so that the number of rows affected can be got directly from
  38. Tds regardsless of the type of query.Fixes bug #75698
  39. 2005-10-19 Senganal T <[email protected]>
  40. * SqlConnection.cs (SetProperties) :
  41. - Added support for AttachDBFileName
  42. 2005-10-19 Senganal T <[email protected]>
  43. * SqlException.cs (Constructor)
  44. - Modified the constructor, so that the message parameter
  45. of base class is not the same as that of the Exception message.
  46. fixes bug #76468
  47. 2005-09-24 Sureshkumar T <[email protected]>
  48. * SqlParameterCollection.cs (AddWithValue): added method. patch
  49. from [email protected] (Andy Waddell).
  50. 2005-09-21 Senganal T <[email protected]>
  51. * SqlConnection.cs :
  52. - Set the correct Default Values for Parameters.
  53. - Added Argument Checks (where missing) for the Properties and
  54. throw the correct exception on error.
  55. - Modified SetDefaultParameters() to make sure that the parameters
  56. are all reset to default values everytime it is called.
  57. - Modified SetProperties() to take into account the order of the
  58. keywords in the ConnectionString.
  59. SqlConnection Fixes for the failing sqlserver connected-mode testcases
  60. in ProviderTest/System.Data.SqlClient/SqlConnectionTest.cs
  61. 2005-09-21 Senganal T <[email protected]>
  62. * SqlTransaction.cs : Modifed the Rollback() method, so that
  63. connection can be used for another transaction after the previous
  64. transaction is rolled back. fixes bug 75904
  65. 2005-09-02 Umadevi S <[email protected]>
  66. * Removed SqlResultSet.cs file
  67. 2005-08-26 Sureshkumar T <[email protected]>
  68. * SqlConnection.cs (Open): enable sp_reset_connection.
  69. 2005-08-25 Sureshkumar T <[email protected]>
  70. * SqlCommandBuilder.cs: BuildInformation (): continue on columns
  71. who don't have basetablename.
  72. 2005-08-12 Daniel Morgan <[email protected]>
  73. * SqlCommandBuilder.cs: update command builder based on
  74. OdbcCommandBuilder latest changes to fix regression
  75. of bug 75552
  76. 2005-08-05 Sureshkumar T <[email protected]>
  77. * SqlCommandBuilder.cs: Set SourceVersion property to the created
  78. parameters as it is used by the Adapter's Update method.
  79. 2005-07-22 Sureshkumar T <[email protected]>
  80. * SqlCommandBuilder.cs, SqlParameterCollection.cs,
  81. SqlConnection.cs, SqlParameter.cs:
  82. - updated attributes & attribute descriptions to match with
  83. masterinfos.
  84. 2005-07-16 Daniel Morgan <[email protected]>
  85. * SqlCommandBuilder.cs: CreateUpdateCommand should get the current value, not
  86. the orginal value when setting one of the SET variables
  87. 2005-07-15 Sureshkumar T <[email protected]>
  88. * SqlCommandBuilder.cs:
  89. - set_DataAdapter: unsubscribe event if DataAdapter is reset.
  90. - CreateInsertCommand, CreateUpdateCommand, CreateDeleteCommand:
  91. if column mapping is missing, use the source column name. use
  92. proper version to get the data.
  93. - RowUpdatingHandler: set status to continue to actually process
  94. the query.
  95. 2005-07-04 Ben Maurer <[email protected]>
  96. * SqlError.cs: Patch from [email protected] to fix serialization.
  97. 2005-06-29 Sureshkumar T <[email protected]>
  98. * SqlConnection.cs: Open (): catch TdsInternalException and throw
  99. SqlException.
  100. * SqlException.cs: code re-organised to pass message as well with
  101. the exception.
  102. 2005-06-23 Sureshkumar T <[email protected]>
  103. * SqlConnectionStringBuilder.cs: simplified multiple keyword
  104. mappings and allowed-key checking. fixed Item, Remove,
  105. ContainsKey, ShoudSerialize, TryGetValue implementations.
  106. 2005-06-21 Sureshkumar T <[email protected]>
  107. * SqlConnectionStringBuilder.cs: Connection String Builder class
  108. for SqlClient Data Provider.
  109. 2005-06-01 Gonzalo Paniagua Javier <[email protected]>
  110. * SqlParameter.cs: moved the 'using S.D.SqlTypes' out of NET_2_0. Fixes
  111. the build.
  112. 2005-06-01 Sureshkumar T <[email protected]>
  113. * SqlParameter.cs: Parameter's value can be SqlTypes. Convert to
  114. framework type to pass to TDS layer. Fixes bug #75044.
  115. 2005-05-24 Umadevi S <[email protected]>
  116. * fixed some 2.0 and 1.0 specific fields/attributes for various classes.
  117. * Added SqlClientMetaDataCollectionNames.cs, Implemented some 2.0
  118. properties for SqlParameterCollection for the bulkcopy feature.
  119. 2005-05-20 Kornél Pál <http://www.kornelpal.hu/>
  120. * Fixed Bug #53169 - SqlDataReader incorrectly returns bigint as decimal
  121. Note: The fix works around the limitations of TDS 7.0 to avoid this
  122. difference between Mono and .NET Framework TDS 8.0 should be used instead.
  123. 2005-05-20 Umadevi S <[email protected]>
  124. * Fixed Bug 74948 - SqlParameter also takes DBNull Value.
  125. Correct some attributes stuff of 1.1 and 2.0 for SqlParameter.cs
  126. 2005-05-20 Umadevi S <[email protected]>
  127. * Continuing on implementation for bulkcopy and notification
  128. Added files SqlNotificationEventArgs.cs, OnChangeEventHandler.cs
  129. Modified SqlRowUpdatingEventArgs.cs
  130. 2005-05-19 Umadevi S <[email protected]>
  131. * For implementation of bulkcopy and notifications added files
  132. SqlBulkCopyOptions.cs,SqlBulkCopyColumnMapping.cs,SqlNotificationAuthType.cs
  133. SqlNotificationTransports.cs,SqlRowsCopiedEventArgs.cs, SqlRowsCopiedEventHandler.cs
  134. 2005-05-19 Umadevi S <[email protected]>
  135. * Corrected types,enum values of SqlNotificationType,SqlNotificationSource,
  136. SqlNotificationInfo and added new method in SqlRowUpdatingEventArgs.cs
  137. (For implementation of bulkcopy/notifications)
  138. 2005-04-19 Sureshkumar T <[email protected]>
  139. * SqlDataReader.cs: NextResult (): Re-create schema table for each
  140. result set. don't re-use, as it may be referenced from somewhere.
  141. 2005-04-07 Sureshkumar T <[email protected]>
  142. Ankit Jain <[email protected]>
  143. * SqlConnection.cs: Implemented additional connection string
  144. property "Asynchronous Processing".
  145. * SqlCommand.cs: Implemented Asynchronous command execution API.
  146. * SqlAsyncState.cs: A internal state object for asynchronous
  147. operations.
  148. * SqlAsyncResult.cs: Added. Class to hold result for asynchronous
  149. queries.
  150. 2005-03-28 Sureshkumar T <[email protected]>
  151. * SqlCommand.cs: Execute: Add a semicolon at the end of
  152. CommandText. Multiple semicolon's are not being complained.
  153. fixes bug #74134.
  154. 2005-03-11 Gonzalo Paniagua Javier <[email protected]>
  155. * SqlConnection.cs: added a finalizer for correct implementation of the
  156. IDisposable pattern.
  157. 2005-03-11 Gonzalo Paniagua Javier <[email protected]>
  158. * SqlException.cs: make it serialization-compatible with MS. Patch by
  159. Aleksandar Dezelin. Closes bug #73596.
  160. 2005-03-08 Sureshkumar T <[email protected]>
  161. * SqlDataReader.cs: Call base constructor with CommandBehavior
  162. parameter instead of passing DbCommand object. The internal base
  163. class with DbCommand Parameter is removed.
  164. 2005-03-07 Sureshkumar T <[email protected]>
  165. * SqlCommand.cs : Set CommandBehavior on
  166. ExecuteReader,ExecuteScalar,ExecuteNonQuery. This is used in
  167. CloseDataReader.
  168. This fixes bug #73252.
  169. 2005-03-03 Sureshkumar T <[email protected]>
  170. * SqlClientFactory.cs: While creating command, create using
  171. DbConnectionFactory as DbConnectionBase.CreateDbCommand needs to
  172. have a connection factory.
  173. * SqlConnection.cs: Added an internal constructor which takes
  174. DbConnectionFactory.
  175. * SqlConnectionFactory.cs: Added. Concrete class for abstract
  176. factory DbConnectionFactory.
  177. 2005-02-22 Sureshkumar T <[email protected]>
  178. * SqlDataReader.cs: GetBytes: return the length of the data if
  179. output buffer is null. if not, copy the values to buffer and
  180. return the bytes actually read.
  181. 2005-02-02 Sureshkumar T <[email protected]>
  182. * SqlConnection.cs:
  183. - Database: return db name from database if connection open,
  184. otherwise take from connection string.
  185. - Set default values for parameters in the constructor itself.
  186. - Dangling else problem with Close method.
  187. - reset values of parms (TdsConnectionParameters) rather setting
  188. to null.
  189. - set disposed to false in Open method
  190. - finally call base.Dispose in Dispose (bool)
  191. Fixes nunit regressions SqlConnectionTest:DefaultConnectionValues
  192. and SqlConnectionTest:DatabaseSynonyms.
  193. 2005-01-27 Sureshkumar T <[email protected]>
  194. * SqlCommand.cs (DeriveParameters): Change parameter name to
  195. "procedure_name".
  196. * SqlParameter.cs (SqlParameter (object [])) : call default
  197. constructor to create Tds.Metaparameter.
  198. fixes bug #63122.
  199. 2005-01-03 Sureshkumar T <[email protected]>
  200. * SqlCommand.cs: Fixed bug #68973. Reset Tds.RecordsAffected to 0
  201. for each execute statement.
  202. 2004-11-25 Sureshkumar T <[email protected]>
  203. These changes are for 2.0 profile only. These changes implement
  204. the generic data base access technique using Provider Factory
  205. Implementation. These classes need to be dervided from abstract
  206. base classes so that the corresponding factory classes are
  207. created when calling CreateCommand, CreateParameter, etc.
  208. * SqlClientFactory.cs: Provider Factory class Implementaion for SqlServer
  209. * SqlParameter.cs: Change base classes and override methods.
  210. * SqlParameterCollection.cs: Change base classes and override methods.
  211. * SqlTransaction.cs: Change base classes and override methods.
  212. * SqlDataSourceEnumerator.cs: DataSource Enumerator stubs.
  213. * SqlDataReader.cs: Change base classes and override methods.
  214. * SqlConnection.cs: Change base classes and override methods.
  215. * SqlCommandBuilder.cs: Change base classes and override methods.
  216. * SqlCommand.cs: Change base classes and override necessary methods.
  217. 2004-10-14 Umadevi S <[email protected]>
  218. * SqlCommand.cs - Implemented the clone method correctly.
  219. (fixed bug 67301)
  220. 2004-10-06 Umadevi S <[email protected]>
  221. * ISqlNoticationReceiver.cs - changed namespace
  222. * Added files SqlNotificationType.cs, SqlNotificationInfo.cs, SqlNotificationSource.cs
  223. 2004-09-24 Umadevi S <[email protected]>
  224. * SqlTransaction.cs - Dispose will not call rollback incase the transaction is not open.
  225. 2004-09-14 Sebastien Pouliot <[email protected]>
  226. * SqlClientPermission.cs: Added internal constructor accepting an Sql
  227. ClientPermissionAttribute parameter (using base class protected ctor).
  228. * SqlClientPermissionAttribute.cs: Copy now use the new SqlClient
  229. Permission constructor.
  230. 2004-09-13 Sebastien Pouliot <[email protected]>
  231. * SqlClientPermission.cs: Mostly completed (needs tests).
  232. * SqlClientPermissionAttribute.cs: Completed.
  233. 2004-09-02 Umadevi S <[email protected]>
  234. * SqlCommand.cs - ExecuteNonQuery to return -1 incase of executing a storedprocedure
  235. 2004-08-16 Gert Driesen <[email protected]>
  236. * SqlConnection.cs: added TODO on ConnectionString for keywords
  237. that are not yet implemented. check value of Integrated Security
  238. keyword, check value of bool keywords, improve error reporting
  239. for int keywords, added support for the following keyword
  240. synonyms : APP, TIMEOUT, NETWORK, PERSISTSECURITYINFO, WSID,
  241. LANGUAGE, USER. Throw NotImplementedException when encrypt keyword
  242. is set to true, enlist keyword is set to false or attachdbfilename
  243. keyword (or one of its synonyms) is set. Added FIXME for PERSIST
  244. SECURITY INFO keyword, throwing a NotImplementedException here
  245. would break lots of apps
  246. 2004-08-16 Gert Driesen <[email protected]>
  247. * SqlConnection.cs - spaces to tabs
  248. 2004-08-12 Sureshkumar T <[email protected]>
  249. * SqlDataReader.cs - In Close method, the remaining resultsets are drained
  250. out, to read output parameters & to avoid stream overlap
  251. 2004-06-30 Umadevi S <[email protected]>
  252. * SqlCommand.cs : In the Execute Method the commandbehavior parameters were ignored correct
  253. these
  254. 2004-06-22 Atsushi Enomoto <[email protected]>
  255. * SqlCommandBuilder.cs : Avoid cast exception caused by DbNull.
  256. 2004-06-18 Umadevi S <[email protected]>
  257. * SqlCommand.cs - ExecuteNonQuery returns -1 in all cases except
  258. insert,update or delete.
  259. 2004-06-18 Umadevi S <[email protected]>
  260. * SqlConnection.cs - handled null being passed as a connectionstring
  261. - checked for minimal set of parameters in connectionstring.
  262. - handled unrecogonized keywords similar to MS.NET
  263. 2004-06-17 Umadevi S <[email protected]>
  264. * SqlTransaction.cs - fixed multiple rollbacks being called causes invalidoperationexception
  265. 2004-06-04 Gert Driesen <[email protected]>
  266. * SqlClientPermission.cs: removed extra CreateInstance
  267. method
  268. 2004-06-02 Gert Driesen <[email protected]>
  269. * SQLDebugging.cs: added missing attributes, marked ctor
  270. public to match MS.NET
  271. 2004-05-22 Atsushi Enomoto <[email protected]>
  272. * SqlClientPermission.cs : don't use chained obsolete .ctor.
  273. 2004-05-20 Gert Driesen ([email protected])
  274. * SqlClientPermissionAttribute.cs: change AllowMultiple and
  275. Inherited to match .NET
  276. 2004-05-20 Umadevi S <[email protected]>
  277. * Fixed bug 58406- implemented the hasrow method, test program used
  278. to test with the bug report
  279. 2004-05-13 Umadevi S <[email protected]>
  280. * SqlClientPermission.cs, SqlDataReader.cs - added missing methods with TODO tags
  281. * SqlCommand.cs, SqlDataAdapter.cs - implemented ToolboxItemAttribute
  282. * SQLDebugging.cs - Added new file with a TODO tag
  283. 2004-04-05 Lluis Sanchez Gual <[email protected]>
  284. * SqlConnection.cs: Use connection pool implemented in Mono.Data.Tds.
  285. 2004-04-01 Lluis Sanchez Gual <[email protected]>
  286. * SqlDataReader.cs: Null values are now represented with DBNull instances.
  287. Deal with this.
  288. 2004-03-14 Tim Coleman <[email protected]>
  289. * SqlCommand.cs SqlConnection.cs:
  290. Changes from two patches by Andres Taylor
  291. <[email protected]>
  292. 2004-03-12 Andreas Nahr <[email protected]>
  293. * SqlParameter.cs: DO NOT USE the consts scheme if types can be referenced directly!
  294. 2004-01-10 Atsushi Enomoto <[email protected]>
  295. * SqlClientPermission.cs : Fixed NET_2_0 build related to
  296. obsolete attribute problem (see DbDataPermission.cs)
  297. 2003-12-28 Tim Coleman <[email protected]>
  298. * SqlResultSet.cs:
  299. Stubbed out this class.
  300. 2003-12-23 Tim Coleman <[email protected]>
  301. * SqlConnection.cs:
  302. Improved connection string parsing. See
  303. System.Data.Common.DbConnectionString for source.
  304. 2003-12-21 Tim Coleman <[email protected]>
  305. * SqlConnection.cs:
  306. Enable Integrated Security
  307. 2003-12-19 Tim Coleman <[email protected]>
  308. * ISqlNotificationReceiver.cs SqlResultSet.cs:
  309. New stubs added
  310. * SqlClientPermission.cs:
  311. Fix constructor for 1.2
  312. 2003-12-04 John Luke <[email protected]>
  313. * SqlXmlTextReader.cs: applied patch from Chris Masters <[email protected]>
  314. fix peek so it checks if it is at the end and also to make sure that if Read()
  315. advances the position past the end of the localBuffer array, it makes
  316. a call to GetNextBuffer(). fixes bug #40253 System.IndexOutOfRangeException when
  317. using SqlCommand.ExecuteXmlReader()
  318. 2003-11-20 Joerg Rosenkranz <[email protected]>
  319. * SqlConnection (SetDefaultConnectionParameters):
  320. Changed default value of WORKSTATION ID to reflect real
  321. host name instead of "localhost".
  322. 2003-11-16 Ben Maurer <[email protected]>
  323. * SqlParameterCollection.cs (Clear): Clear needs to take
  324. the parameter out of the collection so that it can be used
  325. again.
  326. (Remove):
  327. (RemoveAt): Ditto.
  328. 2003-10-03 Diego Caravana <[email protected]>
  329. * SqlCommand.cs: no change.
  330. * SqlConnection.cs (Close): Added checks for null instance
  331. variables.
  332. * SqlParameter.cs (Direction): Now handles parameters of type
  333. ReturnValue and InputOutput.
  334. * SqlParameterCollection.cs (IndexOf(string)): Search for
  335. SqlParameter object in list is done by obtaining ParameterName
  336. attribute, not directly through list.IndexOf().
  337. 2003-08-22 Duncan Mak <[email protected]>
  338. * SqlCommand.cs (ExecuteNonQuery): Return
  339. Connection.Tds.RecordsAffected if it is successful. Patch from
  340. Jörg Rosenkranz <[email protected]>.
  341. This is part of a fix to bug #40315.
  342. 2003-08-20 Duncan Mak <[email protected]>
  343. * SqlConnectionPool.cs (ReleaseConnection): A patch from Joerg
  344. Rosenkranz <[email protected]>. Currently, if a connection is
  345. closed by an external event (network problem, etc.) it is pushed
  346. back into the connection pool. The next Open call retrieves this
  347. invalid connection which leads to exceptions when executing
  348. statements.
  349. This patch fixes this problem. This closes bug #47429.
  350. 2003-07-04 Miguel de Icaza <[email protected]>
  351. * SqlDataReader.cs: Added extra information to the exceptions
  352. thrown by all the GetXXXX methods.
  353. 2003-03-15 Daniel Morgan <[email protected]>
  354. * SqlConnection.cs: if Server in the ConnectionString
  355. is set to "(local", use "localhost" as the hostname
  356. to connect
  357. 2003-03-04 Gonzalo Paniagua Javier <[email protected]>
  358. * SqlException.cs: implemented GetObjectData ().
  359. 2003-02-16 Daniel Morgan <[email protected]>
  360. * ChangeLog: added this file
  361. * SqlConnection.cs: - parse data source for 3 possible uses:
  362. "Server=hostname",
  363. "Server=hostname\\instancename",
  364. "Server=hostname,port" and open the connection based on the
  365. resulting server name and port.
  366. - Added support for named instances
  367. by discovery of the sql server tcp port via the sql monitor (udp port 1434)
  368. thanks to Phillip Jerkins ([email protected]) contribution.
  369. Also, thanks to Gonzalo and Tim for their help with timeouts.