ChangeLog 32 KB

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