2
0

ChangeLog 36 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022
  1. 2008-12-30 Gert Driesen <[email protected]>
  2. * DbCommandBuilder.cs: Fixed default value for ConflicOption.
  3. 2008-12-30 Gert Driesen <[email protected]>
  4. * DbCommandBuilder.cs: Return a zero-length string when QuotePrefix or
  5. QuoteSuffix are not set (or are set to null). Changing QuotePrefix or
  6. QuoteSuffix after a command has been generated should result in an
  7. InvalidOperationException.
  8. * DbConnectionStringBuilder.cs: Added support for ODBC rules. Major
  9. rewrite fixing many compatibility issues, and improving support for
  10. connectionstring formats/characters.
  11. 2008-11-25 Atsushi Enomoto <[email protected]>
  12. * DbDataRecord.cs : it is abstract, so create different impl. class.
  13. * DbEnumerator.cs : use above.
  14. 2008-11-17 Raja R Harinath <[email protected]>
  15. Avoid allocating empty arrays.
  16. * Index.cs (empty): New empty array constant.
  17. (Reset): Initialize '_array' to 'empty'.
  18. (RebuildIndex): Don't allocate array if it will be empty.
  19. (FindAllIndexes): Use 'empty' instead of 'new int [0]'.
  20. 2008-11-17 Raja R Harinath <[email protected]>
  21. * Index.cs: Remove use of Array and Size properties by taking
  22. advantage of the invariant that _array is never null.
  23. (EnsureArray): Remove.
  24. (Array): Remove.
  25. 2008-11-17 Raja R Harinath <[email protected]>
  26. * RecordCache.cs: Reduce some extraneous nesting.
  27. 2008-10-07 Daniel Morgan <[email protected]>
  28. * DbConnectionStringBuilder.cs: fix setting and getting
  29. the ConnectionString property
  30. 2008-09-16 Veerapuram Varadhan <[email protected]>
  31. ** Fixes#421336 - Patch provided by <[email protected]>
  32. DbCommandBuilder.cs: Several scenarios leading to exceptions when
  33. creating the update, insert and delete commands:
  34. 1. The "IsExpression" column in the column schema table can also
  35. be DBNull which is equivalent to "false" but the DBCommandBuilder
  36. does not check for DBNull and simply tries to cast it into a bool,
  37. which will fail.
  38. 2. The commands do not get refreshed after a call to
  39. UpdateSchema() because they are not set to NULL. This has the
  40. consequence that empty commands(created with CreateNewCommand())
  41. are returned afterwards.
  42. 3. Multiple parameters with the same name are generated if the
  43. parameter names should be named after the columns.
  44. 2008-09-05 Raja R Harinath <[email protected]>
  45. * DataContainer.cs (*.ZeroOut): Rename from the somewhat unclear
  46. 'SetDefaultValue'.
  47. (IsNull): Use a more idiomatic form of the short-circuit.
  48. (*.SetValue): Convert to one-liners.
  49. 2008-08-08 Raja R Harinath <[email protected]>
  50. Reduce massive code duplication
  51. * DataContainer.cs (DataContainer): Rename from AbstractDataContainer.
  52. Introduce new 'protected abstract' members to encapsulate
  53. type-specific handling, and move all common code here.
  54. (DataContainer.Create): Rename from CreateInstance.
  55. 2008-07-06 Sebastien Pouliot <[email protected]>
  56. * DbDataReader.cs: Replace a few Type.GetType by typeof
  57. [Found using Gendarme AvoidTypeGetTypeForConstantStringsRule]
  58. 2008-07-03 Marek Habersack <[email protected]>
  59. * DataAdapter.cs (BuildSchema): Check for null.
  60. 2008-07-01 Rodrigo Kumpera <[email protected]>
  61. * RecordCache.cs: Kill some foreach loops.
  62. 2008-04-21 Gert Driesen <[email protected]>
  63. * DataColumnMappingCollection.cs: Modified argument names to match
  64. MS. Code formatting.
  65. * DataTableMappingCollection.cs: Modified argument names to match MS.
  66. Code formatting.
  67. 2008-03-23 Gert Driesen <[email protected]>
  68. * DbDataAdapter.cs: Corcompare fixes and code formatting.
  69. * DbDataRecord.cs: Corcompare fixes and code formatting.
  70. * DataColumnMappingCollection.cs: Corcompare fixes and code formatting.
  71. * RowUpdatedEventArgs.cs: Corcompare fixes and code formatting.
  72. * DbParameterCollection.cs: Corcompare fixes and code formatting.
  73. 2007-11-15 Atsushi Enomoto <[email protected]>
  74. * DbProviderFactoriesConfigurationHandler.cs : Create() now takes
  75. parent DataSet into consideration i.e. it now merges items in
  76. different configurations. Fixed bug #323708.
  77. 2007-10-21 Gert Driesen <[email protected]>
  78. * DbDataPermissionAttribute.cs: In KeyRestrictionBehavior, reuse
  79. ExceptionHelper.CheckEnumValue.
  80. * ExceptionHelper.cs: Use same exception message for both 1.0 and 2.0.
  81. * Index.cs: Fixed compiler warnings. Code formatting.
  82. 2007-10-20 Gert Driesen <[email protected]>
  83. * DbDataAdapter.cs: Implemented UpdateBatchSize setter.
  84. * DataAdapter.cs: In FillLoadOption setter, ensure value is valid.
  85. Modified MissingMappingAction and MissingSchemaAction setters to use
  86. ExceptionHelper.CheckEnumValue to validate value. Spaces to tabs and
  87. code formatting.
  88. * ExceptionHelper.cs: Added CheckEnumValue method and modified
  89. InvalidEnumValueException method to return AORE on 2.0 profile. Added
  90. ConnectionClosed method that returns an InvalidOperationException.
  91. 2007-10-19 Gert Driesen <[email protected]>
  92. * DbTransaction.cs: Do not perform a rollback in Dispose (bool).
  93. Leaves it up to deriving classes to override Dispose (bool) and
  94. perform a rollback if necessary. Fixes bug #325397. Code formatting.
  95. * ExceptionHelper.cs: Added TransactionNotUsable method that constructs
  96. an InvalidOperationException to be thrown by IDbTransaction
  97. implementations when the transaction is no longer open.
  98. 2007-09-27 Nagappan A <[email protected]>
  99. * DbDataAdapter.cs: Added MonoTODO in appropriate place.
  100. * DbCommandBuilder.cs (initializeCommand): Implemented missing API.
  101. 2007-09-25 Nagappan A <[email protected]>
  102. * DbConnection.cs: 2.0 attribute fixes.
  103. * DataColumnMapping.cs: 2.0 attribute fixes.
  104. * DbParameterCollection.cs: Code alignment.
  105. * DataAdapter.cs: 2.0 attribute fixes.
  106. * DataTableMapping.cs: 2.0 attribute fixes.
  107. * RowUpdatingEventArgs.cs (BaseCommand): Code alignment.
  108. 2007-09-24 Konstantin Triger <[email protected]>
  109. * DbEnumerator.cs, DbDataRecord.cs: refactoring.
  110. * DbDataRecord.cs: GetValue() should return null instead of DBNull.
  111. 2007-08-10 Nagappan A <[email protected]>
  112. * DbDataAdapter.cs (Fill): Fixed method signature.
  113. 2007-07-26 Nagappan A <[email protected]>
  114. * DbConnection.cs: Removed bogus TODO.
  115. 2007-07-22 Nagappan A <[email protected]>
  116. * DbConnection.cs: 2.0 missing features.
  117. * DbDataAdapter.cs: 2.0 missing features.
  118. 2007-06-30 Gert Driesen <[email protected]>
  119. * DbDataAdapter.cs: Marked ICloneable.Clone obsolete to match MS.
  120. 2007-06-21 Nagappan A <[email protected]>
  121. * DbConnectionStringBuilder.cs (Init): Modified the dictionary to
  122. use StringComparer.InvariantCultureIgnoreCase.
  123. (Add, ContainsKey): Checks whether argument is null or empty string.
  124. 2007-05-08 Adar Wesley <[email protected]>
  125. * DbProviderFactory.cs: minor refactoring for throwing exceptions
  126. 2007-04-30 Marek Habersack <[email protected]>
  127. * DbProviderFactories.cs: throw the same exception MS.NET does.
  128. 2007-03-03 Gert Driesen <[email protected]>
  129. * DbProviderFactoriesConfigurationHandler.cs: Added support for
  130. clear node.
  131. 2007-03-03 Gert driesen <[email protected]>
  132. * ConnectionStringsSectionHandler.cs: Removed since the 2.0 config
  133. API is in place.
  134. * DbProviderFactoriesConfigurationHandler.cs: Fixed name of DataSet
  135. to match MS. Removed SupportedClasses column since this is no longer
  136. part of 2.0 profile (removed during beta). Throw
  137. ConfigurationErrorsException for unrecognized elements. Mark methods
  138. private, and refactor them. Added FIXMEs for missing checks for
  139. unrecognized attributes.
  140. * DbProviderFactories.cs: Marked constants internal. Replaced spaces
  141. with tabs. Use ConfigurationManager.GetSection instead of deprecated
  142. ConfigurationSettings.GetConfig.
  143. 2007-02-26 Atsushi Enomoto <[email protected]>
  144. * DbProviderFactoriesConfigurationHandler.cs : there was a config
  145. test that used to be broken.
  146. 2007-02-26 Atsushi Enomoto <[email protected]>
  147. * DbProviderFactoriesConfigurationHandler.cs : remove "support"
  148. attribute check, as it does not really do anything.
  149. 2007-02-19 Atsushi Enomoto <[email protected]>
  150. * DbProviderFactoriesConfigurationHandler.cs : "support" attribute is
  151. optional. Fixed bug #80894.
  152. 2007-02-09 Nagappan A <[email protected]>
  153. * DbProviderFactory.cs: Derived class has to implement all the
  154. methods of this class.
  155. * DbProviderFactoriesConfigurationHandler.cs (Create): Removed
  156. bogus MonoTODO
  157. 2007-01-08 Nagappan A <[email protected]>
  158. * DataTableMappingCollection.cs (AddRange): Implemented missing
  159. NET 2.0 API.
  160. * DbConnection.cs (GetSchema): Implemented missing NET 2.0 API,
  161. based on SqlClient implementation.
  162. * DbConnectionStringBuilder.cs (AppendKeyValuePair): Implemented
  163. missing API.
  164. * DbDataReader.cs (GetData): Implemented missing API.
  165. (GetDbDataReader): Implemented missing API.
  166. * DbCommandBuilder.cs (BuildCache, BuildInformation)
  167. (IncludedInInsert, IncludedInUpdate, IncludedInWhereClause)
  168. (CreateDeleteCommand, CreateInsertCommand, CreateNewCommand)
  169. (CreateUpdateCommand, CreateParameter): Added private methods.
  170. (QuotedTableName, GetQuotedString, CatalogLocation)
  171. (CatalogSeparator, ConflictOption, DataAdapter, QuotePrefix)
  172. (QuoteSuffix, SchemaSeparator): Implemented public properties.
  173. (SourceCommand): Implemented private property.
  174. (Dispose, RowUpdatingHandler): Implemented protected methods.
  175. (GetDeleteCommand, GetInsertCommand, GetUpdateCommand)
  176. (QuoteIdentifier, UnquoteIdentifier, RefreshSchema): Implemented
  177. public methods.
  178. * DbProviderFactory.cs: Removed MonoTODO's as the derived class
  179. has to implement all the methods in this class.
  180. * DataAdapter.cs (Fill): Implemented missing method.
  181. * DbDataAdapter.cs (FillCommandBehavior): Implemented property.
  182. 2006-12-20 Nagappan A <[email protected]>
  183. * DataColumnMapping.cs (GetDataColumnBySchemaAction): Implemented
  184. 2.0 profile method.
  185. * DbDataReader.cs: Removed TODO's where ever the implementation is
  186. available.
  187. * RowUpdatedEventArgs.cs: Removed TODO's where ever the
  188. implementation is available.
  189. * DataAdapter.cs (FillInternal): Moved from DbDataAdapater.cs to
  190. here.
  191. (BuildSchema): Moved from DbDataAdapter.cs.
  192. (FillTable): Moved from DbDataAdapter.cs.
  193. (OnFillErrorInternal): Implemented new internal method to raise an
  194. event.
  195. (SetupSchema): Moved from DbDataAdapter.cs.
  196. (FillInterl): Moved common implementation from DbDataAdapter.cs.
  197. Removed TODO's where ever the implementation is available.
  198. * DbDataAdapter.cs (OnRowUpdated): Implemented protected method.
  199. (OnRowUpdating): Implemented protected method.
  200. (CreateFillErrorEvent): Moved to DataAdapter.cs.
  201. (Fill): Moved common implementation to DataAdapter.cs.
  202. (FillTable): Moved to DataAdapter.cs.
  203. (BuildSchema): Moved to DataAdapter.cs.
  204. (SetupSchema): Moved to DataAdapter.cs.
  205. 2006-12-11 Miguel de Icaza <[email protected]>
  206. * DataAdapter.cs: Removed TODO, NotSupportedException was the
  207. correct implementation.
  208. 2006-11-28 Nagappan A <[email protected]>
  209. * DbDataAdapter.cs: Removed bogus MonoTODOs
  210. * DataAdapter.cs: Removed bogus MonoTODOs
  211. 2006-11-15 Nagappan A <[email protected]>
  212. * DbDataAdapter.cs (FillFromReader): Implemented missing API to
  213. handle FillErrorEventHandler
  214. (DataAdapter): Implemented missing .NET 2.0 function
  215. (GetDeleteCommand): Returns DbDataAdapter deleteCommand internal
  216. variable.
  217. (GetInsertCommand): Returns DbDataAdapter insertCommand internal
  218. variable.
  219. (GetUpdateCommand): Returns DbDataAdapter updateCommand internal
  220. variable.
  221. 2006-09-06 Konstantin Triger <[email protected]>
  222. * DbDataAdapter.cs: added basic implementation for some 2.0 features.
  223. 2006-08-24 Vladimir Krasnov <[email protected]>
  224. * DbProviderFactories.cs: added TARGET_JVM block to not supported
  225. functionality
  226. 2006-08-06 Konstantin Triger <[email protected]>
  227. * DbDataReader.cs: DbDataReader.Dipose(bool) - implemented.
  228. 2006-07-17 Senganal T <[email protected]>
  229. * Index.cs :
  230. - GetAllRows : Added. Returns all the rows in the current
  231. index.
  232. - GetDistinctRows :Added. Returns all the distinct rows (based
  233. in Key Columns) in the index.
  234. 2006-07-13 Senganal T <[email protected]>
  235. * SchemaInfo.cs DbDataAdapter.cs DbConnectionOptions.cs DbParameter.cs
  236. DbMetaDataColumnNames.cs DbTransaction.cs DataTableMapping.cs DataAdapter.cs
  237. FieldNameLookup.cs DbDataRecord.cs DataColumnMappingCollection.cs DbCommand.cs
  238. DbDataPermission.cs DbProviderFactory.cs DbCommandBuilder.cs DbConnectionString.cs
  239. RowUpdatedEventArgs.cs DbDataReader.cs DbConnectionStringBuilder.cs DbConnection.cs
  240. DataTableMappingCollection.cs :
  241. 2.0 Api fixes
  242. 2006-06-15 Senganal T <[email protected]>
  243. * Key.cs :
  244. -Equals : Check for Equality of Sort Order too.
  245. 2006-04-07 Senganal T <[email protected]>
  246. * DbDataAdapter.cs :
  247. * Update () : If the Update/Delete Query has a null check,
  248. then populate the parameter value correctly.
  249. 2006-03-20 Senganal T <[email protected]>
  250. * DataAdapter.cs :
  251. - Ctor () : Set Default Values for DataAdapter members
  252. * DbDataAdapter.cs :
  253. - Update () : Call row.AcceptChanges only if AcceptChangesDuringUpdate
  254. is true. Fixes bug #77776
  255. 2006-03-09 Senganal T <[email protected]>
  256. * Index.cs :
  257. - Update () : Add the new record in the correct position
  258. 2006-03-07 Senganal T <[email protected]>
  259. * Key.cs :
  260. Reverted the changes from the earlier patch.
  261. 2006-02-22 Senganal T <[email protected]>
  262. * DbDataAdapter.cs :
  263. - FillTable : Move BeginLoadData, EndLoadData outside the loop. Also,
  264. move EndLoadData outsidet try,catch block. FillError is only for errors
  265. occuring during loading the data into datatable.
  266. * Key.cs :
  267. - Set Default value of RowStateFilter to (CurrentRos | OriginalRows).
  268. - ContainsVersion : If RowStateFilter is set to default value, return true
  269. for Modified Rows as they can contain Default/Original versions.
  270. 2006-02-18 Raja R Harinath <[email protected]>
  271. * DbConnectionStringBuilder.cs (ICollection.CopyTo): Use
  272. _dictionary, not 'this' in cast.
  273. 2006-02-17 Chris Toshok <[email protected]>
  274. * DbDataAdapter.cs: more 2.0 cleanup.
  275. 2006-02-17 Chris Toshok <[email protected]>
  276. * DataAdapter.cs, DataColumnMappingCollection.cs,
  277. DataColumnMapping.cs, DataTableMappingCollection.cs,
  278. DataTableMapping.cs, DbCommandBuilder.cs,
  279. DbConnectionStringBuilder.cs, DbParameterCollection.cs,
  280. DbParameter.cs: pretty major attribute work.
  281. 2006-02-17 Chris Toshok <[email protected]>
  282. * DbProviderFactory.cs: remove two methods. and mark the
  283. DbProviderSupportedClasses ctor as internal since it's not part of
  284. the public api.
  285. * DbTable.cs: remove this class from 2.0 build.. leave it for the
  286. JVM build, I guess?
  287. * RowUpdatingEventArgs.cs: this class isn't abstract in 2.0.
  288. * RowUpdatedEventArgs.cs: this class isn't abstract in 2.0.
  289. * SupportedJoinOperators.cs: new 2.0 enum.
  290. * CatalogLocation.cs: fix enum values.
  291. * GroupByBehavior.cs: same.
  292. * IdentifierCase.cs: same.
  293. * SchemaTableColumn.cs: class is static, not sealed. and add
  294. missing elements.
  295. * SchemaTableOptionalColumn.cs: same.
  296. * DbDataReader.cs: oops, add back in VisibleFieldCount (i missed
  297. it in the corcompare output), add EditorBrowsable attributes all
  298. over the place, and fix some method signatures.
  299. * DbDataUpdatableRecord.cs: remove this 2.0 file.
  300. 2006-02-17 Chris Toshok <[email protected]>
  301. * DbDataReader.cs: remove VisibleFieldCount attribute, and remove
  302. IDataReader2 and IDataRecord2 interfaces.
  303. 2006-02-13 Senganal T <[email protected]>
  304. * DbDataAdapter.cs :
  305. - FillSchema :
  306. - Add table to schema only if MissingSchemaAction is not Ignore
  307. Add schema to table if MissingSchemaAction is set to either of
  308. Add or AddWithKey
  309. - BuildSchema :
  310. - Set the Schema values only if MissingSchemaAction is set to
  311. AddWithKey
  312. 2006-01-31 Senganal T <[email protected]>
  313. * DbDataAdapter.cs :
  314. - Corrected an error in the prev checkin.. Fixes #77415
  315. 2006-01-27 Senganal T <[email protected]>
  316. * DbDataAdapter.cs :
  317. - Modified schema population to follow MissingSchemaAction and MissingMappingAction
  318. - Add a column to the Primary Key only if its not a hidden key
  319. - Added some argument checks
  320. - Removed some redundant code
  321. * DataAdapter :
  322. - Added argument checks
  323. * ExceptionHelper :
  324. - Added InvalidEnumException , a helper function to print error msg
  325. 2006-01-11 Boris Kirzner <[email protected]>
  326. * Index.cs: removed redundant call to RebuildIndex() in constructor.
  327. 2005-12-12 Konstantin Triger <[email protected]>
  328. * Key.cs: Added ContainsVersion function, refactoring.
  329. * Index.cs: Fixed Reset() to be ready for Update() calls.
  330. Otherwise the index can be rebuilt with new values inside the
  331. Update() call itself.
  332. Fixed FindIndexExact(), Update(), Delete().
  333. 2005-11-22 Konstantin Triger <[email protected]>
  334. * DbProviderFactory.cs: TARGET_JVM ifdef.
  335. 2005-11-21 Senganal T <[email protected]>
  336. * DbDataAdapter.cs
  337. * DbParameter.cs
  338. * DbTransaction.cs
  339. * DbTable.cs
  340. * DbProviderFactories.cs
  341. * DbException.cs
  342. * DbProviderFactory.cs
  343. * DbCommandBuilder.cs
  344. * DbDataReader.cs
  345. * DbParameterCollection.cs
  346. - Added stubs and other changes for ADO.NET 2.0 compatibility.
  347. * DbMetaDataCollectionNames.cs (new file)
  348. - Added DbMetaDataCollectionNames Enumeration
  349. 2005-10-24 Konstantin Triger <[email protected]>
  350. * DataContainer.cs: removed extra type validation for object container
  351. 2005-10-14 Senganal T <[email protected]>
  352. * DbDataAdapter.cs :
  353. - BuildSchema() : Set the value of DataColumn Property 'AllowDBNull'
  354. as returned by database. Fixes bug#76433.
  355. 2005-09-21 Boris Kirzner <[email protected]>
  356. * Index.cs:
  357. - Rebuild index immediately after construction.
  358. - Do not add records if they do not padd key filtration.
  359. - Do not attempt to remove records if the are not in the index.
  360. * Key.cs:
  361. - Added HasFilter property, CanContain and DependsOn methods.
  362. - Equals() uses filter expression comparison.
  363. 2005-09-07 Boris Kirzner <[email protected]>
  364. * DataContainer.cs: Do not convert value if container type
  365. is System.Object.
  366. 2005-08-08 Gert Driesen <[email protected]>
  367. * DbTypes.cs: Marked internal to fix public API.
  368. 2005-08-05 Sureshkumar T <[email protected]>
  369. * DbDataAdapter.cs:
  370. - Update (): set parameter values only after getting the
  371. appropriate command from command builder. Close reader only if it
  372. is not closed before. Use parameter's SourceVersion. Whitespace
  373. corrections to comply with standard.
  374. 2005-07-22 Sureshkumar T <[email protected]>
  375. * DataColumnMappingCollection.cs: updated attributes & attribute
  376. descriptions to match with masterinfos.
  377. 2005-07-15 Sureshkumar T <[email protected]>
  378. * DataTableMappingCollection.cs: GetTableMappingBySchemaAction:
  379. meaningful error message if mapping is missing.
  380. * DbDataAdapter.cs: Update: meaningful message if table is missing.
  381. 2005-06-22 Sureshkumar T <[email protected]>
  382. * Index.cs: Remove : length for Array.Copy (a, i+1, a, i, length -
  383. (i+1)) corrected.
  384. 2005-06-21 Sureshkumar T <[email protected]>
  385. * DbConnectionStringBuilder.cs: Implemented method for parsing
  386. connection string through "ConnectionString" property.
  387. * DbConnectionStringBuilderHelper.cs: Helper class to provide
  388. conversion between string=>.net type mapping for connection string
  389. builders. The idea is to use between other providers (odbc) as
  390. well.
  391. 2005-05-29 Boris Kirzner <[email protected]>
  392. * DbCommand.cs - added #ifdef NET_2_0 on DbCommandOptionalFeatures (not used in TARGET_JVM).
  393. * ExceptionHelper.cs - removed java references. Exceptions created on formatted text messages. Code styling fixes.
  394. * DbParameterCollection.cs - implemented indexer properties.
  395. * DbDataAdapter.cs - delagate exceptions creating to ExceptionHelper.
  396. 2005-05-25 Konstantin Triger <[email protected]>
  397. * DataContainer.cs: Correcting the order - first the record is queried whether the value it contains is null, and only if not the value is fetched
  398. 2005-05-20 Umadevi S <[email protected]>
  399. * Added file DbProviderSpecificTypePropertyAttribute.cs
  400. 2005-05-19 Umadevi S <[email protected]>
  401. * RowUpdatingEventArgs.cs - added BaseCommand property for net 2.0
  402. 2005-05-18 Konstantin Triger <[email protected]>
  403. * DbDataAdapter.cs: Initialize the schema values to defaults if the schema does not contain the information
  404. 2005-05-16 Sureshkumar T <[email protected]>
  405. * RecordCache.cs: quick fix to make build 2.0 profile (follow up
  406. for check in 2005-05-16).
  407. 2005-05-16 Konstantin Triger <[email protected]>
  408. * Index.cs: validation that the updated row belongs to the index
  409. 2005-05-02 Konstantin Triger <[email protected]>
  410. * DataContainer.cs:
  411. Added CharDataContainer, SByteDataContainer, UInt16DataContainer, UInt32DataContainer, UInt64DataContainer, DateTimeDataContainer, DecimalDataContainer
  412. SetItemFromDataRecord: Changed to work with ISafeDataRecord or through GetValue to enable conversion
  413. return DBNull.Value when the stored value is null
  414. * DbDataAdapter.cs:
  415. Ensure correct order for LoadDataRow
  416. Fixing schema creation
  417. Use NewRowArray API
  418. * DbEnumerator.cs:
  419. LoadSchema: Retrieve needed fields only
  420. * RecordCache.cs:
  421. Added Rows-to-Records mapping
  422. Added ReadIDataRecord method for correct handling of default/auto increment values
  423. * Added Index.cs: Index implementation
  424. * Added Key.cs: Index descriptor implementation
  425. 2005-04-27 Sureshkumar T <[email protected]>
  426. * DbDataReader.cs: Added static method to construct the schema
  427. table with default schema. Could be reused in many places.
  428. 2005-04-22 Sureshkumar T <[email protected]>
  429. * DbDataAdapter.cs: Moved FillTable and BuildSchema as static
  430. methods as they are not operating on the current instance. This
  431. could be reused to fill any table from a data reader.
  432. * RecordCache.cs: While disposing records, make sure that the
  433. record is not already disposed. i.e. to make sure later the same
  434. record is not reused. Implemented a static method to compare two
  435. version of records in a container.
  436. 2005-04-18 Sureshkumar T <[email protected]>
  437. * DataAdapter.cs: Implemenetd OnFillError handler.
  438. * DbDataAdapter.cs: BuildSchema (): the table to be filled might
  439. contain few additional columns as well. so mapping length should
  440. be columns' length + fields' length.
  441. 2005-03-24 Sureshkumar T <[email protected]>
  442. * DbDataAdapter.cs: Update: If SourceColumn is null, do not set
  443. value for the parameter.
  444. 2005-05-25 Umadevi S <[email protected]>
  445. * Added DbException.cs
  446. 2005-03-23 Sureshkumar T <[email protected]>
  447. * DbDataAdapter.cs: For Update, disable ReadOnly constraint
  448. temporarily before updating the row. Info from Ingo Bauersachs.
  449. SkipAllRemainingRows should also skip current row (msdn).
  450. 2005-03-22 Sureshkumar T <[email protected]>
  451. * DbDataAdapter.cs: Update (): update the rows based on the
  452. UpdateRowSource property. Process further based on the
  453. RowUpdatedEvent handler argument's Status property.
  454. Fixes bug #73587. Thanks to [email protected] (Ingo Bauersachs) for
  455. bug report and patch.
  456. * RowUpdatedEventArgs.cs: if custom error is not set, throw a
  457. default error.
  458. 2005-03-01 Sureshkumar T <[email protected]>
  459. * ConnectionStringsSectionHandler.cs: Added. configuration section
  460. handler for section "connectionStrings". This handler is a ad hoc
  461. solution till the new configuration API is available in mono.
  462. 2005-02-04 Sureshkumar T <[email protected]>
  463. * DbDataAdapter.cs (Update ()) :
  464. - Check for one return result set and map the values back to
  465. datatable.
  466. - Check for output & return value parameters and update the value
  467. back to mapped column
  468. - check for recordsAffected only after closing the reader.
  469. 2005-02-02 Sureshkumar T <[email protected]>
  470. * DbConnection.cs: Implement Dispose pattern.
  471. 2005-01-25 Atsushi Enomoto <[email protected]>
  472. * DbDataPermission.cs : Empty.Union(Empty) is Empty.
  473. 2005-01-14 Atsushi Enomoto <[email protected]>
  474. * DbDataPermissionAttribute.cs, PermissionHelper.cs :
  475. fixed some incompatible type of exception between 2.0 and 1.x.
  476. * DataContainer.cs :
  477. Wrap exceptions thrown by SetValue() within ArgumentException.
  478. 2004-12-10 Sureshkumar T <[email protected]>
  479. * DbDataAdapter.cs (BuildSchema): Add the primary key schema iff
  480. MissingSchemaAction is set to AddWithKey. Also, Add auto increment
  481. value from the source table. fixes bug #67757 and #69110.
  482. 2004-11-24 Sureshkumar T <[email protected]>
  483. * DbProviderSupportedClasses.cs: Added correct enum values.
  484. * DbConnection.cs: Missing virtual method EnlistTransaction Added.
  485. * DbCommand.cs: Implemented ProviderFactory base factory methods.
  486. 2004-11-22 Sureshkumar T <[email protected]>
  487. * DbConnectionStringBuilder.cs: Class for helping creation of db
  488. connection strings added.
  489. 2004-10-01 Sureshkumar T <[email protected]>
  490. * DbProviderFactories.cs: Implemented all the stubs. Added functionality for
  491. getting available provider factories and creating a specified provider factory.
  492. * DbProviderFactoriesConfigurationHandler.cs: Added functionality for handling
  493. DbProviderFactories configuration section.
  494. * DbProviderFactory.cs: Added protected constructor. SupportedClasses property
  495. is made abstract.
  496. 2004-09-14 Sebastien Pouliot <[email protected]>
  497. * DbDataPermission.cs: Implemented Intersect, IsSubsetOf and Union.
  498. Implementation isn't complete as the restrictions seems to change the
  499. expected results (breaking some rules like x.IsSubsetOf (x) == false).
  500. Better (real-world) tests cases are required.
  501. * PermissionHelper.cs: Fixed small differences between System.Data.dll
  502. validations wrt to mscorlib.dll (XML and PermissionState).
  503. 2004-09-13 Sebastien Pouliot <[email protected]>
  504. * DbConnectionOptions.cs: New class for Fx 2.0. Partial implementation
  505. to support new methods in DBDataPermission.
  506. * DbConnectionString.cs: Updated class to split from/inherit
  507. DbConnectionOptions class.
  508. * DbDataPermission.cs: Implemented Add, Clear, Copy, ToXml methods and
  509. completed constructors.
  510. * DbDataPermissionAttribute.cs: Completed/fixed class.
  511. * PermissionHelper.cs: Helper methods to create permission classes.
  512. 2004-08-31 Francisco Figueiredo Jr. <[email protected]>
  513. * 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.
  514. 2004-07-21 Umadevi S <[email protected]>
  515. * DbDataRecord.cs - Fix for bug 58163. Return DBNull instead of null
  516. 2004-07-07 Umadevi S <[email protected]>
  517. * DataContainer.cs :CheckedforNull before calling the relavant setmethods in each of the
  518. SetItemForDataRecord method for the DateTimeClass
  519. 2004-06-24 Atsushi Enomoto <[email protected]>
  520. * DataColumnMappingCollection.cs : fixed typo.
  521. * DbDataAdapter.cs : column mappings were not filled.
  522. 2004-06-24 Atsushi Enomoto <[email protected]>
  523. * DataTableMapping.cs : Clone() should also clone ColumnMappings.
  524. 2004-06-18 Umadevi S <[email protected]>
  525. * DataContainer.cs - CheckedforNull before calling the relavant setmethods in each of the
  526. SetItemForDataRecord method for all the classes.
  527. 2004-06-17 Boris Kirzner <[email protected]>
  528. * RecordCache.cs : Added CopyRecord mathod that copies single record from one table to another.
  529. 2004-06-17 Boris Kirzner <[email protected]>
  530. * Datacontainer.cs :
  531. - Store and retreival of null and DBNull values reviewed.
  532. - Added GetInt64 to support AutoIncrement of DataColumn.
  533. - Added missing CopyValue method to BitDataContainer.
  534. - Added FillValues method to propagate single value to whole container.
  535. 2004-06-10 Umadevi S <[email protected]>
  536. * DataTableMappingCollection.cs - fixed nunit testcase errors
  537. IndexOfDataSetTable method
  538. 2004-06-09 Umadevi S <[email protected]>
  539. * DataTableMappingCollection.cs - fixed nunit testcase errors
  540. - Add, GetByDataSetTable,Insert, Remove, RemoveAt methods.
  541. 2004-06-09 Umadevi S <[email protected]>
  542. * DataColumnMappingCollection.cs - fixed nunit testcase errors
  543. - GetByDataSetColumn,IndexOfDataSetColumn, Remove methods.
  544. 2004-06-08 Umadevi S <[email protected]>
  545. * DataColumnMappingCollection.cs - fixed nunit testcase errors.
  546. - remove, removeat, contains methods.
  547. 2004-06-04 Gert Driesen <[email protected]>
  548. * DataAdapter.cs: added missing protected ctor
  549. * DbDataAdapter.cs: added stub for missing protected ctor
  550. * DbDataPermission.cs: added stubs for missing protected
  551. ctors, added stub for missing Clear method
  552. 2004-06-02 Gert Driesen <[email protected]>
  553. * DataColumnMappingCollection.cs: added missing attributes on
  554. indexers
  555. 2004-05-27 Boris Kirzner <[email protected]>
  556. * DataContainer.cs : Bug fixes in BitDataContainer.get_Item and StringDataContainer.SetValue .
  557. 2004-05-20 Gert Driesen ([email protected])
  558. * DbDataPermissionAttribute.cs: change AllowMultiple and
  559. Inherited to match .NET
  560. 2004-05-19 Boris Kirzner <[email protected]>
  561. * Datacontainer.cs : CompareValues reviewed. set_Item and get_Item of null and DBNull values in case of DataContainers
  562. for primitive types reviewed. Added check for null values when reading from IDataRecord.
  563. 2004-05-19 Boris Kirzner <[email protected]>
  564. * RecordCache.cs - added. Each instance of record cache belongs to specific table
  565. and manages pool of records ( indexes into data containers) to be used by data rows.
  566. * DataContainer.cs - added. Provides implementation for data containers that holds data in arrays
  567. of primitives or objects. Each data container belongs to specific DataColumn.
  568. * DbDataAdapter.cs - changes to complete data storage redesign. Bug fix in FillTable
  569. ( to fetch exact number of records required ).
  570. 2004-05-13 Umadevi S ([email protected])
  571. * DbDataPermissionAttribute.cs - Added KeyRestrictions property with a TODO tag
  572. 2004-05-09 Gert Driesen ([email protected])
  573. * ComparerFactory.cs: marked internal
  574. 2003-04-26 Boris Kirzner <[email protected]>
  575. * DataColumnMappingCollection.cs : Small fix in exception message thrown.
  576. 2003-04-25 Boris Kirzner <[email protected]>
  577. * DbDataAdapter.cs : Fixed bug in Fill :
  578. - Reader can have empty results (fo example from UPDATE or DELETE).
  579. - Reader can have results with no rows (SELECT that returns 0 rows but have columns)
  580. - In FillTable - skip rows only once for each table.
  581. 2003-04-14 Juraj Skripsky <[email protected]>
  582. * DbDataAdapter.cs : Refactoring of Fill. New private method
  583. FillTable does most of the work now. Use int[] instead of
  584. hashtable for mapping. Move creation of tableArray[] outside
  585. of loop.
  586. 2004-03-12 Andreas Nahr <[email protected]>
  587. * DbDataPermissionAttribute.cs: Added .Net 1.1 marks
  588. * DataColumnMapping.cs: DO NOT USE the consts scheme if types can be referenced directly!
  589. * DataTableMapping.cs: DO NOT USE the consts scheme if types can be referenced directly!
  590. * DataColumnMappingConverter: Added stub
  591. * DataTableMappingConverter: Added stub
  592. 2004-03-03 Eran Domb <[email protected]>
  593. * ComparerFactory.cs : Added.
  594. 2004-01-10 Atsushi Enomoto <[email protected]>
  595. * DbDataPermission.cs : tiny fix to pass OleDbPermission.
  596. 2004-01-09 Atsushi Enomoto <[email protected]>
  597. * DbDataPermission.cs : .ctor(PermissionState state) should not call
  598. obsolete .ctor(state, allowBlankPassword). csc reports an error.
  599. 2003-12-30 Gonzalo Paniagua Javier <[email protected]>
  600. * DbDataAdapter.cs: handle MissingShemaAction.AddWithKey, call
  601. AcceptChanges in Update when a CommandBuilder is used and
  602. correctly fill information about primary keys in FillSchema.
  603. Patch from Sergei Malinin ([email protected]).
  604. 2003-12-23 Tim Coleman <[email protected]>
  605. * DbConnectionString.cs:
  606. Some implementation
  607. * DbProviderFactory.cs:
  608. Fix typo to make CLS compliant
  609. 2003-12-16 Jackson Harper <[email protected]>
  610. * SchemaTableOptionalColumn.cs: Add to fix default build
  611. 2003-12-16 Tim Coleman <[email protected]>
  612. * CatalogLocation.cs DbCommand.cs DbCommandBuilder.cs
  613. * DbCommandOptionalFeatures.cs DbCommandSet.cs DbConnection.cs
  614. * DbConnectionString.cs DbDataSourceEnumerator.cs
  615. * DbDataUpdatableRecord.cs DbParameter.cs DbParameterCollection.cs
  616. * DbProviderConfigurationHandler.cs DbProviderFactories.cs
  617. * DbProviderFactoriesConfigurationHandler.cs DbProviderFactory.cs
  618. * DbProviderSupportedClasses.cs DbTable.cs DbTransaction.cs
  619. * GroupByBehavior.cs IdentifierCase.cs SchemaLocation.cs
  620. * SchemaTableColumn.cs:
  621. New stubs added for .NET 1.2
  622. * DataAdapter.cs DataColumnMapping.cs DataColumnMappingCollection.cs
  623. * DataTableMapping.cs DataTableMappingCollection.cs DbDataAdapter.cs
  624. * DbDataPermission.cs DbDataPermissionAttribute.cs DbDataRecord.cs
  625. * FieldNameLookup.cs SchemaInfo.cs:
  626. Changes made for .NET 1.2
  627. 2003-10-22 Eran Domb <[email protected]>
  628. * DbDataAdapter.cs : Check if there is mapping to avoid exception.
  629. 2003-11-26 Tim Coleman <[email protected]>
  630. * DbDataReader.cs: Add new stub class
  631. 2003-11-23 Pedro Martínez Juliá <[email protected]>
  632. * DbDataAdapter.cs: Call command dispose in self dispose method. We
  633. need to dispose the connections and other stuff stored in the
  634. commands.
  635. 2003-11-10 Pedro Martínez Juliá <[email protected]>
  636. * DataColumnMappingCollection.cs: Fix a missing exception when the
  637. required mapping is not in the collection. MS.NET throws an
  638. exception there.
  639. 2003-10-22 Eran Domb <[email protected]>
  640. * DbDataAdapter.cs (Fill): add only the mapped column to the dataTable (not all columns of dataReader).
  641. Also closing the dataReader if an exception is thrown.
  642. (Fill): the same as above.
  643. (SetupSchema): in now return string (the table name).
  644. (GetFillParameters): fix a bug.
  645. (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.
  646. (Update): first open the connection if needed. Catch an exception of the ExecuteQuery.
  647. 2003-09-30 Duncan Mak <[email protected]>
  648. Patch from Eran Domb <[email protected]>.
  649. * DbDataAdapter.cs (Fill): Fixed an Exception from being thrown.
  650. 2003-09-25 Duncan Mak <[email protected]>
  651. * DbDataAdapter.cs (Fill): Patch from Eran Domb, <[email protected]>.
  652. Fixes a possible NullReferenceException, more details here:
  653. http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002116.html
  654. 2003-09-21 eran <[email protected]>
  655. * DbDataRecord.cs: The method
  656. System.Data.Common.DbDataRecord.GetValues(object[] values) did not
  657. put the values of the DbDataRecord into values parameter.
  658. 2003-08-26 Gonzalo Paniagua Javier <[email protected]>
  659. * DbDataAdapter.cs: provide a Type for ToArray to avoid invalid cast
  660. exception. Thanks to Mark Easton <[email protected]>.
  661. 2003-07-31 Duncan Mak <[email protected]>
  662. * DataAdapter.cs (CloneInternals): Mark with ObsoleteAttribute for
  663. NET_1_1.
  664. 2003-03-21 Alan Tam <[email protected]>
  665. * DbDataAdapter.cs: Update now uses correct DataRowVersion
  666. when accessing the data.
  667. 2003-03-17 Aleksey Demakov <[email protected]>
  668. * DbDataAdapter.cs: BuildSchema now uses ColumnName instead
  669. of BaseColumnName (bug #39830) for DataColumn names.
  670. BaseTableName is no longer taken into account as well.
  671. 2003-02-28 Aleksey Demakov <[email protected]>
  672. * DbDataAdapter.cs: Update (DataSet) updates the default
  673. table only.
  674. 2003-02-25 Alan Tam <[email protected]>
  675. * DbDataAdapter.cs: Added support for filling when schema is present.
  676. Fixed incorrect behavior when ColumnMapping is present
  677. when more than one fields have the same name. Implemented Dispose.
  678. Fixed error when there is no ColumnMapping at all.
  679. Still have some problems in finding the correct TableMapping
  680. because the SourceTable name is not present in BuildSchema
  681. 2003-02-24 Aleksey Demakov <[email protected]>
  682. * DbDataAdapter.cs: The original code might pass a null DataTableMapping
  683. value which is then used to create a RowUpdatingEventArgs
  684. instance. So RowUpdatingEvent handler (for instance
  685. CommandBuilder) could get null DataTableMapping which
  686. might be unexpected. The patch makes sure that a non-null
  687. DataTableMapping is passed.
  688. 2003-01-26 Gonzalo Paniagua Javier <[email protected]>
  689. * DbEnumerator.cs: why does the runtime throw an invalid cast here? The
  690. object is an Int16... Gotta fill a bug report and when fixed undo this
  691. patch.
  692. 2003-01-08 Gonzalo Paniagua Javier <[email protected]>
  693. * DbDataRecord.cs: return DbNull.Value in GetValue () if value is null.
  694. 2002-10-31 Daniel Morgan <[email protected]>
  695. * SchemaInfo.cs: added missing properties to fix mcs build
  696. 2002-05-05 Miguel de Icaza <[email protected]>
  697. * DataTableMapping.cs, DataTableMappingCollection.cs: comment out
  698. interfaces we do not implement yet.
  699. * DbDataAdapter.cs: Stub IEnumerable, comment out interfaces
  700. we do not implement yet.
  701. * DbDataPermissionAttribute.cs: call base constructor.