ChangeLog 30 KB

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