ChangeLog 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863
  1. 2008-03-03 Veerapuram Varadhan <[email protected]>
  2. ** Fixes Bug#340451 - patch provided by Ernesto Carrea
  3. <[email protected]>
  4. * OdbcConnection.cs (GetInfo): Trim the value to actual length
  5. returned by libodbc.
  6. 2008-03-03 Veerapuram Varadhan <[email protected]>
  7. ** Fixes from BNC#332809 - patch provided by Ernesto Carrea
  8. <[email protected]>
  9. * OdbcParameter.cs (Bind): Do not allocate buffer if value is
  10. DBNull.
  11. * OdbcTypeConverter.cs (InferFromValue): Incase of DBNull, do not
  12. throw exception, instead return NVarChar to match MS.NET
  13. implementation.
  14. 2008-03-03 Ankit Jain <[email protected]>
  15. * OdbcMetaDataCollectionNames.cs: Set the field values.
  16. 2008-02-26 Veerapuram Varadhan <[email protected]>
  17. ** Fixes BNC#364432.
  18. * OdbcParameter.cs: (Bind): Set StrLen parameter of
  19. SQLBindParameter to reflect NullData in case of DBNull.
  20. (CopyValue): If Value is DBNull.Value, just don't try any
  21. heroics.
  22. 2008-02-25 Veerapuram Varadhan <[email protected]>
  23. ** Fixes BNC#364426.
  24. * OdbcDataReader.cs: (GetValue): Map OdbcType.Time to
  25. System.TimeSpan.
  26. * OdbcTypeConverter.cs: (GetTypeMap): Map OdbcType.Time and
  27. SqlType.TIME to corresponding types.
  28. * OdbcColumn.cs: -- ditto --
  29. 2008-02-20 Veerapuram Varadhan <[email protected]>
  30. * OdbcDataReader.cs: (GetValue): Handle cases when certain
  31. ODBC drivers return unexpected results. Fixes #326740. Patch
  32. provided by Mark Junker <[email protected]>.
  33. 2008-01-16 Veerapuram Varadhan <[email protected]>
  34. * OdbcCommandBuilder.cs: Implemented 2.0 APIs and code
  35. restructuring.
  36. 2007-10-28 Gert Driesen <[email protected]>
  37. * OdbcDataReader.cs: Code formatting, spaces to tabs.
  38. 2007-10-20 Gert Driesen <[email protected]>
  39. * OdbcCommand.cs: Added constant for default CommandTimeout, instead
  40. of using a magic number. Avoid unnecessary initialization. Fixed
  41. default value for DesignTimeVisible. Return zero-length string if
  42. CommandText is null. Spaces to tabs and code formatting.
  43. * OdbcError.cs: Fixed typo in exception message.
  44. * OdbcConnection.cs: Return zero-length string if ConnectionString is
  45. null. In getters for Database, DataSource and Driver return a
  46. zero-length string if connection is closed. In BeginTransaction and
  47. GetSchema throw InvalidOperationException if connection is closed.
  48. Added override for GetSchema (string, string []). Use string.Empty
  49. instead of "".
  50. * OdbcDataAdapter.cs: Avoid unnecessary initializations. Use direct
  51. assignment in IDbDataAdapter implementation. In default ctor, set
  52. SelectCommand to null.
  53. 2007-10-19 Gert Driesen <[email protected]>
  54. * OdbcTransaction.cs: Clear connection in Commit and Rollback.
  55. In IsolationLevel, throw IOE if transaction is no longer open.
  56. 2007-10-19 Gert Driesen <[email protected]>
  57. * OdbcTransaction.cs: Keep state of the transaction, and update it
  58. when performing commit or rollback. In Dispose (bool), only perform
  59. a rollback if transaction was not committed or rollback before.
  60. In Commit and Rollback, throw an InvalidOperationException if
  61. transaction is no longer open.
  62. 2007-10-19 Gert Driesen <[email protected]>
  63. * OdbcTransaction.cs: Use OdbcIsolationLevel enum value instead of
  64. magic numbers. For Snapshot isolation level, the attribute
  65. SQL_COPT_SS_TXN_ISOLATION must be used instead. When isolation level
  66. is Unspecified, then do not modify the isolation level at all and
  67. lazy initlization the IsolationLevel property. Modified exceptions
  68. for invalid / not supported isolation levels to match MS.
  69. * libodbc.cs: Added attribute for changing SQL Server specific
  70. connection option. Added enum for ODBC isolation level options.
  71. Added SQLGetConnectAttr method.
  72. 2007-10-19 Gert Driesen <[email protected]>
  73. * libodbc.cs: Spaces to tabs. Code formatting.
  74. * OdbcConnection.cs: Spaces to tabs. Code formatting.
  75. * OdbcTransaction.cs: Code formatting.
  76. 2007-10-19 Nagappan <[email protected]>
  77. * OdbcCommandBuilder.cs, OdbcParameterCollection.cs: Code alignment.
  78. * OdbcDataReader.cs: Fixes numeric columns, bug # 332404.
  79. 2007-10-19 Nagappan <[email protected]>
  80. * OdbcCommand.cs: (Clone): Implemented new method. Code alignment.
  81. 2007-10-12 Nagappan <[email protected]>
  82. * OdbcDataReader.cs: Bug 332400 - ODBC and LONGBLOB columns. Thanks to
  83. Ernesto Carrea <[email protected]> for the patch and the test case.
  84. 2007-10-08 Marek Safar <[email protected]>
  85. * OdbcParameterCollection.cs (SetParameter): Fixed missing cast.
  86. 2007-09-27 Nagappan A <[email protected]>
  87. * OdbcTransaction.cs: AutoCommit and BeginTransaction fix. Thanks to
  88. Mads Bondo Dydensborg <[email protected]> and Amc <[email protected]> for
  89. providing this patch.
  90. 2007-09-25 Nagappan A <[email protected]>
  91. * OdbcParameter.cs (ResetOdbcType, ResetDbType): Implemented
  92. missing methods. 2.0 attribute fixes.
  93. * OdbcInfoMessageEventArgs.cs (Message, Errors, ToString):
  94. Implemented missing properties and methods. 2.0 attribute fixes.
  95. * OdbcConnection.cs (InfoMessage): Added public event and relevant
  96. private APIs. 2.0 attribute fixes.
  97. * OdbcConnectionStringBuilder.cs: 2.0 attribute fixes.
  98. * OdbcParameterCollection.cs (GetParameter, SetParameter):
  99. Implemented missing 2.0 APIs and 2.0 attribute fixes.
  100. * OdbcDataReader.cs (finalize): 2.0 compatibility fixes.
  101. * OdbcPermission.cs (Add): 2.0 compatibility fixes.
  102. * OdbcCommandBuilder.cs: 2.0 attribute fixes.
  103. * OdbcRowUpdatingEventArgs.cs (BaseCommand): Added 2.0 property.
  104. * OdbcCommand.cs: 2.0 attribute fixes.
  105. * OdbcException.cs: 2.0 attribute fixes.
  106. 2007-09-11 AMC <[email protected]>
  107. * OdbcDataReader.cs (GetPrimaryKeys): ODBC data reader can now
  108. properly handle "no-primary-keys" situation. Fixes bug # 82560.
  109. 2007-09-11 Nagappan A <[email protected]>
  110. * OdbcConnectionStringBuilder.cs: Fixed Dsn DisplayName attribute.
  111. 2007-08-13 Nagappan A <[email protected]>
  112. * OdbcMetaDataColumnNames.cs: Added new class.
  113. * OdbcMetaDataCollectionNames.cs: Added new class.
  114. * OdbcParameter.cs: 2.0 compatibility changes.
  115. * OdbcFactory.cs (CreateConnectionStringBuilder)
  116. (CreatePermission): Implemented new methods.
  117. * OdbcInfoMessageEventHandler.cs: 2.0 compatibility changes.
  118. * OdbcConnection.cs: 2.0 compatibility changes.
  119. (GetSchema): Added new overloaded methods.
  120. * OdbcConnectionStringBuilder.cs (Driver, Dsn): Added attributes
  121. as per 2.0 requirement.
  122. * OdbcDataReader.cs: 2.0 compatibility changes.
  123. * OdbcCommandBuilder.cs: 2.0 compatibility changes.
  124. * OdbcCommand.cs: 2.0 compatibility changes.
  125. * OdbcErrorCollection.cs (CopyTo): Implemented new overloaded
  126. method.
  127. * OdbcException.cs: In 2.0 DbException should be inherited instead
  128. of SystemException.
  129. 2007-07-31 Nagappan A <[email protected]>
  130. * OdbcCommand.cs (ExecSQL): Thanks to [email protected] (amc) for
  131. providing the patch, Fixes bug # 82135. ODBC SQLExecDirect
  132. error. Delete where no-data-found fails.
  133. * OdbcCommandBuilder.cs: Removed bogus TODO.
  134. Fixed 2.0 missing attributes
  135. * libodbc.cs: Added new libodbc global constant SQL_NTS.
  136. * OdbcCommand.cs (ExecSQL): Thanks to [email protected] (amc) for
  137. providing the patch, Fixes bug # 82191. ODBC command UTF8
  138. error. SQL failed with UTF8 symbols in query.
  139. Removed bogus TODO.
  140. Fixed 2.0 missing attributes
  141. 2007-07-22 Nagappan A <[email protected]>
  142. * OdbcDataAdapter.cs: Fixed compilation warning.
  143. * OdbcTransaction.cs: Fixed compilation warning.
  144. 2007-06-30 Gert Driesen <[email protected]>
  145. * OdbcDataAdapter.cs: Only override Dispose on 1.0 profile. Added
  146. stub for ICloneable.Clone.
  147. * OdbcTransaction.cs: Dispose should be explicit interface impl., not
  148. public. Connection is also public on 2.0 profile.
  149. 2007-06-21 Nagappan A <[email protected]>
  150. * OdbcConnectionStringBuilder.cs: Added new file with the basic
  151. work of Nidhi Rawal ([email protected]).
  152. * OdbcDataReader.cs (GetValue): Patch for varchar longer than 255
  153. characters, by Mads Bondo Dydensborg <[email protected]>.
  154. * OdbcConnection.cs: Fixed compiler warning.
  155. 2007-06-06 Amit Biswas <[email protected]>
  156. * OdbcParameter.cs (OdbcParameter ()): Changed default values in the constructor
  157. * OdbcParameterCollection.cs (AddRange (Array values)): Implemented missing method
  158. (Add): Corrected bug related to default parameter names
  159. (Insert): Added check for valid index values
  160. (Contains): Corrected bug for case sensitivity
  161. (IndexOf): Corrected bug for case sensitivity
  162. (IndexOf): Corrected bug in comparing parameter names
  163. (Remove): Added check for non existing parameters
  164. (AddRange (OdbcParameter): Implemented missing method
  165. (AddRange (Array values): Implemented missing method
  166. (Insert (int index, OdbcParameter value)): Implemented missing method
  167. (Insert (int index, object value)): Implemented missing method
  168. (AddWithValue (string parameterName, Object value)): Implemented missing method
  169. (Remove (OdbcParameter value)): Implemented missing method
  170. (Contains (OdbcParameter value)): Implemented missing method
  171. (CopyTo (OdbcParameter [] array, int index)): Implemented missing method
  172. 2007-05-30 Nagappan A <[email protected]>
  173. * OdbcDataReader.cs (GetValue): Adds nano seconds as tickcs from
  174. the received buffer.
  175. 2007-05-25 Nagappan A <[email protected]>
  176. * OdbcDataReader.cs (GetValue): Sybase returns the fraction values
  177. in nano seconds, but DateTime expects the value in milliseconds,
  178. so the conversion.
  179. 2007-05-04 Nagappan A <[email protected]>
  180. * libodbc.cs: Wrong ODBC API definitions (using ints instead of
  181. shorts) - Fixes bug 81306. Thanks to [email protected] and
  182. [email protected].
  183. * OdbcDataReader.cs: Wrong ODBC API definitions (using ints
  184. instead of shorts) - Fixes bug 81306. Thanks to
  185. [email protected] and [email protected].
  186. 2007-02-09 Nagappan A <[email protected]>
  187. * OdbcDataReader.cs (GetDecimal): Implemented new API.
  188. 2007-01-08 Nagappan A <[email protected]>
  189. * OdbcFactory.cs: Fixed compilation warning.
  190. * OdbcCategoryAttribute.cs (Category): Implemented missing
  191. property.
  192. * OdbcParameterCollection.cs: Fixed compilation warning.
  193. * OdbcCommandBuilder.cs (GetInsertCommand, GetUpdateCommand)
  194. (GetDeleteCommand): Implemented overloaded method.
  195. * OdbcTransaction.cs: Modified partial content of DOS format file
  196. to UNIX format.
  197. 2006-07-13 Senganal T <[email protected]>
  198. * OdbcTransaction.cs OdbcCommand.cs OdbcConnectionFactory.cs
  199. OdbcPermission.cs OdbcDataReader.cs OdbcParameterCollection.cs
  200. OdbcConnection.cs OdbcFactory.cs OdbcParameter.cs :
  201. 2.0 Api fixes
  202. 2006-05-31 Gert Driesen <[email protected]>
  203. * OdbcErrorCollection.cs: Removed explicit interface implementation
  204. of IEnumerable.GetEnumerator ().
  205. * OdbcCommand.cs: Removed destructor as the destructor in
  206. System.ComponentModel.Component already calls the Dispose method.
  207. Removed explicit interface implemenation of members that are
  208. implement by public members.
  209. * OdbcDataReader.cs: Removed explicit interface implemenation of
  210. IDataRecord.GetData.
  211. 2006-05-24 Senganal T <[email protected]>
  212. * OdbcColumn.cs :
  213. - Added IsVariableSizeType : Handle types with variable datasize
  214. * OdbcTypeConverter.cs : map LongVarBinary to Image
  215. * OdbcDataReader.cs :
  216. - GetValue () : Handle Text,Image datatypes differently. Only allocate
  217. storage for the data contained and not for MaxLength. Fixes #78234
  218. 2006-05-09 Senganal T <[email protected]>
  219. * OdbcConnection.cs : Implemented ChangeDatabase Method
  220. * libodbc.cs : Added value for CurrentCatalog in OdbcConnectionAttribute
  221. 2006-02-17 Chris Toshok <[email protected]>
  222. * OdbcDataReader.cs: remove VisibleFieldCount property.
  223. 2005-11-21 Senganal T <[email protected]>
  224. * OdbcTransaction.cs
  225. * OdbcCommandBuilder.cs
  226. * OdbcParameterCollection.cs
  227. * OdbcDataReader.cs
  228. * OdbcFactory.cs
  229. * OdbcDataAdapter.cs
  230. * OdbcParameter.cs
  231. Added stubs and other changes for ADO.NET 2.0 compatibility
  232. 2005-10-14 Senganal T <[email protected]>
  233. * OdbcColumn.cs : Changed the mapping of OdbcType.Char to string
  234. instead of char. Fixes bug #67269
  235. 2005-10-14 Senganal T <[email protected]>
  236. * OdbcDataReader.cs: Added Text and NText datatypes to the list
  237. of datatypes checked by GetValue () method. Fixes bug #75032
  238. 2005-10-14 Sureshkumar T <[email protected]>
  239. * OdbcDataReader.cs (GetValue): Use SQL_CHAR for Numeric as
  240. temporary fix.
  241. * OdbcParameter.cs (CopyValue): Add support for Numeric & Decimal
  242. parameters.
  243. 2005-10-08 Sureshkumar T <[email protected]>
  244. * OdbcCommand.cs (BindParameters): Copy the parameter Value after
  245. binding.
  246. * OdbcParameter.cs: re-implemented the native buffer handling and
  247. odbc type handling.
  248. * NativeBuffer.cs: A native buffer class to hold pointer to native
  249. memory.
  250. * OdbcTypeMap.cs (OdbcTypeMap): structure to hold different odbc
  251. types and the default mapping.
  252. * OdbcTypeConverter.cs: Simplified mapping between different odbc
  253. types using switch-case.
  254. * libodbc.cs (SQLBindParameter): use only one entry point and use
  255. IntPtr instead of ref.
  256. 2005-08-20 Gert Driesen <[email protected]>
  257. * OdbcDataReader.cs: Marked GetPrimaryKeysBySQLStatistics unsafe.
  258. This fixes the build on Windows (using csc).
  259. 2005-08-09 Sureshkumar T <[email protected]>
  260. * OdbcDataReader.cs: GetSchemaTable (): set values for the column
  261. attributes using SQLColAttribute. If SQLPrimaryKeys does not
  262. yeild, try SQLStatistics. Optimized primary key logic.
  263. * libodbc.cs: Added api SQLStatistics and constants.
  264. * OdbcParameter.cs: setBuffer (): allocate a short int buffer for
  265. OdbcType.SmallInt. fixes bug #75600.
  266. 2005-08-08 Gert Driesen <[email protected]>
  267. * OdbcConnection.cs: Marked Init helper method private.
  268. * OdbcCommand.cs: Marked BindParameters helper method private.
  269. 2005-08-08 Sureshkumar T <[email protected]>
  270. * OdbcDataReader.cs: Implemented Dispose pattern. Cache
  271. schematable for same result set. don't free command's statements
  272. if the command is prepared.
  273. * OdbcConnection.cs: Open (): set disposed to false so that close
  274. will be called in Dispose.
  275. * OdbcCommand.cs:
  276. - Prepare (): Split SQLPrepare and SQLBind so that
  277. already prepared statements can be reused with new parameter
  278. values.
  279. - ExecSQL (): create new statement handle, if not prepared
  280. and there are no parameters. if there are parameters, prepare and
  281. use.
  282. - Implemented Dispose pattern
  283. - Streamlined the allocation and de-allocation of statement
  284. handles.
  285. 2005-08-05 Sureshkumar T <[email protected]>
  286. * OdbcDataReader.cs: RecordsAffected: get value from command.
  287. GetSchemaTable (): set IsExpression based on BaseTableName. set
  288. AllowDBNull to false if the column is PK.
  289. * OdbcCommand.cs: correct UpdatedRowSource is returned. whitespace
  290. changes to conform to standard.
  291. * OdbcCommandBuilder.cs: Implemented.
  292. * OdbcParameter.cs: Direction is set to Input by default.
  293. 2005-07-22 Sureshkumar T <[email protected]>
  294. * OdbcParameter.cs: updated attributes & attribute descriptions to
  295. match with masterinfos.
  296. * OdbcDataReader.cs: NextRow (): made private.
  297. 2005-07-21 Sureshkumar T <[email protected]>
  298. * OdbcDataReader.cs: GetValue (): added case for OdbcType.Bit. and
  299. Formatting corrections. Fixes bug #75574.
  300. 2005-07-07 Sureshkumar T <[email protected]>
  301. * OdbcTypeConverter.cs: ConvertToSqlType & ConvertToSqlCType: map
  302. VarChar to SQL_C_CHAR and SQL_VARCHAR respective instead of WCHAR
  303. and WVARCHAR as temporary fix.
  304. * OdbcParameter.cs: setBuffer: string types need not be quoted.
  305. 2005-06-28 Sureshkumar T <[email protected]>
  306. * OdbcDataReader.cs: GetPrimaryKeys (): use the length indicator
  307. for GetString, otherwise, it creates a string of length 255. Use
  308. ArrayList for keys as the columns are different from the selected
  309. columns. fixes bug #75263.
  310. 2005-06-09 Sureshkumar T <[email protected]>
  311. * OdbcDataReader.cs: GetValue (): return decimal in case of odbc
  312. type Numeric. Move the temp buffer logic inside.
  313. * OdbcTypeConverter.cs: map SQL_TYPE.NUMERIC to SQL_C_TYPE.CHAR by
  314. now, since PgSql driver seems not to accept NUMERIC c type. Other
  315. database anyway, provides NUMERIC datatype as DECIMAL.
  316. 2005-05-31 Sureshkumar T <[email protected]>
  317. * OdbcParameter.cs: setBuffer (): for numeric type, the buffer
  318. parameter should be a packed decimal struct. fixes bug #75041.
  319. 2005-04-05 Sureshkumar T <[email protected]>
  320. * OdbcParameter.cs: SqlBindParameter requires the last parameter
  321. to be a ref.
  322. * libodbc.cs: API change for above.
  323. 2005-04-04 Sureshkumar T <[email protected]>
  324. * OdbcDataReader.cs: Ignore BaseTableName & BaseColumnName
  325. properties while building Schema information as most drivers
  326. ignores these properties. e.g. PostgreSQL.
  327. 2005-03-24 Sureshkumar T <[email protected]>
  328. Appasamy <[email protected]>
  329. * OdbcColumn.cs: IsStringType: OdbcType.Char is also of type
  330. String.
  331. * OdbcDataReader.cs: GetSchemaTable: Get Additional info using
  332. SQLColAttribute. Don't pad with spaces in GetColAttributeStr.
  333. 2005-03-24 Sureshkumar T <[email protected]>
  334. * OdbcDataReader.cs:
  335. - GetValue: Decode only outsize length for SQL_C_TYPE.CHAR type in
  336. SQLGetData.
  337. - GetOrdinal: Perform case insensitive lookup if sensitive lookup
  338. fails.
  339. 2005-03-22 Sureshkumar T <[email protected]>
  340. Appsamy <[email protected]>
  341. * libodbc.cs (System.Data.Odbc): Added enum FieldIdentifier. Added
  342. library functions SQLPrimaryKeys, SQLBindCol and SQLColAttribute.
  343. * OdbcDataReader.cs: Implemented GetPrimaryKeys to get the primary
  344. keys associated with resultset using SQLPrimaryKeys.
  345. 2005-03-15 Sureshkumar T <[email protected]>
  346. * OdbcConnection.cs: re-throw error on exception in Open method.
  347. 2005-03-11 Sureshkumar T <[email protected]>
  348. * OdbcConnection.cs : notify state change through event. clean up
  349. handles in case any exception while opening a connection. NET_2_0
  350. uses base class's OnStateChange handler.
  351. 2005-03-10 Sureshkumar T <[email protected]>
  352. Migrated core classes to derive from ProviderBase instead of
  353. implementing IDb* interfaces. Most part of these files have been
  354. branched with #if NET_2_0/ONLY_1_1. Make sure any changes works
  355. with both the profiles.
  356. * OdbcFactory.cs: Concrete Factory for DbProviderFactory. Factory
  357. to generate Connection,Command,etc.
  358. * OdbcConnectionFactory.cs: Concrete factory for DbConnectionFactory.
  359. * OdbcTransaction.cs: migration and overrides.
  360. * OdbcCommandBuilder.cs: migration and overrides.
  361. * OdbcDataReader.cs: --do--. no command behavior member as it will
  362. be maintained in base provider class.
  363. * OdbcParameterCollection.cs: --do--. Now, local ArrayList is not
  364. maintained here, instead it is in base class. Most of the methods
  365. which operated on this list are not needed in NET_2_0.
  366. * OdbcConnection.cs: Migration. connectionString is maintained in
  367. DbConnectionBase class.
  368. * OdbcParameter.cs: Migration. Many of the local members like
  369. value,sourceColumn are maintained in DbParameterBase.
  370. * OdbcCommand.cs: Migration. commandText,timeout and
  371. commandTimeOut are maintained in DbCommandBase class.
  372. 2005-03-10 Sureshkumar T <[email protected]>
  373. * OdbcType.cs: Added enums for SQL_TYPE & SQL_C_TYPE.
  374. * libodbc.cs: Accept SQL_C_TYPE for driver
  375. parameters. SQLBindParameter takes two parameters SQL_TYPE and
  376. SQL_C_TYPE. This caused the whole lot of changes done in this
  377. revision.
  378. * OdbcParameter.cs: Set default values of OdbcType & DbType. Pass
  379. mapped SQL_TYPE and SQL_C_TYPE to SQLBindParameter. Increase
  380. buffer size by 2 for additional ' chars.
  381. * OdbcTypeConverter.cs: Added class to convert between OdbcType,
  382. SQL_TYPE, SQL_C_TYPE.
  383. * OdbcColumn.cs: Added private members for SQL_TYPE and
  384. SQL_C_TYPE. conversion from/to odbctype to/from SQL_TYPE is done
  385. through OdbcTypeConverter class.
  386. * OdbcDataReader.cs: use OdbcColumn's SQL_C_TYPE member. It keeps
  387. track of default mapping between odbctype, SQL_TYPE and
  388. SQL_C_TYPE. Move dataTableSchema.AcceptChanges inside if condition
  389. to avoid null reference exception.
  390. 2005-02-04 Sureshkumar T <[email protected]>
  391. Appasamy <[email protected]>
  392. * OdbcConnection.cs: Implemented properties database, datasource,
  393. serverversion and driver.
  394. * libodbc.cs: Added type OdbcInfo and native call SQLGetInfo.
  395. 2005-01-20 Sureshkumar T <[email protected]>
  396. * OdbcDataReader.cs: case for type OdbcType.Double added in
  397. GetValue. fixes bug #71173.
  398. Thanks to patch given by "Appasamy T" <[email protected]>
  399. 2005-01-19 Sureshkumar T <[email protected]>
  400. * OdbcType.cs: Change enum values for compatiability with MS.NET.
  401. * libodbc.cs: Change enum values for compatiability with
  402. MS.NET. Change calls into driver with native type.
  403. * OdbcDataReader.cs: Change enum values for compatiability with
  404. MS.NET. Change calls from/into driver with native type.
  405. 2005-01-18 Sureshkumar T <[email protected]>
  406. * OdbcDataReader.cs: GetOrdinal need not check for
  407. currentRow. Return -1 if column name is not found.
  408. fixes bug #71261. Thanks to patch given by "Appasamy T"
  409. <[email protected]>.
  410. 2005-01-13 Sureshkumar T <[email protected]>
  411. * OdbcDataReader.cs: Implement NextResultSet for multiple result
  412. set queries.
  413. * OdbcDataReader.cs: build column schema once creating reader and
  414. then for each Next result set. Thanks to
  415. [email protected] (Sebastien Robitaille) for
  416. pointing out this optimization (bugzilla #70530).
  417. * libodbc.cs: Added library calls SQLFreeStmt and SQLMoreResults
  418. for mutiple resultsets.
  419. 2005-01-10 Sureshkumar T <[email protected]>
  420. * OdbcDataReader.cs: Connection has to be closed only after
  421. Statement handle is freed. fixes bug #70048.
  422. 2005-01-07 Sureshkumar T <[email protected]>
  423. * OdbcDataReader.cs: Pass OdbcCType.SignedBigInt for accessing big
  424. int columns.
  425. * OdbcType.cs: Added a new enum for Odbc C DataTypes. This should
  426. essentially be passed to drivers, since the public OdbcType types
  427. differs from types expected in drivers in some cases.
  428. * libodbc.cs : Added a ODBC method which takes OdbcCType
  429. enumeration for SQLGetData for BigInt fields.
  430. fixes bug #65342.
  431. 2004-12-28 Duncan Mak <[email protected]>
  432. * libodbc.cs: Change all the DllImport attributes to point to
  433. "odbc32.dll" instead of "odbc32", because /etc/mono/config lists
  434. "odbc32.dll" (all other entries in the file have the .dll suffix
  435. as well, for consistency's sake, let's rename it here.)
  436. This fixes #70727.
  437. 2004-12-03 Sureshkumar T <[email protected]>
  438. * OdbcParameter.cs: Fixed a null reference exception when a
  439. parameter is created and its value is not set. #68750.
  440. 2004-11-26 Sureshkumar T <[email protected]>
  441. * OdbcParameter.cs: Fixed Parameter Size property as well as
  442. insufficient buffer errors. bug #68749.
  443. 2004-09-14 Sebastien Pouliot <[email protected]>
  444. * OdbcPermission.cs: Added internal constructor accepting an Odbc
  445. PermissionAttribute parameter (using base class protected ctor).
  446. * OdbcPermissionAttribute.cs: Copy now use the new OdbcPermission
  447. constructor.
  448. 2004-09-13 Sebastien Pouliot <[email protected]>
  449. * OdbcPermission.cs: Mostly completed (needs tests).
  450. * OdbcPermissionAttribute.cs: Completed.
  451. 2004-08-31 Umadevi S ([email protected])
  452. * OdbcDataReader.cs - Fixed Decimal parsing
  453. 2004-08-30 Umadevi S ([email protected])
  454. * OdbcType.cs - removed inheritance from short.
  455. 2004-08-27 Sureshkumar T ([email protected])
  456. * OdbcDataReader.cs - fixed bug #63539 - TINYINT ODBC datatype is converted into System.Byte
  457. 2004-08-26 Sureshkumar T ([email protected])
  458. * OdbcDataReader.cs - Date & DateTime GetValue fixed.
  459. GetBytes ordinal parameter passing fixed for BINARY in GetValue.
  460. 2004-08-20 Sureshkumar T ([email protected])
  461. * OdbcConnection.cs - correct handles are passed to OdbcError exception to trap the correct error
  462. 2004-08-04 Umadevi S ([email protected])
  463. * OdbcDataReader.cs - Fixed bug 61832 - Column names were not filled, due to which name based lookup of columns failed.
  464. 2004-08-04 Umadevi S ([email protected])
  465. * OdbcDataReader.cs - Fixed bug 61405 - Handling smallint column type.
  466. 2004-07-30 Sureshkumar T ([email protected])
  467. * OdbcCommand.cs: ExecuteNonQuery Closed statement handle to fix memory leak
  468. * OdbcDataReader.cs: Closed statement handle to fix memory leak
  469. Removed SQLState login in GetBytes coz OdbcError provides the same.
  470. 2004-07-29 Umadevi S ([email protected])
  471. * OdbcCommand.cs - Fixed bug 62046. ExecuteNonQuery implemented correctly
  472. 2004-07-28 Umadevi S ([email protected])
  473. * OdbcParameter.cs - fixed bug 61968. String values passed with quotes
  474. 2004-07-07 Umadevi S ([email protected])
  475. * OdbcConnection.cs - Allowed Close to be called multiple times
  476. - Implementation of Dispose method
  477. 2004-07-07 Umadevi S ([email protected])
  478. * OdbcCommand.cs : fixed set method for Transaction
  479. 2004-07-01 Sureshkumar T ([email protected])
  480. * OdbcCommand.cs : fixed reader problem with ExecuteScalar
  481. 2004-06-23 Sureshkumar T ([email protected])
  482. * OdbcConnection.cs: Fix: Moved env allocation to Open method.
  483. Disconnection & freeing handles are done in Close
  484. method to avoid simultaneous connections.
  485. * libodbc.cs : Added constants for odbc version.
  486. 2004-06-16 Gert Driesen <[email protected]>
  487. * OdbcError.cs: fixed serialization compatibility with MS.NET
  488. * OdbcErrorCollection.cs: fixed serialization compatibility with
  489. MS.NET
  490. * OdbcException.cs: fixed serialization compatibility with MS.NET
  491. 2004-06-16 Sureshkumar T ([email protected])
  492. * OdbcDataReader.cs: Added GetValue support for Sql Binary type to return byte array.
  493. Implemented GetBytes method.
  494. * libodbc.cs : Added enums, constants & imports for above fix.
  495. 2004-06-13 Gert Driesen <[email protected]>
  496. * OdbcDataReader.cs: changed GetData method to return IDataReader
  497. to match MS.NET
  498. 2004-06-09 Sureshkumar T ([email protected])
  499. * OdbcDataReader.cs: Removed checking of currentRow in GetName
  500. method
  501. 2004-06-04 Gert Driesen <[email protected]>
  502. * OdbcPermission.cs: moved Obsolete attribute to correct
  503. ctor
  504. 2004-06-02 Sureshkumar T ([email protected])
  505. * OdbcDataReader.cs: Implemented GetByte method. Fixed bug #58820
  506. 2004-06-02 Gert Driesen <[email protected]>
  507. * OdbcParameter.cs: added missing attributes
  508. * OdbcPermission.cs: added missing attributes
  509. * OdbcConnection.cs: fixes attribute, added missing attributes
  510. * OdbcInfoMessageEventArgs.cs: removed extra properties, fixed
  511. API compatibility with MS.NET
  512. * OdbcCommandBuilder.cs: use correct attributes
  513. 2004-05-20 Gert Driesen ([email protected])
  514. * OdbcPermissionAttribute.cs: change AllowMultiple and
  515. Inherited to match .NET
  516. 2004-05-17 Umadevi S ([email protected])
  517. * OdbcPermissionAttribute, OdbcPermission.cs - fixed missing methods
  518. 2004-05-17 Gert Driesen ([email protected])
  519. * OdbcCategoryAttribute.cs: fixed namespace
  520. * OdbcDataAdapter.cs: removed extra attributes
  521. * OdbcDescriptionAttribute.cs: fixed namespace
  522. 2004-05-14 Umadevi S ([email protected])
  523. * OdbcParameterConverter.cs -Added
  524. * OdbcParameter.cs - Added some attributes
  525. 2004-05-14 Umadevi S ([email protected])
  526. * OdbcDataAdapter.cs - Added Attributes
  527. 2004-05-14 Umadevi S ([email protected])
  528. * OdbcConnection.cs - Added Attributes
  529. 2004-05-14 Umadevi S ([email protected])
  530. * OdbcCommand.cs - Added Attributes
  531. 2004-05-14 Umadevi S ([email protected])
  532. * OdbcDataReader.cs - Added Attributes
  533. 2004-05-14 Umadevi S ([email protected])
  534. * Added Classes OdbcCategoryAttribute.cs, OdbcDescriptionAttribute.cs
  535. 2004-05-14 Umadevi S ([email protected])
  536. * Added Class OdbcCommandBuilder.cs
  537. 2004-05-14 Umadevi S ([email protected])
  538. * Added classes OdbcInfoMessageEventArgs.cs - with stubs
  539. * Added classes OdbcInfoMessageEventInfo.cs
  540. 2004-05-14 Umadevi S ([email protected])
  541. * Added classes OdbcPermission.cs, OdbcPermissionAttribute.cs - with stubs
  542. 2004-05-09 Gert Driesen ([email protected])
  543. * OdbcException.cs : removed ErrorCode property, fixing signature
  544. * OdbcErrorCollection.cs : added internal ctor, reduced
  545. accessibility of Add method to internal
  546. * OdbcCommand.cs: marked hstmt field private, remove setters for
  547. Parameters property
  548. * OdbcDataReader.cs: Added GetDate method, renamed GetTimeSpan to
  549. GetTime to match MS.NET, added HasRows stub
  550. 2004-05-09 Gert Driesen ([email protected])
  551. * OdbcError.cs:
  552. * OdbcErrorCollection.cs:
  553. * OdbcException.cs: fixed linefeeds to DOS to match other
  554. sources in System.Data.Odbc
  555. 2004-05-09 Gert Driesen ([email protected])
  556. * OdbcCommand.cs: No longer use OdbcConnection.Datareader, in order
  557. to fix signature of OdbcConnection
  558. * OdbcDataReader.cs: No longer use ODbcConnection.Datareader, in
  559. order to fix signature of OdbcConnection
  560. * OdbcConnection.cs: Signature fixes: removed DataReader property,
  561. added setter for ConnectionTimeout, made transaction internal
  562. * OdbcParameter.cs: reduced accessibility of Bind method to
  563. internal, added setter for IsNullable
  564. * OdbcParameterCollection.cs: made default ctor and Bind method
  565. internal
  566. 2004-05-09 Gert Driesen ([email protected])
  567. * OdbcCommand.cs: fixed linefeeds to DOS to match other sources
  568. in System.Data.Odbc
  569. 2004-05-09 Gert Driesen ([email protected])
  570. * OdbcTransaction.cs: fixed signature to match MS.NET
  571. 2004-05-09 Gert Driesen ([email protected])
  572. * OdbcType.cs: fixed typo UniqueIndetifier
  573. * OdbcColumn.cs : fixed typo UniqueIndetifier
  574. 2004-05-09 Gert Driesen ([email protected])
  575. * OdbcType.cs: fixed linefeeds to DOS to match other sources
  576. in System.Data.Odbc
  577. 2003-12-01 Gonzalo Paniagua Javier <[email protected]>
  578. * OdbcTransaction.cs: applied patch from Jeff Seifert that makes
  579. this class implement IDbTransaction interface.
  580. 2002-11-01 Daniel Morgan <[email protected]>
  581. * OdbcDataReader.cs: - uncommented code, but I put a FIXME:
  582. according to Brian, this does not work on MS .NET however, we need it
  583. for Mono for now. schemaRow.AcceptChanges(),
  584. - implement IEnumerable.GetEnumerator()
  585. * libodbc.cs: changed the DllImport from "odbc32.dll" to "odbc32"
  586. 2002-10-21 Gonzalo Paniagua Javier <[email protected]>
  587. * ChangeLog: added.
  588. * OdbcError.cs:
  589. * OdbcException.cs: added dummy implementation for these missing
  590. classes.