ChangeLog 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. 2005-05-16 Sureshkumar T <[email protected]>
  2. * RecordCache.cs: quick fix to make build 2.0 profile (follow up
  3. for check in 2005-05-16).
  4. 2005-05-16 Konstantin Triger <[email protected]>
  5. * Index.cs: validation that the updated row belongs to the index
  6. 2005-05-02 Konstantin Triger <[email protected]>
  7. * DataContainer.cs:
  8. Added CharDataContainer, SByteDataContainer, UInt16DataContainer, UInt32DataContainer, UInt64DataContainer, DateTimeDataContainer, DecimalDataContainer
  9. SetItemFromDataRecord: Changed to work with ISafeDataRecord or through GetValue to enable conversion
  10. return DBNull.Value when the stored value is null
  11. * DbDataAdapter.cs:
  12. Ensure correct order for LoadDataRow
  13. Fixing schema creation
  14. Use NewRowArray API
  15. * DbEnumerator.cs:
  16. LoadSchema: Retrieve needed fields only
  17. * RecordCache.cs:
  18. Added Rows-to-Records mapping
  19. Added ReadIDataRecord method for correct handling of default/auto increment values
  20. * Added Index.cs: Index implementation
  21. * Added Key.cs: Index descriptor implementation
  22. 2005-04-27 Sureshkumar T <[email protected]>
  23. * DbDataReader.cs: Added static method to construct the schema
  24. table with default schema. Could be reused in many places.
  25. 2005-04-22 Sureshkumar T <[email protected]>
  26. * DbDataAdapter.cs: Moved FillTable and BuildSchema as static
  27. methods as they are not operating on the current instance. This
  28. could be reused to fill any table from a data reader.
  29. * RecordCache.cs: While disposing records, make sure that the
  30. record is not already disposed. i.e. to make sure later the same
  31. record is not reused. Implemented a static method to compare two
  32. version of records in a container.
  33. 2005-04-18 Sureshkumar T <[email protected]>
  34. * DataAdapter.cs: Implemenetd OnFillError handler.
  35. * DbDataAdapter.cs: BuildSchema (): the table to be filled might
  36. contain few additional columns as well. so mapping length should
  37. be columns' length + fields' length.
  38. 2005-03-24 Sureshkumar T <[email protected]>
  39. * DbDataAdapter.cs: Update: If SourceColumn is null, do not set
  40. value for the parameter.
  41. 2005-03-23 Sureshkumar T <[email protected]>
  42. * DbDataAdapter.cs: For Update, disable ReadOnly constraint
  43. temporarily before updating the row. Info from Ingo Bauersachs.
  44. SkipAllRemainingRows should also skip current row (msdn).
  45. 2005-03-22 Sureshkumar T <[email protected]>
  46. * DbDataAdapter.cs: Update (): update the rows based on the
  47. UpdateRowSource property. Process further based on the
  48. RowUpdatedEvent handler argument's Status property.
  49. Fixes bug #73587. Thanks to [email protected] (Ingo Bauersachs) for
  50. bug report and patch.
  51. * RowUpdatedEventArgs.cs: if custom error is not set, throw a
  52. default error.
  53. 2005-03-01 Sureshkumar T <[email protected]>
  54. * ConnectionStringsSectionHandler.cs: Added. configuration section
  55. handler for section "connectionStrings". This handler is a ad hoc
  56. solution till the new configuration API is available in mono.
  57. 2005-02-04 Sureshkumar T <[email protected]>
  58. * DbDataAdapter.cs (Update ()) :
  59. - Check for one return result set and map the values back to
  60. datatable.
  61. - Check for output & return value parameters and update the value
  62. back to mapped column
  63. - check for recordsAffected only after closing the reader.
  64. 2005-02-02 Sureshkumar T <[email protected]>
  65. * DbConnection.cs: Implement Dispose pattern.
  66. 2005-01-25 Atsushi Enomoto <[email protected]>
  67. * DbDataPermission.cs : Empty.Union(Empty) is Empty.
  68. 2005-01-14 Atsushi Enomoto <[email protected]>
  69. * DbDataPermissionAttribute.cs, PermissionHelper.cs :
  70. fixed some incompatible type of exception between 2.0 and 1.x.
  71. * DataContainer.cs :
  72. Wrap exceptions thrown by SetValue() within ArgumentException.
  73. 2004-12-10 Sureshkumar T <[email protected]>
  74. * DbDataAdapter.cs (BuildSchema): Add the primary key schema iff
  75. MissingSchemaAction is set to AddWithKey. Also, Add auto increment
  76. value from the source table. fixes bug #67757 and #69110.
  77. 2004-11-24 Sureshkumar T <[email protected]>
  78. * DbProviderSupportedClasses.cs: Added correct enum values.
  79. * DbConnection.cs: Missing virtual method EnlistTransaction Added.
  80. * DbCommand.cs: Implemented ProviderFactory base factory methods.
  81. 2004-11-22 Sureshkumar T <[email protected]>
  82. * DbConnectionStringBuilder.cs: Class for helping creation of db
  83. connection strings added.
  84. 2004-10-01 Sureshkumar T <[email protected]>
  85. * DbProviderFactories.cs: Implemented all the stubs. Added functionality for
  86. getting available provider factories and creating a specified provider factory.
  87. * DbProviderFactoriesConfigurationHandler.cs: Added functionality for handling
  88. DbProviderFactories configuration section.
  89. * DbProviderFactory.cs: Added protected constructor. SupportedClasses property
  90. is made abstract.
  91. 2004-09-14 Sebastien Pouliot <[email protected]>
  92. * DbDataPermission.cs: Implemented Intersect, IsSubsetOf and Union.
  93. Implementation isn't complete as the restrictions seems to change the
  94. expected results (breaking some rules like x.IsSubsetOf (x) == false).
  95. Better (real-world) tests cases are required.
  96. * PermissionHelper.cs: Fixed small differences between System.Data.dll
  97. validations wrt to mscorlib.dll (XML and PermissionState).
  98. 2004-09-13 Sebastien Pouliot <[email protected]>
  99. * DbConnectionOptions.cs: New class for Fx 2.0. Partial implementation
  100. to support new methods in DBDataPermission.
  101. * DbConnectionString.cs: Updated class to split from/inherit
  102. DbConnectionOptions class.
  103. * DbDataPermission.cs: Implemented Add, Clear, Copy, ToXml methods and
  104. completed constructors.
  105. * DbDataPermissionAttribute.cs: Completed/fixed class.
  106. * PermissionHelper.cs: Helper methods to create permission classes.
  107. 2004-08-31 Francisco Figueiredo Jr. <[email protected]>
  108. * DbDataAdapter.cs: Fix for out of memory exceptions when trying to fill a dataset with a query which doesn't return a resultset like insert, delete or update.
  109. 2004-07-21 Umadevi S <[email protected]>
  110. * DbDataRecord.cs - Fix for bug 58163. Return DBNull instead of null
  111. 2004-07-07 Umadevi S <[email protected]>
  112. * DataContainer.cs :CheckedforNull before calling the relavant setmethods in each of the
  113. SetItemForDataRecord method for the DateTimeClass
  114. 2004-06-24 Atsushi Enomoto <[email protected]>
  115. * DataColumnMappingCollection.cs : fixed typo.
  116. * DbDataAdapter.cs : column mappings were not filled.
  117. 2004-06-24 Atsushi Enomoto <[email protected]>
  118. * DataTableMapping.cs : Clone() should also clone ColumnMappings.
  119. 2004-06-18 Umadevi S <[email protected]>
  120. * DataContainer.cs - CheckedforNull before calling the relavant setmethods in each of the
  121. SetItemForDataRecord method for all the classes.
  122. 2004-06-17 Boris Kirzner <[email protected]>
  123. * RecordCache.cs : Added CopyRecord mathod that copies single record from one table to another.
  124. 2004-06-17 Boris Kirzner <[email protected]>
  125. * Datacontainer.cs :
  126. - Store and retreival of null and DBNull values reviewed.
  127. - Added GetInt64 to support AutoIncrement of DataColumn.
  128. - Added missing CopyValue method to BitDataContainer.
  129. - Added FillValues method to propagate single value to whole container.
  130. 2004-06-10 Umadevi S <[email protected]>
  131. * DataTableMappingCollection.cs - fixed nunit testcase errors
  132. IndexOfDataSetTable method
  133. 2004-06-09 Umadevi S <[email protected]>
  134. * DataTableMappingCollection.cs - fixed nunit testcase errors
  135. - Add, GetByDataSetTable,Insert, Remove, RemoveAt methods.
  136. 2004-06-09 Umadevi S <[email protected]>
  137. * DataColumnMappingCollection.cs - fixed nunit testcase errors
  138. - GetByDataSetColumn,IndexOfDataSetColumn, Remove methods.
  139. 2004-06-08 Umadevi S <[email protected]>
  140. * DataColumnMappingCollection.cs - fixed nunit testcase errors.
  141. - remove, removeat, contains methods.
  142. 2004-06-04 Gert Driesen <[email protected]>
  143. * DataAdapter.cs: added missing protected ctor
  144. * DbDataAdapter.cs: added stub for missing protected ctor
  145. * DbDataPermission.cs: added stubs for missing protected
  146. ctors, added stub for missing Clear method
  147. 2004-06-02 Gert Driesen <[email protected]>
  148. * DataColumnMappingCollection.cs: added missing attributes on
  149. indexers
  150. 2004-05-27 Boris Kirzner <[email protected]>
  151. * DataContainer.cs : Bug fixes in BitDataContainer.get_Item and StringDataContainer.SetValue .
  152. 2004-05-20 Gert Driesen ([email protected])
  153. * DbDataPermissionAttribute.cs: change AllowMultiple and
  154. Inherited to match .NET
  155. 2004-05-19 Boris Kirzner <[email protected]>
  156. * Datacontainer.cs : CompareValues reviewed. set_Item and get_Item of null and DBNull values in case of DataContainers
  157. for primitive types reviewed. Added check for null values when reading from IDataRecord.
  158. 2004-05-19 Boris Kirzner <[email protected]>
  159. * RecordCache.cs - added. Each instance of record cache belongs to specific table
  160. and manages pool of records ( indexes into data containers) to be used by data rows.
  161. * DataContainer.cs - added. Provides implementation for data containers that holds data in arrays
  162. of primitives or objects. Each data container belongs to specific DataColumn.
  163. * DbDataAdapter.cs - changes to complete data storage redesign. Bug fix in FillTable
  164. ( to fetch exact number of records required ).
  165. 2004-05-13 Umadevi S ([email protected])
  166. * DbDataPermissionAttribute.cs - Added KeyRestrictions property with a TODO tag
  167. 2004-05-09 Gert Driesen ([email protected])
  168. * ComparerFactory.cs: marked internal
  169. 2003-04-26 Boris Kirzner <[email protected]>
  170. * DataColumnMappingCollection.cs : Small fix in exception message thrown.
  171. 2003-04-25 Boris Kirzner <[email protected]>
  172. * DbDataAdapter.cs : Fixed bug in Fill :
  173. - Reader can have empty results (fo example from UPDATE or DELETE).
  174. - Reader can have results with no rows (SELECT that returns 0 rows but have columns)
  175. - In FillTable - skip rows only once for each table.
  176. 2003-04-14 Juraj Skripsky <[email protected]>
  177. * DbDataAdapter.cs : Refactoring of Fill. New private method
  178. FillTable does most of the work now. Use int[] instead of
  179. hashtable for mapping. Move creation of tableArray[] outside
  180. of loop.
  181. 2004-03-12 Andreas Nahr <[email protected]>
  182. * DbDataPermissionAttribute.cs: Added .Net 1.1 marks
  183. * DataColumnMapping.cs: DO NOT USE the consts scheme if types can be referenced directly!
  184. * DataTableMapping.cs: DO NOT USE the consts scheme if types can be referenced directly!
  185. * DataColumnMappingConverter: Added stub
  186. * DataTableMappingConverter: Added stub
  187. 2004-03-03 Eran Domb <[email protected]>
  188. * ComparerFactory.cs : Added.
  189. 2004-01-10 Atsushi Enomoto <[email protected]>
  190. * DbDataPermission.cs : tiny fix to pass OleDbPermission.
  191. 2004-01-09 Atsushi Enomoto <[email protected]>
  192. * DbDataPermission.cs : .ctor(PermissionState state) should not call
  193. obsolete .ctor(state, allowBlankPassword). csc reports an error.
  194. 2003-12-30 Gonzalo Paniagua Javier <[email protected]>
  195. * DbDataAdapter.cs: handle MissingShemaAction.AddWithKey, call
  196. AcceptChanges in Update when a CommandBuilder is used and
  197. correctly fill information about primary keys in FillSchema.
  198. Patch from Sergei Malinin ([email protected]).
  199. 2003-12-23 Tim Coleman <[email protected]>
  200. * DbConnectionString.cs:
  201. Some implementation
  202. * DbProviderFactory.cs:
  203. Fix typo to make CLS compliant
  204. 2003-12-16 Jackson Harper <[email protected]>
  205. * SchemaTableOptionalColumn.cs: Add to fix default build
  206. 2003-12-16 Tim Coleman <[email protected]>
  207. * CatalogLocation.cs DbCommand.cs DbCommandBuilder.cs
  208. * DbCommandOptionalFeatures.cs DbCommandSet.cs DbConnection.cs
  209. * DbConnectionString.cs DbDataSourceEnumerator.cs
  210. * DbDataUpdatableRecord.cs DbParameter.cs DbParameterCollection.cs
  211. * DbProviderConfigurationHandler.cs DbProviderFactories.cs
  212. * DbProviderFactoriesConfigurationHandler.cs DbProviderFactory.cs
  213. * DbProviderSupportedClasses.cs DbTable.cs DbTransaction.cs
  214. * GroupByBehavior.cs IdentifierCase.cs SchemaLocation.cs
  215. * SchemaTableColumn.cs:
  216. New stubs added for .NET 1.2
  217. * DataAdapter.cs DataColumnMapping.cs DataColumnMappingCollection.cs
  218. * DataTableMapping.cs DataTableMappingCollection.cs DbDataAdapter.cs
  219. * DbDataPermission.cs DbDataPermissionAttribute.cs DbDataRecord.cs
  220. * FieldNameLookup.cs SchemaInfo.cs:
  221. Changes made for .NET 1.2
  222. 2003-10-22 Eran Domb <[email protected]>
  223. * DbDataAdapter.cs : Check if there is mapping to avoid exception.
  224. 2003-11-26 Tim Coleman <[email protected]>
  225. * DbDataReader.cs: Add new stub class
  226. 2003-11-23 Pedro Martínez Juliá <[email protected]>
  227. * DbDataAdapter.cs: Call command dispose in self dispose method. We
  228. need to dispose the connections and other stuff stored in the
  229. commands.
  230. 2003-11-10 Pedro Martínez Juliá <[email protected]>
  231. * DataColumnMappingCollection.cs: Fix a missing exception when the
  232. required mapping is not in the collection. MS.NET throws an
  233. exception there.
  234. 2003-10-22 Eran Domb <[email protected]>
  235. * DbDataAdapter.cs (Fill): add only the mapped column to the dataTable (not all columns of dataReader).
  236. Also closing the dataReader if an exception is thrown.
  237. (Fill): the same as above.
  238. (SetupSchema): in now return string (the table name).
  239. (GetFillParameters): fix a bug.
  240. (BuildSchema) – it now return Hashtable. Add columns to the table only if there is a mapping. Build an Hashtable that maps the columns from the table to the column from the reader.
  241. (Update): first open the connection if needed. Catch an exception of the ExecuteQuery.
  242. 2003-09-30 Duncan Mak <[email protected]>
  243. Patch from Eran Domb <[email protected]>.
  244. * DbDataAdapter.cs (Fill): Fixed an Exception from being thrown.
  245. 2003-09-25 Duncan Mak <[email protected]>
  246. * DbDataAdapter.cs (Fill): Patch from Eran Domb, <[email protected]>.
  247. Fixes a possible NullReferenceException, more details here:
  248. http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002116.html
  249. 2003-09-21 eran <[email protected]>
  250. * DbDataRecord.cs: The method
  251. System.Data.Common.DbDataRecord.GetValues(object[] values) did not
  252. put the values of the DbDataRecord into values parameter.
  253. 2003-08-26 Gonzalo Paniagua Javier <[email protected]>
  254. * DbDataAdapter.cs: provide a Type for ToArray to avoid invalid cast
  255. exception. Thanks to Mark Easton <[email protected]>.
  256. 2003-07-31 Duncan Mak <[email protected]>
  257. * DataAdapter.cs (CloneInternals): Mark with ObsoleteAttribute for
  258. NET_1_1.
  259. 2003-03-21 Alan Tam <[email protected]>
  260. * DbDataAdapter.cs: Update now uses correct DataRowVersion
  261. when accessing the data.
  262. 2003-03-17 Aleksey Demakov <[email protected]>
  263. * DbDataAdapter.cs: BuildSchema now uses ColumnName instead
  264. of BaseColumnName (bug #39830) for DataColumn names.
  265. BaseTableName is no longer taken into account as well.
  266. 2003-02-28 Aleksey Demakov <[email protected]>
  267. * DbDataAdapter.cs: Update (DataSet) updates the default
  268. table only.
  269. 2003-02-25 Alan Tam <[email protected]>
  270. * DbDataAdapter.cs: Added support for filling when schema is present.
  271. Fixed incorrect behavior when ColumnMapping is present
  272. when more than one fields have the same name. Implemented Dispose.
  273. Fixed error when there is no ColumnMapping at all.
  274. Still have some problems in finding the correct TableMapping
  275. because the SourceTable name is not present in BuildSchema
  276. 2003-02-24 Aleksey Demakov <[email protected]>
  277. * DbDataAdapter.cs: The original code might pass a null DataTableMapping
  278. value which is then used to create a RowUpdatingEventArgs
  279. instance. So RowUpdatingEvent handler (for instance
  280. CommandBuilder) could get null DataTableMapping which
  281. might be unexpected. The patch makes sure that a non-null
  282. DataTableMapping is passed.
  283. 2003-01-26 Gonzalo Paniagua Javier <[email protected]>
  284. * DbEnumerator.cs: why does the runtime throw an invalid cast here? The
  285. object is an Int16... Gotta fill a bug report and when fixed undo this
  286. patch.
  287. 2003-01-08 Gonzalo Paniagua Javier <[email protected]>
  288. * DbDataRecord.cs: return DbNull.Value in GetValue () if value is null.
  289. 2002-10-31 Daniel Morgan <[email protected]>
  290. * SchemaInfo.cs: added missing properties to fix mcs build
  291. 2002-05-05 Miguel de Icaza <[email protected]>
  292. * DataTableMapping.cs, DataTableMappingCollection.cs: comment out
  293. interfaces we do not implement yet.
  294. * DbDataAdapter.cs: Stub IEnumerable, comment out interfaces
  295. we do not implement yet.
  296. * DbDataPermissionAttribute.cs: call base constructor.